FS#62469 - [electron] Fail to start with Electron 5.x

Attached to Project: Community Packages
Opened by Bruno Pagani (ArchangeGabriel) - Thursday, 25 April 2019, 12:06 GMT
Last edited by Nicola Squartini (tensor5) - Thursday, 20 June 2019, 01:21 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Nicola Squartini (tensor5)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

When trying to start riot-desktop with Electron 5.x, it coredumps:

[29400:0425/135956.996521:FATAL:setuid_sandbox_host.cc(157)] 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 /usr/lib/electron/chrome-sandbox is owned by root and has mode 4755.
/bin/riot-desktop: line 3: 29400 Trace/breakpoint trap (core dumped) electron /usr/lib/riot/ "$@"

Looks like `/usr/lib/electron/chrome-sandbox` need to be made setsuid…
This task depends upon

Closed by  Nicola Squartini (tensor5)
Thursday, 20 June 2019, 01:21 GMT
Reason for closing:  Fixed
Comment by Bruno Pagani (ArchangeGabriel) - Thursday, 25 April 2019, 12:15 GMT
(Note that changing this only allows to get to the next issue, https://github.com/vector-im/riot-web/issues/9562)
Comment by Bruno Pagani (ArchangeGabriel) - Monday, 29 April 2019, 08:21 GMT
Upstream Riot issue has been fixed, so only the SUID one remains.
Comment by Nicola Squartini (tensor5) - Sunday, 12 May 2019, 11:45 GMT
Thanks, fixed the SUID in 5.0.1-2
Comment by chuqingqing (chuqq) - Friday, 07 June 2019, 08:48 GMT
electron version 5.0.2

$ electron .
[28748:0607/164601.478179:FATAL:setuid_sandbox_host.cc(157)] 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 /usr/lib/node_modules/electron/dist/chrome-sandbox is owned by root and has mode 4755.
Comment by Bruno Pagani (ArchangeGabriel) - Friday, 07 June 2019, 08:52 GMT
@chuqingqing: No Arch Package contains /usr/lib/node_modules/electron/. You likely installed electron manually or through an AUR package.
Comment by chuqingqing (chuqq) - Friday, 07 June 2019, 09:07 GMT
I installed electron by `sudo npm install -g electron`.
Comment by Bruno Pagani (ArchangeGabriel) - Friday, 07 June 2019, 09:21 GMT
So manually. That’s your issue then.

Loading...