That should make it work. BUT: it’s not persistent for some reason, sometimes you will need to redo the two last apparmor_parser commands again. Particularly it seems to be required after snap updates. Sometimes repeating the whole procedure is also needed.
@markstos - you need this rule: ptrace read peer=unconfined,. This is already fixed in trunk and 2.34 and will be in 2.34.4. For now, you can sudo snap refresh core --edge and it should start to work again.
@jdstrand, I can confirm updating snapd on the edge channel resolves the issue. However, solving this issue revealed a second issue, related to setting the locale:
/snap/bin/ec2-consistent-snapshot -h 2>&1 | head -10
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = "C.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Usage:
ec2-consistent-snapshot [opts] VOLUMEID...
It looks like right now this is something that needs to be addressed when building the snap, which I’ll take care of now. Thanks!
This is a particularly interesting use-case for snaps. A bug was found when using the popular backup tool which was actually in a dependency. However, Ubuntu has not upgraded the dependency in Ubuntu 14.04, so users of traditional packages have no fix.
Since snap bundles dependencies, it potentially resolves the packaging issue.
We also look forward to using package format which is better supported on non-Debian-based systems.
Thanks for the note. I rebooted into a 4.4 Kernel on ubuntu 14.04 and tried running the ec2-consistent-snapshot snap again. I still get “Segmentation fault (core dumped)” When trying just the basic “–help” flag:
/snap/bin/ec2-consistent-snapshot --help
I think I’m going to revert adding the “env LC_ALL=C.UTF-8 LANG=C.UTF-8” prefix to the command. I can live with a locale warning-- it seemed to working before, except for the warning about a bad locale.
I am running openSUSE Tumbleweed and I am having this same error but none of the aforementioned fixes seem to correct the issue. Whether or I run “wavebox” or “env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/wavebox_wavebox.desktop /snap/bin/wavebox %U” I still get:
cannot perform readlinkat() on the mount namespace file descriptor of the init process: Permission denied
I have gone into the apparmor snap.core file and checked that the aforementioned changes were made as well.
Any help here would be great. Also, any resources I can be pointed to to help with snaps on openSUSE would also be great.