Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE

Change the Qlik NPrinting Server hostname

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Bastien_Laugiero

Change the Qlik NPrinting Server hostname

Last Update:

Apr 21, 2022 3:52:02 AM

Updated By:

Sonja_Bauernfeind

Created date:

Dec 21, 2016 7:48:34 AM

After changing the server hostname of the operating system hosting Qlik NPrinting, the Qlik NPrinting Engine may appear Offline in the NPrinting administration console.

The QlikNPrintingMessagingService and Qlik Nprinting Scheduler service will be stopped. If you try to start then it will fail. 

 

Qlik Nprinting services overview.png

 

Environment:

Qlik NPrinting 2018 and earlier versions

 

Before proceeding, you must ensure to back up the Qlik NPrinting Database in the event that an unexpected corruption occurs while following the steps outlined in this article. If you encounter a failure, you will need to reinstall the Qlik NPrinting server and restore the backed up database: Backup and restore Qlik NPrinting.

 

Part 1: Update the NPrinting Server configuration files

  1. Open the Windows command line console as administrator (cmd.exe).
  2. In the command line move the RabbitMQ command prompt (sbin dir) by using the command 
    cd "C:\ProgramFiles\NPrintingServer\rabbitmq_server-3.5.7\sbin" 
    (the path may be different, depending on the Qlik NPrinting Server installation folder).
  3. Run the command:
    rabbitmq-service.bat remove

    Qlik NPrinting run rabbitmq-servicebat remove.png

  4. Run the command:
    rabbitmq-service.bat install

    Qlik NPrinting run rabbitmq-servicebat install.png

  5. Go to the service console and Right-click -> Properties on QlikNPrintingMessagingService
  6. Synchronize back the .erlang.cookie by copying the one in C:\Windows\.erlang.cookie and pasting it in:

    For Nprinting June 2018 to now:

    C:\WINDOWS\system32\config\systemprofile  

    For any earlier versions:

    C:\<user-who-installed-NPrinting>\.erlang.cookie


  7. Start the QlikNprintingMessagingService
  8. Go back to the Command Prompt and type the command rabbitmqctl.bat list_permissions

    If you get the result below then you can restart all NPrinting server services and all services should start normally.

    Note that the Qlik NPrinting engine will not start since it is still referencing the original server hostname. See Part 2 below to resolve.

    Qlik NPrinting run rabbitmq-servicebat permissions.png

 

If otherwise, you may use this guide to troubleshoot the problem: Qlik NPrinting messaging service (RabbitMQ) start up and connection problems

 

Part 2: Updating the NPrinting Engine 

  1. Stop the Qlik Nprinting Engine service and
  2. Open the file C:\Program Files\NPrintingServer\NPrinting\Engine\engine.config (take a backup of this file first)
  3. Locate the line   <add key="rabbitmq-host" value="servername" />
  4. Change servername value to the new computer host name where NPrinting Server (Scheduler Service) is installed.
  5. Save the Engine.config file
  6. Go to the NPrinting Engine Manager in the NPrinting Web console under Admin > Engine Manager
  7. Delete the original engine entry
  8. Create new engine entry
  9. Resend the certificates (enter the certificate password used when installing the NPrinting Engine originally. If you do not recall the password, you will have to reinstall the NPrinting Engine. If this is necessary, make sure to document the certificate password).
  10. Start the NPrinting Engine
Labels (1)
Comments
muhammadraza
Partner - Creator
Partner - Creator

steps number 5 and 6 of part 1 are not clear. Kindly put clarification. There is no cookie in c:\windows and nothing is written what to do after right clicking on QlikNPrintingMessagingService.

Version history
Last update:
‎2022-04-21 03:52 AM
Updated by: