Incus export fails: Error: websocket: close 1006 (abnormal closure): unexpected EOF

Trying to export a VM instance using the incus cli but keep on getting:

truenas_admin@TrueNAS[~]$ sudo incus export umbrel /mnt/pool/umbrel-backup --optimized-storage --instance-only
Error: websocket: close 1006 (abnormal closure): unexpected EOF

Any ideas? Running this from inside of TrueNAS shell on Fangtooth 25.04.

Looks like a crash, can you show journalctl -u incus -n 50?

I found the issue. TrueNAS was writing the backup to /var/lib/incus/backups which they mounted to the boot-pool, which was running out of disk space completely.

boot-pool/ROOT/25.04.1/var/lib/incus                   129G   129G  0G  100% /var/lib/incus

I worked around it, by a “hacky” method of:

rm -rf /var/lib/incus/backups
mkdir /mnt/pool/incus-backups
mkdir /mnt/pool/incus-backups/custom
mkdir /mnt/pool/incus-backups/instances
ln -s /mnt/pool/incus-backups /var/lib/incus/backups

Where /mnt/pool is spinning rust with plenty of free space. It’s running now via:

incus export umbrel --compression=pigz --optimized-storage --instance-only

Hopefully pigz works because using gzip is single threaded and gonna take forever to compress a 1.5TB file.

Ah yeah, see Incus import command on TrueNAS Fangtooth - #2 by stgraber