https://netmaker.org logo
I'm having some weird issues on a node (0.14.2 bot...
# client
f
I'm having some weird issues on a node (0.14.2 both on netmaker and netclient). Currently it does seem to only be able to ping the netmaker node, and in the netclient log (it's running
netclient daemon
as the machine lacks systemd) I can see
Copy code
[netclient] 2022-06-07 14:56:13 unable to connect to broker, retrying ...
Ping tcp://broker.netmaker.xxxx.se:443(129.151.201.102:443) - Connected - time=5.157993ms
Ping tcp://broker.netmaker.xxxx.se:443(129.151.201.102:443) - Connected - time=5.059151ms
Ping tcp://broker.netmaker.xxxx.se:443(129.151.201.102:443) - Connected - time=5.064264ms
[netclient] 2022-06-07 15:04:34 could not connect to broker broker.netmaker.xxxx.se connect timeout
[netclient] 2022-06-07 15:04:34 connection issue detected.. attempt connection with new certs and broker information
[netclient] 2022-06-07 15:04:34 register at https://api.netmaker.xxxx.se:443/api/server/register
[netclient] 2022-06-07 15:04:34 certificates/key saved
[netclient] 2022-06-07 15:04:35 restarting netclient.service
[netclient] 2022-06-07 15:04:36 error running command: systemctl restart netclient.service
[netclient] 2022-06-07 15:04:36
[netclient] 2022-06-07 15:04:36 checkin for xxxx complete
[netclient] 2022-06-07 15:06:16 error encountered checking public ip addresses:  public address not found
[netclient] 2022-06-07 15:06:38 received peer update for node Cradle xxxx
[netclient] 2022-06-07 15:06:46 unable to connect to broker, retrying ...
repeating over and over again. Anyone got a clue what's going on here? 🤔
b
check the mq logs on the server
f
Is it "safe" to paste the mq logs without sanitizing? 🙂
b
the logs will have the public ips of your nodes
f
I only se LAN ips in the logs (192.168.x.x)
b
in that case, your nodes are not checking in via mqtt
f
Copy code
1654607676: New connection from 192.168.112.2:45594 on port 8883.
1654607676: New client connected from 192.168.112.2:45594 as suo3POr1Kogh2krAbsVphmx (p2, c1, k30, u'testmaskin').
1654607676: Client suo3POr1Kogh2krAbsVphmx disconnected.
1654607679: New connection from 192.168.112.2:45596 on port 8883.
1654607679: New client connected from 192.168.112.2:45596 as uHCPrZaUjQt9ELxL9gfKjqU (p2, c1, k30, u'Helge').
1654607679: Client uHCPrZaUjQt9ELxL9gfKjqU disconnected.
1654607706: New connection from 192.168.112.2:45598 on port 8883.
1654607706: New client connected from 192.168.112.2:45598 as LPsD4nVvcrWQVfAlWiJUdwu (p2, c1, k30, u'Cradle').
1654607712: Client LPsD4nVvcrWQVfAlWiJUdwu disconnected.
1654607734: New connection from 192.168.112.3:53260 on port 1883.
1654607734: New client connected from 192.168.112.3:53260 as EEWBvaqP4BgLMLBIVp15DPU (p2, c1, k60).
1654607734: Client EEWBvaqP4BgLMLBIVp15DPU disconnected.
1654607734: New connection from 192.168.112.3:53262 on port 1883.
1654607734: New client connected from 192.168.112.3:53262 as 2trJjpqwxxgW0VRqrsgQB4M (p2, c1, k60).
1654607734: Client 2trJjpqwxxgW0VRqrsgQB4M disconnected.
1654607734: New connection from 192.168.112.3:53264 on port 1883.
1654607734: New client connected from 192.168.112.3:53264 as hIYWyGGVE1ogvho5S7VbQMP (p2, c1, k60).
1654607734: Client hIYWyGGVE1ogvho5S7VbQMP disconnected.
1654607736: New connection from 192.168.112.2:45600 on port 8883.
1654607736: New client connected from 192.168.112.2:45600 as Jrzs5vIK4nVn8ULE7592Knh (p2, c1, k30, u'testmaskin').
1654607736: Client Jrzs5vIK4nVn8ULE7592Knh disconnected.
1654607739: New connection from 192.168.112.2:45602 on port 8883.
1654607739: New client connected from 192.168.112.2:45602 as BDbnjcZPmueB8RW7YbPx3dV (p2, c1, k30, u'Helge').
1654607739: Client BDbnjcZPmueB8RW7YbPx3dV disconnected.
b
is 192.168.112.2 your traefik container?
and .3 is you netmaker container?
f
Yup
b
can you install mosquitto clients on node that is having issue and follow the mq troubleshooting steps outlined in https://gist.github.com/mattkasun/face2a7c1f32031a2126ff7243caad12
f
Hmm, I'll see if I can get mosquitto to run in the machine. It doesn't have any package manager so I need to find a suitable binary then 😛
b
what kind of machine?
f
It's running Unraid which is based on Slackware
j
"public address not found" means the ip lookup is not functioning
it attempts to query a few public IP services to set the endpoint
do you have an outbound firewall?
f
Sorry for the slow response,but I'm running opnsense. It shouldn't block any outgoing traffic though. Hmm... I wonder if it could be unbound dns.. It has had it's hiccups before
5 Views