-
Notifications
You must be signed in to change notification settings - Fork 133
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
AppImage executable won't launch #363
Comments
Thank you for the report. Sounds like this: https://docs.appimage.org/user-guide/troubleshooting/electron-sandboxing.html |
@jfaltermeier, that seems not to be the problem. I use Ubuntu 24.04. and have the same problem.
So no need for the sandbox-fix package. But I found this:
From a sandbox problem with the Arduino IDE discussed on askubuntu, here the corresponding github issue The workaround |
I will take a look. |
Unfortunately, I haven't had much time to look into this. Hopefully i can do so this week. Will take a look if they are related. |
The way forward seems to be an AppArmor profile for each electron-based AppImage: Question is, how to get it included with Ubuntu for them to ship it same as they already do for vscode (so that not each and everyone has to hack those exceptions herself)?
|
Indeed, the problem is that AppImage can be placed anywhere by the user. So apparmor file should be updated each time file is moved. Anyway, I confirm that adding the file on ubuntu 24.04, fix the issue. I put all theia versions in /opt/theira/ and created this file in
|
Thank you @hklene & @tuxPM for the workaround. As far as i understand, this is a common issue for all electron apps running in sandbox mode from Ubuntu 24.04 going forward. This is also indicated by AppArmor shipping the same workaround for most of the applications. |
Strangely, when you install the VS Code snap package, the command in
It looks like starting with |
One idea I've had would be to detect the sandbox problem and to output a message asking to the user to run theia with "--no-sandbox" and maybe a link to some documentation that describes the issue. |
@tsmaeder, @jfaltermeier, and I briefly discussed this. Here is a summary of some thoughts that we had: Regarding the application failing to start on Ubuntu 24.04 due to the user namespace issue:
Regarding preferred installation source for users:
|
Ok, in terms of actions, should we:
|
@JonasHelming that's the idea, yes. |
OK I will do the frst item, @sgraband Can you add --no-sandbox to the AppImage version and let me know when its done? |
Without this the AppImage is not running properly on newer Ubuntu versions. For more information see #363.
@JonasHelming i opened #414 for this. |
The snap install asks right now: My translation:
My gut feeling is, that an app-armor-profile installed by a deb is less off-putting ... At least I suggest concocting and linking an easy language FAQ-article landing page explaining the issue and deeplinking some more background of what other options exist. -- edit -- |
👍 The problem with our current deb is that, IMHO, we currently do not have a maintained update site (that we could also offer as a reliable sources.list entry to users), so the non-fulfilled update scenario is currently the main obstacle to pushing the deb more prominently. Having users that cannot easily upgrade is worse than using snap or having self-updating appimages, especially but not only from a security point of view. So, having an eclipse-foundation-hosted Debian repo providing up-to-date packages for, e.g., amd64 would be an interesting option for Debian-based distros and their users. |
Without this the AppImage is not running properly on newer Ubuntu versions. For more information see #363.
Bug Description:
AppImage executable won't launch without disabling sandboxing.
Application works completely find after adding --no-sandbox command line argument
The following error is shown in the terminal:
[184044:0610/211014.832520:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /tmp/.mount_TheiaI98fe20/chrome-sandbox is owned by root and has mode 4755.
Trace/breakpoint trap (core dumped)
Steps to Reproduce:
Additional Information
The text was updated successfully, but these errors were encountered: