Hermsi1337 / docker-ark-server

Dockerize your ARK server - configurable via env
https://hub.docker.com/r/hermsi/ark-server/
MIT License
114 stars 36 forks source link

arkmanager throwing "invalid steamcmd_user in config file" #63

Closed nshafer closed 2 years ago

nshafer commented 2 years ago

Commands like docker exec ark_server arkmanager status now just throw "Invalid steamcmd_user in config file". I can sort of get it to work if I run bash, sudo to the steam user, then run arkmanager, but I get lots of errors such as:

# su - steam
$ arkmanager status
[  ERROR  ]     Your SteamCMD root seems not valid.
[  ERROR  ]     Your SteamCMD exec could not be found.
[  ERROR  ]     Your SteamCMD user is not valid.
[  ERROR  ]     You do not have permission to write to the log directory.
Running command 'status' for instance 'main'
[  ERROR  ]     Your SteamCMD root seems not valid.
[  ERROR  ]     Your SteamCMD exec could not be found.
[  ERROR  ]     Your SteamCMD user is not valid.
[  WARN  ]  Your ARK server exec could not be found.
mkdir: cannot create directory '/server': Permission denied
[  ERROR  ]     The ARK SavedArks directory is not writable, and saveworld will fail
mkdir: cannot create directory '/server': Permission denied
[  ERROR  ]     The ARK Mods directory is not writable, and installmod will fail
[  ERROR  ]     You do not have permission to write to the log directory.
 Server running:   No 
/usr/local/bin/arkmanager: line 426: /server/ShooterGame/Saved/Config/LinuxServer/GameUserSettings.ini: No such file or directory
 Server listening:   Yes 
/usr/local/bin/arkmanager: line 426: /server/ShooterGame/Saved/Config/LinuxServer/GameUserSettings.ini: No such file or directory
Server Name: Ark Server - (v347.1)
Steam Players: 1 / 10
Active Steam Players: 1
/usr/local/bin/arkmanager: line 426: /server/ShooterGame/Saved/Config/LinuxServer/GameUserSettings.ini: No such file or directory
 Server online:   Yes 
 ARKServers link:   http://arkservers.net/server/123.123.123.123:27015 
 Steam connect link:   steam://connect/123.123.123.123:27015 
 Server build ID:    
$ 
Hermsi1337 commented 2 years ago

Try exec with -u steam.

But thats a point which should at least be documented.. I'll do it later.

nshafer commented 2 years ago

That works, thanks!