Wrong TIME on processlist inside container

mhagen

Active Member
Jan 24, 2017
10
0
41
The Netherlands
Hi there

Is am running in a issue that the up-time from processes in the container are not correct.
Everything is 00:00 which is not ideal.

Below is just a small snippet.
Also this is a CentOS 7 container, but the debian and ubuntu have the same output.

While searching the inter-webs i came across some GitHub issues somewhat related?
https://github.com/lxc/lxd/issues/3517
https://github.com/lxc/lxcfs/issues/189
https://github.com/lxc/lxcfs/issues/164

Bash:
[root@web ~]# cat /etc/centos-release
CentOS Linux release 7.7.1908 (Core)
[root@web ~]# ps -eo pid,comm,lstart,etime,time,args
    PID COMMAND                          STARTED     ELAPSED     TIME COMMAND
      1 systemd         Mon Apr 20 03:16:02 2020       00:00 00:00:24 /sbin/init
     36 systemd-journal Mon Apr 20 03:16:03 2020       00:00 00:00:14 /usr/lib/systemd/systemd-journald
     69 systemd-logind  Mon Apr 20 03:16:03 2020       00:00 00:00:11 /usr/lib/systemd/systemd-logind
     70 dbus-daemon     Mon Apr 20 03:16:03 2020       00:00 00:00:25 /usr/bin/dbus-daemon --system --address=systemd: --nofork -
     89 saslauthd       Mon Apr 20 03:16:03 2020       00:00 00:00:00 /usr/sbin/saslauthd -m /run/saslauthd -a pam -r
     90 saslauthd       Mon Apr 20 03:16:03 2020       00:00 00:00:00 /usr/sbin/saslauthd -m /run/saslauthd -a pam -r
     91 saslauthd       Mon Apr 20 03:16:03 2020       00:00 00:00:00 /usr/sbin/saslauthd -m /run/saslauthd -a pam -r
     92 saslauthd       Mon Apr 20 03:16:03 2020       00:00 00:00:00 /usr/sbin/saslauthd -m /run/saslauthd -a pam -r
     93 saslauthd       Mon Apr 20 03:16:03 2020       00:00 00:00:00 /usr/sbin/saslauthd -m /run/saslauthd -a pam -r
     97 agetty          Mon Apr 20 03:16:03 2020       00:00 00:00:00 /sbin/agetty --noclear --keep-baud console 115200,38400,960
     99 crond           Mon Apr 20 03:16:03 2020       00:00 00:00:01 /usr/sbin/crond -n
    100 agetty          Mon Apr 20 03:16:03 2020       00:00 00:00:00 /sbin/agetty --noclear --keep-baud lxc/tty1 115200,38400,96
    382 sshd            Mon Apr 20 03:16:12 2020       00:00 00:00:00 /usr/sbin/sshd -D
    388 telegraf        Mon Apr 20 03:16:12 2020       00:00 00:03:00 /usr/bin/telegraf -config /etc/telegraf/telegraf.conf -conf
    396 rsyslogd        Mon Apr 20 03:16:12 2020       00:00 00:00:08 /usr/sbin/rsyslogd -n
    398 collectd        Mon Apr 20 03:16:12 2020       00:00 00:00:44 /usr/sbin/collectd
    402 f2b/server      Mon Apr 20 03:16:12 2020       00:00 00:05:32 /usr/bin/python -s /usr/bin/fail2ban-server -xf start
    437 dovecot         Mon Apr 20 03:16:12 2020       00:00 00:00:01 /usr/sbin/dovecot
    446 anvil           Mon Apr 20 03:16:12 2020       00:00 00:00:00 dovecot/anvil
    447 log             Mon Apr 20 03:16:12 2020       00:00 00:00:00 dovecot/log
    449 config          Mon Apr 20 03:16:12 2020       00:00 00:00:00 dovecot/config
    483 httpd           Mon Apr 20 03:16:12 2020       00:00 00:00:05 /usr/sbin/httpd -DFOREGROUND
    490 opendkim        Mon Apr 20 03:16:12 2020       00:00 00:00:00 /usr/sbin/opendkim -b s
    533 /usr/libexec/we Mon Apr 20 03:16:13 2020       00:00 00:00:00 /usr/libexec/webmin/virtual-server/lookup-domain-daemon.pl
    537 proftpd         Mon Apr 20 03:16:13 2020       00:00 00:00:01 proftpd: (accepting connections)
    555 master          Mon Apr 20 03:16:13 2020       00:00 00:00:01 /usr/libexec/postfix/master -w
    557 qmgr            Mon Apr 20 03:16:13 2020       00:00 00:00:00 qmgr -l -t unix -u
    692 miniserv.pl     Mon Apr 20 03:16:14 2020       00:00 00:00:00 /usr/bin/perl /usr/libexec/usermin/miniserv.pl /etc/usermin
    698 miniserv.pl     Mon Apr 20 03:16:15 2020       00:00 00:00:11 /usr/bin/perl /usr/libexec/webmin/miniserv.pl /etc/webmin/m
    768 tlsmgr          Mon Apr 20 03:16:17 2020       00:00 00:00:00 tlsmgr -l -t unix -u
   9342 /usr/bin/spamd  Mon Apr 20 04:32:21 2020       00:00 00:00:11 /usr/bin/spamd --pidfile /var/run/spamd.pid -d -c -m5 -H
   9343 spamd child     Mon Apr 20 04:32:22 2020       00:00 00:00:12 spamd child
   9344 spamd child     Mon Apr 20 04:32:22 2020       00:00 00:00:00 spamd child
  13983 named           Mon Apr 20 05:06:05 2020       00:00 00:01:58 /usr/sbin/named -u named -c /etc/named.conf -4

