Skip to main content

Qlik NPrinting messaging service (RabbitMQ) start up and connection problems

Possible cause  

If reports are not produced, or engines never go to Online status, or if the Qlik NPrinting Scheduler service stops after about one minute from start up, the Qlik NPrinting messaging service (RabbitMQ) may have stopped.

The scheduler log shows a message like:

2016-01-21 16:45:58,404 FATAL:

*********************************************

Error: RabbitMQ message broker is unreachable

Shutting down scheduler service

*********************************************

2016-01-21 16:46:12,102 FATAL: Unable to start SchedulerService: exception of type System.AggregateException

One or more errors occurred.

Proposed action  

  1. Check that Qlik NPrinting messaging service is running.
  1. Copy the .erlang.cookie file from the %SystemRoot% folder (C:\Windows) and replace it in the %USERPROFILE% folder (C:\Users\npadmin).
  2. Open a new command prompt as Administrator.

  3. Navigate to the RabbitMQ sbin folder: %ProgramFiles%\NPrintingServer\rabbitmq_server-3.5.7\sbin

  4. Run the following command:

    rabbitmqctl.bat status

  1. Copy the .erlang.cookie file from the %SystemRoot% folder (C:\Windows) and replace it in the %USERPROFILE% folder (C:\Users\npadmin).
  2. Open a new command prompt as Administrator.
  3. Navigate to the RabbitMQ sbin folder: %ProgramFiles%\NPrintingServer\rabbitmq_server-3.5.7\sbin
  4. Run the following commands:

    rabbitmq-service.bat stop

    rabbitmq-service.bat remove

  5. Add the system environment variable ERLANG_HOME (if missing) with the path to the Erlang base folder (usually C:\Program Files\erl7.2.1)
  6. Close the command prompt and open a new one as Administrator.
  7. Navigate to the RabbitMQ sbin folder: %ProgramFiles%\NPrintingServer\rabbitmq_server-3.5.7\sbin
  8. Run the following commands:

    rabbitmq-service.bat install

    rabbitmq-service.bat start

  1. Copy the .erlang.cookie file from the %SystemRoot% folder (C:\Windows) and replace it in the %USERPROFILE% folder (C:\Users\npadmin).
  2. Open a new command prompt as Administrator.
  3. Navigate to the RabbitMQ sbin folder: %ProgramFiles%\NPrintingServer\rabbitmq_server-3.5.7\sbin
  4. Run the following command:

    rabbitmqctl.bat list_permission

  5. If the output does not contain the row:

    remote .* .* .*

    Run the following commands:

    rabbitmqctl.bat add_user remote remote

    rabbitmqctl.bat set_permissions remote ".*" ".*" ".*"

If you see connection errors instead, refer to the Erlang cookie section in the RabbitMQ Clustering Guide. After fixing RabbitMQ errors, restart the Qlik NPrinting scheduler service, Qlik NPrinting web engine and Qlik NPrinting Engine services.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!