https://netmaker.org logo
Title
c

calm-agent-16830

08/22/2022, 12:32 AM
How do I troubleshoot a Windows client that says it's connected but can't access anything and the node listing shows "error"
This is in the command box
[netclient.exe] 2022-08-22 11:16:22 netclient.exe is in proper location, C:\Program Files (x86)\Netclient\netclient.exe 
2022/08/22 11:16:22 Gravitl Netclient on Windows started
Device information```Edition Windows 11 Business Version 21H2 Installed on ‎8/‎10/‎2021 OS build 22000.856 Serial number CND033496Z Experience Windows Feature Experience Pack 1000.22000.856.0 ```
h

handsome-lifeguard-70799

08/22/2022, 8:10 PM
I've not tried Netclient with Windows 11 yet, but check that the netclient service is running. If present, try to start it manually. If it stays up, run a pull command from the GUI or powershell. Give it a minute to show green in the webUI
If the service isn't installed, try to uninstall and reinstall the MSI or failing that, try to run the join command against the executable with the --daemon on switch. Might just not be working on win11 yet. I'll give it a try this week
c

calm-agent-16830

08/22/2022, 9:00 PM
Yes, the service is running, I've restarted but no joy. I've also tried pulling, reinstalling, and deleting/joining the network again but still stuck on error with "no connectivity" on the tool tip in NM dashboard. Are there logs that I can look in? I can't see any logs on the Windows device and I'm using the NM image on DigitalOcean so not sure if I should be using SSH logging into that and poke around? I'm happy to help diagnose
h

handsome-lifeguard-70799

08/23/2022, 9:32 PM
Isn't the netmaker image on DO like v.0.8.5, really old now? Can you check your server version and make sure your client matches, currently v 0.14.6. I tried the install on a win11 machine and all working as expected. Have you opened firewall ports on your windows machines as per the docs? Windows client logs are all in C:\Program Files (x86)\Netclient. Otherwise check your server logs. I'm not one of the devs, just a user like you
c

calm-agent-16830

08/24/2022, 12:10 AM
The one I used on DO is v0.14.6, but I’ll try the firewall rules again and will check for logs again too. Thanks
I think I've got a fix for now. If I run netclient pull from the cmd line:
.\netclient.exe pull --network duckmannzdev
[netclient.exe] 2022-08-24 16:50:53 netclient.exe is in proper location, C:\Program Files (x86)\Netclient\netclient.exe
2022/08/24 16:50:53 Gravitl Netclient on Windows started
[netclient.exe] 2022-08-24 16:51:01 certificates/key saved
[netclient.exe] 2022-08-24 16:51:02 running stop of Windows Netclient daemon
[netclient.exe] 2022-08-24 16:51:02 error running command: "C:\Program Files (x86)\Netclient\winsw.exe" "stop"
[netclient.exe] 2022-08-24 16:51:02 '"C:\Program Files (x86)\Netclient\winsw.exe"' is not recognized as an internal or external command,
 perable program or batch file.
[netclient.exe] 2022-08-24 16:51:02 error with stop of Windows Netclient daemon: exit status 1 : '"C:\Program Files (x86)\Netclient\winsw.exe"' is not recognized as an internal or external command,
operable program or batch file.

[netclient.exe] 2022-08-24 16:51:02 running start of Windows Netclient daemon
[netclient.exe] 2022-08-24 16:51:02 error running command: "C:\Program Files (x86)\Netclient\winsw.exe" "start"
[netclient.exe] 2022-08-24 16:51:02 '"C:\Program Files (x86)\Netclient\winsw.exe"' is not recognized as an internal or external command,
 perable program or batch file.
[netclient.exe] 2022-08-24 16:51:02 error with start of Windows Netclient daemon: exit status 1 : '"C:\Program Files (x86)\Netclient\winsw.exe"' is not recognized as an internal or external command,
operable program or batch file.
But if I run this then I get access, I assume Windows 10 has a service wrapper that Windows 11 doesn't have, so it works the first time but doesn't survive a reboot? Maybe?
❯ .\netclient.exe daemon
[netclient.exe] 2022-08-24 16:54:21 netclient.exe is in proper location, C:\Program Files (x86)\Netclient\netclient.exe
2022/08/24 16:54:21 Gravitl Netclient on Windows started
[netclient.exe] 2022-08-24 16:54:21 initializing network duckmannzdev
[netclient.exe] 2022-08-24 16:54:22 this OS is not currently supported
[netclient.exe] 2022-08-24 16:54:22 started daemon for server
[netclient.exe] 2022-08-24 16:54:22 netclient daemon started for server:
[netclient.exe] 2022-08-24 16:54:50 shutting down netclient daemon
[netclient.exe] 2022-08-24 16:54:50 checkin routine closed
[netclient.exe] 2022-08-24 16:54:50 shutdown complete
Still "Error" on the dashboard 🤔
FYI I've made my windows machine an external client so it's just using the WireGuard client app now and probably should have done that from the start!
h

handsome-lifeguard-70799

08/24/2022, 10:33 AM
It does work on win11. What happens when you manually run the service? Sometimes the service doesn;t install properly, regardless of windows versions. When that happens I do the following: netclient leave -n yournet; netclient uninstall; remove the node in the WebUI if still exists; uninstall netlcient from windows apps; delete C:\program files (x86)\netclient; reboot; run the MSI installer again; join using the access token in the Netclient GUI; check the netclient service is running in the services list; start manually if not; check client and server logs if still not working