Bash:
root@prox1:~# pveversion --verbose
proxmox-ve: 6.1-2 (running kernel: 5.3.18-2-pve)
pve-manager: 6.1-8 (running version: 6.1-8/806edfe1)
pve-kernel-helper: 6.1-7
pve-kernel-5.3: 6.1-5
pve-kernel-5.0: 6.0-11
pve-kernel-5.3.18-2-pve: 5.3.18-2
pve-kernel-5.3.13-3-pve: 5.3.13-3
pve-kernel-5.0.21-5-pve: 5.0.21-10
ceph: 14.2.8-pve1
ceph-fuse: 14.2.8-pve1
corosync: 3.0.3-pve1
criu: 3.11-3
glusterfs-client: 5.5-3
ifupdown: residual config
ifupdown2: 2.0.1-1+pve8
ksm-control-daemon: 1.3-1
libjs-extjs: 6.0.1-10
libknet1: 1.15-pve1
libpve-access-control: 6.0-6
libpve-apiclient-perl: 3.0-3
libpve-common-perl: 6.0-17
libpve-guest-common-perl: 3.0-5
libpve-http-server-perl: 3.0-5
libpve-storage-perl: 6.1-5
libqb0: 1.0.5-1
libspice-server1: 0.14.2-4~pve6+1
lvm2: 2.03.02-pve4
lxc-pve: 3.2.1-1
lxcfs: 3.0.3-pve60
novnc-pve: 1.1.0-1
openvswitch-switch: 2.12.0-1
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.1-3
pve-cluster: 6.1-4
pve-container: 3.0-22
pve-docs: 6.1-6
pve-edk2-firmware: 2.20200229-1
pve-firewall: 4.0-10
pve-firmware: 3.0-6
pve-ha-manager: 3.0-9
pve-i18n: 2.0-4
pve-qemu-kvm: 4.1.1-4
pve-xtermjs: 4.3.0-1
qemu-server: 6.1-7
smartmontools: 7.1-pve2
spiceterm: 3.1-1
vncterm: 1.6-1
zfsutils-linux: 0.8.3-pve1
 
hi,

this should be fixed in the newer lxcfs versions. please update with apt update && apt full-upgrade
 
hi,

this should be fixed in the newer lxcfs versions. please update with apt update && apt full-upgrade

Hi there,

apt update (and upgrade....) did something but not updating lxcfs... Still on lxcfs 3.0.3-pve60 like mentioned in the first post.

Again the versions here:
Code:
root@prox1:~# pveversion --verbose
proxmox-ve: 6.1-2 (running kernel: 5.3.18-3-pve)
pve-manager: 6.1-8 (running version: 6.1-8/806edfe1)
pve-kernel-helper: 6.1-8
pve-kernel-5.3: 6.1-6
pve-kernel-5.0: 6.0-11
pve-kernel-5.3.18-3-pve: 5.3.18-3
pve-kernel-5.3.18-2-pve: 5.3.18-2
pve-kernel-5.0.21-5-pve: 5.0.21-10
ceph-fuse: 14.2.9-pve1
corosync: 3.0.3-pve1
criu: 3.11-3
glusterfs-client: 5.5-3
ifupdown: residual config
ifupdown2: 2.0.1-1+pve8
ksm-control-daemon: 1.3-1
libjs-extjs: 6.0.1-10
libknet1: 1.15-pve1
libpve-access-control: 6.0-6
libpve-apiclient-perl: 3.0-3
libpve-common-perl: 6.0-17
libpve-guest-common-perl: 3.0-5
libpve-http-server-perl: 3.0-5
libpve-storage-perl: 6.1-5
libqb0: 1.0.5-1
libspice-server1: 0.14.2-4~pve6+1
lvm2: 2.03.02-pve4
lxc-pve: 3.2.1-1
lxcfs: 3.0.3-pve60
novnc-pve: 1.1.0-1
openvswitch-switch: 2.12.0-1
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.1-3
pve-cluster: 6.1-4
pve-container: 3.0-23
pve-docs: 6.1-6
pve-edk2-firmware: 2.20200229-1
pve-firewall: 4.0-10
pve-firmware: 3.0-7
pve-ha-manager: 3.0-9
pve-i18n: 2.0-4
pve-qemu-kvm: 4.1.1-4
pve-xtermjs: 4.3.0-1
qemu-server: 6.1-7
smartmontools: 7.1-pve2
spiceterm: 3.1-1
vncterm: 1.6-1
zfsutils-linux: 0.8.3-pve1
 
Last edited:
which repositories are you using? it's already on pve-no-subscription.

can you post the full output of apt update ?
 
Code:
root@prox1:~# apt update
Ign:1 http://hwraid.le-vert.net/debian buster InRelease
Hit:2 http://hwraid.le-vert.net/debian buster Release
Hit:3 https://repos.influxdata.com/debian buster InRelease
Hit:4 http://download.proxmox.com/debian/ceph-nautilus buster InRelease
Hit:6 https://enterprise.proxmox.com/debian/pve buster InRelease
Get:7 http://security.debian.org buster/updates InRelease [65.4 kB]
Hit:8 http://ftp.nl.debian.org/debian buster InRelease
Get:9 http://ftp.nl.debian.org/debian buster-updates InRelease [49.3 kB]
Fetched 115 kB in 2s (61.6 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.

It's not in the enterprise repo...
1587719182677.png
 
that's because it's not fully tested yet :)

so if you really need this fix then you can either wait until it's pushed to enterprise (can take a while because of testing), or you can temporarily add no subscription and do apt update && apt install lxcfs and then disable the repo
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!