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\system32\config\systemprofile\) 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.7.7\sbin

  4. Run the following command:

    rabbitmqctl.bat status

  1. Copy the .erlang.cookie file from the %SystemRoot% folder (C:\WINDOWS\system32\config\systemprofile\) 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.7.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\erl9.3)
  6. Close the command prompt and open a new one as Administrator.
  7. Navigate to the RabbitMQ sbin folder: %ProgramFiles%\NPrintingServer\rabbitmq_server-3.7.4\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\system32\config\systemprofile\) 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.7.7\sbin
  4. Run the following command:

    rabbitmqctl.bat list_permissions

  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 information help you?

Thanks for letting us know. Is there anything you'd like to tell us about this topic?

Can you tell us why it did not help you and how we can improve it?