You are not logged in.

#1 2018-10-31 23:48:22

leave
Member
Registered: 2018-09-14
Posts: 16

[SOLVED] Snaps fail to run

The title explains most of the issue. I have a .desktop entry for the snap mailspring. I noticed it was not working so I ran it from the command line. The output was:

cannot change profile for the next exec call: No such file or directory
snap-update-ns failed with code 1: No such file or directory

I did pacman -Syu and rebooted, still the same. It appears mostly to be an issue with AppArmor because after attempting to run it four times, I checked dmesg and there was this message four times:

[ 1617.678426] audit: type=1400 audit(1541029396.635:164): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="/usr/lib/snapd/snap-confine" name="snap-update-ns.mailspring" pid=4689 comm="snap-confine"

So it looks like AppArmor is blocking snap from using AppArmor? Could somebody help me fix this?

Output of snap version:

snap    2.36-1
snapd   2.36-1
series  16
arch    -
kernel  4.18.16-arch1-1-ARCH

Last edited by leave (2018-11-02 03:55:38)

Offline

#2 2018-11-01 11:03:58

Everette88
Member
Registered: 2018-02-17
Posts: 41

Re: [SOLVED] Snaps fail to run

From https://aur.archlinux.org/packages/snapd/

2.36 is the first release with AppArmor enabled by default on Arch.

If you do not have AppArmor enabled at boot there should be no functional changes visible.

If you wish to use snaps with Apparmor, first make sure that Apparmor is enabled during boot, see https://wiki.archlinux.org/index.php/AppArmor for details. After upgrading the package, you need to do the following steps:

    Reload the profiles: systemctl restart apparmor.service
    Restart snapd: systemctl restart snapd.service
    Load profiles for snaps: systemctl enable --now snapd.apparmor.service

Last edited by Everette88 (2018-11-14 15:39:02)

Offline

#3 2018-11-02 03:38:49

leave
Member
Registered: 2018-09-14
Posts: 16

Re: [SOLVED] Snaps fail to run

systemctl daemon reload fails with

Unknown operation daemon.

Offline

#4 2018-11-02 03:45:08

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,530
Website

Re: [SOLVED] Snaps fail to run

A hyphen was missing as that should have been `systemctl daemon-reload ...`


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2018-11-28 15:55:07

ronaldolobato
Member
From: Brasil
Registered: 2014-06-29
Posts: 4
Website

Re: [SOLVED] Snaps fail to run

I have followed the steps on the wiki about Apparmor and snap, the steps aforementioned. I tried reinstall both after erasing all configuration files, but unsuccessful, it still does not work. Apparmor is enabled and checking dmesg, there is no sign of apparmor is blocking snap.

Last edited by ronaldolobato (2018-11-28 20:16:02)

Offline

Board footer

Powered by FluxBB