netmaker icon indicating copy to clipboard operation
netmaker copied to clipboard

[Bug]: Unable to join the network with netclient

Open MinDBreaK opened this issue 3 years ago • 0 comments

Contact Details

No response

What happened?

The netclient app cannot join the network.

Netclient logs (times as UTC+2) :

[netclient] 2022-07-18 12:21:44 joining office at api.netmaker.example.tld:443 
[netclient] 2022-07-18 12:21:55 node created on remote server...updating configs 
[netclient] 2022-07-18 12:21:55 UDP hole punching enabled for node <NODE>
[netclient] 2022-07-18 12:21:55 starting wireguard 
[netclient] 2022-07-18 12:21:57 waiting for interface... 
[netclient] 2022-07-18 12:21:57 interface ready - netclient.. ENGAGE 
[netclient] 2022-07-18 12:21:57 register at https://api.netmaker.example.tld:443/api/server/register 
[netclient] 2022-07-18 12:21:59 error installing:  404 Not Found 
[netclient] 2022-07-18 12:21:59 removed WireGuard interface:  nm-office 
[netclient] 2022-07-18 12:22:00 removed systemd remnants if any existed 

Server logs (time as UTC) :

netmaker  | [netmaker] 2022-07-18 10:29:40  created new node <NODE> on network office
caddy     | {"level":"debug","ts":1658140180.65158,"logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":"netmaker:8081","duration":11.468775942,"request":{"remote_ip":"AA.AA.AA.AA","remote_port":"56183","proto":"HTTP/1.1","method":"POST","host":"api.netmaker.example.tld:443","uri":"/api/nodes/office","headers":{"Content-Length":["1366"],"Authorization":[],"Content-Type":["application/json"],"Accept-Encoding":["gzip"],"X-Forwarded-For":["AA.AA.AA.AA"],"X-Forwarded-Proto":["http"],"X-Forwarded-Host":["api.netmaker.example.tld:443"],"User-Agent":["Go-http-client/1.1"]}},"headers":{"Content-Type":["application/json"],"Date":["Mon, 18 Jul 2022 10:29:40 GMT"]},"status":200}
caddy     | {"level":"debug","ts":1658140182.8131144,"logger":"http.handlers.reverse_proxy","msg":"selected upstream","dial":"netmaker:8081","total_upstreams":1}
caddy     | {"level":"debug","ts":1658140183.1888669,"logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":"netmaker:8081","duration":0.375680942,"request":{"remote_ip":"AA.AA.AA.AA","remote_port":"56183","proto":"HTTP/1.1","method":"POST","host":"api.netmaker.example.tld:443","uri":"/api/nodes/adm/office/authenticate","headers":{"X-Forwarded-For":["AA.AA.AA.AA"],"X-Forwarded-Proto":["http"],"X-Forwarded-Host":["api.netmaker.example.tld:443"],"User-Agent":["Go-http-client/1.1"],"Content-Length":["108"],"Content-Type":["application/json"],"Accept-Encoding":["gzip"]}},"headers":{"Date":["Mon, 18 Jul 2022 10:29:43 GMT"],"Content-Length":["502"],"Content-Type":["text/plain; charset=utf-8"]},"status":200}
caddy     | {"level":"debug","ts":1658140183.3051677,"logger":"http.handlers.reverse_proxy","msg":"selected upstream","dial":"netmaker:8081","total_upstreams":1}
netmaker  | [netmaker] 2022-07-18 10:29:43 processing registration request
netmaker  | [netmaker] 2022-07-18 10:29:44 unable to generate client certificate x509: provided PrivateKey doesn't match parent's PublicKey
netmaker  | [netmaker] 2022-07-18 10:29:44 failed to generater certs  client certification generation failed x509: provided PrivateKey doesn't match parent's PublicKey
netmaker  | [netmaker] 2022-07-18 10:29:44 processed request error: client certification generation failed x509: provided PrivateKey doesn't match parent's PublicKey
caddy     | {"level":"debug","ts":1658140184.360612,"logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":"netmaker:8081","duration":1.055374603,"request":{"remote_ip":"AA.AA.AA.AA","remote_port":"56183","proto":"HTTP/1.1","method":"POST","host":"api.netmaker.example.tld:443","uri":"/api/server/register","headers":{"X-Forwarded-For":["AA.AA.AA.AA"],"X-Forwarded-Proto":["http"],"X-Forwarded-Host":["api.netmaker.example.tld:443"],"User-Agent":["Go-http-client/1.1"],"Content-Length":["316"],"Authorization":[],"Content-Type":["application/json"],"Accept-Encoding":["gzip"]}},"headers":{"Content-Type":["application/json"],"Date":["Mon, 18 Jul 2022 10:29:44 GMT"],"Content-Length":["122"]},"status":404}

The server appears that it cannot generate the keys but the keys are the ones generated on the first initialization.

Version

v0.14.5

What OS are you using?

Linux

Relevant log output

No response

Contributing guidelines

  • [X] Yes, I did.

MinDBreaK avatar Jul 18 '22 10:07 MinDBreaK