element-hq / element-hq/element-web

Cannot run Element as root

Open
#32,244 4 comments 1 reaction 0 assignees View on GitHub
A-Electron O-Uncommon S-Critical T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

Launch as root Element with `--no-sandbox` because of electron:
>Running as root without `--no-sandbox` is not supported.

### Outcome

#### What did you expect?
To be able to run Element as root.
#### What happened instead?
Element doesn't start, I can see a lot of errors with:
`FATAL:electron_main_delegate.cc(252)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.`

### Operating system

Debian 11

### Application version

Version 1.9.4

### How did you install the app?

https://flathub.org/apps/details/im.riot.Riot

### Homeserver

matrix.org

### Will you send logs?

I can't now eventually yes.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the launch failure on Debian 11 using the Flathub installation and the reported --no-sandbox setting. Review the Electron startup path and the reported root-user error, then determine whether root execution is supported; done means the supported behavior is documented or the application starts without the reported failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
desktop, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.