Device - x86_64 (AMD64)
Image - Ubuntu Image built with ubuntu-image snap <args>
(with snap built locally in build VM)
Issue - Device fails to boot after fresh first boot when service of a snap stops immediately after starting and subsequent dependent snap fails to start.
Log snippet (look for os-platform whose service stopped after starting. Log marked with ------->ISSUE
):
....
....
Mount snap "os-1000kernel" (unset) | Mounting Mount unit for os-1000kernel, revision x1...
Mount snap "os-1000kernel" (unset) /[ OK ] Mounted Mount unit for os-1000kernel, revision x1.
Mount snap "core18" (1880) - Mounting Mount unit for core18, revision 1880...
[ OK ] Mounted Mount unit for core18, revision 1880.
Mount snap "os-1000gadget" (unset) | Mounting Mount unit for os-1000gadget, revision x1...
Mount snap "os-1000gadget" (unset) /[ OK ] Mounted Mount unit for os-1000gadget, revision x1.
Mount snap "os-hw-wtdog" (unset) - Mounting Mount unit for os-hw-wtdog, revision x1...
Mount snap "os-hw-wtdog" (unset) \[ OK ] Mounted Mount unit for os-hw-wtdog, revision x1.
Mount snap "os-redis" (unset) /[ OK ] Mounted Mount unit for os-redis, revision x1.
Setup snap "os-redis" (x1) security profiles for auto-connections |[ OK ] Started Service for snap application os-redis.redis-server.
Mount snap "os-mosquitto" (unset) - Mounting Mount unit for os-mosquitto, revision x1...
Mount snap "os-mosquitto" (unset) \[ OK ] Mounted Mount unit for os-mosquitto, revision x1.
Setup snap "os-mosquitto" aliases -[ OK ] Started Service for snap application os-mosquitto.mosquitto.
Mount snap "os-core" (unset) - Mounting Mount unit for os-core, revision x1...
[ OK ] Mounted Mount unit for os-core, revision x1.
Start snap "os-core" (unset) services -[ OK ] Started Service for snap application os-core.launch.
Mount snap "os-platform" (unset) \ Mounting Mount unit for os-platform, revision x1...
[ OK ] Mounted Mount unit for os-platform, revision x1.
Set automatic aliases for snap "os-platform" |[ OK ] Started Service for snap application os-platform.launch.
Mount snap "os-dp" (unset) /[ OK ] Stopped Service for snap application os-platform.launch.-------------> ISSUE
[ OK ] Started Service for snap application os-platform.launch.
Mount snap "os-dp" (unset) | Mounting Mount unit for os-dp, revision x1...
Mount snap "os-dp" (unset) /[ OK ] Mounted Mount unit for os-dp, revision x1.
[ OK ] Stopped Service for snap application os-platform.launch.
[ OK ] Started Service for snap application os-platform.launch.
Setup snap "os-dp" (unset) security profiles |[ OK ] Stopped Service for snap application os-platform.launch.
[ OK ] Started Service for snap application os-platform.launch.
Setup snap "os-dp" (unset) security profiles -[ OK ] Stopped Service for snap application os-platform.launch.
....
os-dp
depends on os-platform
to provide some data. But since os-platform
service did not start os-dp
fails to come up and boot never completes.
Is there a way to check why os-platform
service started and stopped immediately?