[pkg-lxc-devel] Bug#980206: (LXC: lxc-start fails and cgroup IO error

shan.bharani at gmail.com shan.bharani at gmail.com
Sat Jan 16 04:22:35 GMT 2021


Package: lxc
Version: 1:4.0.5-2


I would like to file a bug for this.

The recent update of packages made lxc malfunction. Unable to start
containers.I have also noted that "Input/ouput Error" in /var/lib/lxcfs
directory. I dont think this is disk IO issue as this can reproduced. I
do have a VM with debian-bullseye-DI-alpha3-amd64-DVD-1.iso. I was able
create a lxc container there and it worked fine. However when I
upgraded to the latest packages I can see the same problem there.

Unable to find the package causing the problem.


Error
======

Output of lxc-start [ --logfile with --logpriority used ]
lxc-start $servername 20210110050338.110 ERROR cgfsng -
cgroups/cgfsng.c:__cgfsng_delegate_controllers:3091 - Device or
resource busy - Could not enable "+memory +pids" controllers in the
unified cgroup
"/sys/fs/cgroup/user.slice/user-1000.slice/user at 1000.service/app.slice/
app-org.gnome.Terminal.slice/vte-spawn-4a7e535f-f58e-44f0-a6dc-
9f85d15cd939.scope/cgroup.subtree_control"


$user:/var/lib/lxcfs$ ls -ltr
ls: cannot access 'cgroup': Input/output error
total 0
?????????? ? ? ? ? ? cgroup
dr-xr-xr-x 2 root root 0 Jan 11 10:59 proc
dr-xr-xr-x 2 root root 0 Jan 11 10:59 sys

System Information
==================
$uname -a
Linux coffee 5.10.0-1-amd64 #1 SMP Debian 5.10.4-1 (2020-12-31) x86_64
GNU/Linux

lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux bullseye/sid
Release: testing
Codename: bullseye


$ apt list lxc
Listing... Done
lxc/testing,now 1:4.0.5-2 amd64 [installed]

$apt list liblxc1
Listing... Done
liblxc1/testing,now 1:4.0.5-2 amd64 [installed,automatic]

$apt list lxcfs
Listing... Done
lxcfs/testing,now 4.0.5-1 amd64 [installed]

$apt list libpam-cgfs
Listing... Done
libpam-cgfs/testing,now 1:4.0.5-2 amd64 [installed]

$apt list libpam-systemd 
Listing... Done
libpam-systemd/testing,now 247.2-4 amd64 [installed]


$ lxc-checkconfig
LXC version 4.0.5
Kernel configuration not found at /proc/config.gz; searching...
Kernel configuration found at /boot/config-5.10.0-1-amd64
--- Namespaces ---
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: enabled
Network namespace: enabled

--- Control groups ---
Cgroups: enabled

Cgroup v1 mount points: 


Cgroup v2 mount points: 
/sys/fs/cgroup

Cgroup v1 systemd controller: missing
Cgroup v1 freezer controller: missing
Cgroup namespace: required
Cgroup device: enabled
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: enabled
Cgroup cpuset: enabled

--- Misc ---
Veth pair device: enabled, not loaded
Macvlan: enabled, not loaded
Vlan: enabled, not loaded
Bridges: enabled, loaded
Advanced netfilter: enabled, loaded
CONFIG_NF_NAT_IPV4: missing
CONFIG_NF_NAT_IPV6: missing
CONFIG_IP_NF_TARGET_MASQUERADE: enabled, not loaded
CONFIG_IP6_NF_TARGET_MASQUERADE: enabled, not loaded
CONFIG_NETFILTER_XT_TARGET_CHECKSUM: enabled, loaded
CONFIG_NETFILTER_XT_MATCH_COMMENT: enabled, not loaded
FUSE (for use with lxcfs): enabled, loaded

--- Checkpoint/Restore ---
checkpoint restore: enabled
CONFIG_FHANDLE: enabled
CONFIG_EVENTFD: enabled
CONFIG_EPOLL: enabled
CONFIG_UNIX_DIAG: enabled
CONFIG_INET_DIAG: enabled
CONFIG_PACKET_DIAG: enabled
CONFIG_NETLINK_DIAG: enabled
File capabilities: 

Note : Before booting a new kernel, you can check its configuration
usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig


Output of the /var/log/apt/history.log
======================================
Start-Date: 2021-01-08 14:42:15
Commandline: apt upgrade
Install: libbpf0:amd64 (1:0.2-1, automatic), libcapstone4:amd64 (4.0.2-
3, automatic)
@
@
@
Upgrade: libgoa-backend-1.0-1:amd64 (3.38.0-1, 3.38.0-3),
libdeflate0:amd64 (1.6-1, 1.7-1), bluez:amd64 (5.55-1, 5.55-3),
python3-jedi:amd64 (0.17.0-1, 0.18.0-1), libcrack2:amd64 (2.9.6-3.2+b3,
2.9.6-3.4), diffutils:amd64 (1:3.7-3, 1:3.7-5), gir1.2-nm-1.0:amd64
(1.28.0-1, 1.28.0-2), libcups2:amd64 (2.3.3op1-3, 2.3.3op1-4), mobile-
broadband-provider-info:amd64 (20190618-3, 20201225-1), xserver-xorg-
video-amdgpu:amd64 (19.1.0-1, 19.1.0-2), python3-distutils:amd64
(3.8.6-1, 3.9.1-1), libcurl4:amd64 (7.72.0-1, 7.74.0-1), libgtk2.0-
bin:amd64 (2.24.32-5, 2.24.33-1), libdw1:amd64 (0.182-1, 0.182-2),
libgoa-1.0-0b:amd64 (3.38.0-1, 3.38.0-3), cracklib-runtime:amd64
(2.9.6-3.2+b3, 2.9.6-3.4), libcairo-gobject2:amd64 (1.16.0-4, 1.16.0-
5), libjpeg-dev:amd64 (1:2.0.5-1.1, 1:2.0.5-2), libgoa-1.0-common:amd64
(3.38.0-1, 3.38.0-3), libwbclient0:amd64 (2:4.13.2+dfsg-3,
2:4.13.3+dfsg-1), libsystemd0:amd64 (247.1-3+deb11u1, 247.2-4), grub-
common:amd64 (2.04-11, 2.04-12), libpocketsphinx3:amd64
(0.8+5prealpha+1-12, 0.8+5prealpha+1-13), apt:amd64 (2.1.12+deb11u1,
2.1.15), mailcap:amd64 (3.67, 3.68), media-types:amd64 (1.0.1, 1.1.0),
libasound2-data:amd64 (1.2.4-1, 1.2.4-1.1), ipp-usb:amd64 (0.9.14-2,
0.9.16-1), libatkmm-1.6-1v5:amd64 (2.28.0-2, 2.28.0-3), libelf1:amd64
(0.182-1, 0.182-2), python3-urllib3:amd64 (1.25.11-1, 1.26.2-1),
libigdgmm11:amd64 (20.3.3+ds1-1, 20.4.1+ds1-1), python3-reportlab-
accel:amd64 (3.5.56-1, 3.5.57-1), libtirpc-common:amd64 (1.2.6-3,
1.3.1-1), libgail-common:amd64 (2.24.32-5, 2.24.33-1), gir1.2-geoclue-
2.0:amd64 (2.5.6-1, 2.5.7-2), libncurses6:amd64 (6.2+20201114-1,
6.2+20201114-2), python3-brlapi:amd64 (6.2+dfsg-1, 6.2+dfsg-2),
libgtk2.0-0:amd64 (2.24.32-5, 2.24.33-1), console-setup-linux:amd64
(1.199, 1.200), qemu-system-x86:amd64 (1:5.1+dfsg-4+b2, 1:5.2+dfsg-3),
fuse3:amd64 (3.10.0-1, 3.10.1-1), gdb:amd64 (10.1-1.5, 10.1-1.7),
libjpeg62-turbo-dev:amd64 (1:2.0.5-1.1, 1:2.0.5-2), python3:amd64
(3.9.0-4, 3.9.1-1), libzbar0:amd64 (0.23.1-3+b1, 0.23.1-4),
libbrlapi0.8:amd64 (6.2+dfsg-1, 6.2+dfsg-2), grub2-common:amd64 (2.04-
11, 2.04-12), gstreamer1.0-plugins-bad:amd64 (1.18.0-2+b1, 1.18.2-
1~deb11u1), xbrlapi:amd64 (6.2+dfsg-1, 6.2+dfsg-2), udev:amd64 (247.1-
3+deb11u1, 247.2-4), console-setup:amd64 (1.199, 1.200), cups-server-
common:amd64 (2.3.3op1-3, 2.3.3op1-4), libnetcf1:amd64 (1:0.2.8-1+b3,
1:0.2.8-1.1), libnm0:amd64 (1.28.0-1, 1.28.0-2), libgail18:amd64
(2.24.32-5, 2.24.33-1), libwww-perl:amd64 (6.50-1, 6.51-1), libmozjs-
78-0:amd64 (78.4.0-1+b1, 78.4.0-2), cups-common:amd64 (2.3.3op1-3,
2.3.3op1-4), network-manager:amd64 (1.28.0-1, 1.28.0-2),
libwavpack1:amd64 (5.3.0-1, 5.3.0-2), ssl-cert:amd64 (1.0.40, 1.1.0),
libncursesw6:amd64 (6.2+20201114-1, 6.2+20201114-2), libapt-
pkg6.0:amd64 (2.1.12+deb11u1, 2.1.15), python3-requests:amd64
(2.24.0+dfsg-1, 2.25.1+dfsg-2), libudev1:amd64 (247.1-3+deb11u1, 247.2-
4), rsyslog:amd64 (8.2010.0-1, 8.2012.0-1), libapparmor1:amd64 (2.13.5-
1+b2, 2.13.6-3), lxc:amd64 (1:4.0.4-6, 1:4.0.5-2), build-
essential:amd64 (12.8, 12.9), installation-report:amd64 (2.76, 2.77),
geoclue-2.0:amd64 (2.5.6-1, 2.5.7-2), systemd-timesyncd:amd64 (247.1-
3+deb11u1, 247.2-4), python3-renderpm:amd64 (3.5.56-1, 3.5.57-1),
libgeoclue-2-0:amd64 (2.5.6-1, 2.5.7-2), liblxc1:amd64 (1:4.0.4-6,
1:4.0.5-2), libaspell15:amd64 (0.60.8-1, 0.60.8-2), samba-libs:amd64
(2:4.13.2+dfsg-3, 2:4.13.3+dfsg-1), libapr1:amd64 (1.7.0-4, 1.7.0-6),
libgnome-todo:amd64 (3.28.1-5+b1, 3.28.1-6), libmd4c0:amd64 (0.4.6-1,
0.4.7-1), libfuse3-3:amd64 (3.10.0-1, 3.10.1-1), libjs-
scriptaculous:amd64 (1.9.0-2, 1.9.0-2.1), ppp:amd64 (2.4.7-
2+4.1+deb10u1+b1, 2.4.8-1+2), python3-minimal:amd64 (3.9.0-4, 3.9.1-1),
grub-efi-amd64-bin:amd64 (2.04-11, 2.04-12), libasm1:amd64 (0.182-1,
0.182-2), cups-ppdc:amd64 (2.3.3op1-3, 2.3.3op1-4), libmpg123-0:amd64
(1.26.3-1, 1.26.4-1), libtinfo6:amd64 (6.2+20201114-1, 6.2+20201114-2),
sgml-data:amd64 (2.0.11, 2.0.11+nmu1), gtk2-engines-pixbuf:amd64
(2.24.32-5, 2.24.33-1), qemu-system-data:amd64 (1:5.1+dfsg-4,
1:5.2+dfsg-3), libnss-myhostname:amd64 (247.1-3+deb11u1, 247.2-4),
libpython3-stdlib:amd64 (3.9.0-4, 3.9.1-1), elfutils:amd64 (0.182-1,
0.182-2), libhttp-parser2.9:amd64 (2.9.2-2, 2.9.4-4), qemu-utils:amd64
(1:5.1+dfsg-4+b2, 1:5.2+dfsg-3), libsonic0:amd64 (0.2.0-9, 0.2.0-10),
systemd-sysv:amd64 (247.1-3+deb11u1, 247.2-4), libcurl4-openssl-
dev:amd64 (7.72.0-1, 7.74.0-1), libcacard0:amd64 (1:2.7.0-1, 1:2.8.0-
1), libtirpc3:amd64 (1.2.6-3, 1.3.1-1), doc-debian:amd64 (6.4+nmu1,
6.5), libpam-systemd:amd64 (247.1-3+deb11u1, 247.2-4), libtinfo-
dev:amd64 (6.2+20201114-1, 6.2+20201114-2), xz-utils:amd64 (5.2.4-1+b1,
5.2.5-1.0), libjs-prototype:amd64 (1.7.1-3, 1.7.1-3.1), ncurses-
term:amd64 (6.2+20201114-1, 6.2+20201114-2), python3-lib2to3:amd64
(3.8.6-1, 3.9.1-1), python3-pkg-resources:amd64 (50.3.0-1, 51.1.0-1),
gir1.2-goa-1.0:amd64 (3.38.0-1, 3.38.0-3), systemd:amd64 (247.1-
3+deb11u1, 247.2-4), gnome-online-accounts:amd64 (3.38.0-1, 3.38.0-3),
vinagre:amd64 (3.22.0-7, 3.22.0-8), gnome-todo-common:amd64 (3.28.1-5,
3.28.1-6), xserver-xorg-video-ati:amd64 (1:19.1.0-1, 1:19.1.0-2),
ncurses-bin:amd64 (6.2+20201114-1, 6.2+20201114-2), apt-utils:amd64
(2.1.12+deb11u1, 2.1.15), iproute2:amd64 (5.10.0-1, 5.10.0-2),
aspell:amd64 (0.60.8-1, 0.60.8-2), libsmbclient:amd64 (2:4.13.2+dfsg-3,
2:4.13.3+dfsg-1), grub-efi-amd64:amd64 (2.04-11, 2.04-12), libpam-
cgfs:amd64 (1:4.0.4-6, 1:4.0.5-2), libgtk2.0-common:amd64 (2.24.32-5,
2.24.33-1), libnss-systemd:amd64 (247.1-3+deb11u1, 247.2-4), keyboard-
configuration:amd64 (1.199, 1.200), libasound2:amd64 (1.2.4-1, 1.2.4-
1.1), bluez-obexd:amd64 (5.55-1, 5.55-3), libncurses-dev:amd64
(6.2+20201114-1, 6.2+20201114-2), ncurses-base:amd64 (6.2+20201114-1,
6.2+20201114-2), bash:amd64 (5.1-1, 5.1-2), pocketsphinx-en-us:amd64
(0.8+5prealpha+1-12, 0.8+5prealpha+1-13), xserver-xorg-video-
radeon:amd64 (1:19.1.0-1, 1:19.1.0-2), libsidplay1v5:amd64 (1.36.59-
11+b1, 1.36.60-1), intel-media-va-driver:amd64 (20.4.3+dfsg1-1,
20.4.5+dfsg1-1), gir1.2-gst-plugins-bad-1.0:amd64 (1.18.0-2+b1, 1.18.2-
1~deb11u1), grub-efi-amd64-signed:amd64 (1+2.04+11, 1+2.04+12),
pciutils:amd64 (1:3.7.0-4, 1:3.7.0-5), libtirpc-dev:amd64 (1.2.6-3,
1.3.1-1), libgnutls30:amd64 (3.6.15-4, 3.7.0-5), python3-
ptyprocess:amd64 (0.6.0-3, 0.7.0-1), gnome-todo:amd64 (3.28.1-5+b1,
3.28.1-6), apparmor:amd64 (2.13.5-1+b2, 2.13.6-3), libzstd1:amd64
(1.4.5+dfsg-4, 1.4.8+dfsg-1), libdebuginfod1:amd64 (0.182-1, 0.182-2),
cups-core-drivers:amd64 (2.3.3op1-3, 2.3.3op1-4), cups-daemon:amd64
(2.3.3op1-3, 2.3.3op1-4), libpci3:amd64 (1:3.7.0-4, 1:3.7.0-5),
libbluetooth3:amd64 (5.55-1, 5.55-3), python3-reportlab:amd64 (3.5.56-
1, 3.5.57-1), libcairo2:amd64 (1.16.0-4, 1.16.0-5), libcupsimage2:amd64
(2.3.3op1-3, 2.3.3op1-4), liblzma5:amd64 (5.2.4-1+b1, 5.2.5-1.0),
fonts-noto-mono:amd64 (20201109-1, 20201225-1), cups:amd64 (2.3.3op1-3,
2.3.3op1-4), curl:amd64 (7.72.0-1, 7.74.0-1), cups-client:amd64
(2.3.3op1-3, 2.3.3op1-4), cups-ipp-utils:amd64 (2.3.3op1-3, 2.3.3op1-
4), libsphinxbase3:amd64 (0.8+5prealpha+1-11+b2, 0.8+5prealpha+1-12),
libgstreamer-plugins-bad1.0-0:amd64 (1.18.0-2+b1, 1.18.2-1~deb11u1),
python3-chardet:amd64 (3.0.4-7, 4.0.0-1), libjpeg62-turbo:amd64
(1:2.0.5-1.1, 1:2.0.5-2), libheif1:amd64 (1.9.1-1, 1.10.0-2), liblzma-
dev:amd64 (5.2.4-1+b1, 5.2.5-1.0), fonts-liberation2:amd64 (2.1.1-1,
2.1.2-1), libaudio2:amd64 (1.9.4-6+b1, 1.9.4-7), qemu-system-
common:amd64 (1:5.1+dfsg-4+b2, 1:5.2+dfsg-3), fonts-open-sans:amd64
(1.11-1, 1.11-1.1), libcurl3-gnutls:amd64 (7.72.0-1, 7.74.0-1),
libflite1:amd64 (2.2-1, 2.2-2), libatopology2:amd64 (1.2.4-1, 1.2.4-
1.1), libdebconfclient0:amd64 (0.255, 0.256), qemu-system-gui:amd64
(1:5.1+dfsg-4+b2, 1:5.2+dfsg-3), xterm:amd64 (362-1, 363-1),
tzdata:amd64 (2020e-1, 2020f-1)
nd-Date: 2021-01-08 14:52:04

