-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
FATAL Unable to start riot 1.3.2 after upgrade #10509
Comments
What was the version you upgraded from? |
1.3.0 IIRC |
Same problem appears on flatpak: flathub/im.riot.Riot#59 And I was able to reproduce the issue locally as well. I wonder if we can do anything to help here. |
We did upgrade to Electron 5 as part of the recent release, so it could be related to this. |
It seems related to this issue reported to |
|
Looking at the related Electron issue, what about if you do:
and then test running The above sysctl setting is the default on Ubuntu 18.04, but it may not be enabled on your distro. |
yes, it works with |
Okay, it's good to know there are several possible approaches to get Riot working. This seems to be something that would affect any app using Electron 5 or later. We'll keep watching the Electron packaging tools for any news on the right way to bake in a workaround for this issue, but for now I would suggest using one of the workarounds mentioned above. |
@jryans see electron/electron#17972 (comment). This is intentional. |
I understand that. It's possible the Electron packing tools may add more helpers to smooth over the situation though, and that's what we can watch out for. |
It says
and I believe Riot is using Electron-builder so presumably Riot is just using an old version that doesn’t have this, so we should update |
The related electron-builder issue suggests it's only fixed for snaps, so the full status is unclear. But anyway, it's something to try. |
I have the same issue with Debian Repo and Flatpak installs
|
I face exactly the same situation as @gerroon ! |
@croulibri For Flathub I decided to rollback to 1.3.0 until we found a usable solution, I'll experiment with the disabled sandbox. It's a general hot topic that various electron apps are facing right now. |
Would this work as a workaround?
|
@ quazgar that would not work for the Flathub install. |
@gerg5c42g542g2c54g52c because the workaround has to be implemented in electron-builder |
On Debian Buster, with Riot from Riot repository, doing Thanks @jryans |
But I have to do |
You can make it persist across reboots by editing |
So without the hacky sysctl workaround, riot-web is broken on Debian right now? Just rebooted and discovered I couldn't open riot :/ |
As I understand it, this would affect any application using Electron 5 or later. |
As a summary of the current state, on distros like Debian which disable
Trusting a specific app (2) instead of an entire API (1) seems like a smaller trust surface. It looks like the Chrome team considers considers user namespaces to be the modern way forward, but if some key distros like Debian disagree, then applications are sort of stuck in the middle like this. |
I think I see a path forward by tweaking |
This tweaks Linux packages for Riot to SUID `chrome-sandbox` after install. This is required as of Electron 5 for certain distros, such as Debian. This change has also been provided to `electron-builder` upstream, so ideally they'll include it in the future and this becomes redundant. Fixes #10509
Riot now includes the SUID approach on develop, and it will be included in the next release. |
This tweaks Linux packages for Riot to SUID `chrome-sandbox` after install. This is required as of Electron 5 for certain distros, such as Debian. This change has also been provided to `electron-builder` upstream, so ideally they'll include it in the future and this becomes redundant. Fixes #10509
This has now been released as Riot 1.3.3 for Linux only. |
Yes, I believe that looks correct. |
The text was updated successfully, but these errors were encountered: