gravitl / netmaker

Netmaker makes networks with WireGuard. Netmaker automates fast, secure, and distributed virtual networks.
https://netmaker.io
Other
9.39k stars 545 forks source link

[Bug]: Fresh install, Broker container is unable to start #2678

Open johncarterofmars opened 10 months ago

johncarterofmars commented 10 months ago

Contact Details

carter@twomoonsmining.com

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

abhishek9686 commented 10 months ago

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

johncarterofmars commented 10 months ago

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

abhishek9686 commented 10 months ago

did you make any changes in the mosquitto.conf file?

johncarterofmars commented 10 months ago

Negative. per_listener_settings false listener 8883 protocol websockets allow_anonymous false

listener 1883 protocol websockets allow_anonymous false

password_file /mosquitto/password.txt