I've installed netmaker 0.14.2 following the guide...
# client
a
I've installed netmaker 0.14.2 following the guide at https://medium.com/@panda1100/hands-on-guide-to-netmaker-v0-14-2-4e80d4ad0347 It seemed to go fine, but when trying to create the first admin user, it hangs and outputs the error message "could not reach server"
j
sounds like either proxy is misconfigured or DNS is wrong. Also worth checking if netmaker server logs show any errors (docker logs netmaker)
a
the settings are stock I think. I have followed the steps from the medium guide as directed
How would I fix DNS?
the error log is as follows:
[netmaker] 2022-06-07 11:08:57 connecting to sqlite [netmaker] 2022-06-07 11:08:57 database successfully connected [netmaker] 2022-06-07 11:08:58 no OAuth provider found or not configured, continuing without OAuth [netmaker] 2022-06-07 11:08:58 checking keys and certificates [netmaker] 2022-06-07 11:08:58 generating new root key [netmaker] 2022-06-07 11:08:58 generating new root CA [netmaker] 2022-06-07 11:08:58 generating new server key/certificate [netmaker] 2022-06-07 11:08:58 REST Server successfully started on port 8081 (REST) [netmaker] 2022-06-07 11:08:58 connecting to mq broker at mq:1883 [netmaker] 2022-06-07 11:10:01 error retrieving networks for keepalive could not find any records [netmaker] 2022-06-07 11:11:01 error retrieving networks for keepalive could not find any records [netmaker] 2022-06-07 11:12:01 error retrieving networks for keepalive could not find any records [netmaker] 2022-06-07 11:13:01 error retrieving networks for keepalive could not find any records [netmaker] 2022-06-07 11:14:01 error retrieving networks for keepalive could not find any records [netmaker] 2022-06-07 11:15:01 error retrieving networks for keepalive could not find any records [netmaker] 2022-06-07 11:16:01 error retrieving networks for keepalive could not find any records [netmaker] 2022-06-07 11:17:01 error retrieving networks for keepalive could not find any records [netmaker] 2022-06-07 11:18:01 error retrieving networks for keepalive could not find any records [netmaker] 2022-06-07 11:19:01 error retrieving networks for keepalive could not find any records [netmaker] 2022-06-07 11:20:01 error retrieving networks for keepalive could not find any records [netmaker] 2022-06-07 11:21:01 error retrieving networks for keepalive could not find any records [netmaker] 2022-06-07 11:22:01 error retrieving networks for keepalive could not find any records
j
yeah those logs are fine. It will show that until you create your first network
I'm not sure what exactly could be the problem because it could be many things, but in general, the issue is just that your API endpoint is not reachable (api.domain)
a
my DNS records are as follows:
j
look at the endpoint in your docker-compose (api.domain) make sure it is reachable (nslookup api.domain) then maybe try a curl as well (curl https://api.domain/api/nodes)
it will fail with an auth error if it is reachable
a
running nslookup api.domain outputs:
Server: 127.0.0.53 Address: 127.0.0.53#53 ** server can't find api.domain: NXDOMAIN
j
with your actual domain
a
ah, sorry
It outputs (censored for privacy): Name: api.xibxxxxxx.xxx Address: 164.xx.xx.xx
and the address is the correct ip for my server
and running the curl command seems to respond as expected: curl: (60) SSL certificate problem: self-signed certificate
j
ok so sounds like letsencrypt did not set up the certificates for the API endpoint. That would explain it
a
All right! How would I go about fixing that?
I hadn't opened port 80, maybe that's the problem
I've opened it now on the firewall
a
Same :( i try to setup NM with my custom certificate > i can access to interface but i get this error my certificate work i try for many other thing but with NM i can't :( There is a way to make it work ?
b
Try clearing the cache in your browser
a
I can try in private again, I have any error in my netmaker-ui container, only in my netmaker container I have error (in every container I have i can ping dashboard.mydomain / api.mydomain / broker.mydomain
Oh I have a ideas 💡
Letttttsssss go I have found :) I am stupid, I have install my certificate on my Mac, everything work, I have add dashboard.mydomain to /etc/hosts file but not API and broker :))))))))))))) I feel like the most stupid guy on this planet, I am gonna edit the wiki and create thing to explain to people how to setup with custom ssl certificate :)
2 Views