Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Crash]: Ubuntu 24.04 LTS - Core dump exit-code 133 #3050

Open
3 tasks done
floviolleau opened this issue Jun 3, 2024 · 7 comments
Open
3 tasks done

[Crash]: Ubuntu 24.04 LTS - Core dump exit-code 133 #3050

floviolleau opened this issue Jun 3, 2024 · 7 comments

Comments

@floviolleau
Copy link

floviolleau commented Jun 3, 2024

Before you file a crash report

Mattermost Desktop Version

5.8.0

Operating System

Ubuntu Linux 24.04 LTS x64

Mattermost Server Version

9.7.2

What type of crash did you experience?

System crash (The application quit unexpectedly with no warning, or the operating system reported a crash)

Crash report details

Core dump at startup.

Same issue with tar.gz installation and from depots

I deleted ~/.config/Mattermost folder before trying

Log Output

>$ ./mattermost-desktop
[121301:0603/160936.923555:FATAL:credentials.cc(127)] Check failed: . : Permission denied (13)
[1]    121301 trace trap (core dumped)  ./mattermost-desktop

Additional Information

No response

@floviolleau floviolleau changed the title [Crash]: Core dump exit-code 133 [Crash]: Ubuntu 24.04 LTS - Core dump exit-code 133 Jun 3, 2024
@devinbinnie
Copy link
Member

devinbinnie commented Jun 3, 2024

@floviolleau Is this consistently reproducible? Are you running as root or as a regular user?
Can you try the latest nightly build from here: https://community.mattermost.com/core/channels/desktop-builds

@floviolleau
Copy link
Author

floviolleau commented Jun 3, 2024

Hi,

I reproduce it all the time.

No root usage

I don't have account on mattermost community so I cannot download.

I think it is an issue with electron

@floviolleau
Copy link
Author

Hi,

I found the workaround. The issue is for ALL Electron apps.

As a workaround for now, we must do sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0

Here for more information:
electron/electron#41066

@devinbinnie
Copy link
Member

Good find! Closing this issue for now, will re-open if there's anything needed from our end.

@floviolleau
Copy link
Author

floviolleau commented Jun 21, 2024

Hi,

Sorry to add a new comment but you need to reopen the issue.

As mentioned in the issue linked with electron repository, this issue is caused by apparmor's default policy, which lacks a specific profile in the /etc/apparmor.d/ directory.

Mattermost installation need to add a profile in /etc/apparmor.d/ directory.

Here is an exemple from Matrix Element app:

# This profile allows everything and only exists to give the
# application a name instead of having the label "unconfined"

abi <abi/4.0>,
include <tunables/global>

profile element-desktop /opt/Element/element-desktop flags=(unconfined) {
  userns,

# Site-specific additions and overrides. See local/README for details.
  include if exists <local/element-desktop>
}

@hanzei hanzei reopened this Jul 9, 2024
@devinbinnie
Copy link
Member

Thanks for the insight, created a ticket here: https://mattermost.atlassian.net/browse/MM-59486

@devinbinnie
Copy link
Member

Going to open this as HW as we probably won't get to work on this internally anytime soon. If anyone is open to making changes to get this working (perhaps writing a script to drop the profile where it needs to be) I can help guide/merge the changes :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants