Skip to content

Uptime becomes negative after Windows machine has been on for several days. #3514

Closed

Description

I am using Windows 1803 build 171134.228.

After my machine has been powered on for several days (in sleep mode during the nights), the following happens in WSL:

$ uptime
 11:23:19 up -24855 days, -3:-14,  0 users,  load average: 0.52, 0.58, 0.59

I get other problems as well that seem releated, like:

$ python3 --version
Python 3.7.0b3
$ python3
Fatal Python error: _Py_InitializeMainInterpreter: can't initialize time
OverflowError: timestamp too large to convert to C _PyTime_t

Current thread 0x00007f0232c21080 (most recent call first):
Aborted (core dumped)

Restarting the computer fixes all of these issues.

Activity

  1. 0xbadfca11 commented on Aug 30, 2018

    @0xbadfca11

    #3252
    Fixed in Insider Preview.

  2. PetterS commented on Aug 30, 2018

    @PetterS
    Author

    Thanks, I suppose we can close this then?

  3. hereticle commented on Aug 6, 2019

    @hereticle

    As a quicker workaround (than restarting windows), you can just restart the LxssManager service

  4. leoseccia commented on Nov 26, 2019

    @leoseccia

    This is still broken... @drone-ah suggestion helped me. Thank you.

  5. Chematronix commented on Nov 26, 2019

    @Chematronix

    To restart WSL / LxssManager quickly:

    Win + X, Windows PowerShell (Admin), Get-Service LxssManager | Restart-Service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions