All snap app crashed on ubuntu 18 04

all snap app crashed on ubuntu 18 04.1
telegram

ln: failed to create symbolic link '/home/endrii/snap/telegram-desktop/common/snap/telegram-desktop/common/Documents': No such file or directory
ln: failed to create symbolic link '/home/endrii/snap/telegram-desktop/common/snap/telegram-desktop/common/Desktop': No such file or directory
ln: failed to create symbolic link '/home/endrii/snap/telegram-desktop/common/snap/telegram-desktop/common/Downloads': No such file or directory
ln: failed to create symbolic link '/home/endrii/snap/telegram-desktop/common/snap/telegram-desktop/common/Music': No such file or directory
ln: failed to create symbolic link '/home/endrii/snap/telegram-desktop/common/snap/telegram-desktop/common/Pictures': No such file or directory
ln: failed to create symbolic link '/home/endrii/snap/telegram-desktop/common/snap/telegram-desktop/common/Videos': No such file or directory
ln: failed to create symbolic link '/home/endrii/snap/telegram-desktop/common/snap/telegram-desktop/common/Templates': No such file or directory
QXcbConnection: Could not connect to display :0
Telegram[0x981805]
Telegram[0x981d8c]
Telegram(_ZN15google_breakpad16ExceptionHandler12GenerateDumpEPNS0_12CrashContextE+0x382)[0x1571f80]
Telegram(_ZN15google_breakpad16ExceptionHandler12HandleSignalEiP9siginfo_tPv+0x1c3)[0x1571b5b]
Telegram(_ZN15google_breakpad16ExceptionHandler13SignalHandlerEiP9siginfo_tPv+0x1ab)[0x1571873]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7f2e89299390]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7f2e889c5428]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7f2e889c702a]
Telegram[0x230c327]
Telegram(_ZN14QXcbConnectionC2EP19QXcbNativeInterfacebjPKc+0xe93)[0x19db9f3]
Telegram(_ZN15QXcbIntegrationC1ERK11QStringListRiPPc+0x2ea)[0x19b073a]
Telegram[0x19af30b]
Telegram[0x21d2ffd]
Telegram[0x1ef015d]
Telegram[0x1ef0d65]
Telegram[0x24df4e5]
Telegram[0x1ef233f]
Telegram[0x1bafcc9]
Telegram(_ZN11ApplicationC2EN3gsl8not_nullIPN4Core8LauncherEEERiPPc+0x3a)[0x10c0b6a]
Telegram(_ZN4Core8Launcher18executeApplicationEv+0x8e)[0x9b1a4e]
Telegram(_ZN4Core8Launcher4execEv+0x4d)[0x9b1b7d]
Telegram(main+0x32)[0x82cdc2]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f2e889b0830]
Telegram(_start+0x29)[0x843919]
Аварийный останов (стек памяти сброшен на диск)

discord

/snap/discord/69/bin/desktop-launch: line 23: /home/endrii/.config/user-dirs.dirs: Permission denied
/snap/discord/69/bin/desktop-launch: line 176: $'\321\201\321\202\320\276\320\273': command not found
Gtk-Message: Failed to load module "gail"
Gtk-Message: Failed to load module "atk-bridge"

gnome-system-monitor

/snap/gnome-system-monitor/51/bin/desktop-launch: line 23: /home/endrii/.config/user-dirs.dirs: Permission denied
You need to connect this snap to the gnome platform snap.

You can do this with those commands:
snap install gnome-3-26-1604
snap connect gnome-system-monitor:gnome-3-26-1604 gnome-3-26-1604

(the '3-26-1604' number defines the platform version and might change)

gnome-calculator

/snap/gnome-calculator/180/bin/desktop-launch: line 23: /home/endrii/.config/user-dirs.dirs: Permission denied
You need to connect this snap to the gnome platform snap.

You can do this with those commands:
snap install gnome-3-26-1604
snap connect gnome-calculator:gnome-3-26-1604 gnome-3-26-1604

(the '3-26-1604' number defines the platform version and might change)

endrii@Xenon:~$ snap install gnome-3-26-1604
snap "gnome-3-26-1604" is already installed, see 'snap help
              refresh'

1 Like

I have the same issue here. It looks like all strictly confined, graphical applications I have installed as snaps have stopped working.

I can reproduce the issues above for Discord and Telegram. In addition to that:

$ snap run firefox
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
Error: cannot open display: :0
$ snap run chromium
/snap/chromium/367/bin/desktop-launch: line 23: /home/tim/.config/user-dirs.dirs: Permission denied
Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted
fish: “snap run chromium” terminated by signal SIGTRAP (Trace or breakpoint trap)
$ snap run ohmygiraffe 
xcb_connection_has_error() returned true
shm_open() failed: Permission denied
AL lib: (WW) alc_initconfig: Failed to initialize backend "pulse"
ALSA lib conf.c:3750:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM default
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': No such file or directory
Could not open device.
/snap/ohmygiraffe/3/bin/launch_omg: line 59: 13584 Segmentation fault      (core dumped) $SNAP/usr/bin/love $SNAP/oh-my-giraffe.love

This seems to be a really weird problem.
It looks like the applications work again after switching the channels: For example, I was on edge on telegram-desktop.

snap refresh telegram-desktop --stable
snap run telegram-desktop
snap refresh telegram-desktop --edge
snap run telegram-desktop

… and now I’m unable to reproduce the issue for Telegram, while for the other snaps the issue still persists.

I could also get Minecraft and Firefox working again using the same method. I will leave Chromium broken in case I can use it to provide any info in order to help debugging this ^^

Can you provide the output of:

  • snap version
  • snap list
  • snap interfaces
  • dmesg |grep DENIED when running chromium/ohmygiraffe, provided you are on Ubuntu

Also, do you have an nvidia card?

It looks like, somehow, some (all?) the slots got disconnected, leading to various types of denials that prevent the confined applications from working. This would explain why switching channels appears to fix the issue, because the operation effectively installs a new version of the snap, and re-executes all the interface connections.

2 Likes

Sure.

$ snap version
snap    2.34.2+18.04
snapd   2.34.2+18.04
series  16
ubuntu  18.04
kernel  4.15.0-29-generic
$ snap list
Name                     Version             Rev   Tracking  Publisher       Notes
atom                     1.28.2              185   stable    snapcrafters    classic
cavestory                2.6.2-snap1         7     edge      timsueberkrueb  devmode
chromium                 67.0.3396.99        367   stable    canonical       -
clion                    2018.2              34    stable    jetbrains       classic
communitheme             0.1                 679   stable    didrocks        -
core                     16-2.33.1           4917  stable    canonical       core
discord                  0.0.5               69    stable    snapcrafters    -
docker                   17.06.2-ce          179   stable    docker-inc      -
emoj                     0.3.0               1     stable    popey           -
firefox                  61.0.1-1            107   stable    mozilla         -
gimp                     2.10.0              40    stable    snapcrafters    -
gnome-3-26-1604          3.26.0              70    stable/…  canonical       -
gnome-calculator         3.28.2              180   stable/…  canonical       -
gnome-characters         3.28.2              103   stable/…  canonical       -
gnome-logs               3.28.2              37    stable/…  canonical       -
gnome-system-monitor     3.28.2              51    stable/…  canonical       -
godot                    3.0.4               24    stable    popey           -
gtk-common-themes        0.1                 319   stable    canonical       -
htop                     2.2.0               847   stable    maxiberta       -
intellij-idea-community  2018.2              68    stable    jetbrains       classic
libreoffice              6.0.5.2             71    stable    canonical       -
lxd                      3.3                 8011  stable    canonical       -
minecraft                2.1.1349            15    edge      snapcrafters    -
multipass                2018.6.1            334   beta      canonical       classic
nextcloud-client         2.3.3+gitab40efe    10    stable    nextcloud       -
ohmygiraffe              1.1.0a              3     stable    popey           -
pycharm-professional     2018.2              78    stable    jetbrains       classic
quake-shareware          0.3                 5     stable    njmcphail       -
skype                    8.26.0.70           45    stable    skype           classic
snapcraft                2.42.1              1594  stable    canonical       classic
starruler2               2.0                 1     stable    diddledan       -
telegram-desktop         1.3.10-37-ga919737  251   stable    3v1n0           -
termdown                 1.13.0              8     stable    dpb             -
ubports-installer        0.1.20-beta         170   stable    mariogrip       -
vscode                   1.25.1-1531323788   44    stable    flexiondotorg   classic
wormhole                 0.10.3              23    stable    snapcrafters    -

$ snap interfaces: https://paste.ubuntu.com/p/zTv8MhvHBN/

Chromium:

$ dmesg | grep DENIED

