<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div>But I have built following the instructions of "<span style="color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";">Installing LXD from source" from </span><a href="https://github.com/lxc/lxd/" rel="nofollow" target="_blank">github.com/lxc/lxd/</a></div><div>The only point is that I did not find liblxc-dev in stretch repository.</div><div id="yahoo_quoted_5786692720" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    Le jeudi 30 août 2018 à 17:17:00 UTC+2, Free Ekanayaka <free.ekanayaka@canonical.com> a écrit :
                </div>
                <div><br></div>
                <div><br></div>
                <div><div dir="ltr">It's not the "good one". You need to build it from source from:<br clear="none"><br clear="none">github.com/CanonicalLtd/sqlite<br clear="none"><br clear="none">or there debs here:<br clear="none"><br clear="none"><a shape="rect" href="https://launchpad.net/~dqlite-maintainers/+archive/ubuntu/master" target="_blank">https://launchpad.net/~dqlite-maintainers/+archive/ubuntu/master</a><br clear="none"><br clear="none"><div class="yqt2375375094" id="yqtfd64039"><br clear="none">Pierre Couderc <<a shape="rect" ymailto="mailto:pcouderc1@yahoo.fr" href="mailto:pcouderc1@yahoo.fr">pcouderc1@yahoo.fr</a>> writes:<br clear="none"><br clear="none">> Maybe it is linked or not.<br clear="none">> On another computer, I try to compile on stretch, but I cannot install liblixc-dev (does not iexist une stretch).<br clear="none">> I compile anyway and get  :<br clear="none">>   CCLD     libdqlite.la<br clear="none">> /usr/bin/ld: cannot find -lsqlite3<br clear="none">> collect2: error: ld returned 1 exit status<br clear="none">> Makefile:812: recipe for target 'libdqlite.la' failed<br clear="none">> make[2]: *** [libdqlite.la] Error 1<br clear="none">> make[2]: Leaving directory '/root/go/deps/dqlite'<br clear="none">> Makefile:697: recipe for target 'all' failed<br clear="none">> make[1]: *** [all] Error 2<br clear="none">> make[1]: Leaving directory '/root/go/deps/dqlite'<br clear="none">> Makefile:30: recipe for target 'deps' failed<br clear="none">> make: *** [deps] Error 2<br clear="none">><br clear="none">> So I apt install libsqlite3_dev and then deps build.<br clear="none">> But is it the "good" libsqlite3 ?<br clear="none">>    Le jeudi 30 août 2018 à 15:16:55 UTC+2, Pierre Couderc <<a shape="rect" ymailto="mailto:pcouderc1@yahoo.fr" href="mailto:pcouderc1@yahoo.fr">pcouderc1@yahoo.fr</a>> a écrit :  <br clear="none">>  <br clear="none">>  Well, I prepare it and I send it you. First time I had removed the containers this time I let them. Please consider them as private data<br clear="none">>    Le jeudi 30 août 2018 à 14:56:36 UTC+2, Free Ekanayaka <<a shape="rect" ymailto="mailto:free.ekanayaka@canonical.com" href="mailto:free.ekanayaka@canonical.com">free.ekanayaka@canonical.com</a>> a écrit :  <br clear="none">>  <br clear="none">>  Hello,<br clear="none">><br clear="none">> yes, I believe I understand. What's puzzling is that I should be able to<br clear="none">> reproduce your problem using database. Would you mind sending me again a<br clear="none">> tarball of the /var/lib/lxd/database directory of a LXD which is<br clear="none">> currently broken? Just to double check. I don't have any other idea atm.<br clear="none">><br clear="none">> Pierre Couderc <<a shape="rect" ymailto="mailto:pcouderc1@yahoo.fr" href="mailto:pcouderc1@yahoo.fr">pcouderc1@yahoo.fr</a>> writes:<br clear="none">><br clear="none">>> When I start a new clean lxd instance, I can lxd init, launch first.<br clear="none">>> Then I try to work, it works, I success import from other lxd.<br clear="none">>> At some point, some lxc command fails, such as lxc copy (local).<br clear="none">>> Then nothing works more, any lxc command get soxket error.<br clear="none">>> If I reboot, "lxc ls" gives the same error and the messages that I have sent.<br clear="none">>> I hope I am clear...<br clear="none">>><br clear="none">>>    Le jeudi 30 août 2018 à 14:07:19 UTC+2, Free Ekanayaka <<a shape="rect" ymailto="mailto:free.ekanayaka@canonical.com" href="mailto:free.ekanayaka@canonical.com">free.ekanayaka@canonical.com</a>> a écrit :  <br clear="none">>>  <br clear="none">>>  I have a few questions:<br clear="none">>><br clear="none">>> 1) Does the failure happen when you start with a fresh lxd instance?<br clear="none">>><br clear="none">>> 2) If the answer to 1) is "no", is there are repeatable process that you<br clear="none">>>   have that brings you from a fresh lxd instance to the point were it<br clear="none">>>   crashes with the failure you pasted?<br clear="none">>><br clear="none">>> 3) Regardless of the answers to 1) and 2), does the failure happen<br clear="none">>>   consistently? I.e. does it happen every time you run "lxc ls".<br clear="none">>><br clear="none">>> Free<br clear="none">>><br clear="none">>> Pierre Couderc <<a shape="rect" ymailto="mailto:pcouderc1@yahoo.fr" href="mailto:pcouderc1@yahoo.fr">pcouderc1@yahoo.fr</a>> writes:<br clear="none">>><br clear="none">>>> I am with lasts releases from git. For dqlite, last log is:<br clear="none">>>><br clear="none">>>> commit f160665d9e50e39d156591546732a2e0b3712f73<br clear="none">>>> Author: Free Ekanayaka <<a shape="rect" ymailto="mailto:free.ekanayaka@canonical.com" href="mailto:free.ekanayaka@canonical.com">free.ekanayaka@canonical.com</a>><br clear="none">>>> Date:   Mon Aug 20 19:04:10 2018 +0200<br clear="none">>>><br clear="none">>>> Mmm, I can send you again my tarball but it will be the same as I did send you before...<br clear="none">>>>  It seems th eproblem is linked with my computer... Maybe I could enavle some traces on my computer ?<br clear="none">>>><br clear="none">>>><br clear="none">>>><br clear="none">>>>    Le jeudi 30 août 2018 à 13:02:44 UTC+2, Free Ekanayaka <<a shape="rect" ymailto="mailto:free.ekanayaka@canonical.com" href="mailto:free.ekanayaka@canonical.com">free.ekanayaka@canonical.com</a>> a écrit :  <br clear="none">>>>  <br clear="none">>>>  Hello,<br clear="none">>>><br clear="none">>>> this seems the same failure you reported earlier (thread with subject<br clear="none">>>> "lxd refuses to start ...").<br clear="none">>>><br clear="none">>>> When you sent me the database tarball last time, I didn't see any issue<br clear="none">>>> and I could not reproduce the failure. Can you please double check that<br clear="none">>>> your version of the dqlite C library is up to date (tag v0.2.2) and the<br clear="none">>>> go-dqlite git close under GOPATH actually points to the master version<br clear="none">>>> on github? Just run "git status" under $GOPATH/github.com/CanonicalLtd/go-dqlite<br clear="none">>>> and compare it with github.<br clear="none">>>><br clear="none">>>> If all your dependencies turn out to be up-to-date, you may want to<br clear="none">>>> again send me a tarball of your /var/lib/lxd/database directory, and<br clear="none">>>> I'll double check too.<br clear="none">>>><br clear="none">>>> Free<br clear="none">>>><br clear="none">>>> Pierre Couderc <<a shape="rect" ymailto="mailto:pcouderc1@yahoo.fr" href="mailto:pcouderc1@yahoo.fr">pcouderc1@yahoo.fr</a>> writes:<br clear="none">>>><br clear="none">>>>> Currently I heve many instabilities with lxd.<br clear="none">>>>> When I try to start it, I get :<br clear="none">>>>> <a shape="rect" ymailto="mailto:nous@couderc" href="mailto:nous@couderc">nous@couderc</a>:~$ export GOPATH=~/<a shape="rect" ymailto="mailto:gonous@couderc" href="mailto:gonous@couderc">gonous@couderc</a>:~$ sudo -E <a shape="rect" ymailto="mailto:-sroot@couderc" href="mailto:-sroot@couderc">-sroot@couderc</a>:~# echo $LD_LIBRARY_PATH/home/nous/go/deps/sqlite/.libs/:/home/nous/go/deps/dqlite/.libs/<a shape="rect" ymailto="mailto:root@couderc" href="mailto:root@couderc">root@couderc</a>:~# cd go/<a shape="rect" ymailto="mailto:binroot@couderc" href="mailto:binroot@couderc">binroot@couderc</a>:~/go/bin# lsdeps  fuidshift  lxc  lxc-to-lxd  lxd  lxd-benchmark  lxd-p2c  <a shape="rect" ymailto="mailto:macaroon-identityroot@couderc" href="mailto:macaroon-identityroot@couderc">macaroon-identityroot@couderc</a>:~/go/bin# nohup lxd --group sudo &[1] <a shape="rect" ymailto="mailto:1202root@couderc" href="mailto:1202root@couderc">1202root@couderc</a>:~/go/bin# nohup: les entrées sont ignorées et la sortie est ajoutée à 'nohup.out'lsdeps  fuidshift  lxc  lxc-to-lxd  lxd  lxd-benchmark  lxd-p2c  macaroon-identity  nohup.out[1]+  Termine 2               nohup lxd --group <a shape="rect" ymailto="mailto:sudoroot@couderc" href="mailto:sudoroot@couderc">sudoroot@couderc</a>:~/go/bin# lxc lsError: Get <a shape="rect" href="http://unix.socket/1.0: " target="_blank">http://unix.socket/1.0: </a>dial unix /var/lib/lxd/unix.socket: connect: connection <a shape="rect" ymailto="mailto:refusedroot@couderc" href="mailto:refusedroot@couderc">refusedroot@couderc</a>:~/go/bin# cat nohup.outlvl=warn msg="AppArmor support has been disabled because of lack of kernel support" t=2018-08-30T12:23:21+0200lvl=warn msg="CGroup memory swap accounting is disabled, swap limits will be ignored." t=2018-08-30T12:23:21+0200panic: unknown data type<br clear="none">>>>> goroutine 1 [running]:github.com/CanonicalLtd/go-dqlite/internal/client.(*Rows).Next(0xc42000d660, 0xc4203ec6c0, 0x3, 0x3, 0xc420044070, 0xc4204b8bd0)        /home/nous/go/src/github.com/CanonicalLtd/go-dqlite/internal/client/message.go:549 +0x914github.com/CanonicalLtd/go-dqlite.(*Rows).Next(0xc42000d660, 0xc4203ec6c0, 0x3, 0x3, 0xf24e40, 0xc4200dd268)        /home/nous/go/src/github.com/CanonicalLtd/go-dqlite/driver.go:515 +0x4bdatabase/sql.(*Rows).nextLocked(0xc4201ecc00, 0xc420240000)        /usr/lib/go-1.10/src/database/sql/sql.go:2622 +0xc4database/sql.(*Rows).Next.func1()        /usr/lib/go-1.10/src/database/sql/sql.go:2600 +0x3cdatabase/sql.withLock(0x11fa640, 0xc4201ecc30, 0xc4204b8c88)        /usr/lib/go-1.10/src/database/sql/sql.go:3032 +0x63database/sql.(*Rows).Next(0xc4201ecc00, 0xc4203ed080)        /usr/lib/go-1.10/src/database/sql/sql.go:2599 +0x7agithub.com/lxc/lxd/lxd/db/query.SelectObjects(0xc4201eca00, 0xc4203e9c70, 0xc4203ba000, 0xc0, 0xc4203e9b70, 0x1, 0x1, 0x0, 0x0)        /home/nous/go/src/github.com/lxc/lxd/lxd/db/query/objects.go:18 +0xdagithub.com/lxc/lxd/lxd/db.(*ClusterTx).containerArgsList(0xc4203e9b30, 0x1201201, 0xc4200ba030, 0x0, 0xc420270101, 0xc4201eca00, 0x0)        /home/nous/go/src/github.com/lxc/lxd/lxd/db/containers.go:442 +0x5a7github.com/lxc/lxd/lxd/db.(*ClusterTx).ContainerArgsNodeList(0xc4203e9b30, 0x0, 0x0, 0xc4204b90a8, 0x771d7c, 0xc420018dc0)        /home/nous/go/src/github.com/lxc/lxd/lxd/db/containers.go:347 +0x30main.containerLoadNodeAll.func1(0xc4203e9b30, 0x0, 0x0)        /home/nous/go/src/github.com/lxc/lxd/lxd/container.go:1200 +0x38github.com/lxc/lxd/lxd/db.(*Cluster).transaction.func1.1(0xc4201eca00, 0xc4201eca00, 0x0)        /home/nous/go/src/github.com/lxc/lxd/lxd/db/db.go:309 +0x42github.com/lxc/lxd/lxd/db/query.Transaction(0xc420018dc0, 0xc4204b9130, 0x7, 0x8)        /home/nous/go/src/github.com/lxc/lxd/lxd/db/query/transaction.go:17 +0x5agithub.com/lxc/lxd/lxd/db.(*Cluster).transaction.func1(0x7f3554e01000, 0x0)        /home/nous/go/src/github.com/lxc/lxd/lxd/db/db.go:307 +0x55github.com/lxc/lxd/lxd/db/query.Retry(0xc4204b91e0, 0xc4203e9b30, 0x434b69)        /home/nous/go/src/github.com/lxc/lxd/lxd/db/query/retry.go:20 +0xaegithub.com/lxc/lxd/lxd/db.(*Cluster).transaction(0xc42026ca50, 0xc4204b9290, 0xc42026ca60, 0xc420272b60)        /home/nous/go/src/github.com/lxc/lxd/lxd/db/db.go:306 +0x6dgithub.com/lxc/lxd/lxd/db.(*Cluster).Transaction(0xc42026ca50, 0xc4204b9290, 0x0, 0x0)        /home/nous/go/src/github.com/lxc/lxd/lxd/db/db.go:270 +0x80main.containerLoadNodeAll(0xc4203ec420, 0x1902720, 0x4, 0xc42003e270, 0x2b, 0x1928910)        /home/nous/go/src/github.com/lxc/lxd/lxd/container.go:1198 +0x67main.deviceInotifyDirRescan(0xc4203ec420)        /home/nous/go/src/github.com/lxc/lxd/lxd/devices.go:1844 +0x43main.(*Daemon).init(0xc4202c2750, 0xc4202a78f0, 0x40e446)        /home/nous/go/src/github.com/lxc/lxd/lxd/daemon.go:628 +0x13c4main.(*Daemon).Init(0xc4202c2750, 0xc4202c2750, 0xc420092a80)        /home/nous/go/src/github.com/lxc/lxd/lxd/daemon.go:363 +0x2fmain.(*cmdDaemon).Run(0xc420272980, 0xc4202b8500, 0xc420272a80, 0x0, 0x2, 0x0, 0x0)        /home/nous/go/src/github.com/lxc/lxd/lxd/main_daemon.go:61 +0x266main.(*cmdDaemon).Run-fm(0xc4202b8500, 0xc420272a80, 0x0, 0x2, 0x0, 0x0)        /home/nous/go/src/github.com/lxc/lxd/lxd/main_daemon.go:36 +0x52github.com/spf13/cobra.(*Command).execute(0xc4202b8500, 0xc4200a4160, 0x2, 0x2, 0xc4202b8500, 0xc4200a4160)        /home/nous/go/src/github.com/spf13/cobra/command.go:762 +0x468github.com/spf13/cobra.(*Command).ExecuteC(0xc4202b8500, 0x0, 0xc4202c0c80, 0xc4202c0c80)        /home/nous/go/src/github.com/spf13/cobra/command.go:852 +0x30agithub.com/spf13/cobra.(*Command).Execute(0xc4202b8500, 0xc4202a7e00, 0x1)        /home/nous/go/src/github.com/spf13/cobra/command.go:800 +0x2bmain.main()        /home/nous/go/src/github.com/lxc/lxd/lxd/main.go:164 +<a shape="rect" ymailto="mailto:0xea3root@couderc" href="mailto:0xea3root@couderc">0xea3root@couderc</a>:~/go/bin# ^<a shape="rect" ymailto="mailto:Croot@couderc" href="mailto:Croot@couderc">Croot@couderc</a>:~/go/bin#<br clear="none">>>>><br clear="none">>>>> The only way I have found is to renitialze and import every container, and only when it wants....<br clear="none">>>>> Thank you for any help<br clear="none">>>>> PC<br clear="none">>>>> _______________________________________________<br clear="none">>>>> lxc-users mailing list<br clear="none">>>>> <a shape="rect" ymailto="mailto:lxc-users@lists.linuxcontainers.org" href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br clear="none">>>>> <a shape="rect" href="http://lists.linuxcontainers.org/listinfo/lxc-users " target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users </a>      </div></div></div>
            </div>
        </div></div></body></html>