Start-Date: 2021-01-09 09:48:23
Commandline: apt upgrade
Upgrade: liblibreoffice-java:amd64 (1:7.0.4~rc2-1, 1:7.0.4-3),
libreoffice-calc:amd64 (1:7.0.4~rc2-1+b1, 1:7.0.4-3), libpulse0:amd64
(13.0-5, 14.0-2), libreof
fice-gnome:amd64 (1:7.0.4~rc2-1+b1, 1:7.0.4-3), uno-libs-private:amd64
(1:7.0.4~rc2-1+b1, 1:7.0.4-3), libreoffice-base-core:amd64
(1:7.0.4~rc2-1+b1, 1:7.0.4-3
), libglx-mesa0:amd64 (20.2.6-1, 20.3.2-1), libctf-nobfd0:amd64
(2.35.1-6, 2.35.1-7), bubblewrap:amd64 (0.4.1-1, 0.4.1-3), libreoffice-
core:amd64 (1:7.0.4~rc2
-1+b1, 1:7.0.4-3), libraptor2-0:amd64 (2.0.14-1.1, 2.0.14-1.2), gir1.2-
lokdocview-0.1:amd64 (1:7.0.4~rc2-1+b1, 1:7.0.4-3), libpulsedsp:amd64
(13.0-5, 14.0-2),
libreoffice-common:amd64 (1:7.0.4~rc2-1, 1:7.0.4-3), python3-
lib2to3:amd64 (3.9.1-1, 3.9.1-2), pulseaudio:amd64 (13.0-5, 14.0-2),
ure:amd64 (1:7.0.4~rc2-1+b1
, 1:7.0.4-3), libgbm1:amd64 (20.2.6-1, 20.3.2-1), libbinutils:amd64
(2.35.1-6, 2.35.1-7), pulseaudio-utils:amd64 (13.0-5, 14.0-2),
liblibreofficekitgtk:amd64 
(1:7.0.4~rc2-1+b1, 1:7.0.4-3), libreoffice-draw:amd64 (1:7.0.4~rc2-
1+b1, 1:7.0.4-3), libtcl8.6:amd64 (8.6.10+dfsg-1, 8.6.11+dfsg-1),
gir1.2-flatpak-1.0:amd64 
(1.8.4-1, 1.8.4-2), binutils-x86-64-linux-gnu:amd64 (2.35.1-6, 2.35.1-
7), libuno-purpenvhelpergcc3-3:amd64 (1:7.0.4~rc2-1+b1, 1:7.0.4-3),
gvfs-fuse:amd64 (1.4
6.1-1, 1.46.1-2), libuno-cppu3:amd64 (1:7.0.4~rc2-1+b1, 1:7.0.4-3),
libxatracker2:amd64 (20.2.6-1, 20.3.2-1), libbpf0:amd64 (1:0.2-1,
1:0.3-1), libreoffice-im
press:amd64 (1:7.0.4~rc2-1+b1, 1:7.0.4-3), gvfs-common:amd64 (1.46.1-1,
1.46.1-2), gvfs-libs:amd64 (1.46.1-1, 1.46.1-2), libuno-cppuhelpergcc3-
3:amd64 (1:7.0.
4~rc2-1+b1, 1:7.0.4-3), fonts-opensymbol:amd64 (2:102.11+LibO7.0.4~rc2-
1, 2:102.11+LibO7.0.4-3), mesa-va-drivers:amd64 (20.2.6-1, 20.3.2-1),
libgl1-mesa-dri:a
md64 (20.2.6-1, 20.3.2-1), libunoloader-java:amd64 (1:7.0.4~rc2-1,
1:7.0.4-3), libpulse-mainloop-glib0:amd64 (13.0-5, 14.0-2),
libreoffice-style-colibre:amd64
(1:7.0.4~rc2-1, 1:7.0.4-3), libreoffice-writer:amd64 (1:7.0.4~rc2-1+b1,
1:7.0.4-3), libuno-salhelpergcc3-3:amd64 (1:7.0.4~rc2-1+b1, 1:7.0.4-3),
gvfs-backends
:amd64 (1.46.1-1, 1.46.1-2), gvfs:amd64 (1.46.1-1, 1.46.1-2), gvfs-
daemons:amd64 (1.46.1-1, 1.46.1-2), libctf0:amd64 (2.35.1-6, 2.35.1-7),
mesa-vulkan-drivers
:amd64 (20.2.6-1, 20.3.2-1), tcl8.6:amd64 (8.6.10+dfsg-1, 8.6.11+dfsg-
1), binutils-common:amd64 (2.35.1-6, 2.35.1-7), libgit2-1.1:amd64
(1.1.0+dfsg.1-2, 1.1.0
+dfsg.1-4), python3-uno:amd64 (1:7.0.4~rc2-1+b1, 1:7.0.4-3),
pulseaudio-module-bluetooth:amd64 (13.0-5, 14.0-2), libglapi-mesa:amd64
(20.2.6-1, 20.3.2-1), lib
reofficekit-data:amd64 (1:7.0.4~rc2-1, 1:7.0.4-3), libuno-sal3:amd64
(1:7.0.4~rc2-1+b1, 1:7.0.4-3), python3-distutils:amd64 (3.9.1-1, 3.9.1-
2), libflatpak0:am
d64 (1.8.4-1, 1.8.4-2), libegl-mesa0:amd64 (20.2.6-1, 20.3.2-1),
libreoffice-math:amd64 (1:7.0.4~rc2-1+b1, 1:7.0.4-3), libreoffice-
gtk3:amd64 (1:7.0.4~rc2-1+b
1, 1:7.0.4-3), flatpak:amd64 (1.8.4-1, 1.8.4-2), meson:amd64 (0.56.0-
1.1, 0.56.1-1), mesa-vdpau-drivers:amd64 (20.2.6-1, 20.3.2-1),
libreoffice-style-elementa
ry:amd64 (1:7.0.4~rc2-1, 1:7.0.4-3), binutils:amd64 (2.35.1-6, 2.35.1-
7)
End-Date: 2021-01-09 09:51:52



More information about the Pkg-lxc-devel mailing list