netmaker
netmaker copied to clipboard
[Bug]: Fresh install, Broker container is unable to start
Contact Details
What happened?
I setup a Digital Ocean droplet, Ubuntu 22.04. I downloaded the install script and ran it. Everything goes fine until
[netclient] 2023-11-20 15:55:50 unable to connect to broker, wss://broker.redacted.domain.com, retrying... [netclient] 2023-11-20 15:55:50 failed to connect to server on uninstall redacted.domain.com
Once the script completes, I check the containers and the eclipse-mosquitto:2.0.15-openssl is in constant restart. docker logs for the container reveals:
1700496037: mosquitto version 2.0.15 starting 1700496037: Config loaded from /mosquitto/config/mosquitto.conf. 1700496037: Opening websockets listen socket on port 8883. 1700496037: Opening websockets listen socket on port 1883. 1700496037: Error: Unable to start any listening sockets, exiting.
I verified that the ports are correct in the netmaker.env file and the wait.sh script is in the same directory.
Any suggestions on getting this container working?
Thank you.
Version
v0.21.2
What OS are you using?
Linux
Relevant log output
No response
Contributing guidelines
- [X] Yes, I did.
mq container failed to startup
1700496037: Opening websockets listen socket on port 8883. 1700496037: Opening websockets listen socket on port 1883. 1700496037: Error: Unable to start any listening sockets, exiting.
check if these ports are already in use
Thank you. According to ss -tulpn, there aren't anything listening on those ports.
tcp LISTEN 0.0.0.0:51821 0.0.0.0:* users:(("netclient",pid=7217,fd=8))
tcp LISTEN 0.0.0.0:80 0.0.0.0:* users:(("docker-proxy",pid=5334,fd=4))
tcp LISTEN 127.0.0.53%lo:53 0.0.0.0:* users:(("systemd-resolve",pid=669,fd=14))
tcp LISTEN 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=807,fd=3))
tcp LISTEN 0.0.0.0:8089 0.0.0.0:* users:(("turnserver",pid=5324,fd=7))
tcp LISTEN 0.0.0.0:443 0.0.0.0:* users:(("docker-proxy",pid=5301,fd=4))
tcp LISTEN 127.0.0.1:42911 0.0.0.0:* users:(("containerd",pid=783,fd=10))
tcp LISTEN 127.0.0.1:36643 0.0.0.0:* users:(("netclient",pid=7217,fd=7))
Same for UDP as well
did you make any changes in the mosquitto.conf file?
Negative. per_listener_settings false listener 8883 protocol websockets allow_anonymous false
listener 1883 protocol websockets allow_anonymous false
password_file /mosquitto/password.txt