You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello and thanks in advance for responding and I apologize in advance for any simple things I've missed.
I am evaluating Netmaker/netclient for a client and I'm having a hard time getting things to work on Windows.
We have set up an account on app.netmaker.io and I've installed Wireguard and netclient on a Windows laptop.
If I run the following command in an elevated Powershell prompt:
./netclient.exe join -t {key}
The client will start then stop after a few seconds. Running "wg show" outputs nothing and I cannot ping my Netmaker IP address.
If I run:
./netclient.exe daemon
I get an output from "wg show" that gives me interface and peer information. I can ping the Netmaker IP address.
So it seems to work if I run the daemon manually in Powershell, but does not seem to work if I run it as described in the instructions (maybe a service is not being created properly?)
Here are the logfiles created by running ./netclient.exe join (personal IP address redacted):
winsw.out.log:
[netclient.exe] 2023-10-30 13:03:22 [config.go-486] CheckConfig(): setting proxyListenPort
[netclient.exe] 2023-10-30 13:03:22 [config.go-524] CheckConfig(): saving netclient configuration
[netclient.exe] 2023-10-30 13:03:22 [wireguard_windows.go-22] Create(): creating Windows tunnel
[netclient.exe] 2023-10-30 13:03:23 [migrate.go-32] Migrate(): migration to v0.18 started
daemon called
[netclient.exe] 2023-10-30 13:03:23 [netclientutils_windows.go-27] RunCmd(): error running command: Set-NetIPInterface -Forwarding Enabled
[netclient.exe] 2023-10-30 13:03:23 [netclientutils_windows.go-28] RunCmd():
[netclient.exe] 2023-10-30 13:03:23 [local.go-74] SetIPForwardingWindows(): WARNING: Error encountered setting ip forwarding. This can break functionality.
[netclient.exe] 2023-10-30 13:03:23 [config.go-83] UpdateNetclient(): Logging verbosity updated to 4
completed pull for server 15dd036e-c2ee-4797-a4d8-c2e6ee2fe7e9.app.prod.netmaker.io
[netclient.exe] 2023-10-30 13:03:24 [wireguard_windows.go-22] Create(): creating Windows tunnel
[netclient.exe] 2023-10-30 13:03:24 [types.go-86] Configure(): adding addresses to netmaker interface
[netclient.exe] 2023-10-30 13:03:24 [peer.go-105] SetPeersEndpointToProxy(): Setting peers endpoints to proxy...
[netclient.exe] 2023-10-30 13:03:24 [daemon.go-181] startGoRoutines(): started daemon for server 15dd036e-c2ee-4797-a4d8-c2e6ee2fe7e9.app.prod.netmaker.io
[netclient.exe] 2023-10-30 13:03:25 [mqpublish.go-41] Checkin(): starting checkin goroutine
[netclient.exe] 2023-10-30 13:03:25 [server-pong.go-34] StartIfaceDetection(): initialized endpoint detection on port 51722
[netclient.exe] 2023-10-30 13:03:25 [nm-proxy.go-35] Start(): Starting Proxy...
[netclient.exe] 2023-10-30 13:03:25 [nm-proxy.go-42] Start(): set nat info: &{XX.XXX.XXX.XX 192.168.1.107 51722 51722 false symmetric}
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)
[GIN-debug] GET /status --> github.com/gravitl/netclient/functions.status (3 handlers)
[GIN-debug] POST /register --> github.com/gravitl/netclient/functions.register (3 handlers)
[GIN-debug] GET /network/:net --> github.com/gravitl/netclient/functions.getNetwork (3 handlers)
[GIN-debug] GET /allnetworks --> github.com/gravitl/netclient/functions.getAllNetworks (3 handlers)
[GIN-debug] GET /netclient --> github.com/gravitl/netclient/functions.getNetclient (3 handlers)
[GIN-debug] POST /connect/:net --> github.com/gravitl/netclient/functions.connect (3 handlers)
[GIN-debug] POST /leave/:net --> github.com/gravitl/netclient/functions.leave (3 handlers)
[GIN-debug] GET /servers --> github.com/gravitl/netclient/functions.servers (3 handlers)
[GIN-debug] POST /uninstall --> github.com/gravitl/netclient/functions.uninstall (3 handlers)
[GIN-debug] GET /pull/:net --> github.com/gravitl/netclient/functions.pull (3 handlers)
[GIN-debug] POST /nodepeers --> github.com/gravitl/netclient/functions.nodePeers (3 handlers)
[GIN-debug] POST /join --> github.com/gravitl/netclient/functions.join (3 handlers)
[GIN-debug] POST /sso --> github.com/gravitl/netclient/functions.sso (3 handlers)
[netclient.exe] 2023-10-30 13:03:25 [httpserver.go-53] HttpServer(): starting http server on port 18095
[netclient.exe] 2023-10-30 13:03:25 [common_windows.go-132] runWinSWCMD(): running stop of Windows Netclient daemon
[netclient.exe] 2023-10-30 13:03:25 [mqpublish.go-222] UpdateHostSettings(): checkin with server(s)
[netclient.exe] 2023-10-30 13:03:25 [mqpublish.go-327] UpdateHostSettings(): publishing global host update for endpoint changes
[netclient.exe] 2023-10-30 13:03:26 [common_windows.go-132] runWinSWCMD(): running stop of Windows Netclient daemon
[netclient.exe] 2023-10-30 13:03:26 [mqpublish.go-48] Checkin(): checkin routine closed
[netclient.exe] 2023-10-30 13:03:26 [server-pong.go-37] func1(): closed endpoint detection
[netclient.exe] 2023-10-30 13:03:26 [manager.go-50] Start(): shutting down proxy manager...
[netclient.exe] 2023-10-30 13:03:26 [turn_helper.go-42] WatchPeerSignals(): Exiting Peer Signals Watcher...
[netclient.exe] 2023-10-30 13:03:26 [server-pong.go-43] StartIfaceDetection(): failed to accept connection accept tcp [::]:51722: use of closed network connection
[netclient.exe] 2023-10-30 13:03:26 [netclientutils_windows.go-44] RunCmdFormatted(): error running command: "C:\Program Files (x86)\Netclient\winsw.exe" "stop"
[netclient.exe] 2023-10-30 13:03:26 [netclientutils_windows.go-45] RunCmdFormatted(): 2023-10-30 13:03:26,537 INFO - Stopping service 'netclient (netclient)'...
2023-10-30 13:03:26,552 INFO - Service 'netclient (netclient)' stopped successfully.
^C
[netclient.exe] 2023-10-30 13:03:26 [common_windows.go-136] runWinSWCMD(): error with stop of Windows Netclient daemon: exit status 0xc000013a : 2023-10-30 13:03:26,537 INFO - Stopping service 'netclient (netclient)'...
2023-10-30 13:03:26,552 INFO - Service 'netclient (netclient)' stopped successfully.
^C
[netclient.exe] 2023-10-30 13:03:26 [netclientutils_windows.go-44] RunCmdFormatted(): error running command: "C:\Program Files (x86)\Netclient\winsw.exe" "stop"
[netclient.exe] 2023-10-30 13:03:26 [netclientutils_windows.go-45] RunCmdFormatted(): ^C
[netclient.exe] 2023-10-30 13:03:26 [common_windows.go-136] runWinSWCMD(): error with stop of Windows Netclient daemon: exit status 0xc000013a : ^C
[netclient.exe] 2023-10-30 13:03:28 [peer.go-105] SetPeersEndpointToProxy(): Setting peers endpoints to proxy...
[netclient.exe] 2023-10-30 13:03:28 [peer.go-105] SetPeersEndpointToProxy(): Setting peers endpoints to proxy...
[netclient.exe] 2023-10-30 13:03:29 [server.go-39] Close(): Shutting down Proxy.....
[netclient.exe] 2023-10-30 13:03:29 [server.go-81] Listen(): failed to read from server: read udp [::]:51722: use of closed network connection
[netclient.exe] 2023-10-30 13:03:29 [turn.go-209] startTurnListener(): Closing turn conn: 15dd036e-c2ee-4797-a4d8-c2e6ee2fe7e9.app.prod.netmaker.io
[netclient.exe] 2023-10-30 13:03:29 [turn.go-158] listen(): Starting Turn Listener: 67.205.177.151:38405 15dd036e-c2ee-4797-a4d8-c2e6ee2fe7e9.app.prod.netmaker.io
[netclient.exe] 2023-10-30 13:03:29 [turn.go-164] listen(): failed to read from remote conn: read udp 67.205.177.151:38405: use of closed network connection
[netclient.exe] 2023-10-30 13:03:29 [turn_helper.go-241] DissolvePeerConnections(): Dissolving TURN Peer Connections...
[netclient.exe] 2023-10-30 13:03:29 [httpserver.go-60] HttpServer(): shutting down http server
winsw.err.log:
{"time":"2023-10-30T13:03:22.3010692-04:00","level":"INFO","source":"&{ 0}","msg":"Failed to find matching adapter name: Element not found. (Code 0x00000490)"}
{"time":"2023-10-30T13:03:22.4551343-04:00","level":"INFO","source":"&{ 0}","msg":"Using existing driver 0.10"}
{"time":"2023-10-30T13:03:22.4620975-04:00","level":"INFO","source":"&{ 0}","msg":"Creating adapter"}
{"time":"2023-10-30T13:03:22.8840061-04:00","level":"INFO","source":"wireguard_windows.go 35}","msg":"created Windows tunnel"}
{"time":"2023-10-30T13:03:23.0777642-04:00","level":"INFO","source":"daemon.go 61}","msg":"starting netclient daemon","version":"v0.20.4"}
{"time":"2023-10-30T13:03:23.0854895-04:00","level":"WARN","source":"daemon.go 67}","msg":"unable to set IPForwarding","error":"exec: \"Set-NetIPInterface\": executable file not found in %PATH%"}
{"time":"2023-10-30T13:03:23.1814083-04:00","level":"DEBUG","source":"stun.go 59}","msg":"hole punching port 51821 via stun server stun1.netmaker.io:3478"}
{"time":"2023-10-30T13:03:23.2065927-04:00","level":"DEBUG","source":"stun.go 70}","msg":"hole punching complete","public ip":"XX.XXX.XXX.XX","public port":"51821"}
{"time":"2023-10-30T13:03:23.2065927-04:00","level":"INFO","source":"daemon.go 143}","msg":"wireguard public listen port: ","port":51821}
{"time":"2023-10-30T13:03:23.6111644-04:00","level":"INFO","source":"daemon.go 159}","msg":"configuring netmaker wireguard interface"}
{"time":"2023-10-30T13:03:24.0392829-04:00","level":"INFO","source":"&{ 0}","msg":"Failed to find matching adapter name: Element not found. (Code 0x00000490)"}
{"time":"2023-10-30T13:03:24.1465679-04:00","level":"INFO","source":"&{ 0}","msg":"Using existing driver 0.10"}
{"time":"2023-10-30T13:03:24.1680945-04:00","level":"INFO","source":"&{ 0}","msg":"Creating adapter"}
{"time":"2023-10-30T13:03:24.5681401-04:00","level":"INFO","source":"wireguard_windows.go 35}","msg":"created Windows tunnel"}
{"time":"2023-10-30T13:03:24.5681401-04:00","level":"INFO","source":"wireguard_windows.go 47}","msg":"appending address","address":"10.147.75.1/24 to nm interface"}
{"time":"2023-10-30T13:03:24.5689042-04:00","level":"DEBUG","source":"wireguard.go 61}","msg":"applying wireguard config"}
{"time":"2023-10-30T13:03:24.5808792-04:00","level":"DEBUG","source":"wireguard.go 61}","msg":"applying wireguard config"}
{"time":"2023-10-30T13:03:25.144366-04:00","level":"INFO","source":"daemon.go 203}","msg":"netclient message queue started for server:","server":"15dd036e-c2ee-4797-a4d8-c2e6ee2fe7e9.app.prod.netmaker.io"}
{"time":"2023-10-30T13:03:25.5332129-04:00","level":"INFO","source":"daemon.go 232}","msg":"mqtt connect handler"}
{"time":"2023-10-30T13:03:25.621063-04:00","level":"INFO","source":"daemon.go 374}","msg":"subscribed to updates for node","node":"20fae6fb-61a2-4899-acc9-aeb62e50dc75","network":"int-testnet"}
{"time":"2023-10-30T13:03:25.621063-04:00","level":"INFO","source":"daemon.go 341}","msg":"subscribing to host updates for","host":"87ae2840-0a7d-4499-99de-ab3f769b76cd","server":"15dd036e-c2ee-4797-a4d8-c2e6ee2fe7e9.app.prod.netmaker.io"}
{"time":"2023-10-30T13:03:25.6218154-04:00","level":"INFO","source":"daemon.go 279}","msg":"successfully requested ACK on server","server":"15dd036e-c2ee-4797-a4d8-c2e6ee2fe7e9.app.prod.netmaker.io"}
{"time":"2023-10-30T13:03:25.6860651-04:00","level":"DEBUG","source":"mqhandlers.go 105}","msg":"HostPeerUpdate3"}
{"time":"2023-10-30T13:03:25.6860651-04:00","level":"INFO","source":"daemon.go 346}","msg":"subscribing to host updates for","host":"87ae2840-0a7d-4499-99de-ab3f769b76cd","server":"15dd036e-c2ee-4797-a4d8-c2e6ee2fe7e9.app.prod.netmaker.io"}
{"time":"2023-10-30T13:03:25.7015518-04:00","level":"INFO","source":"mqhandlers.go 118}","msg":"processing peer update for server","server":"15dd036e-c2ee-4797-a4d8-c2e6ee2fe7e9.app.prod.netmaker.io"}
{"time":"2023-10-30T13:03:25.7033189-04:00","level":"WARN","source":"mqhandlers.go 130}","msg":"server/client version mismatch","server":"v0.20.6","client":"v0.20.4"}
{"time":"2023-10-30T13:03:25.7033189-04:00","level":"INFO","source":"daemon.go 286}","msg":"published host turn register signal to server","server":"15dd036e-c2ee-4797-a4d8-c2e6ee2fe7e9.app.prod.netmaker.io"}
{"time":"2023-10-30T13:03:25.7708659-04:00","level":"INFO","source":"daemon.go 351}","msg":"subscribing to dns updates for","host":"87ae2840-0a7d-4499-99de-ab3f769b76cd","server":"15dd036e-c2ee-4797-a4d8-c2e6ee2fe7e9.app.prod.netmaker.io"}
{"time":"2023-10-30T13:03:25.7812341-04:00","level":"INFO","source":"mqhandlers.go 201}","msg":"processing host update","server":"15dd036e-c2ee-4797-a4d8-c2e6ee2fe7e9.app.prod.netmaker.io","action":"REQ_ACK"}
{"time":"2023-10-30T13:03:25.8603904-04:00","level":"INFO","source":"daemon.go 356}","msg":"subscribing to all dns updates for","host":"87ae2840-0a7d-4499-99de-ab3f769b76cd","server":"15dd036e-c2ee-4797-a4d8-c2e6ee2fe7e9.app.prod.netmaker.io"}
{"time":"2023-10-30T13:03:25.8608262-04:00","level":"ERROR","source":"mqhandlers.go 193}","msg":"error decrypting message","error":"received invalid message from broker []"}
{"time":"2023-10-30T13:03:25.8619122-04:00","level":"INFO","source":"mqhandlers.go 370}","msg":"received dns update","name":"Intuity-Internal-01.int-testnet","address":"10.147.75.2","action":4}
{"time":"2023-10-30T13:03:25.9399526-04:00","level":"INFO","source":"mqhandlers.go 436}","msg":"received initial dns","dns":[{"Action":4,"Name":"Intuity-Internal-02.int-testnet","NewName":"","Address":"10.147.75.1","NewAddress":""},{"Action":4,"Name":"Intuity-Internal-01.int-testnet","NewName":"","Address":"10.147.75.2","NewAddress":""}]}
{"time":"2023-10-30T13:03:26.0598526-04:00","level":"DEBUG","source":"mqhandlers.go 105}","msg":"HostPeerUpdate3"}
{"time":"2023-10-30T13:03:26.0598526-04:00","level":"INFO","source":"mqhandlers.go 118}","msg":"processing peer update for server","server":"15dd036e-c2ee-4797-a4d8-c2e6ee2fe7e9.app.prod.netmaker.io"}
{"time":"2023-10-30T13:03:26.06036-04:00","level":"WARN","source":"mqhandlers.go 130}","msg":"server/client version mismatch","server":"v0.20.6","client":"v0.20.4"}
{"time":"2023-10-30T13:03:26.5605696-04:00","level":"INFO","source":"daemon.go 85}","msg":"shutting down netclient daemon"}
{"time":"2023-10-30T13:03:26.5610994-04:00","level":"INFO","source":"daemon.go 215}","msg":"shutting down message queue","server":"15dd036e-c2ee-4797-a4d8-c2e6ee2fe7e9.app.prod.netmaker.io"}
{"time":"2023-10-30T13:03:28.6382999-04:00","level":"ERROR","source":"mqhandlers.go 133}","msg":"error updating client to server's version","error":"remove C:\\Program Files (x86)\\Netclient\\netclient.exe: Access is denied."}
{"time":"2023-10-30T13:03:28.6382999-04:00","level":"ERROR","source":"mqhandlers.go 133}","msg":"error updating client to server's version","error":"remove C:\\Program Files (x86)\\Netclient\\netclient.exe: Access is denied."}
{"time":"2023-10-30T13:03:28.6430839-04:00","level":"DEBUG","source":"wireguard.go 61}","msg":"applying wireguard config"}
{"time":"2023-10-30T13:03:28.6430839-04:00","level":"DEBUG","source":"wireguard.go 61}","msg":"applying wireguard config"}
{"time":"2023-10-30T13:03:28.6441425-04:00","level":"DEBUG","source":"mqhandlers.go 169}","msg":"endpoint detection enabled"}
{"time":"2023-10-30T13:03:28.6441425-04:00","level":"DEBUG","source":"mqhandlers.go 169}","msg":"endpoint detection enabled"}
{"time":"2023-10-30T13:03:28.6446803-04:00","level":"DEBUG","source":"mqhandlers.go 310}","msg":"failed to check for endpoint on peer","peer":"Qcifzwy6YgE0SRgsWK86vKTzRgMwVdc7Wro8ic/2Tn0=","error":"dial tcp 192.168.1.105:0: connectex: The requested address is not valid in its context."}
{"time":"2023-10-30T13:03:28.6446803-04:00","level":"DEBUG","source":"mqhandlers.go 310}","msg":"failed to check for endpoint on peer","peer":"Qcifzwy6YgE0SRgsWK86vKTzRgMwVdc7Wro8ic/2Tn0=","error":"dial tcp 192.168.1.105:0: connectex: The requested address is not valid in its context."}
{"time":"2023-10-30T13:03:29.5966332-04:00","level":"INFO","source":"&{ 0}","msg":"relayed-address=67.205.177.151:38405"}
{"time":"2023-10-30T13:03:29.5971852-04:00","level":"INFO","source":"daemon.go 118}","msg":"closing netmaker interface"}
{"time":"2023-10-30T13:03:29.8572761-04:00","level":"INFO","source":"daemon.go 92}","msg":"shutdown complete"}
Here is the output created by running ./netclient.exe daemon:
PS C:\Program Files (x86)\Netclient> .\netclient.exe daemon
{"time":"2023-10-30T13:21:52.0668125-04:00","level":"INFO","source":"&{ 0}","msg":"Failed to find matching adapter name: Element not found. (Code 0x00000490)"}
[netclient.exe] 2023-10-30 13:21:52 [wireguard_windows.go-22] Create(): creating Windows tunnel
{"time":"2023-10-30T13:21:52.2117356-04:00","level":"INFO","source":"&{ 0}","msg":"Using existing driver 0.10"}
{"time":"2023-10-30T13:21:52.2191631-04:00","level":"INFO","source":"&{ 0}","msg":"Creating adapter"}
{"time":"2023-10-30T13:21:52.6941342-04:00","level":"INFO","source":"wireguard_windows.go 35}","msg":"created Windows tunnel"}
[netclient.exe] 2023-10-30 13:21:52 [migrate.go-32] Migrate(): migration to v0.18 started
daemon called
{"time":"2023-10-30T13:21:52.905167-04:00","level":"INFO","source":"daemon.go 61}","msg":"starting netclient daemon","version":"v0.20.4"}
[netclient.exe] 2023-10-30 13:21:52 [netclientutils_windows.go-27] RunCmd(): error running command: Set-NetIPInterface -Forwarding Enabled
[netclient.exe] 2023-10-30 13:21:52 [netclientutils_windows.go-28] RunCmd():
[netclient.exe] 2023-10-30 13:21:52 [local.go-74] SetIPForwardingWindows(): WARNING: Error encountered setting ip forwarding. This can break functionality.
{"time":"2023-10-30T13:21:52.9186894-04:00","level":"WARN","source":"daemon.go 67}","msg":"unable to set IPForwarding","error":"exec: \"Set-NetIPInterface\": executable file not found in %PATH%"}
[netclient.exe] 2023-10-30 13:21:52 [config.go-83] UpdateNetclient(): Logging verbosity updated to 4
{"time":"2023-10-30T13:21:52.9507776-04:00","level":"DEBUG","source":"stun.go 59}","msg":"hole punching port 51821 via stun server stun1.netmaker.io:3478"}
{"time":"2023-10-30T13:21:53.0069726-04:00","level":"DEBUG","source":"stun.go 70}","msg":"hole punching complete","public ip":"XX.XXX.XXX.XX","public port":"51821"}
{"time":"2023-10-30T13:21:53.0069726-04:00","level":"INFO","source":"daemon.go 143}","msg":"wireguard public listen port: ","port":51821}
{"time":"2023-10-30T13:21:53.3455523-04:00","level":"INFO","source":"daemon.go 159}","msg":"configuring netmaker wireguard interface"}
completed pull for server 15dd036e-c2ee-4797-a4d8-c2e6ee2fe7e9.app.prod.netmaker.io
{"time":"2023-10-30T13:21:53.7851708-04:00","level":"INFO","source":"&{ 0}","msg":"Failed to find matching adapter name: Element not found. (Code 0x00000490)"}
[netclient.exe] 2023-10-30 13:21:53 [wireguard_windows.go-22] Create(): creating Windows tunnel
{"time":"2023-10-30T13:21:53.9066854-04:00","level":"INFO","source":"&{ 0}","msg":"Using existing driver 0.10"}
{"time":"2023-10-30T13:21:53.9233462-04:00","level":"INFO","source":"&{ 0}","msg":"Creating adapter"}
{"time":"2023-10-30T13:21:54.3269786-04:00","level":"INFO","source":"wireguard_windows.go 35}","msg":"created Windows tunnel"}
[netclient.exe] 2023-10-30 13:21:54 [types.go-86] Configure(): adding addresses to netmaker interface
{"time":"2023-10-30T13:21:54.3306047-04:00","level":"INFO","source":"wireguard_windows.go 47}","msg":"appending address","address":"10.147.75.1/24 to nm interface"}
{"time":"2023-10-30T13:21:54.3345966-04:00","level":"DEBUG","source":"wireguard.go 61}","msg":"applying wireguard config"}
[netclient.exe] 2023-10-30 13:21:54 [peer.go-105] SetPeersEndpointToProxy(): Setting peers endpoints to proxy...
{"time":"2023-10-30T13:21:54.3470463-04:00","level":"DEBUG","source":"wireguard.go 61}","msg":"applying wireguard config"}
[netclient.exe] 2023-10-30 13:21:54 [daemon.go-181] startGoRoutines(): started daemon for server 15dd036e-c2ee-4797-a4d8-c2e6ee2fe7e9.app.prod.netmaker.io
[netclient.exe] 2023-10-30 13:21:54 [mqpublish.go-41] Checkin(): starting checkin goroutine
{"time":"2023-10-30T13:21:54.8654452-04:00","level":"INFO","source":"daemon.go 203}","msg":"netclient message queue started for server:","server":"15dd036e-c2ee-4797-a4d8-c2e6ee2fe7e9.app.prod.netmaker.io"}
[netclient.exe] 2023-10-30 13:21:54 [nm-proxy.go-35] Start(): Starting Proxy...
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)
[netclient.exe] 2023-10-30 13:21:54 [server-pong.go-34] StartIfaceDetection(): initialized endpoint detection on port 51722
[netclient.exe] 2023-10-30 13:21:54 [nm-proxy.go-42] Start(): set nat info: &{XX.XXX.XXX.XX 192.168.1.107 51722 51722 false symmetric}
[GIN-debug] GET /status --> github.com/gravitl/netclient/functions.status (3 handlers)
[GIN-debug] POST /register --> github.com/gravitl/netclient/functions.register (3 handlers)
[GIN-debug] GET /network/:net --> github.com/gravitl/netclient/functions.getNetwork (3 handlers)
[GIN-debug] GET /allnetworks --> github.com/gravitl/netclient/functions.getAllNetworks (3 handlers)
[GIN-debug] GET /netclient --> github.com/gravitl/netclient/functions.getNetclient (3 handlers)
[GIN-debug] POST /connect/:net --> github.com/gravitl/netclient/functions.connect (3 handlers)
[GIN-debug] POST /leave/:net --> github.com/gravitl/netclient/functions.leave (3 handlers)
[GIN-debug] GET /servers --> github.com/gravitl/netclient/functions.servers (3 handlers)
[GIN-debug] POST /uninstall --> github.com/gravitl/netclient/functions.uninstall (3 handlers)
[GIN-debug] GET /pull/:net --> github.com/gravitl/netclient/functions.pull (3 handlers)
[GIN-debug] POST /nodepeers --> github.com/gravitl/netclient/functions.nodePeers (3 handlers)
[GIN-debug] POST /join --> github.com/gravitl/netclient/functions.join (3 handlers)
[GIN-debug] POST /sso --> github.com/gravitl/netclient/functions.sso (3 handlers)
[netclient.exe] 2023-10-30 13:21:54 [httpserver.go-53] HttpServer(): starting http server on port 18095
{"time":"2023-10-30T13:21:55.2239965-04:00","level":"INFO","source":"daemon.go 232}","msg":"mqtt connect handler"}
{"time":"2023-10-30T13:21:55.3164305-04:00","level":"INFO","source":"daemon.go 279}","msg":"successfully requested ACK on server","server":"15dd036e-c2ee-4797-a4d8-c2e6ee2fe7e9.app.prod.netmaker.io"}
{"time":"2023-10-30T13:21:55.3164305-04:00","level":"INFO","source":"daemon.go 374}","msg":"subscribed to updates for node","node":"20fae6fb-61a2-4899-acc9-aeb62e50dc75","network":"int-testnet"}
{"time":"2023-10-30T13:21:55.3183248-04:00","level":"INFO","source":"daemon.go 341}","msg":"subscribing to host updates for","host":"87ae2840-0a7d-4499-99de-ab3f769b76cd","server":"15dd036e-c2ee-4797-a4d8-c2e6ee2fe7e9.app.prod.netmaker.io"}
{"time":"2023-10-30T13:21:55.396063-04:00","level":"INFO","source":"daemon.go 286}","msg":"published host turn register signal to server","server":"15dd036e-c2ee-4797-a4d8-c2e6ee2fe7e9.app.prod.netmaker.io"}
{"time":"2023-10-30T13:21:55.4014355-04:00","level":"INFO","source":"daemon.go 346}","msg":"subscribing to host updates for","host":"87ae2840-0a7d-4499-99de-ab3f769b76cd","server":"15dd036e-c2ee-4797-a4d8-c2e6ee2fe7e9.app.prod.netmaker.io"}
{"time":"2023-10-30T13:21:55.4024738-04:00","level":"DEBUG","source":"mqhandlers.go 105}","msg":"HostPeerUpdate3"}
{"time":"2023-10-30T13:21:55.4024738-04:00","level":"INFO","source":"mqhandlers.go 118}","msg":"processing peer update for server","server":"15dd036e-c2ee-4797-a4d8-c2e6ee2fe7e9.app.prod.netmaker.io"}
{"time":"2023-10-30T13:21:55.4073487-04:00","level":"WARN","source":"mqhandlers.go 130}","msg":"server/client version mismatch","server":"v0.20.6","client":"v0.20.4"}
[netclient.exe] 2023-10-30 13:21:55 [common_windows.go-132] runWinSWCMD(): running stop of Windows Netclient daemon
{"time":"2023-10-30T13:21:55.5032009-04:00","level":"INFO","source":"daemon.go 351}","msg":"subscribing to dns updates for","host":"87ae2840-0a7d-4499-99de-ab3f769b76cd","server":"15dd036e-c2ee-4797-a4d8-c2e6ee2fe7e9.app.prod.netmaker.io"}
{"time":"2023-10-30T13:21:55.5819561-04:00","level":"INFO","source":"daemon.go 356}","msg":"subscribing to all dns updates for","host":"87ae2840-0a7d-4499-99de-ab3f769b76cd","server":"15dd036e-c2ee-4797-a4d8-c2e6ee2fe7e9.app.prod.netmaker.io"}
{"time":"2023-10-30T13:21:55.5835064-04:00","level":"INFO","source":"mqhandlers.go 370}","msg":"received dns update","name":"Intuity-Internal-01.int-testnet","address":"10.147.75.2","action":4}
{"time":"2023-10-30T13:21:55.662522-04:00","level":"INFO","source":"mqhandlers.go 436}","msg":"received initial dns","dns":[{"Action":4,"Name":"Intuity-Internal-02.int-testnet","NewName":"","Address":"10.147.75.1","NewAddress":""},{"Action":4,"Name":"Intuity-Internal-01.int-testnet","NewName":"","Address":"10.147.75.2","NewAddress":""}]}
[netclient.exe] 2023-10-30 13:21:55 [mqpublish.go-222] UpdateHostSettings(): checkin with server(s)
[netclient.exe] 2023-10-30 13:21:56 [common_windows.go-138] runWinSWCMD(): successfully ran stop of Windows Netclient daemon
{"time":"2023-10-30T13:21:58.3223857-04:00","level":"ERROR","source":"mqhandlers.go 133}","msg":"error updating client to server's version","error":"remove C:\\Program Files (x86)\\Netclient\\netclient.exe: Access is denied."}
[netclient.exe] 2023-10-30 13:21:58 [peer.go-105] SetPeersEndpointToProxy(): Setting peers endpoints to proxy...
{"time":"2023-10-30T13:21:58.3271816-04:00","level":"DEBUG","source":"wireguard.go 61}","msg":"applying wireguard config"}
{"time":"2023-10-30T13:21:58.328228-04:00","level":"DEBUG","source":"mqhandlers.go 169}","msg":"endpoint detection enabled"}
{"time":"2023-10-30T13:21:58.33243-04:00","level":"DEBUG","source":"mqhandlers.go 310}","msg":"failed to check for endpoint on peer","peer":"Qcifzwy6YgE0SRgsWK86vKTzRgMwVdc7Wro8ic/2Tn0=","error":"dial tcp 192.168.1.105:0: connectex: The requested address is not valid in its context."}
{"time":"2023-10-30T13:21:59.2925746-04:00","level":"INFO","source":"&{ 0}","msg":"relayed-address=67.205.177.151:48453"}
[netclient.exe] 2023-10-30 13:21:59 [turn.go-158] listen(): Starting Turn Listener: 67.205.177.151:48453 15dd036e-c2ee-4797-a4d8-c2e6ee2fe7e9.app.prod.netmaker.io
[netclient.exe] 2023-10-30 13:22:00 [manager.go-56] Start(): -------> PROXY-MANAGER: {Action: InterfaceName: Server: Peers:[] PeerMap:map[] IsIngress:false IsRelayed:false RelayedTo:<nil> IsRelay:false RelayedPeerConf:map[]}
[netclient.exe] 2023-10-30 13:22:00 [peer.go-119] StartMetricsCollectionForHostPeers(): Starting Metrics Thread...
[netclient.exe] 2023-10-30 13:22:54 [mqpublish.go-222] UpdateHostSettings(): checkin with server(s)
Please let me know of some things I can look at to troubleshoot this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello and thanks in advance for responding and I apologize in advance for any simple things I've missed.
I am evaluating Netmaker/netclient for a client and I'm having a hard time getting things to work on Windows.
We have set up an account on app.netmaker.io and I've installed Wireguard and netclient on a Windows laptop.
If I run the following command in an elevated Powershell prompt:
./netclient.exe join -t {key}
The client will start then stop after a few seconds. Running "wg show" outputs nothing and I cannot ping my Netmaker IP address.
If I run:
./netclient.exe daemon
I get an output from "wg show" that gives me interface and peer information. I can ping the Netmaker IP address.
So it seems to work if I run the daemon manually in Powershell, but does not seem to work if I run it as described in the instructions (maybe a service is not being created properly?)
Here are the logfiles created by running ./netclient.exe join (personal IP address redacted):
winsw.out.log:
winsw.err.log:
Here is the output created by running ./netclient.exe daemon:
Please let me know of some things I can look at to troubleshoot this.
Thanks,
Chris
Beta Was this translation helpful? Give feedback.
All reactions