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

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_electrdNG9pL/chrome-sandbox is owned by root and has mode 4755. #6095

Closed
tswaehn opened this issue Jul 25, 2021 · 6 comments

Comments

@tswaehn
Copy link

tswaehn commented Jul 25, 2021

I am running default electron-quick-start app and just modified the package.json like below:

{
  "name": "electron-quick-start",
  "version": "1.0.0",
  "description": "A minimal Electron application",
  "main": "main.js",
  "scripts": {
    "start": "electron .",
    "pack": "electron-builder --dir",
    "dist": "electron-builder"
  },
  "repository": "https://github.com/electron/electron-quick-start",
  "keywords": [
    "Electron",
    "quick",
    "start",
    "tutorial",
    "demo"
  ],
  "author": "GitHub",
  "license": "CC0-1.0",
  "devDependencies": {
    "electron": "^13.1.7",
    "electron-build": "^0.0.3",
    "electron-builder": "^22.11.7"
  },
  "build": {
    "appId": "myApp",
    "mac": {
      "category": "my.app.type"
    }
  }
}

then running yarn run dist works like charm.

ts@debian:/tmp/electron-quick-start$ yarn run dist
yarn run v1.22.10
$ electron-builder
  • electron-builder  version=22.11.7 os=4.19.0-17-amd64
  • loaded configuration  file=package.json ("build" field)
  • writing effective config  file=dist/builder-effective-config.yaml
  • packaging       platform=linux arch=x64 electron=13.1.7 appOutDir=dist/linux-unpacked
  • building        target=snap arch=x64 file=dist/electron-quick-start_1.0.0_amd64.snap
  • building        target=AppImage arch=x64 file=dist/electron-quick-start-1.0.0.AppImage
  • cannot map macOS category to Linux. If possible mapping is known for you, please file issue to add it.  macCategory=my.app.type
  • application Linux category is set to default "Utility"  reason=linux.category is not set and cannot map from macOS docs=https://www.electron.build/configuration/linux
  • default Electron icon is used  reason=application icon is not set
  • cannot map macOS category to Linux. If possible mapping is known for you, please file issue to add it.  macCategory=my.app.type
  • application Linux category is set to default "Utility"  reason=linux.category is not set and cannot map from macOS docs=https://www.electron.build/configuration/linux
Done in 7.53s.

I am on

  • debian x64 buster
  • using node 14

however when I attempt to run the appimage:

ts@debian:/tmp/electron-quick-start$ ./dist/electron-quick-start-1.0.0.AppImage 
[10354:0725/193633.743158: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_electr3AAtIq/chrome-sandbox is owned by root and has mode 4755.

There are several "workarounds" like these

however this doesnt look like very "professional" - so I am wondering - what am I doing wrong?

@csett86
Copy link
Contributor

csett86 commented Aug 2, 2021

@tswaehn For previous instructions how to solve this, see #5371 (comment)

Based on that I use jitsi/jitsi-meet-electron@4cc851d

@stale
Copy link

stale bot commented Oct 2, 2021

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the backlog label Oct 2, 2021
@levitemkin
Copy link

I'm still experiencing this targeting Linux arm64.

@stale stale bot removed the backlog label Feb 1, 2022
@tswaehn
Copy link
Author

tswaehn commented Feb 1, 2022

@csett86 I am using the updated versions as below -- works like charm :)

using the electron-quick-start example -- https://github.com/electron/electron-quick-start

my package.json (modified for building dist)

{
  "name": "electron-quick-start",
  "version": "1.0.0",
  "description": "A minimal Electron application",
  "main": "main.js",
  "scripts": {
    "start": "electron .",
    "pack": "electron-builder --dir",
    "dist": "electron-builder"
  },
  "repository": "https://github.com/electron/electron-quick-start",
  "keywords": [
    "Electron",
    "quick",
    "start",
    "tutorial",
    "demo"
  ],
  "author": "GitHub",
  "license": "CC0-1.0",
  "devDependencies": {
    "electron": "^17.0.0",
    "electron-builder": "^22.11.7"
  },
  "build": {
    "appId": "myApp",
    "mac": {
      "category": "my.app.type"
    }
  }
}

building the dist

ts@debian64:/tmp/electron-quick-start$ npm run dist

> electron-quick-start@1.0.0 dist /tmp/electron-quick-start
> electron-builder

  • electron-builder  version=22.14.5 os=5.15.0-2-amd64
  • loaded configuration  file=package.json ("build" field)
  • writing effective config  file=dist/builder-effective-config.yaml
  • packaging       platform=linux arch=x64 electron=17.0.0 appOutDir=dist/linux-unpacked
  • downloading     url=https://github.com/electron/electron/releases/download/v17.0.0/electron-v17.0.0-linux-x64.zip size=99 MB parts=8
  • downloaded      url=https://github.com/electron/electron/releases/download/v17.0.0/electron-v17.0.0-linux-x64.zip duration=8.597s
  • building        target=snap arch=x64 file=dist/electron-quick-start_1.0.0_amd64.snap
  • building        target=AppImage arch=x64 file=dist/electron-quick-start-1.0.0.AppImage
  • cannot map macOS category to Linux. If possible mapping is known for you, please file issue to add it.  macCategory=my.app.type
  • application Linux category is set to default "Utility"  reason=linux.category is not set and cannot map from macOS docs=https://www.electron.build/configuration/linux
  • default Electron icon is used  reason=application icon is not set
  • cannot map macOS category to Linux. If possible mapping is known for you, please file issue to add it.  macCategory=my.app.type
  • application Linux category is set to default "Utility"  reason=linux.category is not set and cannot map from macOS docs=https://www.electron.build/configuration/linux
  • downloading     url=https://github.com/electron-userland/electron-builder-binaries/releases/download/snap-template-4.0-2/snap-template-electron-4.0-2-amd64.tar.7z size=1.5 MB parts=1
  • downloaded      url=https://github.com/electron-userland/electron-builder-binaries/releases/download/snap-template-4.0-2/snap-template-electron-4.0-2-amd64.tar.7z duration=683ms

and finally running

ts@debian64:/tmp/electron-quick-start$ ./dist/electron-quick-start-1.0.0.AppImage 

works perfectly

@csett86
Copy link
Contributor

csett86 commented Feb 1, 2022

If your debian is now on debian 11, then yes, its now working without any issue out of the box, as debian 11 changed the default for kernel.unprivileged_userns_clone to 1.

I suggest that you can then close this issue as its working fine (as you wrote)

@tswaehn
Copy link
Author

tswaehn commented Feb 1, 2022

yes, will do.

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