Scheduled triggers doesn't update Valheim server automatically

OS Name/Version: Windows Server 2019 build 17763.3770

Product Name/Version: Halimede 2.4.1.2

Problem Description:

I would like to know how the triggers work when an update is available on steamcmd. I’ve configured 2 triggers. The first is to “Take a backup” and “Check for available updates via SteamCMD” everyday at midnight. The second one is “bound” to the first one in a sense. Trigger is “An update is available via SteamCMD” then “Take a backup” and “Schedule an update and restart once the last user leaves, or immediately if empty.”

Also, triggers are set per instances not in core AMP.

Somehow, it never triggers the update automatically. What am I missing? Thanks in advance!

Check the logs around the time of the update check and see what you get.

Kinda new with amp, can give me the location of said logs? Thx

Right click the instance and select “View logs”

[00:00:59] [Logger Info] : Rollover from previous log file: AMP_Logs\AMPLOG 2023-02-08 00-00-44.log
[00:00:59] [FileBackup Activity] : Creating Backup: Scheduled Backup
[00:00:59] [FileBackup Info] : Cycling Backups…
[00:00:59] [FileBackup Activity] : Deleting Backup Scheduled Backup (Automatic Operation)
[00:01:03] [steamcmdplugin Info] : Checked updates for 896660 - current build is 10153247 - latest build is 10153247
[00:02:02] [Core Activity] : Authentication attempt for user HIDDEN from 127.0.0.1
[00:02:04] [Core Activity] : Authentication success
[00:02:05] [System Warning] : Slow method invocation: Login took 3530ms to complete.
[00:02:05] [System Warning] : Slow response: Core.Login took 3589ms to complete.
[00:02:35] [Core Activity] : Authentication attempt for user HIDDEN from 127.0.0.1
[00:02:37] [Core Activity] : Authentication success
[00:02:37] [System Warning] : Slow method invocation: Login took 2204ms to complete.
[00:02:37] [System Warning] : Slow response: Core.Login took 2205ms to complete.
clone 462
World save writing starting
World save writing started
Saved 194882 zdos
World save writing finishing
World save writing finished
Considering autobackup. World time: 1057191, short time: 7200, long time: 43200, backup count: 4
No autobackup needed yet…
World saved ( 2305.5082ms )
Considering autobackup. World time: 1057191, short time: 7200, long time: 43200, backup count: 4
No autobackup needed yet…
Connections 0 ZDOS:194882 sent:0 recv:0
Unloading 0 Unused Serialized files (Serialized files now loaded: 0)
Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 2808388.
Total: 1392.026100 ms (FindLiveObjects: 307.698700 ms CreateObjectMapping: 64.753900 ms MarkObjects: 1017.432700 ms DeleteObjects: 2.139900 ms)
[00:06:52] [Core Activity] : Authentication attempt for user HIDDEN from 127.0.0.1
[00:06:53] [Core Activity] : Authentication success
[00:07:28] [Core Activity] : Authentication attempt for user HIDDEN from 127.0.0.1
[00:07:29] [Core Activity] : Authentication success
Connections 0 ZDOS:194882 sent:0 recv:0
Unloading 0 Unused Serialized files (Serialized files now loaded: 0)
Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 2808388.
Total: 1132.243500 ms (FindLiveObjects: 225.733900 ms CreateObjectMapping: 44.900900 ms MarkObjects: 859.330300 ms DeleteObjects: 2.277600 ms)
[00:13:43] [Core Activity] : Authentication attempt for user HIDDEN from 127.0.0.1
[00:13:45] [Core Activity] : Authentication success
[00:13:57] [FileManager:HIDDEN Activity] : Downloaded file logs/systemmanager.txt (API mode)
[00:13:58] [System:HIDDEN Warning] : Returned exception from API call FileManagerPlugin/GetFileChunk
[00:13:58] [Core:HIDDEN Error] : IOException
[00:13:58] [Core:HIDDEN Error] : [0] (IOException) : The process cannot access the file ‘E:\AMPDatastore\Instances\LesBoys01\Valheim\896660\logs\systemmanager.txt’ because it is being used by another process.
[00:13:58] [Core:HIDDEN Error] : at IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
at IO.FileInfo.OpenRead()
at FileManagerPlugin.WebMethods.GetFileChunk(String Filename, Int64 Position, Int32 Length)
at GSMyAdmin.WebServer.WebAttributes.()
at GSMyAdmin.WebServer.APIService.()
[00:14:14] [FileManager:HIDDEN Activity] : Downloaded file logs/configstore_log.txt (API mode)
[00:14:14] [System:HIDDEN Warning] : Returned exception from API call FileManagerPlugin/GetFileChunk
[00:14:14] [Core:HIDDEN Error] : IOException
[00:14:14] [Core:HIDDEN Error] : [0] (IOException) : The process cannot access the file ‘E:\AMPDatastore\Instances\LesBoys01\Valheim\896660\logs\configstore_log.txt’ because it is being used by another process.
[00:14:14] [Core:HIDDEN Error] : at IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
at IO.FileInfo.OpenRead()
at FileManagerPlugin.WebMethods.GetFileChunk(String Filename, Int64 Position, Int32 Length)
at GSMyAdmin.WebServer.WebAttributes.()
at GSMyAdmin.WebServer.APIService.()
[00:15:00] [FileManager:HIDDEN Activity] : Downloaded file steam_appid.txt (API mode)
[00:17:20] [Core Activity] : Authentication attempt for user HIDDEN from 127.0.0.1
[00:17:22] [Core Activity] : Authentication success
[00:17:58] [FileBackup:HIDDEN Activity] : Creating Backup: Scheduled Backup
[00:17:58] [FileBackup:HIDDEN Info] : Cycling Backups…
[00:17:58] [FileBackup:HIDDEN Activity] : Deleting Backup Scheduled Backup (Automatic Operation)
Game - OnApplicationQuit
Shuting down
ZNet Shutdown
clone 419
World save writing starting
World save writing started
Saved 194882 zdos
World save writing finishing
CPID: 9088
Redirecting stderr to ‘E:\AMPDatastore\Instances\LesBoys01\Valheim\logs\stderr.txt’
[ 0%] Checking for available updates…
[----] Verifying installation…
Steam Console Client (c) Valve Corporation - version 1675223179
– type ‘quit’ to exit –
Loading Steam API…OK
force_install_dir 896660
Connecting anonymously to Steam Public…OK
Waiting for client config…OK
Waiting for user info…OK
app_update 896660 -beta public validate
Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
Update state (0x61) downloading, progress: 1.55 (7495180 / 483537946)
Update state (0x61) downloading, progress: 4.61 (22283375 / 483537946)
Update state (0x61) downloading, progress: 6.35 (30708063 / 483537946)
Update state (0x61) downloading, progress: 7.01 (33880551 / 483537946)
Update state (0x61) downloading, progress: 10.97 (53044375 / 483537946)
Update state (0x61) downloading, progress: 11.84 (57238679 / 483537946)
Update state (0x61) downloading, progress: 15.52 (75062239 / 483537946)
Update state (0x61) downloading, progress: 18.42 (89081423 / 483537946)
Update state (0x61) downloading, progress: 31.17 (150702263 / 483537946)
Update state (0x41) staging, progress: 43.11 (208455799 / 483537946)
Update state (0x41) staging, progress: 47.88 (231524471 / 483537946)
Update state (0x41) staging, progress: 55.85 (270049623 / 483537946)
Update state (0x41) staging, progress: 61.70 (298325715 / 483537946)
Update state (0x41) staging, progress: 65.36 (316036823 / 483537946)
Update state (0x41) staging, progress: 74.74 (361398209 / 483537946)
Update state (0x41) staging, progress: 88.63 (428578082 / 483537946)
Update state (0x81) verifying update, progress: 20.16 (97492224 / 483537946)
Update state (0x81) verifying update, progress: 91.59 (442872850 / 483537946)
Success! App ‘896660’ fully installed.

As you can see here “[00:01:03] [steamcmdplugin Info] : Checked updates for 896660 - current build is 10153247 - latest build is 10153247” at the top, steamcmd returned no update but few minutes later in the log you can see that I trigger the update manually successfully.

Your thoughts? Thx

Steamcmd is very buggy, it’s update check is probably not working again.

Hmmm ok. So my settings are okay then?

Is there an alternative yo steamcmd or amp is built to use steamcmd only?

There is no alternative, SteamCMD is the command line version of the steam client.

I do have a possible workaround in mind to deal with its flakiness, but that’s for a future update.

Fair enough. Good luck for the future update and thank you again for your help. Really appreciated.

You can consider this thread as completed.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.