Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

\uD83E\uDD14 Problem

Windows service is failing to start after you follow the instructions https://hivemq.atlassian.net/wiki/x/DIG3Kw or https://docs.hivemq.com/hivemq/latest/user-guide/install-hivemq.html#_install_hivemq_as_a_windows_service

\uD83C\uDF31 Solution

The solution is to use the newer version of the wrapper for Java programs to run as a Windows service.

  1. Download

  2. Unzip to the $HIVEMQ_HOME directory. If you followed the above-mentioned instructions, your $HIVEMQ_HOME directory is C:\hivemq.

  3. If your $HIVEMQ_HOME directory is not C:\hivemq, but, for example, C:\hivemq\hivemq-4.9.15, or F:\HiveMQ, then you need to edit the wrapper’s configuration file.

    1. The wrapper’s configuration file is conf/wrapper.conf.

    2. The line to edit is located at the end of the wrapper.conf file and looks like this:

      wrapper.java.additional.1 = -Dhivemq.home=C:\\hivemq
    3. What you need to do is to update the C:\\hivemq according to your actual $HIVEMQ_HOME directory. For example, if your $HIVEMQ_HOME directory is F:\HiveMQ, you must update the line to:

      wrapper.java.additional.1 = -Dhivemq.home=F:\\HiveMQ

  4. Now, when the wrapper directory is located inside the $HIVEMQ_HOME directory and the wrapper.conf matches the actual $HIVEMQ_HOME, you can proceed to the service.

    1. Remove the “old” (failing) HiveMQ service.

    2. Run bat\installService.bat (Run As Administrator might be necessary) under newly unzipped service folder – this will install the new HiveMQ service.

    3. Start the new HIveMQ service and monitor if it fails within 30 seconds.

    4. If the HiveMQ service is running longer than 30 seconds without failing, verify the hivemq.log file, if it contains no errors and contains HiveMQ started in ...

    5. Next, verify that you can log in to the HiveMQ Control Center.

  • No labels