https://netmaker.org logo
If i install netmaker completly manual
i

icy-summer-69654

04/05/2023, 9:32 PM
If i install netmaker completly manual on an Ubuntu 22.04, ist possible to replace caddy and mosquitto with apache2? I also already performed the installation manually. It's not entirely clear to me what mosquitto is doing. A Docker installation is no longer an option for me, as the updates almost always break everything.
j

jolly-london-20127

04/05/2023, 9:36 PM
you can replace caddy with apache, but mosquitto is necessary
i

icy-summer-69654

04/05/2023, 9:38 PM
ok, thank you, so i need the /etc/mosquitto/data/dynamic-security.json
where i can get this file? In the docs i read that the file should be under /etc/netmaker but there is only my config.
Is this Plugin with the file necessary?
hmm... tested with an empty file, seems to working.... 🫤
ok, for the first i installed netmaker with the docs from here: https://netmaker.readthedocs.io/en/master/server-installation.html#nodocker
but in the Logs i see an error to connect to broker. Apr 05 23:51:19 nm netmaker[33530]: [netmaker] 2023-04-05 23:51:19 connecting to mq broker at >here is my Public IP<:1883 Apr 05 23:51:49 nm netmaker[33530]: [netmaker] Fatal: could not connect to broker, token timeout, exiting ... Apr 05 23:51:49 nm systemd[1]: netmaker.service: Main process exited, code=exited, status=2/INVALIDARGUMENT Apr 05 23:51:49 nm systemd[1]: netmaker.service: Failed with result 'exit-code'. Apr 05 23:51:50 nm systemd[1]: netmaker.service: Scheduled restart job, restart counter is at 54. Apr 05 23:51:50 nm systemd[1]: Stopped Netmaker Server. Apr 05 23:51:50 nm systemd[1]: Started Netmaker Server. The strange thing is it will always connect via the public ip. So i set an Portforwarding also for 1883. With nmap i see the port is open, but NM can't connect. The strange thing is that the documentation does not say about ports 1883 and 8883, that you should open them in the firewall. https://netmaker.readthedocs.io/en/master/quick-start.html
maybe you can enlighten me?
ok, i find out more... if i set "allow_anonymous true" it is working. Strange. I set also the "password_file" correctly https://stackoverflow.com/questions/31156817/how-to-set-username-password-mosquitto and i get no error from mqtt. I also get no auth error from netmaker, only an timeout... 🤔
j

jolly-london-20127

04/06/2023, 2:37 PM
try these steps:
root@test-server-v0-18-0:~# docker rm -f mq

        root@test-server-v0-18-0:~# docker rm -f netmaker

        root@test-server-v0-18-0:~# docker volume rm root_mosquitto_data

        root@test-server-v0-18-0:~# docker-compose up -d
i

icy-summer-69654

04/07/2023, 7:06 AM
I did not use docker, because the always broken updates. So i used this time the manual installation. Hopely you can help me too with.
ok, this again 5 hours... i give up... i an (last) fresh install with docker. I also think the docs are not up2date. Thank you.