Errore "move" live migration: bad handshake

Hi, I’m trying to perform in my environment o vms ( both UBUNTU 18.01), live migration.
The configuration seems to be ok since lxd allow me to launch machine on remote host e move them when they are stopped.The problem is when the machines are running. They are sent to the remote server but, once they arrive, are deleted by the remote host. And the source host gives me the error:

sudo lxc move first fos:fi

Error: Failed instance creation:

  • https://10.0.2.15:8443: Error transferring instance data: websocket: bad handshake
  • https://192.168.56.101:8443: Error transferring instance data: Failed to run: /snap/lxd/current/bin/lxd forkmigrate fi /var/snap/lxd/common/lxd/containers /var/snap/lxd/common/lxd/logs/fi/lxc.conf /tmp/lxd_restore_218477020/final true:
  • https://10.181.60.1:8443: Error transferring instance data: websocket: bad handshake
  • https://[fd42:ab86:8ae1:fa5a::1]:8443: Error transferring instance data: websocket: bad handshake

In addiction, I’m trying to check log files but when I do:
cd /var/snap/lxd/common/lxd/logs/
It gives:
-bash: cd: /var/snap/lxd/common/lxd/logs/: Permission denied

Thanks in advance for the answer

You must be root to access that log path.

Yes, I have already solved that issue modifying the directory permission using chmod 755.
Can I paste here the log files? Because I’m not an expert of this technology and I really don’t understand why it doesn’t work.
This is the source node logs:
Container log:
lxc tre 20200423132351.312 ERROR cgfsng - cgroups/cgfsng.c:mkdir_eexist_on_last:1143 - File exists - Failed to create directory “/sys/fs/cgroup/cpuset//lxc.monitor.tre”
lxc tre 20200423132351.313 ERROR cgfsng - cgroups/cgfsng.c:mkdir_eexist_on_last:1143 - File exists - Failed to create directory “/sys/fs/cgroup/cpuset//lxc.payload.tre”
lxc tre 20200423132351.314 ERROR utils - utils.c:lxc_can_use_pidfd:1834 - Kernel does not support pidfds
Source node log:
t=2020-04-23T20:52:45+0200 lvl=info msg=“Migrating container” actionscript=false created=2020-04-23T15:23:50+0200 ephemeral=false features=1 name=tre predumpdir= project=default statedir= stop=false used=2020-04-23T15:23:51+0200
t=2020-04-23T20:52:45+0200 lvl=info msg=“Migrating container” actionscript=false created=2020-04-23T15:23:50+0200 ephemeral=false features=0 name=tre predumpdir= project=default statedir=/tmp/lxd_checkpoint_969685694 stop=false used=2020-04-23T15:23:51+0200
t=2020-04-23T20:52:45+0200 lvl=info msg=“Migrated container” actionscript=false created=2020-04-23T15:23:50+0200 ephemeral=false features=0 name=tre predumpdir= project=default statedir=/tmp/lxd_checkpoint_969685694 stop=false used=2020-04-23T15:23:51+0200
t=2020-04-23T20:52:45+0200 lvl=info msg=“Migrating container” actionscript=false created=2020-04-23T15:23:50+0200 ephemeral=false features=0 name=tre predumpdir=001 project=default statedir=/tmp/lxd_checkpoint_969685694 stop=false used=2020-04-23T15:23:51+0200
t=2020-04-23T20:52:45+0200 lvl=info msg=“Migrated container” actionscript=false created=2020-04-23T15:23:50+0200 ephemeral=false features=0 name=tre predumpdir=001 project=default statedir=/tmp/lxd_checkpoint_969685694 stop=false used=2020-04-23T15:23:51+0200
t=2020-04-23T20:52:45+0200 lvl=info msg=“Migrating container” actionscript=true created=2020-04-23T15:23:50+0200 ephemeral=false features=0 name=tre predumpdir=003 project=default statedir=/tmp/lxd_checkpoint_969685694 stop=true used=2020-04-23T15:23:51+0200
t=2020-04-23T21:04:04+0200 lvl=info msg=“Pruning expired instance backups”
t=2020-04-23T21:04:04+0200 lvl=info msg=“Done pruning expired instance backups”

the migrationfile states that the predump is been completed successfully

The dest node log:
t=2020-04-23T20:52:45+0200 lvl=info msg=“Creating container” ephemeral=false name=quattro project=default
t=2020-04-23T20:52:45+0200 lvl=info msg=“Created container” ephemeral=false name=quattro project=default
t=2020-04-23T20:52:45+0200 lvl=info msg=“Deleting container” created=2020-04-23T20:52:45+0200 ephemeral=false name=quattro project=default used=1970-01-01T01:00:00+0100
t=2020-04-23T20:52:45+0200 lvl=info msg=“Deleted container” created=2020-04-23T20:52:45+0200 ephemeral=false name=quattro project=default used=1970-01-01T01:00:00+0100
t=2020-04-23T20:52:45+0200 lvl=info msg=“Creating container” ephemeral=false name=quattro project=default
t=2020-04-23T20:52:45+0200 lvl=info msg=“Created container” ephemeral=false name=quattro project=default
t=2020-04-23T20:52:46+0200 lvl=info msg=“Migrating container” actionscript=false created=2020-04-23T20:52:45+0200 ephemeral=false features=0 name=quattro predumpdir= project=default statedir=/tmp/lxd_restore_861060617 stop=false used=1970-01-01T01:00:00+0100
t=2020-04-23T20:52:46+0200 lvl=eror msg=“Error collecting checkpoint log file” err=“lstat /tmp/lxd_restore_861060617/final/restore.log: no such file or directory”
t=2020-04-23T20:52:46+0200 lvl=info msg=“Deleting container” created=2020-04-23T20:52:45+0200 ephemeral=false name=quattro project=default used=1970-01-01T01:00:00+0100
t=2020-04-23T20:52:46+0200 lvl=info msg=“Deleted container” created=2020-04-23T20:52:45+0200 ephemeral=false name=quattro project=default used=1970-01-01T01:00:00+0100
t=2020-04-23T20:52:46+0200 lvl=info msg=“Creating container” ephemeral=false name=quattro project=default
t=2020-04-23T20:52:46+0200 lvl=info msg=“Created container” ephemeral=false name=quattro project=default
t=2020-04-23T20:52:46+0200 lvl=info msg=“Deleting container” created=2020-04-23T20:52:46+0200 ephemeral=false name=quattro project=default used=1970-01-01T01:00:00+0100
t=2020-04-23T20:52:46+0200 lvl=info msg=“Deleted container” created=2020-04-23T20:52:46+0200 ephemeral=false name=quattro project=default used=1970-01-01T01:00:00+0100
t=2020-04-23T20:52:46+0200 lvl=info msg=“Creating container” ephemeral=false name=quattro project=default
t=2020-04-23T20:52:46+0200 lvl=info msg=“Created container” ephemeral=false name=quattro project=default
t=2020-04-23T20:52:46+0200 lvl=info msg=“Deleting container” created=2020-04-23T20:52:46+0200 ephemeral=false name=quattro project=default used=1970-01-01T01:00:00+0100
t=2020-04-23T20:52:46+0200 lvl=info msg=“Deleted container” created=2020-04-23T20:52:46+0200 ephemeral=false name=quattro project=default used=1970-01-01T01:00:00+0100

Using watch lxd list, I’ve seen that the maghine is migrated but once lxc in the dest node try to start it, the error is triggered and the istance deleted.
Thanks in advance for your help