[lxc-users] lxd refuses to start ...

Pierre Couderc pierre at couderc.eu
Sun Aug 26 12:12:02 UTC 2018


Sure, I send it you by separate mail


On 08/26/2018 11:01 AM, Free Ekanayaka wrote:
> Hello,
>
> does this happen consistently? If so, could you please make a tarball of
> the <your-lxd-data-dir>/database directory and send it to me? It might
> be some bug in database code.
>
> Free
>
> Pierre Couderc <pierre at couderc.eu> writes:
>
>> ...and I am lost in the messages :
>>
>>
>> nous at couderc:~$ export GOPATH=~/go
>> ...
>>
>> nous at couderc:~/go/bin$ sudo -E -s
>>
>> root at couderc:~/go/bin# nohup lxd --group sudo&
>> [1] 1228
>> root at couderc:~/go/bin# nohup: les entrées sont ignorées et la sortie est
>> ajoutée à 'nohup.out'
>> ls
>> deps  fuidshift  lxc  lxc-to-lxd  lxd  lxd-benchmark  lxd-p2c
>> macaroon-identity  nohup.out
>> [1]+  Termine 2               nohup lxd --group sudo
>> root at couderc:~/go/bin# lxc ls
>> Error: Get http://unix.socket/1.0: dial unix /var/lib/lxd/unix.socket:
>> connect: connection refused
>> root at couderc:~/go/bin# cat nohup.out
>> lvl=warn msg="AppArmor support has been disabled because of lack of
>> kernel support" t=2018-08-26T08:14:44+0200
>> lvl=warn msg="CGroup memory swap accounting is disabled, swap limits
>> will be ignored." t=2018-08-26T08:14:44+0200
>> panic: unknown data type
>>
>> goroutine 1 [running]:
>> github.com/CanonicalLtd/go-dqlite/internal/client.(*Rows).Next(0xc42027a7e0,
>> 0xc4202db620, 0x3, 0x3, 0xc420044070, 0xc42035cbd0)
>> /home/nous/go/src/github.com/CanonicalLtd/go-dqlite/internal/client/message.go:549
>> +0x914
>> github.com/CanonicalLtd/go-dqlite.(*Rows).Next(0xc42027a7e0,
>> 0xc4202db620, 0x3, 0x3, 0xf24e40, 0xc42040b1a0)
>> /home/nous/go/src/github.com/CanonicalLtd/go-dqlite/driver.go:515 +0x4b
>> database/sql.(*Rows).nextLocked(0xc4202e5700, 0xc420250000)
>>           /usr/lib/go-1.10/src/database/sql/sql.go:2622 +0xc4
>> database/sql.(*Rows).Next.func1()
>>           /usr/lib/go-1.10/src/database/sql/sql.go:2600 +0x3c
>> database/sql.withLock(0x11fa640, 0xc4202e5730, 0xc42035cc88)
>>           /usr/lib/go-1.10/src/database/sql/sql.go:3032 +0x63
>> database/sql.(*Rows).Next(0xc4202e5700, 0xc4202dbef0)
>>           /usr/lib/go-1.10/src/database/sql/sql.go:2599 +0x7a
>> github.com/lxc/lxd/lxd/db/query.SelectObjects(0xc4202e5500,
>> 0xc4204f26e0, 0xc4204f80c0, 0xc0, 0xc420430b70, 0x1, 0x1, 0x0, 0x0)
>> /home/nous/go/src/github.com/lxc/lxd/lxd/db/query/objects.go:18 +0xda
>> github.com/lxc/lxd/lxd/db.(*ClusterTx).containerArgsList(0xc4204f25e0,
>> 0x1201201, 0xc4200ba030, 0x0, 0xc420278001, 0xc4202e5500, 0x0)
>> /home/nous/go/src/github.com/lxc/lxd/lxd/db/containers.go:442 +0x5a7
>> github.com/lxc/lxd/lxd/db.(*ClusterTx).ContainerArgsNodeList(0xc4204f25e0,
>> 0x0, 0x0, 0xc42035d0a8, 0x771d7c, 0xc420566e60)
>> /home/nous/go/src/github.com/lxc/lxd/lxd/db/containers.go:347 +0x30
>> main.containerLoadNodeAll.func1(0xc4204f25e0, 0x0, 0x0)
>>           /home/nous/go/src/github.com/lxc/lxd/lxd/container.go:1200 +0x38
>> github.com/lxc/lxd/lxd/db.(*Cluster).transaction.func1.1(0xc4202e5500,
>> 0xc4202e5500, 0x0)
>>           /home/nous/go/src/github.com/lxc/lxd/lxd/db/db.go:309 +0x42
>> github.com/lxc/lxd/lxd/db/query.Transaction(0xc420566e60, 0xc42035d130,
>> 0x7, 0x8)
>> /home/nous/go/src/github.com/lxc/lxd/lxd/db/query/transaction.go:17 +0x5a
>> github.com/lxc/lxd/lxd/db.(*Cluster).transaction.func1(0x7f201e9496c8, 0x0)
>>           /home/nous/go/src/github.com/lxc/lxd/lxd/db/db.go:307 +0x55
>> github.com/lxc/lxd/lxd/db/query.Retry(0xc42035d1e0, 0xc4204f25e0, 0x434b69)
>> /home/nous/go/src/github.com/lxc/lxd/lxd/db/query/retry.go:20 +0xae
>> github.com/lxc/lxd/lxd/db.(*Cluster).transaction(0xc4202f3980,
>> 0xc42035d290, 0xc4202f3990, 0xc42027ab40)
>>           /home/nous/go/src/github.com/lxc/lxd/lxd/db/db.go:306 +0x6d
>> github.com/lxc/lxd/lxd/db.(*Cluster).Transaction(0xc4202f3980,
>> 0xc42035d290, 0x0, 0x0)
>>           /home/nous/go/src/github.com/lxc/lxd/lxd/db/db.go:270 +0x80
>> main.containerLoadNodeAll(0xc4204f0810, 0x1902720, 0x4, 0xc4200b6f00,
>> 0x2b, 0x1928910)
>>           /home/nous/go/src/github.com/lxc/lxd/lxd/container.go:1198 +0x67
>> main.deviceInotifyDirRescan(0xc4204f0810)
>>           /home/nous/go/src/github.com/lxc/lxd/lxd/devices.go:1844 +0x43
>> main.(*Daemon).init(0xc4202caa90, 0xc4202af8f0, 0x40e446)
>>           /home/nous/go/src/github.com/lxc/lxd/lxd/daemon.go:628 +0x13c4
>> main.(*Daemon).Init(0xc4202caa90, 0xc4202caa90, 0xc420092a80)
>>           /home/nous/go/src/github.com/lxc/lxd/lxd/daemon.go:363 +0x2f
>> main.(*cmdDaemon).Run(0xc42027a960, 0xc4202c0500, 0xc42027aa60, 0x0,
>> 0x2, 0x0, 0x0)
>>           /home/nous/go/src/github.com/lxc/lxd/lxd/main_daemon.go:61 +0x266
>> main.(*cmdDaemon).Run-fm(0xc4202c0500, 0xc42027aa60, 0x0, 0x2, 0x0, 0x0)
>>           /home/nous/go/src/github.com/lxc/lxd/lxd/main_daemon.go:36 +0x52
>> github.com/spf13/cobra.(*Command).execute(0xc4202c0500, 0xc4200a4160,
>> 0x2, 0x2, 0xc4202c0500, 0xc4200a4160)
>>           /home/nous/go/src/github.com/spf13/cobra/command.go:762 +0x468
>> github.com/spf13/cobra.(*Command).ExecuteC(0xc4202c0500, 0x0,
>> 0xc4202c8c80, 0xc4202c8c80)
>>           /home/nous/go/src/github.com/spf13/cobra/command.go:852 +0x30a
>> github.com/spf13/cobra.(*Command).Execute(0xc4202c0500, 0xc4202afe00, 0x1)
>>           /home/nous/go/src/github.com/spf13/cobra/command.go:800 +0x2b
>> main.main()
>>           /home/nous/go/src/github.com/lxc/lxd/lxd/main.go:164 +0xea3
>> root at couderc:~/go/bin#
>> root at couderc:~/go/bin# ps aux | grep lx
>> root       359  0.0  0.0  95192  1324 ?        Ssl  08:06   0:00
>> /usr/bin/lxcfs /var/lib/lxcfs/
>> root      1270  0.0  0.0  12784   956 pts/0    S+   08:17   0:00 grep lx
>>
>> _______________________________________________
>> lxc-users mailing list
>> lxc-users at lists.linuxcontainers.org
>> http://lists.linuxcontainers.org/listinfo/lxc-users



More information about the lxc-users mailing list