x11docker ERROR: Could not find user
leoyala opened this issue · 6 comments
Hello,
I am trying to run some of the basic commands from x11docker
: x11docker --update
but I run into the following error that I do not understand, perhaps x11docker
requires different privileges? I am using Ubuntu 22.04, I did the installation as stated in the README, and also pulled the x11docker/xserver
image. I did check that the user indeed exists by running id -u <user_name>
DEBUGNOTE[17:21:05,070]: Detected cgroup v2
DEBUGNOTE[17:21:05,260]: check_host(): ps can watch root processes: yes
x11docker ERROR: Could not find user '******' in /etc/passwd.
Type 'x11docker --help' for usage information
Debug options: '--verbose' (full log) or '--debug' (log excerpt).
Logfile will be:
Please report issues at https://github.com/mviereck/x11docker
DEBUGNOTE[17:21:05,283]: time to say goodbye (error)
DEBUGNOTE[17:21:05,288]: traperror: Command at Line 502 returned with error code 1:
return 1
8798 - ::error::check_hostuser::main::main
DEBUGNOTE[17:21:05,292]: time to say goodbye (traperror)
DEBUGNOTE[17:21:05,297]: Terminating x11docker.
DEBUGNOTE[17:21:05,300]: time to say goodbye (finish)
DEBUGNOTE[17:21:05,309]: x11docker exit code: 0
Have the same problem with MSYS2 setup, there is no /etc/passwd at all.
$ x11docker --verbose prosys-opc-ua-simulation-server
stat: cannot read file system information for '/sys/fs/cgroup': No such file or directory
x11docker ERROR: Could not find user 'fnke' in /etc/passwd.
Type 'x11docker --help' for usage information
Debug options: '--verbose' (full log) or '--debug' (log excerpt).
Logfile will be:
Please report issues at https://github.com/mviereck/x11docker
$ cat /etc/passwd
cat: /etc/passwd: No such file or directory
i have the same problem.
The authentication method changed to ldap in my machine, so my is not part of passwd file
Do you have any suggestions for this?
Unfortunately, I do not have an answer for this yet. I stopped using x11docker because of it.
Does "getent passwd your_user_name" (using your actual username) show anything in the terminal, or give an error? (On msys, you might need to install the getent package first.) You can probably avoid the "--update" by downloading the latest copy from GitHub manually, and you can skip installing it by running it from the directory where you cloned the repo. However, if you're seeing this issue, the other basic commands might show errors too.
Does "getent passwd your_user_name" (using your actual username) show anything in the terminal, or give an error? (On msys, you might need to install the getent package first.) You can probably avoid the "--update" by downloading the latest copy from GitHub manually, and you can skip installing it by running it from the directory where you cloned the repo. However, if you're seeing this issue, the other basic commands might show errors too.
Doing getent
does display something in the terminal, no errors.