[lxc-users] "error: LXD still not running after 5 minutes" - failed lxd.migrate - how to recover?

Tomasz Chmielewski mangoo at wpkg.org
Wed Aug 8 19:06:40 UTC 2018


I've tried to migrate from deb to snap on Ubuntu 18.04.

Unfortunately, lxd.migrate failed with "error: LXD still not running 
after 5 minutes":

root at b1 ~ # lxd.migrate
=> Connecting to source server
=> Connecting to destination server
=> Running sanity checks

=== Source server
LXD version: 3.0.1
LXD PID: 2656
Resources:
   Containers: 6
   Images: 4
   Networks: 1
   Storage pools: 1

=== Destination server
LXD version: 3.3
LXD PID: 12791
Resources:
   Containers: 0
   Images: 0
   Networks: 0
   Storage pools: 0

The migration process will shut down all your containers then move your 
data to the destination LXD.
Once the data is moved, the destination LXD will start and apply any 
needed updates.
And finally your containers will be brought back to their previous 
state, completing the migration.

WARNING: /var/lib/lxd is a mountpoint. You will need to update that 
mount location after the migration.

Are you ready to proceed (yes/no) [default=no]? yes
=> Shutting down the source LXD
=> Stopping the source LXD units
=> Stopping the destination LXD unit
=> Unmounting source LXD paths
=> Unmounting destination LXD paths
=> Wiping destination LXD clean
=> Backing up the database
=> Moving the /var/lib/lxd mountpoint
=> Updating the storage backends
=> Starting the destination LXD
=> Waiting for LXD to come online

error: LXD still not running after 5 minutes.



root at b1 ~ # lxd.migrate
=> Connecting to source server
error: Unable to connect to the source LXD: Get http://unix.socket/1.0: 
dial unix /var/lib/lxd/unix.socket: connect: no such file or directory



root at b1 ~ # lxc list
Error: Get http://unix.socket/1.0: dial unix /var/lib/lxd/unix.socket: 
connect: no such file or directory



Not sure how to recover now? The containers seem intact in /var/lib/lxd/


Tomasz Chmielewski
https://lxadm.com


More information about the lxc-users mailing list