You are not logged in.

#1 2021-12-16 18:56:37

Voyager
Member
Registered: 2014-06-10
Posts: 25

mistery with LXD, need help.

Hey guys.
I'm experience very strange problem with LXD. It hangs during the start and it blocks all write operations to root partition.
There are no errors, no hangouts, blackscreens and so on. Looks like the processes just waiting for something.

Do anyone had such problems?
 
This is LXD log from /var/log/lxd/lxd.log. It will be absent after reboot.

t=2021-12-14T20:43:28+0200 lvl=info msg="LXD is starting" mode=normal path=/var/lib/lxd version=4.21
t=2021-12-14T20:43:28+0200 lvl=info msg="Kernel uid/gid map:" 
t=2021-12-14T20:43:28+0200 lvl=info msg=" - u 0 0 4294967295" 
t=2021-12-14T20:43:28+0200 lvl=info msg=" - g 0 0 4294967295" 
t=2021-12-14T20:43:28+0200 lvl=info msg="Configured LXD uid/gid map:" 
t=2021-12-14T20:43:28+0200 lvl=info msg=" - u 0 1000000 1000000000" 
t=2021-12-14T20:43:28+0200 lvl=info msg=" - g 0 1000000 1000000000" 
t=2021-12-14T20:43:28+0200 lvl=info msg="Kernel features:" 
t=2021-12-14T20:43:28+0200 lvl=info msg=" - closing multiple file descriptors efficiently: yes" 
t=2021-12-14T20:43:28+0200 lvl=info msg=" - netnsid-based network retrieval: yes" 
t=2021-12-14T20:43:28+0200 lvl=info msg=" - pidfds: yes" 
t=2021-12-14T20:43:28+0200 lvl=info msg=" - core scheduling: yes" 
t=2021-12-14T20:43:28+0200 lvl=info msg=" - uevent injection: yes" 
t=2021-12-14T20:43:28+0200 lvl=info msg=" - seccomp listener: yes" 
t=2021-12-14T20:43:28+0200 lvl=info msg=" - seccomp listener continue syscalls: yes" 
t=2021-12-14T20:43:28+0200 lvl=info msg=" - seccomp listener add file descriptors: yes" 
t=2021-12-14T20:43:28+0200 lvl=info msg=" - attach to namespaces via pidfds: yes" 
t=2021-12-14T20:43:28+0200 lvl=info msg=" - safe native terminal allocation : yes" 
t=2021-12-14T20:43:28+0200 lvl=info msg=" - unprivileged file capabilities: yes" 
t=2021-12-14T20:43:28+0200 lvl=info msg=" - cgroup layout: cgroup2" 
t=2021-12-14T20:43:28+0200 lvl=warn msg=" - Couldn't find the CGroup hugetlb controller, hugepage limits will be ignored" 
t=2021-12-14T20:43:28+0200 lvl=warn msg=" - Couldn't find the CGroup network priority controller, network priority will be ignored" 
t=2021-12-14T20:43:28+0200 lvl=info msg=" - shiftfs support: no" 
t=2021-12-14T20:43:28+0200 lvl=info msg="- idmapped mounts kernel support: yes" 
t=2021-12-14T20:43:28+0200 lvl=info msg="Initializing local database" 
t=2021-12-14T20:43:28+0200 lvl=info msg="Set client certificate to server certificate" fingerprint=3f249aa2eca1fc46bf4938900b3aa2de8369d70c2c978b734836bdcd7cc56198
t=2021-12-14T20:43:28+0200 lvl=info msg="Starting database node" address=1 id=1 role=voter.

And this is from systemd journal. This also disappears after reboot:

Dec 16 19:46:45 mymachine systemd[1]: Starting Wait for Network to be Configured...
Dec 16 19:46:45 mymachine lxcfs[1875]: Running constructor lxcfs_init to reload liblxcfs
Dec 16 19:46:45 mymachine audit: BPF prog-id=27 op=LOAD
Dec 16 19:46:45 mymachine lxcfs[1875]: mount namespace: 5
Dec 16 19:46:45 mymachine lxcfs[1875]: hierarchies:
Dec 16 19:46:45 mymachine lxcfs[1875]:   0: fd:   6: cpuset,cpu,io,memory,hugetlb,pids,rdma,misc
Dec 16 19:46:45 mymachine lxcfs[1875]: Kernel supports pidfds
Dec 16 19:46:45 mymachine lxcfs[1875]: Kernel does not support swap accounting
Dec 16 19:46:45 mymachine lxcfs[1875]: api_extensions:
Dec 16 19:46:45 mymachine lxcfs[1875]: - cgroups
Dec 16 19:46:45 mymachine lxcfs[1875]: - sys_cpu_online
Dec 16 19:46:45 mymachine lxcfs[1875]: - proc_cpuinfo
Dec 16 19:46:45 mymachine lxcfs[1875]: - proc_diskstats
Dec 16 19:46:45 mymachine lxcfs[1875]: - proc_loadavg
Dec 16 19:46:45 mymachine lxcfs[1875]: - proc_meminfo
Dec 16 19:46:45 mymachine lxcfs[1875]: - proc_stat
Dec 16 19:46:45 mymachine lxcfs[1875]: - proc_swaps
Dec 16 19:46:45 mymachine lxcfs[1875]: - proc_uptime
Dec 16 19:46:45 mymachine lxcfs[1875]: - shared_pidns
Dec 16 19:46:45 mymachine lxcfs[1875]: - cpuview_daemon
Dec 16 19:46:45 mymachine lxcfs[1875]: - loadavg_daemon
Dec 16 19:46:45 mymachine lxcfs[1875]: - pidfds
Dec 16 19:46:45 mymachine kernel: audit: type=1334 audit(1639676805.155:100): prog-id=27 op=LOAD
Dec 16 19:46:45 mymachine audit: BPF prog-id=28 op=LOAD
Dec 16 19:46:45 mymachine audit: BPF prog-id=29 op=LOAD
Dec 16 19:46:45 mymachine kernel: audit: type=1334 audit(1639676805.156:101): prog-id=28 op=LOAD
Dec 16 19:46:45 mymachine kernel: audit: type=1334 audit(1639676805.156:102): prog-id=29 op=LOAD
Dec 16 19:46:45 mymachine kernel: audit: type=1334 audit(1639676805.156:103): prog-id=30 op=LOAD
Dec 16 19:46:45 mymachine audit: BPF prog-id=30 op=LOAD
Dec 16 19:46:45 mymachine audit: BPF prog-id=31 op=LOAD
Dec 16 19:46:45 mymachine kernel: audit: type=1334 audit(1639676805.157:104): prog-id=31 op=LOAD
Dec 16 19:46:45 mymachine audit: BPF prog-id=32 op=LOAD
Dec 16 19:46:45 mymachine audit: BPF prog-id=33 op=LOAD
Dec 16 19:46:45 mymachine audit: BPF prog-id=34 op=LOAD
Dec 16 19:46:45 mymachine audit: BPF prog-id=35 op=LOAD
Dec 16 19:46:45 mymachine audit: BPF prog-id=36 op=LOAD
Dec 16 19:46:45 mymachine audit: BPF prog-id=37 op=LOAD
Dec 16 19:46:45 mymachine audit: BPF prog-id=38 op=LOAD
Dec 16 19:46:45 mymachine audit: BPF prog-id=39 op=LOAD
Dec 16 19:46:45 mymachine audit: BPF prog-id=40 op=LOAD
Dec 16 19:46:45 mymachine systemd[1]: Finished Wait for Network to be Configured.
Dec 16 19:46:45 mymachine audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=systemd-networkd-wait-online comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Dec 16 19:46:45 mymachine systemd[1]: Reached target Network is Online.
Dec 16 19:46:45 mymachine audit: BPF prog-id=0 op=UNLOAD
Dec 16 19:46:45 mymachine audit: BPF prog-id=0 op=UNLOAD
Dec 16 19:46:45 mymachine audit: BPF prog-id=0 op=UNLOAD
Dec 16 19:46:45 mymachine audit: BPF prog-id=0 op=UNLOAD
Dec 16 19:46:45 mymachine audit: BPF prog-id=0 op=UNLOAD
Dec 16 19:46:45 mymachine audit: BPF prog-id=0 op=UNLOAD
Dec 16 19:46:45 mymachine audit: BPF prog-id=0 op=UNLOAD
Dec 16 19:46:45 mymachine audit: BPF prog-id=0 op=UNLOAD
Dec 16 19:46:45 mymachine audit: BPF prog-id=0 op=UNLOAD
Dec 16 19:46:45 mymachine audit: BPF prog-id=0 op=UNLOAD
Dec 16 19:46:45 mymachine audit: BPF prog-id=0 op=UNLOAD
Dec 16 19:46:45 mymachine audit: BPF prog-id=0 op=UNLOAD
Dec 16 19:46:45 mymachine audit: BPF prog-id=0 op=UNLOAD
Dec 16 19:46:45 mymachine audit: BPF prog-id=0 op=UNLOAD
Dec 16 19:46:45 mymachine systemd[1]: Listening on LXD - unix socket.
Dec 16 19:46:45 mymachine systemd[1]: Starting LXD Container Hypervisor...
Dec 16 19:46:45 mymachine lxd[1881]: t=2021-12-16T19:46:45+0200 lvl=warn msg=" - Couldn't find the CGroup hugetlb controller, hugepage limits will be ignored"
Dec 16 19:46:45 mymachine lxd[1881]: t=2021-12-16T19:46:45+0200 lvl=warn msg=" - Couldn't find the CGroup network priority controller, network priority will be ignored"
Dec 16 19:46:45 mymachine kernel: NET: Registered PF_VSOCK protocol family 

Offline

#2 2021-12-16 20:31:03

Maniaxx
Member
From: .de
Registered: 2014-05-14
Posts: 502

Re: mistery with LXD, need help.

Please post /etc/subuid and /etc/subgid.


sys2064

Offline

#3 2021-12-16 22:33:37

Voyager
Member
Registered: 2014-06-10
Posts: 25

Re: mistery with LXD, need help.

Maniaxx wrote:

Please post /etc/subuid and /etc/subgid.

they are equal:

root:100000:65536

I've read our wiki, but those solutions does not work and I'm definitely doing something wrong.   
To be honest just don't know where to start.

Offline

#4 2022-01-06 22:16:47

Voyager
Member
Registered: 2014-06-10
Posts: 25

Re: mistery with LXD, need help.

OK, this is the wired thing that I've ever met.

LXD service won't start and it could hang the system if "fast_commti" option is enabled on root EXT4 partition.
I checked this 3 times so if you experience problems like me disabling "fast_commit" could be an option.

Offline

Board footer

Powered by FluxBB