[ 2661.284532] audit: type=1400 audit(1532974959.702:467): apparmor="DENIED" operation="open" profile="snap.chromium.chromium" name="/home/tim/.config/user-dirs.dirs" pid=9287 comm="desktop-launch" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
[ 2661.322538] audit: type=1400 audit(1532974959.742:468): apparmor="DENIED" operation="open" profile="snap.chromium.chromium" name="/home/tim/.config/user-dirs.dirs" pid=9318 comm="head" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
[ 2661.324403] audit: type=1400 audit(1532974959.742:469): apparmor="DENIED" operation="open" profile="snap.chromium.chromium" name="/home/tim/Documents/" pid=9320 comm="head" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
[ 2661.325925] audit: type=1400 audit(1532974959.742:470): apparmor="DENIED" operation="open" profile="snap.chromium.chromium" name="/home/tim/Desktop/" pid=9322 comm="head" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
[ 2661.327512] audit: type=1400 audit(1532974959.746:471): apparmor="DENIED" operation="open" profile="snap.chromium.chromium" name="/home/tim/Downloads/" pid=9324 comm="head" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
[ 2661.329228] audit: type=1400 audit(1532974959.746:472): apparmor="DENIED" operation="open" profile="snap.chromium.chromium" name="/home/tim/Music/" pid=9327 comm="head" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
[ 2661.330922] audit: type=1400 audit(1532974959.750:473): apparmor="DENIED" operation="open" profile="snap.chromium.chromium" name="/home/tim/Pictures/" pid=9329 comm="head" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
[ 2661.332591] audit: type=1400 audit(1532974959.750:474): apparmor="DENIED" operation="open" profile="snap.chromium.chromium" name="/home/tim/Videos/" pid=9331 comm="head" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
[ 2661.334659] audit: type=1400 audit(1532974959.754:475): apparmor="DENIED" operation="open" profile="snap.chromium.chromium" name="/home/tim/Templates/" pid=9333 comm="head" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
[ 2661.338422] audit: type=1400 audit(1532974959.758:476): apparmor="DENIED" operation="open" profile="snap.chromium.chromium" name="/etc/xdg/user-dirs.conf" pid=9334 comm="xdg-user-dirs-u" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0

ohmygiraffe

$ dmesg | grep DENIED

[ 2805.296294] audit: type=1400 audit(1532975103.715:486): apparmor="DENIED" operation="open" profile="snap.ohmygiraffe.ohmygiraffe" name="/etc/openal/alsoft.conf" pid=9562 comm="love" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 2805.303403] audit: type=1400 audit(1532975103.723:487): apparmor="DENIED" operation="open" profile="snap.ohmygiraffe.ohmygiraffe" name="/etc/pulse/client.conf" pid=9562 comm="love" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 2805.303427] audit: type=1400 audit(1532975103.723:488): apparmor="DENIED" operation="connect" profile="snap.ohmygiraffe.ohmygiraffe" pid=9562 comm="love" family="unix" sock_type="stream" protocol=0 requested_mask="send receive connect" denied_mask="send connect" addr=none peer_addr="@/tmp/.X11-unix/X0" peer="unconfined"
[ 2805.303526] audit: type=1400 audit(1532975103.723:489): apparmor="DENIED" operation="mknod" profile="snap.ohmygiraffe.ohmygiraffe" name="/dev/shm/pulse-shm-3902119235" pid=9562 comm="love" requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000
[ 2805.357426] audit: type=1400 audit(1532975103.775:490): apparmor="DENIED" operation="connect" profile="snap.ohmygiraffe.ohmygiraffe" pid=9562 comm="love" family="unix" sock_type="stream" protocol=0 requested_mask="send receive connect" denied_mask="send connect" addr=none peer_addr="@/tmp/.X11-unix/X0" peer="unconfined"

Nevermind my theory, the relevant interfaces appear to be connected.

I have a similar issue with launching minecraft. Ever since the update to minecraft launcher that was made about a week ago, clicking on the minecraft icon does nothing.
I am running on Ubuntu 18.04.1 and snap version 2.34.2+18.04. Minecraft launcher version is 2.1.1218.
I have also tried to remove the installation and install a fresh version, but it didn’t help.

all work after reinstall applications.
thanks !

But does the apparmor policy reflect that? (ie, snapd may list them as connected but regenerated the security policy as if they weren’t)

I’m having this same problem with my new app “heimer”:

$ heimer 
ln: failed to create symbolic link '/home/juzzlin/snap/heimer/1/snap/heimer/1/Documents': No such file or directory
ln: failed to create symbolic link '/home/juzzlin/snap/heimer/1/snap/heimer/1/Desktop': No such file or directory
ln: failed to create symbolic link '/home/juzzlin/snap/heimer/1/snap/heimer/1/Downloads': No such file or directory
ln: failed to create symbolic link '/home/juzzlin/snap/heimer/1/snap/heimer/1/Music': No such file or directory
ln: failed to create symbolic link '/home/juzzlin/snap/heimer/1/snap/heimer/1/Pictures': No such file or directory
ln: failed to create symbolic link '/home/juzzlin/snap/heimer/1/snap/heimer/1/Videos': No such file or directory
ln: failed to create symbolic link '/home/juzzlin/snap/heimer/1/snap/heimer/1/Templates': No such file or directory
[Wed Aug  8 00:42:29 2018] I: Heimer version 1.0.0
[Wed Aug  8 00:42:29 2018] I: Copyright (c) 2018 Jussi Lind
[Wed Aug  8 00:42:29 2018] I: Compiled against Qt version 5.5.1
QXcbConnection: Could not connect to display :1
Aborted (core dumped)

This is a Qt5 app. Any ideas how to fix this? Do I need to add some permissions etc?

Edit: I needed to add X11 to plugs.

snap version
snap 2.37.2
snapd 2.37.2
series 16
ubuntu 18.04
kernel 4.18.0-15-generic

all snaps installed after ubuntu install crash ubuntu. Example spotify/slack/discord

interfaces

Slot                                       Plug

:account-control -
:accounts-service -
:adb-support -
:alsa -
:autopilot-introspection -
:avahi-control -
:avahi-observe -
:block-devices -
:bluetooth-control -
:bluez -
:broadcom-asic-control -
:browser-support gnome-characters,spotify
:calendar-service -
:camera -
:can-bus -
:cifs-mount -
:classic-support -
:contacts-service -
:core-support -
:cpu-control -
:cups-control -
:daemon-notify -
:dcdbas-control -
:desktop gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor,spotify
:desktop-legacy gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor
:device-buttons -
:display-control -
:docker-support -
:dvb -
:firewall-control -
:framebuffer -
:fuse-support -
:gpg-keys -
:gpg-public-keys -
:gpio-memory-control -
:greengrass-support -
:gsettings gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor,spotify
:hardware-observe gnome-system-monitor
:hardware-random-control -
:hardware-random-observe -
:home gnome-characters,gnome-logs,spotify
:hostname-control -
:io-ports-control -
:joystick -
:juju-client-observe -
:kernel-module-control -
:kernel-module-observe -
:kubernetes-support -
:kvm -
:libvirt -
:locale-control -
:log-observe gnome-logs
:lxd-support -
:modem-manager -
:mount-observe gnome-system-monitor
:netlink-audit -
:netlink-connector -
:network gnome-calculator,gnome-logs,spotify
:network-bind -
:network-control -
:network-manager -
:network-observe gnome-system-monitor
:network-setup-control -
:network-setup-observe -
:ofono -
:opengl spotify
:openvswitch -
:openvswitch-support -
:optical-drive -
:password-manager-service -
:personal-files -
:physical-memory-control -
:physical-memory-observe -
:ppp -
:process-control gnome-system-monitor
:pulseaudio spotify
:raw-usb -
:removable-media -
:screen-inhibit-control -
:screencast-legacy -
:shutdown -
:snapd-control -
:ssh-keys -
:ssh-public-keys -
:system-files -
:system-observe gnome-system-monitor
:system-trace -
:time-control -
:timeserver-control -
:timezone-control -
:tpm -
:u2f-devices -
:udisks2 -
:uhid -
:unity7 gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor,spotify
:upower-observe -
:wayland gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor,spotify
:x11 spotify
gnome-3-26-1604:gnome-3-26-1604 gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor
gnome-calculator:gnome-calculator -
gnome-characters:gnome-characters -
gnome-logs:gnome-logs -
gnome-system-monitor:gnome-system-monitor -
gtk-common-themes:gtk-2-themes -
gtk-common-themes:gtk-3-themes gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor
gtk-common-themes:icon-themes gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor
gtk-common-themes:sound-themes gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor
spotify:spotify-mpris -

  •                                      spotify:mount-observe
    

yes have an nvidia 1080TI Geforce with drivers installed

i tried snap install autoskola3d and I got error on this pic, any help please?