I used to have two servers with LXD installed via apt managed to configure them so that I could
lxc copy from my main server to the one I wanted to use as a backup host.
I then found out about incremental copies and that I would need a more recent version of LXD to use them, so I migrated both servers to a snap installation of LXD. I re-configured the remote and am back to a state where I can list the remote containers from my main server.
lxc copy is no longer working, neither with nor without the
The error message is
Error: Failed container creation: Error transferring container data: exit status 23.
I already found out that this is an rsync error code and looked in the lxd.log to find out more.
There, I can see the line
t=2019-08-25T22:54:48+0200 lvl=eror msg="Rsync send failed: /var/snap/lxd/common/lxd/snapshots/blog/backup/: exit status 23: rsync: change_dir \"/var/snap/lxd/common/lxd/snapshots/blog/backup\" failed: No such file or directory (2)\nrsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]\n"
It seems that
/var/snap/lxd/common/lxd/snapshots contains symlinks for each of my containers, e.g.,
lrwxrwxrwx 1 root root 56 Jun 2 23:36 blog -> /var/lib/lxd/storage-pools/lxd/containers-snapshots/blog
for the one related to the error message above. However,
/var/lib/lxd/storage-pools/lxd/containers-snapshots/ seems to be missing. Underneath of
/var/lib/lxd/storage-pools/lxd there is only a folder ‘containers’.
Could this indicate an error in the migration process? I can still create snapshots and list them.