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

Server wont start after server update #82

Open ecterun opened 2 years ago

ecterun commented 2 years ago

Updated the server and now unable to start the server.

+ echo ''
++ date
# Ark Server - Thu Oct  6 02:52:23 UTC 2022
+ echo '# Ark Server - Thu Oct  6 02:52:23 UTC 2022'
+ echo '# IMAGE_VERSION: '\''1664859748'\'''
# IMAGE_VERSION: '1664859748'
++ id -u
+ echo '# RUNNING AS USER '\''steam'\'' - '\''1000'\'''
# RUNNING AS USER 'steam' - '1000'
# ARGS: --arkopt,-NoBattlEye --arkopt,-crossplay
+ echo '# ARGS: --arkopt,-NoBattlEye --arkopt,-crossplay '
+ echo _______________________________________
_______________________________________
++ command -v arkmanager
+ ARKMANAGER=/usr/local/bin/arkmanager
+ [[ -x /usr/local/bin/arkmanager ]]
+ cd /app
+ echo 'Setting up folder and file structure...'
Setting up folder and file structure...
+ create_missing_dir /app/log /app/backup /app/staging
+ for DIRECTORY in ${@}
+ [[ -n /app/log ]]
+ [[ ! -d /app/log ]]
+ for DIRECTORY in ${@}
+ [[ -n /app/backup ]]
+ [[ ! -d /app/backup ]]
+ for DIRECTORY in ${@}
+ [[ -n /app/staging ]]
+ [[ ! -d /app/staging ]]
+ copy_missing_file /conf.d/arkmanager.cfg /app/arkmanager/arkmanager.cfg
+ SOURCE=/conf.d/arkmanager.cfg
+ DESTINATION=/app/arkmanager/arkmanager.cfg
+ [[ ! -f /app/arkmanager/arkmanager.cfg ]]
+ copy_missing_file /conf.d/arkmanager-user.cfg /app/arkmanager/instances/main.cfg
+ SOURCE=/conf.d/arkmanager-user.cfg
+ DESTINATION=/app/arkmanager/instances/main.cfg
+ [[ ! -f /app/arkmanager/instances/main.cfg ]]
+ copy_missing_file /conf.d/crontab /app/crontab
+ SOURCE=/conf.d/crontab
+ DESTINATION=/app/crontab
+ [[ ! -f /app/crontab ]]
+ [[ -L /app/Game.ini ]]
+ [[ -L /app/GameUserSettings.ini ]]
+ [[ ! -d /app/server ]]
+ [[ ! -f /app/server/version.txt ]]
+ crontab /app/crontab
+ [[ -n '' ]]
+ may_update
+ [[ true != \t\r\u\e ]]
+ echo '$UPDATE_ON_START is '\''true'\''...'
$UPDATE_ON_START is 'true'...
+ /usr/local/bin/arkmanager update --verbose --update-mods --backup --no-autostart
Running command 'update' for instance 'main'
Checking for update; PID: 47
Your server is already up to date! The most recent version is 9653925.
+ exec /usr/local/bin/arkmanager run --verbose --arkopt,-NoBattlEye --arkopt,-crossplay
Running command 'run' for instance 'main'
2022-10-06 02:52:30: start
2022-10-06 02:52:30: Running /app/server/ShooterGame/Binaries/Linux/ShooterGameServer Fjordur\?SessionName=***\?ServerPassword=***\?ServerAdminPassword=***\?MaxPlayers=20\?GameModIds\?GameModIds\?Port=7779\?QueryPort=27016\?RCONEnabled=True\?RCONPort=27021\?listen -log -NoBattlEye -crossplay -log
2022-10-06 02:52:30: Server PID: 156
/usr/local/bin/arkmanager: line 1314:   156 Aborted                 (core dumped) "$arkserverroot/$arkserverexec" "$arkserveropts" "${arkextraopts[@]}"
2022-10-06 02:52:35: Bad PID ''; expected '156'
2022-10-06 02:52:35: exited with status 0

I see it is specifying a core dumped, but unsure how or where I can view this.

ecterun commented 2 years ago

I was able to get the issue fixed and got the server back up and running. What I believe happened was the update was corrupted on my pod when installed. I was unable to get this to re-update because it was already on the latest version. I ended up editing the steam-entrypoint.sh script to contain the --validate flag on the update command. This made it possible to re-download the update and install it correctly to fix the pod.

This might be a good idea to try and add a tag to allow something like this in the future.

Hermsi1337 commented 2 years ago

Good idea with --validate .. I will reopen this issue and integrate a flag in the entrypoint-script.