[lxc-users] LXD enters failed state when auto_update is on

John Seland mail at johnseland.com
Fri Jun 30 09:33:48 UTC 2017


I was having an issue with lxd using an image from the latest daily 
build of artful 17.10 in that lxd entered failed state when starting. If 
images auto_update was set to 1, lxd would enter failed state when the 
trying to download from https://cloud-images.ubuntu.com/daily.
The issue ocurred after updating lxd from 2.14 to 2.15.
As lxd would not start I had to edit the lxd.db directly. Disabling 
auto_update using sqlite3 fixed the issue: sqlite> update images set 
auto_update=0 where id=8;

Lxd is running OK now but where lies the problem?
Is it the auto_update? Is it the daily image download?
Maybe using a daily build 17.10 image is not a good idea?
Is the default for auto_update enabled or disabled?

The listing from my other hosts list the following:
H1
17.04 Auto update: disabled
17.10 Auto update: disabled (was enabled and caused a problem)
H2
16.04 Auto update: disabled
16.10 Auto update: enabled
17.04 Auto update: enabled
H3
16.10 Auto update: enabled

Host: Ubuntu 17.04, Linux 4.10.0-26-generic, LXD 2.15
 From the log files:
alias=17.10 lvl=info msg="Downloading image" 
server=https://cloud-images.ubuntu.com/daily t=2017-06-30T07:59:33+0200

juni 30 07:29:26 control lxd[4413]: panic: runtime error: invalid memory 
address or nil pointer dereference
juni 30 07:29:26 control lxd[4413]: [signal SIGSEGV: segmentation 
violation code=0x1 addr=0x0 pc=0x564206c1d15b]
juni 30 07:29:26 control lxd[4413]: goroutine 271 [running]:
juni 30 07:29:26 control lxd[4413]: panic(0x564206dc8960, 0xc42000e070)
juni 30 07:29:26 control lxd[4413]: 
/usr/lib/go-1.7/src/runtime/panic.go:500 +0x1a1
juni 30 07:29:26 control lxd[4413]: 
github.com/lxc/lxd/shared/cancel.CancelableDownload.func1(0x0, 
0xc420420a20, 0xc4200c42d0, 0xc42
juni 30 07:29:26 control lxd[4413]: 
/build/lxd-fUvRgH/lxd-2.15/obj-x86_64-linux-gnu/src/github.com/lxc/lxd/shared/cancel/can
juni 30 07:29:26 control lxd[4413]: created by 
github.com/lxc/lxd/shared/cancel.CancelableDownload
juni 30 07:29:26 control lxd[4413]: 
/build/lxd-fUvRgH/lxd-2.15/obj-x86_64-linux-gnu/src/github.com/lxc/lxd/shared/cancel/can
juni 30 07:29:26 control systemd[1]: lxd.service: Main process exited, 
code=exited, status=2/INVALIDARGUMENT



More information about the lxc-users mailing list