-
Notifications
You must be signed in to change notification settings - Fork 285
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
Rancher-Destop linux subsystem clock stop ticking when laptop goes to sleep. #4956
Comments
Hi @phuot, Thank you for reporting the issue! I did some research on the internet and found e.g. the following:
It seems like a problem in WSL. I know that's not a solution, yet. I'm wondering if we can make use of one of the workarounds mentioned in microsoft/WSL#10006. |
I tried a couple of workarounds from the links above and the issue seems mitigated on my system (clock was not skewed in the last days). Here is what I tried:
Next step is to add a task that runs each time the windows host machine come back to sleep. This task would call a command that would update the clock.
|
Hmm, it looks like we can detect machine resume from Electron; we may be able to run |
Actual Behavior
I have rancher-desktop version 1.8.1 installed in a dell laptop running windows 11.
When computer goes to sleep the rancher-destop linux subsystem clock stops to tick.
After the sleep if I type
date
to the rancher-desktop linux subsystem, I see a skewed date.Running
sudo hwclock -s
fix the clock, but then on next sleep the issue happens again.Steps to Reproduce
C:\WINDOWS\system32\wsl.exe -d rancher-desktop
to open the rancher-desktop linux consoledate
and notice that the date time is wrongsudo hwclock -s
date
and notice that the date is now okResult
date is wrong
Expected Behavior
date should be synchronized back when computer return from sleep.
Additional Information
No response
Rancher Desktop Version
1.8.1
Rancher Desktop K8s Version
1.26.5
Which container engine are you using?
containerd (nerdctl)
What operating system are you using?
Windows
Operating System / Build Version
windows 11 Pro (22h2 build 22621.1702)
What CPU architecture are you using?
x64
Linux only: what package format did you use to install Rancher Desktop?
None
Windows User Only
No response
The text was updated successfully, but these errors were encountered: