Screen ls date issue on Debian 10 LXC

Paspao

Active Member
Aug 1, 2017
69
2
28
56
Hello,

does anybody noticed this bug in screen -ls on Debian 10 LXC , date is in the future ?

# date ; screen -mdS test; screen -ls test

Mon Mar 2 11:44:31 CET 2020
There is a screen on:
12581.test (03/10/20 08:40:17) (Detached)


Screen version 4.06.02 (GNU) 23-Oct-17

Any idea on how to troubleshoot it?

Kind regards.
P.
 
Hi,

I have the time is true.

Bash:
root@Debian10:~# date ; screen -mdS test; screen -ls test
Tue Mar  3 11:13:48 UTC 2020
There is a screen on:
        5133.test       (03/03/20 14:51:04)     (Detached)
1 Socket in /run/screen/S-root.
root@Debian10:~# grep VERSION /etc/os-release
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
 
Thank you, no success.

Current default time zone: 'Europe/Madrid'

Local time is now: Tue Mar 3 12:23:24 CET 2020.
Universal Time is now: Tue Mar 3 11:23:24 UTC 2020.


root@debian10:~# date ; screen -mdS test; screen -ls test

Tue Mar 3 12:23:39 CET 2020

There is a screen on:
27433.test (03/11/20 09:19:25) (Detached)

LXC created with default template debian-10.0-standard_10.0-1_amd64.tar.gz

pveversion:
pve-manager/6.1-7/13e58d5e (running kernel: 5.3.18-1-pve)
 
That seems to be the issue:

Failed to query server: Failed to activate service 'org.freedesktop.timedate1': timed out (service_start_timeout=25000ms)
 
Ok try to restart the service

systemctl restart systemd-timedated

and link your zone time

ln -sf /usr/share/zoneinfo/Europe/Madrid /etc/localtime

then do timedatectl again please.
 
  • Like
Reactions: oguz
To be able to systemd-timedated I needed to add nesting to LXC

pct set CTID -features nesting=1

and now timedatectl works :

Code:
Local time: Tue 2020-03-03 14:27:13 CET
           Universal time: Tue 2020-03-03 13:27:13 UTC
                 RTC time: n/a
                Time zone: Europe/Madrid (CET, +0100)
System clock synchronized: yes
              NTP service: inactive
          RTC in local TZ: no

But Issue remains:

Code:
date ; screen -mdS test; screen -ls test
Tue Mar  3 14:29:58 CET 2020
There is a screen on:
    1742.test    (03/16/20 16:14:18)    (Detached)
1 Socket in /run/screen/S-root.