Summary
mattermost-desktop 5.8.1 amd64 on ubuntu 24.04 won’t start with error message:
[225482:0712/133433.825721:FATAL:credentials.cc(127)] Check failed: . : Permission denied (13) Trace/breakpoint trap (core dumped)
Steps to reproduce
install mattermost-desktop from https://deb.packages.mattermost.com on ubuntu 24.04
Expected behavior
mattermost app starts
Observed behavior
error:
[225482:0712/133433.825721:FATAL:credentials.cc(127)] Check failed: . : Permission denied (13) Trace/breakpoint trap (core dumped)
Reasons: missing apparmor profile
Cf. https://ubuntu.com/blog/ubuntu-23-10-restricted-unprivileged-user-namespaces
Solution:
Create /etc/apparmor.d/mattermost-desktop
:
abi <abi/4.0>,
include <tunables/global>
/opt/Mattermost/mattermost-desktop flags=(default_allow) {
userns,
Site-specific additions and overrides. See local/README for details.
include if exists <local/opt.Mattermost.mattermost-desktop>
}
And then do service apparmor reload
.
It would be good to include this profile directly in the .deb