Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

\uD83E\uDD14 Problem

The Windows service is failing fails 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 following the instructions provided in this link or in the HiveMQ Documentation.

\uD83C\uDF31 Solution

The solution is to use involves utilizing the newer version of the Java wrapper, a tool specifically designed for running Java programs to run as a Windows serviceservices.

  1. Download

    View file
    nameyajsw-stable-13.10.zip

  2. Unzip the downloaded file to the $HIVEMQ_HOME directory.

    • If you followed the

    above-mentioned
    • abovementioned instructions, your $HIVEMQ_HOME directory is likely C:\hivemq.

  3. If your $HIVEMQ_HOME directory is different, such as C:\hivemq\hivemq-4.2.25 or F:\HiveMQ, edit the wrapper’s configuration file.

  4. 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 Locate the wrapper’s configuration file is at conf/wrapper.conf.

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

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

      Code Block
      languagepy
      wrapper.java.additional.1 = -Dhivemq.home=F:\\HiveMQ
  5. Now, when Once the wrapper directory is located inside within the $HIVEMQ_HOME directory and the wrapper.conf matches the actual $HIVEMQ_HOME, you can proceed to the serviceservices.

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

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

    3. Start the new HIveMQ HiveMQ service and monitor if it fails within for any issues within the first 30 seconds.

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

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

Info

If you prefer building the wrapper on your own, for example, for a newer version, follow its author’s instructions provided in this video.

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@957
maxCheckboxfalse
showSpacefalse
sortmodified
typepage
reversetrue
labelskb-troubleshooting-article
cqllabel = "windows" and type = "page" and space = "KB"