All installed snaps are broken after upgrading to Focal

Bug #1873260 reported by Marcelo Cerri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Expired
Undecided
Unassigned

Bug Description

I upgraded my system from Eoan to Focal using do-release-upgrade. The upgrade went fine but I'm noticing that several snaps that were previously installed are now failing to run.

For example:

$ mattermost-desktop
/snap/mattermost-desktop/169/snap/command-chain/desktop-launch: line 50: /home/mhcerri/.config/user-dirs.dirs: Permission denied
sed: can't read /home/mhcerri/.config/user-dirs.dirs: Permission denied
/snap/mattermost-desktop/169/snap/command-chain/desktop-launch: line 238: /home/mhcerri/.config/user-dirs.dirs: Permission denied
cp: cannot open '/home/mhcerri/.config/user-dirs.locale' for reading: Permission denied
/snap/mattermost-desktop/169/snap/command-chain/desktop-launch: line 243: /home/mhcerri/.config/user-dirs.locale: Permission denied
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
/snap/mattermost-desktop/169/snap/command-chain/desktop-launch: line 20: /snap/mattermost-desktop/169/gnome-platform/usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0: No such file or directory
ERROR: /snap/mattermost-desktop/169/gnome-platform/usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0 exited abnormally with status 127
/snap/mattermost-desktop/169/opt/Mattermost/mattermost-desktop: error while loading shared libraries: libgdk_pixbuf-2.0.so.0: cannot open shared object file: No such file or directory

$ solvespace
/snap/solvespace/36/snap/command-chain/desktop-launch: line 50: /home/mhcerri/.config/user-dirs.dirs: Permission denied
sed: can't read /home/mhcerri/.config/user-dirs.dirs: Permission denied
/snap/solvespace/36/snap/command-chain/desktop-launch: line 238: /home/mhcerri/.config/user-dirs.dirs: Permission denied
cp: cannot open '/home/mhcerri/.config/user-dirs.locale' for reading: Permission denied
/snap/solvespace/36/snap/command-chain/desktop-launch: line 243: /home/mhcerri/.config/user-dirs.locale: Permission denied
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
/snap/solvespace/36/snap/command-chain/desktop-launch: line 20: /snap/solvespace/36/gnome-platform/usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0: No such file or directory
ERROR: /snap/solvespace/36/gnome-platform/usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0 exited abnormally with status 127
/snap/solvespace/36/usr/bin/solvespace: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

I had the same issue with spotify and so-trello. Removing the snap and installing them again solved the problem though.

Revision history for this message
Ian Johnson (anonymouse67) wrote :

Hi, can you post the output of the following commands:

journalctl -e --no-pager -u snapd.service

snap changes

ls -lah /var/lib/snapd/seccomp/bpf/

Thanks

Changed in snapd:
status: New → Incomplete
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

When this fails, what is the output of:

snap version

sudo aa-status

Revision history for this message
Marcelo Cerri (mhcerri) wrote :
Download full text (3.5 KiB)

