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:

Qlik.NPrinting.Scheduler 18.39.4.0 Qlik.NPrinting.Scheduler.SchedulerHttpService 20181023T095222.992+02:00 INFO CV-NP-SILVER07 0 0 0 0 0 0 0 0 Starting up scheduler service Qlik.NPrinting.Common 18.39.4.0 Qlik.NPrinting.Common.Messages.ContentResolutionRabbitTopology 20181023T095845.290+02:00 ERROR CV-NP-SILVER07 Nprinting Task Identity 0 0 0 0 0 0 0 0 Failed 3 times to prepare queue with exchange name engine_exchange and queue name engineallocationstatus_queue. ERROR: System.TimeoutException: The operation requested on PersistentChannel timed out↓↓ ....

Qlik.NPrinting.Scheduler 18.39.4.0 Qlik.NPrinting.Scheduler.SchedulerHttpService 20181023T095845.297+02:00 FATAL CV-NP-SILVER07 Nprinting Task Identity 0 0 0 0 0 0 0 0 Unable to start SchedulerService. ERROR: System.TimeoutException: The operation requested on PersistentChannel timed out↓↓ ....

Qlik.NPrinting.Scheduler 18.39.4.0 Qlik.NPrinting.Scheduler.SchedulerWindowsService 20181023T095845.304+02:00 FATAL CV-NP-SILVER07 0 0 0 0 0 0 0 0 Unable to start Scheduler service. ERROR: System.AggregateException: One or more errors occurred. ---> System.TimeoutException: The operation requested on PersistentChannel timed out↓↓ ....

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_users

    The output should contain all of the following rows:

    client_scheduler [administrator]

    client_engine []

    remote [administrator]

    client_webengine []

  5. If any users are missing, create them by running the following commands:

    rabbitmqctl.bat add_user <username> <password> rabbitmqctl.bat set_permissions <username> ".*" ".*" ".*"

  6. Run the following commands:

    rabbitmqctl.bat add_user remote remote

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

The password will not be used to connect if simple authentication is not explicitly enabled by Qlik NPrinting system administrator.

  1. Log into Qlik NPrinting Server as the Qlik NPrinting service account owner.
  2. From the Start menu, run Manage user certificates.
  3. Verify that the following certificates exist in the Personal > Certificates folder:
    • Issued To: client_scheduler Issued By: qlik-NPrinting-Messaging-CA
    • Issued To: client_webengine Issued By: qlik-NPrinting-Messaging-CA
  4. Verify that the Third party root certification authorities folder contains a certificate:
    • Issued To: qlik-NPrinting-Messaging-CA Issued By: qlik-NPrinting-Messaging-CA
  1. Open the %ProgramData%\NPrinting\certificates folder and check that it contains the following files:
    • cacert.pem
    • cert.pem
    • key.pem
  1. Log into Qlik NPrinting Engine as the the Qlik NPrinting service account owner.
  2. From the Start menu, run Manage user certificates.
  3. Verify that the following certificate exist in the Personal > Certificates folder:
    • Issued To: client_engine Issued By: qlik-NPrinting-Messaging-CA
  4. If the certificate does not exist, log into Qlik NPrinting web console and complete the configuration.