I ran:
lxc import apps.tar.gz
and the output error is:
Importing instance: 100% (438.62MB/s)Error: Post "http://unix.socket/1.0/instances": EOF
Thanks in advanced for help.
I ran:
lxc import apps.tar.gz
and the output error is:
Importing instance: 100% (438.62MB/s)Error: Post "http://unix.socket/1.0/instances": EOF
Thanks in advanced for help.
Can you please share the output of snap list lxd so we can see the version you are using.
Also do you see anything useful in snap logs lxd -n 200, any stack trace maybe? If so could you please share that too?
snap list lxd:
Name Version Rev Tracking Publisher Notes
lxd 5.21.4-aee7e08 38767 5.21/stable canonical** -
snap logs lxd -n 200:
2026-06-08T19:33:12+08:00 lxd.activate[184760]: => Starting LXD activation
2026-06-08T19:33:12+08:00 lxd.activate[184760]: ==> Loading snap configuration
2026-06-08T19:33:12+08:00 lxd.activate[184760]: ==> Checking for socket activation support
2026-06-08T19:33:12+08:00 lxd.activate[184760]: ==> Setting LXD socket ownership
2026-06-08T19:33:12+08:00 lxd.activate[184760]: ==> Setting LXD user socket ownership
2026-06-08T19:33:12+08:00 lxd.activate[184760]: ==> Checking if LXD needs to be activated
2026-06-08T19:33:12+08:00 systemd[1]: snap.lxd.activate.service: Deactivated successfully.
2026-06-08T19:33:12+08:00 systemd[1]: Finished snap.lxd.activate.service - Service for snap application lxd.activate.
2026-06-08T19:33:12+08:00 systemd[1]: Stopping snap.lxd.daemon.service - Service for snap application lxd.daemon...
2026-06-08T19:33:13+08:00 lxd.daemon[184825]: => Stop reason is: host shutdown
2026-06-08T19:33:13+08:00 lxd.daemon[184825]: => Stopping LXD (with instance shutdown)
2026-06-08T19:33:17+08:00 lxd.daemon[170943]: time="2026-06-08T19:33:17+08:00" level=warning msg="Dqlite last entry" index=0 term=0
2026-06-08T19:33:17+08:00 lxd.daemon[170791]: => LXD exited cleanly
2026-06-08T19:33:18+08:00 lxd.daemon[184825]: ==> Stopped LXD
2026-06-08T19:33:18+08:00 lxd.daemon[184825]: => Stopping LXCFS
2026-06-08T19:33:18+08:00 lxd.daemon[170934]: Running destructor lxcfs_exit
2026-06-08T19:33:19+08:00 lxd.daemon[184825]: ==> Stopped LXCFS
2026-06-08T19:33:19+08:00 lxd.daemon[184825]: => Cleaning up PID files
2026-06-08T19:33:19+08:00 lxd.daemon[184825]: => Cleaning up namespaces
2026-06-08T19:33:19+08:00 lxd.daemon[184825]: => All done
2026-06-08T19:33:19+08:00 systemd[1]: snap.lxd.daemon.service: Deactivated successfully.
2026-06-08T19:33:19+08:00 systemd[1]: Stopped snap.lxd.daemon.service - Service for snap application lxd.daemon.
2026-06-08T19:33:19+08:00 systemd[1]: Started snap.lxd.daemon.service - Service for snap application lxd.daemon.
2026-06-08T19:33:19+08:00 lxd.daemon[190452]: => Preparing the system (38767)
2026-06-08T19:33:19+08:00 lxd.daemon[190452]: ==> Loading snap configuration
2026-06-08T19:33:19+08:00 lxd.daemon[190452]: ==> Setting up mntns symlink (mnt:[4026532741])
2026-06-08T19:33:19+08:00 lxd.daemon[190452]: ==> Setting up kmod wrapper
2026-06-08T19:33:19+08:00 lxd.daemon[190452]: ==> Preparing /boot
2026-06-08T19:33:19+08:00 lxd.daemon[190452]: ==> Preparing a clean copy of /run
2026-06-08T19:33:19+08:00 lxd.daemon[190452]: ==> Preparing /run/bin
2026-06-08T19:33:19+08:00 lxd.daemon[190452]: ==> Preparing a clean copy of /etc
2026-06-08T19:33:19+08:00 lxd.daemon[190452]: ==> Preparing a clean copy of /usr/share/misc
2026-06-08T19:33:19+08:00 lxd.daemon[190452]: ==> Setting up ceph configuration
2026-06-08T19:33:19+08:00 lxd.daemon[190452]: ==> Setting up LVM configuration
2026-06-08T19:33:19+08:00 lxd.daemon[190452]: ==> Setting up OVN configuration
2026-06-08T19:33:19+08:00 lxd.daemon[190452]: ==> Rotating logs
2026-06-08T19:33:19+08:00 lxd.daemon[190452]: ==> Setting up ZFS (2.4)
2026-06-08T19:33:19+08:00 lxd.daemon[190452]: ==> Escaping the systemd cgroups
2026-06-08T19:33:19+08:00 lxd.daemon[190452]: ====> Detected cgroup V2
2026-06-08T19:33:19+08:00 lxd.daemon[190452]: ==> Escaping the systemd process resource limits
2026-06-08T19:33:19+08:00 lxd.daemon[190452]: ==> Enabling LXD UI
2026-06-08T19:33:19+08:00 lxd.daemon[190452]: ==> Exposing LXD documentation
2026-06-08T19:33:19+08:00 lxd.daemon[190452]: => Starting LXCFS
2026-06-08T19:33:19+08:00 lxd.daemon[190598]: Starting LXCFS at lxcfs
2026-06-08T19:33:19+08:00 lxd.daemon[190598]: Using runtime path /run
2026-06-08T19:33:19+08:00 lxd.daemon[190598]: Running lxcfslib_init to reload liblxcfs
2026-06-08T19:33:19+08:00 lxd.daemon[190598]: mount namespace: 7
2026-06-08T19:33:19+08:00 lxd.daemon[190598]: hierarchies:
2026-06-08T19:33:19+08:00 lxd.daemon[190598]: 0: fd: 8: cpuset,cpu,io,memory,hugetlb,pids,rdma,misc,dmem
2026-06-08T19:33:19+08:00 lxd.daemon[190598]: Kernel supports pidfds
2026-06-08T19:33:19+08:00 lxd.daemon[190598]: Kernel supports swap accounting
2026-06-08T19:33:19+08:00 lxd.daemon[190598]: api_extensions:
2026-06-08T19:33:19+08:00 lxd.daemon[190598]: - cgroups
2026-06-08T19:33:19+08:00 lxd.daemon[190598]: - sys_cpu_online
2026-06-08T19:33:19+08:00 lxd.daemon[190598]: - proc_cpuinfo
2026-06-08T19:33:19+08:00 lxd.daemon[190598]: - proc_diskstats
2026-06-08T19:33:19+08:00 lxd.daemon[190598]: - proc_loadavg
2026-06-08T19:33:19+08:00 lxd.daemon[190598]: - proc_meminfo
2026-06-08T19:33:19+08:00 lxd.daemon[190598]: - proc_stat
2026-06-08T19:33:19+08:00 lxd.daemon[190598]: - proc_swaps
2026-06-08T19:33:19+08:00 lxd.daemon[190598]: - proc_uptime
2026-06-08T19:33:19+08:00 lxd.daemon[190598]: - proc_slabinfo
2026-06-08T19:33:19+08:00 lxd.daemon[190598]: - shared_pidns
2026-06-08T19:33:19+08:00 lxd.daemon[190598]: - cpuview_daemon
2026-06-08T19:33:19+08:00 lxd.daemon[190598]: - loadavg_daemon
2026-06-08T19:33:19+08:00 lxd.daemon[190598]: - pidfds
2026-06-08T19:33:20+08:00 lxd.daemon[190452]: => Starting LXD
2026-06-08T19:33:20+08:00 lxd.daemon[190608]: time="2026-06-08T19:33:20+08:00" level=warning msg=" - Couldn't find the CGroup network priority controller, per-instance network priority will be ignored. Please use per-device limits.priority instead"
2026-06-08T19:33:24+08:00 lxd.daemon[190452]: => LXD is ready
2026-06-09T11:29:34+08:00 systemd[1]: Starting snap.lxd.activate.service - Service for snap application lxd.activate...
2026-06-09T11:29:34+08:00 lxd.activate[2957]: => Starting LXD activation
2026-06-09T11:29:34+08:00 lxd.activate[2957]: ==> Loading snap configuration
2026-06-09T11:29:34+08:00 lxd.activate[2957]: ==> Checking for socket activation support
2026-06-09T11:29:34+08:00 lxd.activate[2957]: ==> Setting LXD socket ownership
2026-06-09T11:29:34+08:00 lxd.activate[2957]: ==> Setting LXD user socket ownership
2026-06-09T11:29:34+08:00 lxd.activate[2957]: ==> Checking if LXD needs to be activated
2026-06-09T11:29:36+08:00 systemd[1]: Started snap.lxd.daemon.service - Service for snap application lxd.daemon.
2026-06-09T11:29:36+08:00 lxd.daemon[3118]: => Preparing the system (38767)
2026-06-09T11:29:36+08:00 lxd.daemon[3118]: ==> Loading snap configuration
2026-06-09T11:29:36+08:00 lxd.daemon[3118]: ==> Setting up mntns symlink (mnt:[4026532855])
2026-06-09T11:29:36+08:00 lxd.daemon[3118]: ==> Setting up mount propagation on /var/snap/lxd/common/lxd/storage-pools
2026-06-09T11:29:36+08:00 lxd.daemon[3118]: ==> Setting up mount propagation on /var/snap/lxd/common/lxd/devices
2026-06-09T11:29:36+08:00 lxd.daemon[3118]: ==> Setting up persistent shmounts path
2026-06-09T11:29:36+08:00 lxd.daemon[3250]: Failed to bind-mount /media/.lxd-shmounts to /var/snap/lxd/common/shmounts: No such file or directory
2026-06-09T11:29:36+08:00 lxd.daemon[3118]: ====> Failed to setup shmounts, continuing without
2026-06-09T11:29:36+08:00 lxd.daemon[3118]: ====> Making LXD shmounts use the persistent path
2026-06-09T11:29:36+08:00 lxd.daemon[3118]: ====> Making LXCFS use the persistent path
2026-06-09T11:29:36+08:00 lxd.daemon[3118]: ==> Setting up kmod wrapper
2026-06-09T11:29:36+08:00 lxd.daemon[3118]: ==> Preparing /boot
2026-06-09T11:29:36+08:00 lxd.daemon[3118]: ==> Preparing a clean copy of /run
2026-06-09T11:29:36+08:00 lxd.daemon[3118]: ==> Preparing /run/bin
2026-06-09T11:29:36+08:00 lxd.daemon[3118]: ==> Preparing a clean copy of /etc
2026-06-09T11:29:37+08:00 lxd.daemon[3118]: ==> Preparing a clean copy of /usr/share/misc
2026-06-09T11:29:37+08:00 lxd.daemon[3118]: ==> Setting up ceph configuration
2026-06-09T11:29:37+08:00 lxd.daemon[3118]: ==> Setting up LVM configuration
2026-06-09T11:29:37+08:00 lxd.daemon[3118]: ==> Setting up OVN configuration
2026-06-09T11:29:37+08:00 lxd.daemon[3118]: ==> Rotating logs
2026-06-09T11:29:37+08:00 lxd.daemon[3118]: ==> Setting up ZFS (2.4)
2026-06-09T11:29:37+08:00 lxd.daemon[3118]: ==> Escaping the systemd cgroups
2026-06-09T11:29:37+08:00 lxd.daemon[3118]: ====> Detected cgroup V2
2026-06-09T11:29:37+08:00 lxd.daemon[3118]: ==> Escaping the systemd process resource limits
2026-06-09T11:29:37+08:00 lxd.daemon[3118]: ==> Increasing the number of inotify user watches
2026-06-09T11:29:37+08:00 lxd.daemon[3118]: ==> Increasing the number of keys for a nonroot user
2026-06-09T11:29:37+08:00 lxd.daemon[3118]: ==> Increasing the number of bytes for a nonroot user
2026-06-09T11:29:37+08:00 lxd.daemon[3118]: ==> Disabling Apparmor unprivileged userns mediation
2026-06-09T11:29:37+08:00 lxd.daemon[3118]: ==> Disabling Apparmor unprivileged unconfined mediation
2026-06-09T11:29:37+08:00 lxd.daemon[3118]: ==> Enabling LXD UI
2026-06-09T11:29:37+08:00 lxd.daemon[3118]: ==> Exposing LXD documentation
2026-06-09T11:29:37+08:00 lxd.daemon[3118]: => Starting LXCFS
2026-06-09T11:29:37+08:00 lxd.daemon[3349]: Starting LXCFS at lxcfs
2026-06-09T11:29:38+08:00 lxd.daemon[3349]: Using runtime path /run
2026-06-09T11:29:38+08:00 lxd.daemon[3349]: Running lxcfslib_init to reload liblxcfs
2026-06-09T11:29:38+08:00 lxd.daemon[3349]: mount namespace: 7
2026-06-09T11:29:38+08:00 lxd.daemon[3349]: hierarchies:
2026-06-09T11:29:38+08:00 lxd.daemon[3349]: 0: fd: 8: cpuset,cpu,io,memory,hugetlb,pids,rdma,misc,dmem
2026-06-09T11:29:38+08:00 lxd.daemon[3349]: Kernel supports pidfds
2026-06-09T11:29:38+08:00 lxd.daemon[3349]: Kernel supports swap accounting
2026-06-09T11:29:38+08:00 lxd.daemon[3349]: api_extensions:
2026-06-09T11:29:38+08:00 lxd.daemon[3349]: - cgroups
2026-06-09T11:29:38+08:00 lxd.daemon[3349]: - sys_cpu_online
2026-06-09T11:29:38+08:00 lxd.daemon[3349]: - proc_cpuinfo
2026-06-09T11:29:38+08:00 lxd.daemon[3349]: - proc_diskstats
2026-06-09T11:29:38+08:00 lxd.daemon[3349]: - proc_loadavg
2026-06-09T11:29:38+08:00 lxd.daemon[3349]: - proc_meminfo
2026-06-09T11:29:38+08:00 lxd.daemon[3349]: - proc_stat
2026-06-09T11:29:38+08:00 lxd.daemon[3349]: - proc_swaps
2026-06-09T11:29:38+08:00 lxd.daemon[3349]: - proc_uptime
2026-06-09T11:29:38+08:00 lxd.daemon[3349]: - proc_slabinfo
2026-06-09T11:29:38+08:00 lxd.daemon[3349]: - shared_pidns
2026-06-09T11:29:38+08:00 lxd.daemon[3349]: - cpuview_daemon
2026-06-09T11:29:38+08:00 lxd.daemon[3349]: - loadavg_daemon
2026-06-09T11:29:38+08:00 lxd.daemon[3349]: - pidfds
2026-06-09T11:29:39+08:00 lxd.daemon[3118]: => Starting LXD
2026-06-09T11:29:39+08:00 lxd.daemon[3359]: time="2026-06-09T11:29:39+08:00" level=warning msg=" - Couldn't find the CGroup network priority controller, per-instance network priority will be ignored. Please use per-device limits.priority instead"
2026-06-09T11:29:42+08:00 systemd[1]: snap.lxd.activate.service: Deactivated successfully.
2026-06-09T11:29:42+08:00 systemd[1]: Finished snap.lxd.activate.service - Service for snap application lxd.activate.
2026-06-09T11:29:42+08:00 systemd[1]: snap.lxd.activate.service: Consumed 1.453s CPU time over 8.738s wall clock time, 134.2M memory peak.
2026-06-09T11:29:45+08:00 lxd.daemon[3118]: => LXD is ready
2026-06-09T12:41:02+08:00 systemd[1]: Stopping snap.lxd.daemon.service - Service for snap application lxd.daemon...
2026-06-09T12:41:03+08:00 lxd.daemon[441476]: => Stop reason is: host shutdown
2026-06-09T12:41:03+08:00 lxd.daemon[441476]: => Stopping LXD (with instance shutdown)
2026-06-09T12:45:46+08:00 lxd.daemon[3359]: time="2026-06-09T12:45:46+08:00" level=warning msg="Dqlite last entry" index=0 term=0
2026-06-09T12:45:46+08:00 lxd.daemon[3118]: => LXD exited cleanly
2026-06-09T12:45:46+08:00 lxd.daemon[441476]: ==> Stopped LXD
2026-06-09T12:45:46+08:00 lxd.daemon[441476]: => Stopping LXCFS
2026-06-09T12:45:46+08:00 lxd.daemon[3349]: Running destructor lxcfs_exit
2026-06-09T12:45:47+08:00 lxd.daemon[441476]: ==> Stopped LXCFS
2026-06-09T12:45:47+08:00 lxd.daemon[441476]: => Cleaning up PID files
2026-06-09T12:45:47+08:00 lxd.daemon[441476]: => Cleaning up namespaces
2026-06-09T12:45:47+08:00 lxd.daemon[441476]: => All done
2026-06-09T12:45:47+08:00 systemd[1]: snap.lxd.daemon.service: Deactivated successfully.
2026-06-09T12:45:47+08:00 systemd[1]: Stopped snap.lxd.daemon.service - Service for snap application lxd.daemon.
2026-06-09T12:45:47+08:00 systemd[1]: snap.lxd.daemon.service: Consumed 1.844s CPU time over 1h 16min 11.657s wall clock time, 54.6M memory peak.
2026-06-09T12:45:47+08:00 systemd[1]: Started snap.lxd.daemon.service - Service for snap application lxd.daemon.
2026-06-09T12:45:47+08:00 lxd.daemon[453865]: => Preparing the system (38767)
2026-06-09T12:45:48+08:00 lxd.daemon[453865]: ==> Loading snap configuration
2026-06-09T12:45:48+08:00 lxd.daemon[453865]: ==> Setting up mntns symlink (mnt:[4026532855])
2026-06-09T12:45:48+08:00 lxd.daemon[453865]: ==> Setting up kmod wrapper
2026-06-09T12:45:48+08:00 lxd.daemon[453865]: ==> Preparing /boot
2026-06-09T12:45:48+08:00 lxd.daemon[453865]: ==> Preparing a clean copy of /run
2026-06-09T12:45:48+08:00 lxd.daemon[453865]: ==> Preparing /run/bin
2026-06-09T12:45:48+08:00 lxd.daemon[453865]: ==> Preparing a clean copy of /etc
2026-06-09T12:45:48+08:00 lxd.daemon[453865]: ==> Preparing a clean copy of /usr/share/misc
2026-06-09T12:45:48+08:00 lxd.daemon[453865]: ==> Setting up ceph configuration
2026-06-09T12:45:48+08:00 lxd.daemon[453865]: ==> Setting up LVM configuration
2026-06-09T12:45:48+08:00 lxd.daemon[453865]: ==> Setting up OVN configuration
2026-06-09T12:45:48+08:00 lxd.daemon[453865]: ==> Rotating logs
2026-06-09T12:45:48+08:00 lxd.daemon[453865]: ==> Setting up ZFS (2.4)
2026-06-09T12:45:48+08:00 lxd.daemon[453865]: ==> Escaping the systemd cgroups
2026-06-09T12:45:48+08:00 lxd.daemon[453865]: ====> Detected cgroup V2
2026-06-09T12:45:48+08:00 lxd.daemon[453865]: ==> Escaping the systemd process resource limits
2026-06-09T12:45:48+08:00 lxd.daemon[453865]: ==> Enabling LXD UI
2026-06-09T12:45:48+08:00 lxd.daemon[453865]: ==> Exposing LXD documentation
2026-06-09T12:45:48+08:00 lxd.daemon[453865]: => Starting LXCFS
2026-06-09T12:45:48+08:00 lxd.daemon[454002]: Starting LXCFS at lxcfs
2026-06-09T12:45:48+08:00 lxd.daemon[454002]: Using runtime path /run
2026-06-09T12:45:48+08:00 lxd.daemon[454002]: Running lxcfslib_init to reload liblxcfs
2026-06-09T12:45:48+08:00 lxd.daemon[454002]: mount namespace: 7
2026-06-09T12:45:48+08:00 lxd.daemon[454002]: hierarchies:
2026-06-09T12:45:48+08:00 lxd.daemon[454002]: 0: fd: 8: cpuset,cpu,io,memory,hugetlb,pids,rdma,misc,dmem
2026-06-09T12:45:48+08:00 lxd.daemon[454002]: Kernel supports pidfds
2026-06-09T12:45:48+08:00 lxd.daemon[454002]: Kernel supports swap accounting
2026-06-09T12:45:48+08:00 lxd.daemon[454002]: api_extensions:
2026-06-09T12:45:48+08:00 lxd.daemon[454002]: - cgroups
2026-06-09T12:45:48+08:00 lxd.daemon[454002]: - sys_cpu_online
2026-06-09T12:45:48+08:00 lxd.daemon[454002]: - proc_cpuinfo
2026-06-09T12:45:48+08:00 lxd.daemon[454002]: - proc_diskstats
2026-06-09T12:45:48+08:00 lxd.daemon[454002]: - proc_loadavg
2026-06-09T12:45:48+08:00 lxd.daemon[454002]: - proc_meminfo
2026-06-09T12:45:48+08:00 lxd.daemon[454002]: - proc_stat
2026-06-09T12:45:48+08:00 lxd.daemon[454002]: - proc_swaps
2026-06-09T12:45:48+08:00 lxd.daemon[454002]: - proc_uptime
2026-06-09T12:45:48+08:00 lxd.daemon[454002]: - proc_slabinfo
2026-06-09T12:45:48+08:00 lxd.daemon[454002]: - shared_pidns
2026-06-09T12:45:48+08:00 lxd.daemon[454002]: - cpuview_daemon
2026-06-09T12:45:48+08:00 lxd.daemon[454002]: - loadavg_daemon
2026-06-09T12:45:48+08:00 lxd.daemon[454002]: - pidfds
2026-06-09T12:45:49+08:00 lxd.daemon[453865]: => Starting LXD
2026-06-09T12:45:50+08:00 lxd.daemon[454012]: time="2026-06-09T12:45:50+08:00" level=warning msg=" - Couldn't find the CGroup network priority controller, per-instance network priority will be ignored. Please use per-device limits.priority instead"
2026-06-09T12:45:56+08:00 lxd.daemon[453865]: => LXD is ready
strace is here: Ubuntu Pastebin
output of running with –debugis here: Ubuntu Pastebin
Output from journalctl -f:
Jun 11 14:19:01 sas systemd[10716]: Started snap.lxd.lxc-9df10da9-c703-48e2-bc28-73ffdb1efafb.scope.
Jun 11 14:19:01 sas kernel: kauditd_printk_skb: 18 callbacks suppressed
Jun 11 14:19:01 sas kernel: audit: type=1400 audit(1781158741.361:7306): apparmor="DENIED" operation="open" class="file" profile="snap.lxd.lxc" name="/proc/1888693/mountinfo" pid=1888693 comm="snap-exec" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Jun 11 14:19:19 sas kernel: audit: type=1400 audit(1781158759.505:7307): apparmor="STATUS" operation="profile_load" profile="unconfined" name="lxd_archive-var-snap-lxd-common-lxd-backups-lxd_backup_2402959984" pid=1888765 comm="apparmor_parser"
Jun 11 14:19:19 sas kernel: audit: type=1400 audit(1781158759.552:7308): apparmor="STATUS" operation="profile_remove" profile="unconfined" name="lxd_archive-var-snap-lxd-common-lxd-backups-lxd_backup_2402959984" pid=1888768 comm="apparmor_parser"
Jun 11 14:19:19 sas systemd[10716]: snap.lxd.lxc-9df10da9-c703-48e2-bc28-73ffdb1efafb.scope: Consumed 5.119s CPU time over 18.297s wall clock time, 1.9G memory peak.
Was this apps.tar.gz created with the same version of LXD, or a different one?
Thanks for the idea. Tried to import it using an old lxd (4.0) and it was successfully imported. Upgraded the snap lxd to 5.21 LTS and exported it again then import to my new instance and it worked.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.