element-desktop on linux won't start if user is not in /etc/passwd #2046
Labels
A-Electron
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Critical
Prevents work, causes data loss and/or has no workaround
T-Defect
Z-Linux
Z-Platform-Specific
Z-Upstream
Steps to reproduce
Used element-desktop as Snap on Ubunut 22.04 for months without problem, but was unable to start since some update a few weeks ago (around version 1.11.86).
I can reproduce the issue on Ubuntu 22.04 and 24.04 using the latest version provided as .deb package from element.io (version 1.11.89) or Snap (version 1.11.88).
"element-desktop" simply doesn't start. Starting on the commandline gives:
I searched a bit and found similar issues like this one: microsoft/vscode#204178
Main issue seems to be that element-desktop expects that the user has an entry in /etc/passwd, while I'm logged in with an account which is defined in a LDAP directory server. So the user is not in /etc/passwd, but correctly listed for example by "getent passwd".
As a workaround I can add the user to /etc/passwd manually and start element-desktop.
Outcome
What did you expect?
element-desktop starts
What happened instead?
element-desktop is stucked and no window appears
Operating system
Ubuntu 24.04
Application version
1.11.89
How did you install the app?
deb package from https://element.io/download#linux
Homeserver
matrix.log
Will you send logs?
No
The text was updated successfully, but these errors were encountered: