Hi @Daria_H ,
I could manage to cross step 10 successfully from above documentation.
(note: it needed me to make a little changes to the paths, as I installed everything under /root
but finally got past successfully step 10).
Now I think there is a mess up as after run.sh is run it seems hivemq has started (netstat also shows something listening to port 1883) but when I check the server status or if I try to enable the service it fails.
See the following sequence of comands:
I went ahead to try systemctl start
:
hivemq@ubuntu-s-1vcpu-1gb-blr1-01:/etc/systemd/system$ systemctl start hivemq
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to start 'hivemq.service'.
Authenticating as: Sanjay Mehrotra,,, (hivemq)
Password:
==== AUTHENTICATION COMPLETE ===
hivemq@ubuntu-s-1vcpu-1gb-blr1-01:/etc/systemd/system$
Then I wanted to see the status of the server but it shows a failed status:
hivemq@ubuntu-s-1vcpu-1gb-blr1-01:/etc/systemd/system$ systemctl status hivemq
● hivemq.service - HiveMQ Community Edition
Loaded: loaded (/etc/systemd/system/hivemq.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2022-04-20 08:40:39 UTC; 14s ago
Process: 154285 ExecStart=/opt/hivemq/bin/run.sh (code=exited, status=200/CHDIR)
Main PID: 154285 (code=exited, status=200/CHDIR)
I tried enabling it by:
hivemq@ubuntu-s-1vcpu-1gb-blr1-01:/etc/systemd/system$ systemctl enable hivemq
Synchronizing state of hivemq.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable hivemq
==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ===
Authentication is required to reload the systemd state.
Authenticating as: Sanjay Mehrotra,,, (hivemq)
Password:
==== AUTHENTICATION COMPLETE ===
update-rc.d: error: hivemq Default-Start contains no runlevels, aborting.
Not sure why I get no runlevels. What does it mean?
Finally I tested using netstat.
hivemq@ubuntu-s-1vcpu-1gb-blr1-01:/etc/systemd/system$ netstat -an | grep 1883
tcp 0 0 0.0.0.0:1883 0.0.0.0:* LISTEN
Wow it looks to be running. Why does it show failed earlier?
Trying to see jounrnal files:
hivemq@ubuntu-s-1vcpu-1gb-blr1-01:/etc/systemd/system$ journalctl | grep -i hivemq
No journal files were found.
So net net I am confused how to proceed from here. Why does it show a process listening to port 1883 but the server is not yet live.