mhcerri@gallifrey ~$ snap version
snap 2.44.3+20.04
snapd 2.44.3+20.04
series 16
ubuntu 20.04
kernel 5.4.0-21-generic
mhcerri@gallifrey ~$ sudo aa-status
[sudo] password for mhcerri:
apparmor module is loaded.
81 profiles are loaded.
76 profiles are in enforce mode.
   /snap/core/4917/usr/lib/snapd/snap-confine
   /snap/core/4917/usr/lib/snapd/snap-confine//mount-namespace-capture-helper
   /snap/core/8935/usr/lib/snapd/snap-confine
   /snap/core/8935/usr/lib/snapd/snap-confine//mount-namespace-capture-helper
   /usr/bin/evince
   /usr/bin/evince-previewer
   /usr/bin/evince-previewer//sanitized_helper
   /usr/bin/evince-thumbnailer
   /usr/bin/evince//sanitized_helper
   /usr/bin/lxc-start
   /usr/bin/man
   /usr/bin/msmtp
   /usr/bin/msmtp//helpers
   /usr/bin/surf
   /usr/lib/NetworkManager/nm-dhcp-client.action
   /usr/lib/NetworkManager/nm-dhcp-helper
   /usr/lib/connman/scripts/dhclient-script
   /usr/lib/cups/backend/cups-pdf
   /usr/lib/lightdm/lightdm-guest-session
   /usr/lib/lightdm/lightdm-guest-session//chromium
   /usr/lib/snapd/snap-confine
   /usr/lib/snapd/snap-confine//mount-namespace-capture-helper
   /usr/lib/telepathy/mission-control-5
   /usr/lib/telepathy/telepathy-*
   /usr/lib/telepathy/telepathy-*//pxgsettings
   /usr/lib/telepathy/telepathy-*//sanitized_helper
   /usr/lib/telepathy/telepathy-ofono
   /usr/sbin/cups-browsed
   /usr/sbin/cupsd
   /usr/sbin/cupsd//third_party
   /usr/sbin/tcpdump
   /{,usr/}sbin/dhclient
   docker-default
   ippusbxd
   libreoffice-senddoc
   libreoffice-soffice//gpg
   libreoffice-xpdfimport
   libvirtd
   libvirtd//qemu_bridge_helper
   lsb_release
   lxc-container-default
   lxc-container-default-cgns
   lxc-container-default-with-mounting
   lxc-container-default-with-nesting
   man_filter
   man_groff
   nvidia_modprobe
   nvidia_modprobe//kmod
   snap-update-ns.chromium
   snap-update-ns.code
   snap-update-ns.core
   snap-update-ns.glances
   snap-update-ns.kernel-tracking-bugs-utility
   snap-update-ns.mattermost-desktop
   snap-update-ns.riot-web
   snap-update-ns.shattered-pixel-dungeon
   snap-update-ns.snapcraft
   snap-update-ns.so-trello
   snap-update-ns.solvespace
   snap-update-ns.spotify
   snap.chromium.chromedriver
   snap.chromium.chromium
   snap.core.hook.configure
   snap.glances.glances
   snap.kernel-tracking-bugs-utility.tb
   snap.mattermost-desktop.mattermost-desktop
   snap.riot-web.riot-web
   snap.shattered-pixel-dungeon.shattered-pixel-dungeon
   snap.so-trello.so-trello
   snap.so-trello.trellotool
   snap.solvespace.cli
   snap.solvespace.solvespace
   snap.spotify.spotify
   udm-extractor
   url-dispatcher-bad-url-helper
   virt-aa-helper
5 profiles are in complain mode.
   libreoffice-oopslash
   libreoffice-soffice
   snap.code.code
   snap.code.url-handler
   snap.snapcraft.snapcraft
9 processes have profiles defined.
9 processes are in enforce mode.
   /usr/sbin/cups-browsed (3987018)
   /usr/sbin/cupsd (3987017)
   /usr/lib/cups/notifier/dbus (3987194) /usr/sbin/cupsd
   /usr/sbin/libvirtd (1657) libvirtd
   /snap/spotify/41/usr/share/spotify/spotify (2437995) snap.spotify.spotify
   /snap/spotify/41/usr/share/spotify/spotify (2438101...

Read more...

Revision history for this message
Marcelo Cerri (mhcerri) wrote :

$ journalctl -e --no-pager -u snapd.service > snapd.txt
mhcerri@gallifrey ~$ snap changes
ID Status Spawn Ready Summary
734 Done yesterday at 17:07 -03 yesterday at 17:08 -03 Auto-refresh snap "chromium"
735 Done today at 08:54 -03 today at 08:54 -03 Remove "so-trello" snap
736 Done today at 08:54 -03 today at 08:55 -03 Install "so-trello" snap

mhcerri@gallifrey ~$ ls -lah /var/lib/snapd/seccomp/bpf/
total 324K
drwxr-xr-x 2 root root 4.0K Apr 16 08:55 .
drwxr-xr-x 4 root root 4.0K Jul 17 2017 ..
-rw-r--r-- 1 root root 152 Mar 12 2019 global.bin
-rw-r--r-- 1 root root 6.6K Apr 15 06:22 snap.chromium.chromedriver.bin
-rw-r--r-- 1 root root 13K Apr 15 06:22 snap.chromium.chromedriver.src
-rw-r--r-- 1 root root 6.6K Apr 15 06:22 snap.chromium.chromium.bin
-rw-r--r-- 1 root root 12K Apr 15 06:22 snap.chromium.chromium.src
-rw-r--r-- 1 root root 14 Apr 15 06:22 snap.code.code.bin
-rw-r--r-- 1 root root 8.8K Apr 15 06:22 snap.code.code.src
-rw-r--r-- 1 root root 14 Apr 15 06:22 snap.code.url-handler.bin
-rw-r--r-- 1 root root 8.8K Apr 15 06:22 snap.code.url-handler.src
-rw-r--r-- 1 root root 6.3K Apr 15 06:22 snap.core.hook.configure.bin
-rw-r--r-- 1 root root 8.8K Apr 15 06:22 snap.core.hook.configure.src
-rw-r--r-- 1 root root 6.3K Apr 15 06:22 snap.glances.glances.bin
-rw-r--r-- 1 root root 8.8K Apr 15 06:22 snap.glances.glances.src
-rw-r--r-- 1 root root 6.3K Apr 15 06:22 snap.kernel-tracking-bugs-utility.tb.bin
-rw-r--r-- 1 root root 8.8K Apr 15 06:22 snap.kernel-tracking-bugs-utility.tb.src
-rw-r--r-- 1 root root 6.3K Apr 15 06:22 snap.mattermost-desktop.mattermost-desktop.bin
-rw-r--r-- 1 root root 8.8K Apr 15 06:22 snap.mattermost-desktop.mattermost-desktop.src
-rw-r--r-- 1 root root 6.3K Apr 15 06:22 snap.riot-web.riot-web.bin
-rw-r--r-- 1 root root 8.8K Apr 15 06:22 snap.riot-web.riot-web.src
-rw-r--r-- 1 root root 6.3K Apr 15 06:22 snap.shattered-pixel-dungeon.shattered-pixel-dungeon.bin
-rw-r--r-- 1 root root 8.8K Apr 15 06:22 snap.shattered-pixel-dungeon.shattered-pixel-dungeon.src
-rw-r--r-- 1 root root 14 Apr 15 06:22 snap.snapcraft.snapcraft.bin
-rw-r--r-- 1 root root 8.8K Apr 15 06:22 snap.snapcraft.snapcraft.src
-rw-r--r-- 1 root root 6.6K Apr 16 08:55 snap.so-trello.so-trello.bin
-rw-r--r-- 1 root root 9.3K Apr 16 08:55 snap.so-trello.so-trello.src
-rw-r--r-- 1 root root 6.6K Apr 16 08:55 snap.so-trello.trellotool.bin
-rw-r--r-- 1 root root 9.3K Apr 16 08:55 snap.so-trello.trellotool.src
-rw-r--r-- 1 root root 6.3K Apr 15 06:22 snap.solvespace.cli.bin
-rw-r--r-- 1 root root 8.8K Apr 15 06:22 snap.solvespace.cli.src
-rw-r--r-- 1 root root 6.3K Apr 15 06:22 snap.solvespace.solvespace.bin
-rw-r--r-- 1 root root 8.8K Apr 15 06:22 snap.solvespace.solvespace.src
-rw-r--r-- 1 root root 6.5K Apr 15 09:07 snap.spotify.spotify.bin
-rw-r--r-- 1 root root 11K Apr 15 09:07 snap.spotify.spotify.src

Revision history for this message
Marcelo Cerri (mhcerri) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for snapd because there has been no activity for 60 days.]

Changed in snapd:
status: Incomplete → Expired
Revision history for this message
Ian Johnson (anonymouse67) wrote :

Hi, is this still happening for you? Are snaps still broken? If so, can you run one such broken snap with

SNAPD_DEBUG=1 SNAP_CONFINE_DEBUG=1 snap run <the-broken-snap>

Changed in snapd:
status: Expired → Incomplete
status: Incomplete → New
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for snapd because there has been no activity for 60 days.]

Changed in snapd:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.