Closed ilmal closed 1 year ago
Invalid steamcmd_user in config file
in this context means that the user doesn't exist in /etc/passwd
in the docker container, and so as you are running the script as root, it cannot drop privileges to the given user.
Thanks for response!
This is my passwd file:
root@35e1af01f70a:/app# cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/usr/sbin/nologin
man:x:6:12:man:/var/cache/man:/usr/sbin/nologin
lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
backup:x:34:34:backup:/var/backups:/usr/sbin/nologin
list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
irc:x:39:39:ircd:/run/ircd:/usr/sbin/nologin
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
_apt:x:100:65534::/nonexistent:/usr/sbin/nologin
steam:x:1000:1000::/home/steam:/bin/sh
Debian-exim:x:101:101::/var/spool/exim4:/usr/sbin/nologin
where the "steam" user seems to exist? Or how should I run the arkmanager script to make it work?
What happens when you su steam
, then try running arkmanager
? Alternatively, what happens when you try running your docker exec
to get a shell as the user you originally set the container to run as?
That worked! I can get arkmanager to run when switching over to steam user. This workes:
sudo docker exec --user steam ark_server arkmanager status
Thank you so much for the help!
I'm running an ark server with docker using: https://hub.docker.com/r/hermsi/ark-server/
The server starts and is successful, but arkmanager doesn't work. When trying to connect to arkmanager I get the err message:
This is my config file:
Where the steamcmd_user is defined as "${STEAM_USER}" which if i echo I get the user steam. Which is also the user that is the owner of the steamcmd files:
For me, everything seems to be correctly set up, but I'm still getting the err. Why?
Thank you for any help!