Skip to content

WSL uptime overflow #3529

Closed
Closed

Description

@fenchu
Get-WmiObject -Class Win32_OperatingSystem | ForEach-Object -MemberName Caption
Microsoft Windows 10 Pro
(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ReleaseId)
.ReleaseId
1803
(Get-WmiObject Win32_OperatingSystem).OSArchitecture
64-biters
PS C:\Users\morten.sensio>

After ugrading to 1803 clock seem to go into overflow mode, preventing my scripts to run:
date is identical in wsl and in powershell.

$ uname -a
Linux MB-PC 4.4.0-17134-Microsoft #137-Microsoft Thu Jun 14 18:46:00 PST 2018 x86_64 x86_64 x86_64 GNU/Linux

$ date
fr. 07. sep. 08:02:23 +0200 2018

$uptime
 08:02:30 up -24855 days, -3:-14,  0 users,  load average: 0,52, 0,58, 0,59

$ ./spux-status.py --host=ha-staging
Fatal Python error: _Py_InitializeMainInterpreter: can't initialize time
OverflowError: timestamp too large to convert to C _PyTime_t

Current thread 0x00007f1e7da90700 (most recent call first):
Avbrutt (SIGABRT) (kjerne lagret i fil)

If I just reboot it is fine again for around 1 week.

Everything else on the machine if fine, having lots of ubuntu 16.04LTS vms in hyper-v

How do it get some decent logging per default, helping debug this:

$ journalctl
No journal files were found.
-- No entries --
$ dmesg
dmesg: read kernel buffer failed: Funksjonen er ikke implementert

Activity

  1. fenchu commented on Sep 7, 2018

    @fenchu
    Author

    I saw this is fixed here: #3514

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions