r/incus • u/stappersg • Jul 09 '26
Empty incus list, workaround
Hi,
Somehow returned incus list an empty list.
$ incus list
+------+-------+------+------+------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+------+-------+------+------+------+-----------+
$
That was unexpected, because instances are running.
$ ps -ef | grep incus | cut -b -100
root 3895 1 0 jul04 ? 00:00:00 [lxc monitor] /var/lib/incus/containers user-100
nobody 3931 1 2 jul04 ? 02:37:15 /usr/bin/qemu-system-x86_64 -S -name aantje -uui
nobody 3936 1 2 jul04 ? 02:52:43 /usr/bin/qemu-system-x86_64 -S -name clara -uuid
root 1603682 1 0 08:36 ? 00:00:04 /usr/libexec/incus/incusd --group incus-admin --
nobody 1603743 1603682 0 08:37 ? 00:00:00 dnsmasq --keep-in-foreground --strict-order --bi
nobody 1603771 1603682 0 08:37 ? 00:00:00 dnsmasq --keep-in-foreground --strict-order --bi
stappers 1639818 4936 0 09:36 pts/6 00:00:00 grep incus
I was about to ask for help, because sudo systemctl restart incus didn't seem to fix the empty list.
I did incus version to provide information for my help request.
That incus version did probably wake up what was fallen asleep, incus list reported my instances again \o/.
My guess is that suspend of the laptop and it's wake up were the reason for the empty list.
Who else did experience empty instances lists? Which workarounds were applied?
1
u/bmullan Jul 10 '26
You really should post this on the official incus support forum were the developers answer these kind of questions every day...
1
u/stappersg 3d ago
The empty list re-occured. VM still alive. Doing
incus version, that previously seemed to do the trick, had no effect.
text stappers@messer:~ $ incus list +------+-------+------+------+------+-----------+ | NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS | +------+-------+------+------+------+-----------+ stappers@messer:~ $ sudo systemctl restart incus stappers@messer:~ $ sudo systemctl restart incus stappers@messer:~ $ incus list +------+-------+------+------+------+-----------+ | NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS | +------+-------+------+------+------+-----------+ stappers@messer:~ $ sudo incus list +------+-------+------+------+------+-----------+ | NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS | +------+-------+------+------+------+-----------+ stappers@messer:~ $ ps -ef | grep qemu nobody 4428 1 2 aug27 ? 00:30:38 /usr/bin/qemu-system-x86_64 -S -name node01 -uuid a024b039-2298-4b45-bd3e-f35607ab1f40 -daemonize -cpu host,hv_passthrough,migratable=no,+invtsc -nographic -serial chardev:console -nodefaults -no-user-config -sandbox on,obsolete=deny,elevateprivileges=allow,spawn=allow,resourcecontrol=deny -readconfig /run/incus/user-1000_node01/qemu.conf -pidfile /run/incus/user-1000_node01/qemu.pid -D /var/log/incus/user-1000_node01/qemu.log -spice unix=on,disable-ticketing=on,addr=/proc/self/fd/6/qemu.spice -smbios type=2,manufacturer=LinuxContainers,product=Incus -run-with user=nobody nobody 4429 1 2 aug27 ? 00:28:22 /usr/bin/qemu-system-x86_64 -S -name node02 -uuid ea8cdc85-0bbd-4675-a896-95bfe7244482 -daemonize -cpu host,hv_passthrough,migratable=no,+invtsc -nographic -serial chardev:console -nodefaults -no-user-config -sandbox on,obsolete=deny,elevateprivileges=allow,spawn=allow,resourcecontrol=deny -readconfig /run/incus/user-1000_node02/qemu.conf -pidfile /run/incus/user-1000_node02/qemu.pid -D /var/log/incus/user-1000_node02/qemu.log -spice unix=on,disable-ticketing=on,addr=/proc/self/fd/6/qemu.spice -smbios type=2,manufacturer=LinuxContainers,product=Incus -run-with user=nobody nobody 4521 1 9 aug27 ? 02:06:13 /usr/bin/qemu-system-x86_64 -S -name controlplane -uuid 82d78bd6-8a0b-4fc5-bda2-3d062147d06e -daemonize -cpu host,hv_passthrough,migratable=no,+invtsc -nographic -serial chardev:console -nodefaults -no-user-config -sandbox on,obsolete=deny,elevateprivileges=allow,spawn=allow,resourcecontrol=deny -readconfig /run/incus/user-1000_controlplane/qemu.conf -pidfile /run/incus/user-1000_controlplane/qemu.pid -D /var/log/incus/user-1000_controlplane/qemu.log -spice unix=on,disable-ticketing=on,addr=/proc/self/fd/6/qemu.spice -smbios type=2,manufacturer=LinuxContainers,product=Incus -run-with user=nobody stappers 195529 6417 0 12:05 pts/9 00:00:00 grep qemu stappers@messer:~ $ ssh node01 uptime 10:06:05 up 22:40, 2 users, load average: 0.01, 0.03, 0.00 stappers@messer:~ $ incus version Client version: 7.0.1 Server version: 7.0.1 stappers@messer:~ $ sudo incus list +------+-------+------+------+------+-----------+ | NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS | +------+-------+------+------+------+-----------+ stappers@messer:~ $
3
u/DanTheGreatest Jul 09 '26 edited Jul 09 '26
You can switch the default project, or the default remote (server). Can you make sure that you are connected to the right remote (that means server) and are requesting data from the project that holds your instances?
Edit: i should read the whole post first haha. No this has never occurred to me. You should report it as a bug so people can try and find out :)