Hi all,
I currently work on an update to the meta-snappy layer of Yocto.
The layer should run on Yocto Rocko and use snapd 2.30 .
I updated the recipes and the example image provided by meta-snappy builds fine.
When I launch qemu, snap is able to run.
root@qemux86:~# snap --version
snap 2.30
snapd 2.30
series 16
poky 2.4
kernel 4.12.12-yocto-standard
But when I try to install a snap, mounting fails.
root@qemux86:~# snap install hello-world
error: cannot perform the following tasks:
- Mount snap "core" (3602) (exit status 127)
Squashfs mounting works fine.
journalctl -xe
shows:
Dec 20 09:58:47 qemux86 snapd[175]: 2017/12/20 09:58:47.570681 api.go:959: Installing snap "hello-world" revision unset
Dec 20 09:58:53 qemux86 systemd-timesyncd[137]: Synchronized to time server 216.239.35.8:123 (time3.google.com).
Dec 20 10:00:10 qemux86 snapd[175]: panic: runtime error: invalid memory address or nil pointer dereference
Dec 20 10:00:10 qemux86 snapd[175]: [signal SIGSEGV: segmentation violation code=0x1 addr=0xe6b pc=0x825cbca]
Dec 20 10:00:10 qemux86 snapd[175]: goroutine 41 [running]:
Dec 20 10:00:10 qemux86 snapd[175]: github.com/snapcore/snapd/overlord/state.(*State).writing(0xe3f)
Dec 20 10:00:10 qemux86 snapd[175]: ~/workspace/yocto-rocko/eldk/build/qemux86/tmp/work/i586-poky-linux/snapd/2.30-r0/build/src/github.com/snapcore/snapd/overlord/state/state.go:140 +0x1a
Dec 20 10:00:10 qemux86 snapd[175]: github.com/snapcore/snapd/overlord/state.(*Task).SetProgress(0xb76a26fc, 0x966ca248, 0x4, 0x4f7a000, 0x4f7a000)
Dec 20 10:00:10 qemux86 snapd[175]: ~/workspace/yocto-rocko/eldk/build/qemux86/tmp/work/i586-poky-linux/snapd/2.30-r0/build/src/github.com/snapcore/snapd/overlord/state/task.go:249 +0x163
Dec 20 10:00:10 qemux86 snapd[175]: github.com/snapcore/snapd/overlord/snapstate.(*taskProgressAdapter).Finished(0x9625a140)
Dec 20 10:00:10 qemux86 snapd[175]: ~/workspace/yocto-rocko/eldk/build/qemux86/tmp/work/i586-poky-linux/snapd/2.30-r0/build/src/github.com/snapcore/snapd/overlord/snapstate/progress.go:73 +0x75
Dec 20 10:00:10 qemux86 snapd[175]: github.com/snapcore/snapd/store.glob..func1(0x84dcfef0, 0x9625a160, 0x966ca248, 0x4, 0x964e20c0, 0x60, 0x964e2000, 0x59, 0x0, 0x965a6960, ...)
Dec 20 10:00:10 qemux86 snapd[175]: ~/workspace/yocto-rocko/eldk/build/qemux86/tmp/work/i586-poky-linux/snapd/2.30-r0/build/src/github.com/snapcore/snapd/store/store.go:1590 +0x8b0
Dec 20 10:00:10 qemux86 snapd[175]: github.com/snapcore/snapd/store.(*Store).Download(0x965a6960, 0x84dcfef0, 0x9625a160, 0x966ca248, 0x4, 0x96630150, 0x23, 0x9626a120, 0x86a4d00, 0x9625a140, ...)
Dec 20 10:00:10 qemux86 snapd[175]: ~/workspace/yocto-rocko/eldk/build/qemux86/tmp/work/i586-poky-linux/snapd/2.30-r0/build/src/github.com/snapcore/snapd/store/store.go:1473 +0x34b
Dec 20 10:00:10 qemux86 snapd[175]: github.com/snapcore/snapd/overlord/snapstate.(*SnapManager).doDownloadSnap(0x9659f590, 0x96294460, 0x9623b860, 0x0, 0x831dde5)
Dec 20 10:00:10 qemux86 snapd[175]: ~/workspace/yocto-rocko/eldk/build/qemux86/tmp/work/i586-poky-linux/snapd/2.30-r0/build/src/github.com/snapcore/snapd/overlord/snapstate/handlers.go:349 +0x2b6
Dec 20 10:00:10 qemux86 snapd[175]: github.com/snapcore/snapd/overlord/snapstate.(*SnapManager).(github.com/snapcore/snapd/overlord/snapstate.doDownloadSnap)-fm(0x96294460, 0x9623b860, 0x9644aa20, 0x1)
Dec 20 10:00:10 qemux86 snapd[175]: ~/workspace/yocto-rocko/eldk/build/qemux86/tmp/work/i586-poky-linux/snapd/2.30-r0/build/src/github.com/snapcore/snapd/overlord/snapstate/snapmgr.go:297 +0x3c
Dec 20 10:00:10 qemux86 snapd[175]: github.com/snapcore/snapd/overlord/state.(*TaskRunner).run.func1(0x0, 0x0)
Dec 20 10:00:10 qemux86 snapd[175]: ~/workspace/yocto-rocko/eldk/build/qemux86/tmp/work/i586-poky-linux/snapd/2.30-r0/build/src/github.com/snapcore/snapd/overlord/state/taskrunner.go:146 +0x58
Dec 20 10:00:10 qemux86 snapd[175]: github.com/snapcore/snapd/vendor/gopkg.in/tomb%2ev2.(*Tomb).run(0x9623b860, 0x9625a420)
Dec 20 10:00:10 qemux86 snapd[175]: ~/workspace/yocto-rocko/eldk/build/qemux86/tmp/work/i586-poky-linux/snapd/2.30-r0/build/src/github.com/snapcore/snapd/vendor/gopkg.in/tomb.v2/tomb.go:163 +0x22
Dec 20 10:00:10 qemux86 snapd[175]: created by github.com/snapcore/snapd/vendor/gopkg.in/tomb%2ev2.(*Tomb).Go
Dec 20 10:00:10 qemux86 snapd[175]: ~/workspace/yocto-rocko/eldk/build/qemux86/tmp/work/i586-poky-linux/snapd/2.30-r0/build/src/github.com/snapcore/snapd/vendor/gopkg.in/tomb.v2/tomb.go:159 +0xe4
Dec 20 10:00:10 qemux86 systemd[1]: [[0;1;39msnapd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT[[0m
Dec 20 10:00:10 qemux86 systemd[1]: [[0;1;39msnapd.service: Unit entered failed state.[[0m
Dec 20 10:00:10 qemux86 systemd[1]: [[0;1;39msnapd.service: Failed with result 'exit-code'.[[0m
Dec 20 10:00:10 qemux86 systemd[1]: snapd.service: Service hold-off time over, scheduling restart.
Dec 20 10:00:10 qemux86 systemd[1]: Stopped Snappy daemon.
-- Subject: Unit snapd.service has finished shutting down
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit snapd.service has finished shutting down.
Dec 20 10:00:10 qemux86 systemd[1]: Starting Snappy daemon...
-- Subject: Unit snapd.service has begun start-up
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit snapd.service has begun starting up.
Dec 20 10:00:11 qemux86 snapd[211]: AppArmor status: apparmor not enabled
Dec 20 10:00:11 qemux86 snapd[211]: 2017/12/20 10:00:11.353047 daemon.go:306: st
arted snapd/2.30 (series 16; classic; devmode) poky/2.4 (i386) linux/4.12.12-yocto-standard.
Dec 20 10:00:11 qemux86 systemd[1]: Started Snappy daemon.
-- Subject: Unit snapd.service has finished start-up
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit snapd.service has finished starting up.
--
-- The start-up result is done.
Dec 20 10:01:11 qemux86 snapd[211]: 2017/12/20 10:01:11.126427 handlers.go:305:
Reported install problem for "core" as b4946dea-e56c-11e7-9a05-fa163eec78fa OOPSID
Dec 20 10:13:43 qemux86 systemd[1]: Starting Cleanup of Temporary Directories...
-- Subject: Unit systemd-tmpfiles-clean.service has begun start-up
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-tmpfiles-clean.service has begun starting up.
Dec 20 10:13:44 qemux86 systemd[1]: Started Cleanup of Temporary Directories.
-- Subject: Unit systemd-tmpfiles-clean.service has finished start-up
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-tmpfiles-clean.service has finished starting up.
--
-- The start-up result is done.
Does anybody know, what I did wrong? Could a missing feature in Yocto Rocko or wrong settings for qemu result in this?
And how could I get more debug information?
Thanks for any help,
PSGXerus