arkmanager / ark-server-tools

Set of server tools used to manage ARK: Survival Evolved servers on Linux
MIT License
680 stars 144 forks source link

arkmanager update doesn't detect latest ARK version #1099

Closed tryallthethings closed 4 years ago

tryallthethings commented 4 years ago

There seems to be an issue as the latest version is not picked up by the update check. Forcing the update seems to work though.

arkmanager update
Running command 'update' for instance 'main'
Checking for update; PID: 4662
Your server is already up to date! The most recent version is 5057242.
 /var/games/steam/steamcmd.sh +login anonymous +app_info_update 1 +app_info_print 376030 +quit | grep build
                                "oldtestbuild"
                                "buildid"               "5076975"
                                "buildid"               "5051323"
                                "buildid"               "5082537"
                                "buildid"               "5066419"
                                "buildid"               "3409246"
                                "buildid"               "5067756"
                                "buildid"               "5067756"
                                "buildid"               "5066419"
                                "buildid"               "3409246"
                                "buildid"               "3955003"
                                "buildid"               "4205769"
                                "buildid"               "4662824"
                                "buildid"               "5032386"
                        "oldtestbuild"
                                "buildid"               "5062023"
                                "buildid"               "5002538"
                                "buildid"               "5018051"
                                "buildid"               "5082253"
                                "buildid"               "4815191"
                                "buildid"               "3576610"
                                "buildid"               "4641352"
                                "buildid"               "5035113"
                                "buildid"               "5034977"
                                "buildid"               "4701755"
                                "buildid"               "5081370"
                                "buildid"               "5076975"
arkmanager update --force
Running command 'update' for instance 'main'
Checking for update; PID: 7564
Downloading ARK update ... The server is already stopped
\033[0;39m Saved arks directory is /var/games/ARK/server/ShooterGame/Saved/SavedArks
 Copying ARK world file (Ragnarok)                                 [   OK   ]
 Copying ARK profile files
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
   xxxx.arkprofile                                    [   OK   ]
 Copying ARK tribe files
   yyyy.arktribe                                             [   OK   ]
   yyyy.arktribe                                             [   OK   ]
   yyyy.arktribe                                             [   OK   ]
   yyyy.arktribe                                             [   OK   ]
   yyyy.arktribe                                             [   OK   ]
   yyyy.arktribe                                             [   OK   ]
   yyyy.arktribe                                             [   OK   ]
 Copying ARK tribute tribe files
 Copying GameUserSettings.ini                                      [   OK   ]
 Copying Game.ini                                                  [   OK   ]
 Compressing Backup                                                [   OK   ]
 Created Backup:  main.2020-05-27_13.18.12.tar.bz2
Applying update from staging directory
Update to 5076975 complete

Server is running Ubuntu 16.04.6 LTS (Xenial Xerus). arkmanager v1.6 What else do you need for further investigation?

Edit: I just noticed that I'm running an old version of arkmanager. Was this maybe already fixed in a release after v1.6?

klightspeed commented 4 years ago

https://steamdb.info/app/376030/depots/?branch=public shows the current public branch build as 5076975

If the steamcmd_appinfocache is pointing at the wrong file, then this can result in arkmanager not detecting the update as it won't delete that cache, and steamcmd will return stale info from that cache.

tryallthethings commented 4 years ago

So adding steamcmd_appinfocache=/home/gameserver/.steam/steam/appcache/appinfo.vdf to my arkmanager/instances/main.cfg should fix this? Why wasn't this an issue up until now? All previous updates were always detected correctly and installed.

klightspeed commented 4 years ago

steamcmd_appinfocache should be in arkmanager.cfg

steamcmd_appinfocache="/home/steam/Steam/appcache/appinfo.vdf"      # cache of the appinfo command - change this to "/home/steam/.steam/appcache/appinfo.vdf" on Debian/Ubuntu/CentOS if you have the steamcmd package installed

I don't know what rules steamcmd applies to indicate when the app cache is out of date, or when to ignore +app_info_update 1

Alphakilo commented 4 years ago

So adding steamcmd_appinfocache=/home/gameserver/.steam/steam/appcache/appinfo.vdf to my arkmanager/instances/main.cfg should fix this?

@tryallthethings did this work for you?

tryallthethings commented 4 years ago

Sorry, yes it did as far as I remember