Hermsi1337 / docker-ark-server

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

Update does not work #8

Closed fwarmuth closed 3 years ago

fwarmuth commented 3 years ago

Hey, I got a running instance at version v326.3. I got the - UPDATE_ON_START=true in my yaml. But the server does not seem to update by doing docker-compose down and docker-compose up. Nor does docker exec ark_server arkmanager update --force has any effect...

i still get this:

...
ark_server | 2021-05-06T18:57:14.901580390Z Querying Steam database for latest version...
ark_server | 2021-05-06T18:57:25.217971015Z Current version:  6518171
ark_server | 2021-05-06T18:57:25.218066752Z Available version:  6653924
ark_server | 2021-05-06T18:57:25.218082710Z Your server needs to be restarted in order to receive the latest update.
ark_server | 2021-05-06T18:57:25.218423009Z Run "arkmanager update" to do so
ark_server | 2021-05-06T18:57:25.219658691Z ...no update available
...

any help? Regards!

Hermsi1337 commented 3 years ago

Hey @fwarmuth ,

which tag of docker-ark-server are you using? Please use at least tools-1.6.58.

If the update does not work even though the current tag, please start the server with the env DEBUG=on and provide the startup-logs!

Many thanks!

fwarmuth commented 3 years ago

Hey @Hermsi1337, i use latest. with DEBUG=on:

ark_server | 2021-05-06T18:54:09.483479870Z _______________________________________
ark_server | 2021-05-06T18:54:09.483543714Z
ark_server | 2021-05-06T18:54:09.483549011Z # Ark Server - Thu 06 May 2021 06:54:09 PM UTC
ark_server | 2021-05-06T18:54:09.483552685Z # UID 1000 - GID 1000
ark_server | 2021-05-06T18:54:09.483556009Z _______________________________________
ark_server | 2021-05-06T18:54:09.487281031Z Setting up folder and file structure...
ark_server | 2021-05-06T18:54:09.487315321Z $UPDATE_ON_START is 'true'...
ark_server | 2021-05-06T18:54:09.533665450Z Running command 'checkupdate' for instance 'main'
ark_server | 2021-05-06T18:54:09.551173707Z Querying Steam database for latest version...
ark_server | + [[ ! -d /app/template ]]
ark_server | + copy_missing_file /home/steam/arkmanager.cfg /app/template/arkmanager.cfg
ark_server | + SOURCE=/home/steam/arkmanager.cfg
ark_server | + DESTINATION=/app/template/arkmanager.cfg
ark_server | + [[ ! -f /app/template/arkmanager.cfg ]]
ark_server | + copy_missing_file /home/steam/crontab /app/template/crontab
ark_server | + SOURCE=/home/steam/crontab
ark_server | + DESTINATION=/app/template/crontab
ark_server | + [[ ! -f /app/template/crontab ]]
ark_server | + copy_missing_file /app/template/arkmanager.cfg /app/arkmanager.cfg
ark_server | + SOURCE=/app/template/arkmanager.cfg
ark_server | + DESTINATION=/app/arkmanager.cfg
ark_server | + [[ ! -f /app/arkmanager.cfg ]]
ark_server | + copy_missing_file /app/template/crontab /app/crontab
ark_server | + SOURCE=/app/template/crontab
ark_server | + DESTINATION=/app/crontab
ark_server | + [[ ! -f /app/crontab ]]
ark_server | $UPDATE_ON_START is 'true'...
ark_server | + [[ -L /app/Game.ini ]]
ark_server | + [[ -L /app/GameUserSettings.ini ]]
ark_server | + [[ ! -d /app/server ]]
ark_server | + [[ ! -f /app/server/version.txt ]]
ark_server | + may_update
ark_server | + [[ true != \t\r\u\e ]]
ark_server | + echo '$UPDATE_ON_START is '\''true'\''...'
ark_server | + /usr/local/bin/arkmanager checkupdate
ark_server | Running command 'checkupdate' for instance 'main'
ark_server | Querying Steam database for latest version...
ark_server Current version:  6518171
ark_server | Available version:  6653924
ark_server | Your server needs to be restarted in order to receive the latest update.
ark_server | Run "arkmanager update" to do so
ark_server | ...no update available
ark_server | No crontab set
ark_server | + echo '...no update available'
ark_server | + return
ark_server | ++ grep -v '^#' /app/crontab
ark_server | ++ wc -l
ark_server | + ACTIVE_CRONS=0
ark_server | + [[ 0 -gt 0 ]]
ark_server | + echo 'No crontab set'
ark_server | + exec /usr/local/bin/arkmanager run
ark_server | Running command 'run' for instance 'main'

here you go.

Hermsi1337 commented 3 years ago

errrgh.. my bad.. actually checkupdate form ark-manager returns 1 if and update is available. I've expected the opossite.

Use docker pull in order to get the latest image. I've just released an update (=

fwarmuth commented 3 years ago

thank you, that was a fast support :D it works now!