LXD suddenly stopped working

Hello,

Yesterday I ran an apt upgrade on my ubuntu server and then rebooted. After that all my LXD containers seemed to be down. After some trying to get them back up again, I ran into the following error given by snap:

Sorry, home directories outside of /home needs configuration.
See https://forum.snapcraft.io/t/11209 for details.

After some searching on the internet I found out than you have to now configure the homedirs with snap. So I added every home directory on my system from /etc/passwd. It still gives me the same error. I then uninstalled LXD and snapd and tried reinstalling them both. When I try to install LXD now I get the following:

# SNAPD_DEBUG=1 SNAP_CONFINE_DEBUG=1 snap install lxd
2025/07/16 14:46:05.069258 logger.go:99: DEBUG: restarting into "/snap/snapd/current/usr/bin/snap"
error: cannot perform the following tasks:
- Run install hook of "lxd" snap if present (run hook "install":
-----
Sorry, home directories outside of /home needs configuration.
See https://forum.snapcraft.io/t/11209 for details.
-----)

The error does not say which user it is talking about, which makes it really difficult to find the cause.

The same error. The strange thing is: I have rebooted my machine several times over the past few weeks. Have not added or modified any users or home directories, or changed any configuration. It has been working fine. But suddenly I get this error. I have been working on this problem for about 6 hours now and I can’t get it to work. Please help me. All my services are down, because everything is running in lxd.

I am sorry. We don’t provide LXD support on this forum.

My apologies. Where should I look for LXD support?

1 Like

LXD is a Canonical product.

(or buy a support contract from them).

2 Likes

Managed to resolve it by compiling LXD from source, pointing it to the LXD snap data, running lxd-to-incus and then purging snapd from my system.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.