\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.
Download
View file name yajsw-stable-13.10.zip Unzip the downloaded file to the
$HIVEMQ_HOME
directory.If you followed the
abovementioned instructions, your
$HIVEMQ_HOME
directory is likelyC:\hivemq
.
If your
$HIVEMQ_HOME
directory is different, such asC:\hivemq\hivemq-4.2.25
orF:\HiveMQ
, edit the wrapper’s configuration file.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.
The Locate the wrapper’s configuration file is at
conf/wrapper.conf
.The line to edit is located Find the line at the end of the
wrapper.conf
file and looks like thisfile resembling:Code Block language py wrapper.java.additional.1 = -Dhivemq.home=C:\\hivemq
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'sF:\HiveMQ
, you must update the line to:Code Block language py wrapper.java.additional.1 = -Dhivemq.home=F:\\HiveMQ
Now, when Once the wrapper directory is located inside within the
$HIVEMQ_HOME
directory and thewrapper.conf
matches the actual$HIVEMQ_HOME
, you can proceed to the serviceservices.Remove the “old” old (failing) HiveMQ service.
Run
bat\installService.bat
(Run As Administrator might be necessary) under the newly unzipped service folder – this . This will install the new HiveMQ service.Start the new HIveMQ HiveMQ service and monitor if it fails within for any issues within the first 30 seconds.
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 ..
".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. |
\uD83D\uDCCE Related articles
Filter by label (Content by label) | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|