I've successfully built a snap that I can install on my system.
However, it crashes upon start, and I'm not quite sure where to start debugging that crash.
What are the different approaches to debugging an installed app failing to start?
I've successfully built a snap that I can install on my system.
However, it crashes upon start, and I'm not quite sure where to start debugging that crash.
What are the different approaches to debugging an installed app failing to start?
For debugging confined snaps (ie, installed without
--devmode
) there is a snap in the store calledsnappy-debug
that will get better over time but is already useful. To use:This scanlog command will tail the syslog, resolving seccomp syscall numbers and make suggestions on what interfaces to use, changes to make to your snap to work within the sandbox, etc. You can filter by snap with:
Some more tips are covered here:
Using
snap try
can be helpful too.