Webtorrent-desktop: FATAL:setuid_sandbox_host.cc(157)

Created on 18 Sep 2019  路  9Comments  路  Source: webtorrent/webtorrent-desktop

What version of this package are you using?
0.21 deb
What operating system, Node.js, and npm version?
kali linux, v12.10.0 , 6.10.3
What happened?
imagen
What did you expect to happen?
which will start the program normally
Are you willing to submit a pull request to fix this bug?
no

arepackaging bug platforlinux

Most helpful comment

Related issue https://github.com/electron/electron/issues/17972.

Seems like this should be handled in electron-installer-debian, but does not work for Electron 6?

@carlosnewmusic For now, you have to run webtorrent-desktop with the --no-sandbox flag, or run the following commands to fix permissions:

sudo chown root chrome-sandbox
chmod 4755 chrome-sandbox

All 9 comments

Related issue https://github.com/electron/electron/issues/17972.

Seems like this should be handled in electron-installer-debian, but does not work for Electron 6?

@carlosnewmusic For now, you have to run webtorrent-desktop with the --no-sandbox flag, or run the following commands to fix permissions:

sudo chown root chrome-sandbox
chmod 4755 chrome-sandbox

I can confirm a similar challenge with webtorrent-desktop_0.20.0-1_amd64.deb on Debian 8 Jessie

Steps to reproduce at #1705

I'd like feedback from other collaborators on how to proceed here. It seems that downgrading to Electron 5 is one option to fix this? Is there another approach we should consider?

Another approach that Microsoft's VSCode team took is to add --no-sandbox in the launch scripts (Desktop files) as we can see here.

It could be a relative easy fix until a better solution is given from electron team 馃槄

That seems like a reasonable approach.

If you want to reproduce this issue, you system should have kernel.unprivileged_userns_clone disabled. You can check this with the next command: sudo sysctl kernel.unprivileged_userns_clone

I'm my case, in Ubuntu 18.04.3 LTS is enabled by default so I've to disabled with sudo sysctl kernel.unprivileged_userns_clone=0 to reproduce the issue.

BTW, I just send a PR #1707 that should fix the issue, but any help checking it in your system is welcome 馃槈

I'm using v0.24.0

This is not resolved for me:
image

Edit: I see that the fix done in the PR above is to add --no-sandbox to desktop file. But this doesn't allow the launch of app from browser to open a magnet link.

I suggest to re-open this ticket. Because this zombie-error is back ;) And needs more fixing love. This is to confirm this challenge is still present with WebTorrent v0.24.0

Steps to reproduce

  1. Using Terminal, as user, without Sudo permission, execute this command to open WebTorrent webtorrent-desktop

  2. This error is return. This is the challenge.

    [24878:1006/111415.606303: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 /usr/lib/webtorrent-desktop/chrome-sandbox is owned by root and has mode 4755.
    Trace/breakpoint trap

  3. Expected result it WebTorrent opens without this error above, and without using the temporary workaround --no-sandbox.

Using

  • Debian 10 Buster
  • WebTorrent 0.24.0 (0.108.6) (x64)
  • GNOME 3.22.2

A temporary workaround is to start WebTorrent with this command: webtorrent-desktop --no-sandbox

Re-opened since it appears this is still not fixed.

Was this page helpful?
0 / 5 - 0 ratings