I'm trying to set up Netmaker using Docker Compose...
# install
l
I'm trying to set up Netmaker using Docker Compose. I did initially start with the quick script, but I modified the Compose file a little to use an external Caddy server. When the services all start, the
mq
service spams " Waiting for netmaker server to startup". The netmaker service starts up correctly, but fails to connect to the
mq
service:
Copy code
netmaker         | [netmaker] 2023-03-09 15:39:57 connecting to sqlite
netmaker         | [netmaker] 2023-03-09 15:39:57 database successfully connected
netmaker         | [netmaker] 2023-03-09 15:39:57 no OAuth provider found or not configured, continuing without OAuth
netmaker         | [netmaker] 2023-03-09 15:39:57 Configuring MQ...
netmaker         | [netmaker] 2023-03-09 15:39:57 MQ config exists already, So Updating Existing Config...
netmaker         | [netmaker] 2023-03-09 15:39:57 REST Server successfully started on port  8081  (REST)
netmaker         | [netmaker] 2023-03-09 15:39:57 connecting to mq broker at ws://mq:1883 with TLS? false
netmaker         | [netmaker] Fatal: Admin: could not connect to broker, token timeout, exiting ...
I have pinged
mq:1883
using Nmap to confirm that it was listening, and it returned
Copy code
PORT     STATE  SERVICE
1883/tcp closed mqtt
which I assum means the port is working correctly. Why, then, might Netmaker not be able to connect?
b
in netmaker v0.17.1 there is a little dance between netmaker and mq (removed in v0.180+) so sometimes you have tor run docker-compose up -d a couple of times to get v0.17.1 started properly
l
Could I use 0.18 instead?
If all that's missing is an upgrade path
b
yes you can .... v0.18.0, v0.18.1, v0.18.2 are available as pre-releases... you cannot upgrade from v0.171 but new installs are fine
l
I have a new problem, when I try to run everything, the
mq
container fails with
/docker-entrypoint.sh: exec: line 10: /mosquitto/config/wait.sh: Permission denied
. I've tried every single incantation of chmod to try and get the host's wait.sh to have the proper permissions, but it doesn't seem to help.
b
chmod +x wait.sh
l
Still the same
b
have you got the correct copy of wait.sh ( and mosquito.conf), they changed in v0.18+
l
I copied them off the
release_0.18.2
branch off GitHub
I guess I could try again
No change.
ls -l
reports
Copy code
-rw-r--r-- 1 1883 1883 180 Mar  9 17:04 mosquitto.conf
-rwxr-xr-x 1 1883 1883 328 Mar  9 17:04 wait.sh
b
Try using the nm-quick.sh from the develop branch
l
I fixed it, thanks :)
14 Views