Skip to content
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

timeout when stopping ziti service appears to prevent further attempts to stop the service #674

Closed
dovholuknf opened this issue May 28, 2024 · 1 comment · Fixed by #682
Assignees
Labels
bug Something isn't working

Comments

@dovholuknf
Copy link
Member

dovholuknf commented May 28, 2024

It seems that when trying to stop the ziti "data" service from the UI, if the stopping of the service fails due to timeout, it leaves something "stuck", causing user confusion. The UI doesn't seem to work, feedback doesn't work, it appears to be hung up for reasons unknown.

Extend the timeout duration from 30 seconds to 60s or discover why the timeout appears to put the system into a state where it no longer appears to function.

from ZitiUpdateService.log:

[2024-05-23T13:02:23.789Z] DEBUG	ZitiDesktopEdge.Server.IPCServer	message received: {"Action":"Normal","Op":"Stop"}	
[2024-05-23T13:02:23.789Z] DEBUG	ZitiDesktopEdge.Server.IPCServer	Op: Stop	
[2024-05-23T13:02:23.789Z]  INFO	ZitiDesktopEdge.Server.ServiceActions	request to stop ziti service received... processing...	
[2024-05-23T13:02:53.875Z] ERROR	ZitiDesktopEdge.Server.IPCServer	Unexpected error in processMessage!	System.ServiceProcess.TimeoutException: Time out has expired and the operation has not been completed.
   at System.ServiceProcess.ServiceController.WaitForStatus(ServiceControllerStatus desiredStatus, TimeSpan timeout)
   at ZitiDesktopEdge.Server.ServiceActions.StopService()
@dovholuknf dovholuknf added the bug Something isn't working label May 28, 2024
@dovholuknf
Copy link
Member Author

This appears to be related to stopping ziti on a laptop disconnected from power, thus throttling the performance and exceeding the timeout. It seems that the easiest prevention mechanism is to make sure your laptop is plugged in when stopping ziti. The easiest resolution to this issue is to just restart the laptop. If that's not possible, as admin issue:

net stop ziti-monitor
net stop ziti
net start ziti-monitor
net start ziti

If this issue persists or if the commands don't work, please leave a comment. Particularly if you have steps to reproduce the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant