-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: opening https://dashboard.nm.[IP].nip.io/enrollment-keys takes 30 sec #3026
Comments
The decrypt message issue was reported in #2686. There was changes in v0.24.3. The issue should not be in server side in latest version. Regarding the join slow issue, what's the server size in hardware and how many hosts totally in the network? |
Thanks Max Ma
Problem started AFAIK after I have tinkered with docker-compose.yml and changed : |
Regarding join docker compose logs -f
but on client side I get:
|
lol. I have stopped CoreDNS and managed to join client! |
Unable to join again [netclient] 2024-08-05 11:12:21 registration failed Post "https://api.nm.PYIP.nip.io/api/v1/host/register/ETOKEYXXX": context deadline exceeded (Client.Timeout exceeded while awaiting headers) - OMG this error is back. No matter if CoreDNS up/down. |
Is there any error from server side? |
On server side it is working fine(just taking long). |
How long does it take in server side? From the registration is received to node added. |
netmaker | [netmaker] 2024-08-05 12:44:55 received registration attempt with token eToken network range /16 |
There is no timeout in default settings. The client side should be waiting for the response from sever side even it took 40 sec as shown in the log. |
time sudo netclient join -t eXXXXXX real 0m30.110s |
It was working for 1 year without issues. |
It seems it comes from devilcoves httpclient https://github.com/devilcove/httpclient/blob/master/httpclient.go
|
This should be the right timeout setting for restful api. Revisited the log and found abnormal, The host registration took more than 30s already(before the htttp response). I did not meet the issue before. Can you please change the server log verbosity to 4 and re-produce the issue and let's see if there are more clues found? |
|
Edit netmaker.env in install directory and change to |
Now , after restarting , its registering client in 20 sec. Will monitor further |
Creating Enrollment Token faster now. Takes only 15 sec not 1 min as before.
so u can see timing... token generated after getAllNodes() executed. well its happened 2 times... |
Unfortunately, I have to say that the problem described occurs very frequently in our company. This means that 80% of the |
Ok you can close it. Issue was DNS request wasnt processed ion netmaker hosts and as results : |
closing as request. Thanks for the update. |
Contact Details
No response
What happened?
Recently I have found that EnrollmentKeys generation page taking very long to load. About 30sec. It is bearable but annoying.
Click on createkey also takes a minute.
Same 30 sec during login. Also OK. Worst is when u join host with netclient.
There timeout exceeded and I simply cannot join client to netmaker. Has to use wireguard client.
OS: Ubuntu 22.04
Version
v0.23.0
What OS are you using?
Linux
Relevant log output
in netmaker docker logs:
Contributing guidelines
The text was updated successfully, but these errors were encountered: