MitchTalmadge / AMP-dockerized

CubeCoders AMP in a Docker Image. Easily create game servers for games like Minecraft, GMod, TF2, Factorio, and StarBound!
https://hub.docker.com/r/mitchtalmadge/amp-dockerized
Other
89 stars 21 forks source link

Valheim and possibly all steamcmd instances fail to update/start on unraid. #94

Closed trevjonez closed 8 months ago

trevjonez commented 2 years ago

I've poke at this a bit on and off, and can't seem to pin it down. It seems to me some of the init scripts are having issues. It falls into a loop of attempting to run steamcmd possibly from a wrong path or without dealing with the extract correctly? then launching fails if I try to workaround the install phase.

This is on unraid with the AMP instance working fine to host a minecraft and factorio instance.

on a new instance creation it just falls into a fail loop when I hit update in the gui.

[13:29:39] [Core Info]            : Running in a Docker environment.
[13:29:39] [Core Warning]         : Current time zone is set to MST - Servers should ideally be UTC to avoid time-zone related issues
[13:29:39] [Core Info]            : OS: Linux / x86_64
[13:29:39] [Core Info]            : CPU: AMD Ryzen Threadripper 3960X 24-Core Processor (24C/48T)
[13:29:39] [Core Info]            : AMP Instance ID: REDACTED
[13:29:39] [ModuleLoader Info]    : Loaded GenericModule version 1.0.0.0 by CubeCoders Limited
[13:29:39] [Core Info]            : Metrics publishing is enabled at udp://localhost:12820.
[13:29:39] [ModuleLoader Info]    : Loaded FileManagerPlugin version 1.0.0.0 by CubeCoders Limited
[13:29:39] [ModuleLoader Info]    : Loaded EmailSenderPlugin version 1.0.0.0 by CubeCoders Limited
[13:29:39] [ModuleLoader Info]    : Loaded WebRequestPlugin version 1.0.0.0 by CubeCoders Limited
[13:29:39] [ModuleLoader Info]    : Loaded LocalFileBackupPlugin version 1.0.0.0 by CubeCoders Limited
[13:29:39] [ModuleLoader Info]    : Loaded CommonCorePlugin version 1.0.0.0 by CubeCoders Limited
[13:29:39] [ModuleLoader Info]    : GenericModule requests dependency steamcmdplugin...
[13:29:39] [ModuleLoader Info]    : Loaded steamcmdplugin version 1.0.0.0 by CubeCoders Limited
[13:29:39] [Core Info]            : Licence Present: AMP Professional Edition (Licenced to REDACTED)
[13:29:39] [FileManager Notice]   : No SSH keypair available for embedded server, generating new keypair...
[13:29:39] [FileManager Notice]   : Generated new keypair with fingerprint REDACTED
[13:29:39] [FileManager Notice]   : Using keypair with fingerprint REDACTED
[13:29:39] [FileManager Info]     : SFTP Server started on 0.0.0.0:2226
[13:29:39] [WebServer Info]       : Websockets are enabled.
[13:29:39] [WebServer Info]       : Webserver started on http://127.0.0.1:8083
[13:29:39] [Logger Warning]       : RouterTimer@10Hz with 2 jobs started
[13:29:39] [Core Info]            : Checking for AMP updates...
[13:29:40] [Core Info]            : AMP is up-to-date.
[13:29:55] [RemoteAMPAuth:Anonymous Activity] : Authentication attempt for user admin from 127.0.0.1
[13:29:55] [RemoteAMPAuth:Anonymous Activity] : Authentication success
[13:30:04] [API:admin Activity]   : Updating the application.
Redirecting stderr to '/home/amp/Steam/logs/stderr.txt'
ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt".
[  0%] Checking for available update...
[  0%] Downloading update (0 of 80,449 KB)...
[  0%] Downloading update (5,110 of 80,449 KB)...
[  6%] Downloading update (11,675 of 80,449 KB)...
[ 14%] Downloading update (16,663 of 80,449 KB)...
[ 20%] Downloading update (22,106 of 80,449 KB)...
[ 27%] Downloading update (27,011 of 80,449 KB)...
[ 33%] Downloading update (32,017 of 80,449 KB)...
[ 39%] Downloading update (36,915 of 80,449 KB)...
[ 45%] Downloading update (42,397 of 80,449 KB)...
[ 52%] Downloading update (47,400 of 80,449 KB)...
[ 58%] Downloading update (51,849 of 80,449 KB)...
[ 64%] Downloading update (54,553 of 80,449 KB)...
[ 67%] Downloading update (57,193 of 80,449 KB)...
[ 71%] Downloading update (59,598 of 80,449 KB)...
[ 74%] Downloading update (61,957 of 80,449 KB)...
[ 77%] Downloading update (64,652 of 80,449 KB)...
[ 80%] Downloading update (67,107 of 80,449 KB)...
[ 83%] Downloading update (69,531 of 80,449 KB)...
[ 86%] Downloading update (72,208 of 80,449 KB)...
[ 89%] Downloading update (74,631 of 80,449 KB)...
[ 92%] Downloading update (77,108 of 80,449 KB)...
[ 95%] Downloading update (79,783 of 80,449 KB)...
[ 99%] Downloading update (80,449 of 80,449 KB)...
[100%] Download Complete.
[----] Applying update...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Installing update...
[----] Cleaning up...
[----] Failed to remove temporary unzip folder, continuing anyway
[----] Update complete, launching...
Redirecting stderr to '/home/amp/Steam/logs/stderr.txt'
ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt".
[  0%] Checking for available update...
[  0%] Download Complete.
[----] Verifying installation...
[  0%] Downloading Update...
[  0%] Checking for available update...
[  0%] Download Complete.
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Installing update...
[----] Cleaning up...
[----] Failed to remove temporary unzip folder, continuing anyway
[----] Update complete, launching...

so then I did roughly

su amp
cd home/amp/.ampdata/instances/ServerName/Valheim
rm -rf linux32
mv package/tmp/* ./

from there I ran the update from amp gui again.

[13:41:38] [RemoteAMPAuth:Anonymous Activity] : Authentication attempt for user admin from 127.0.0.1
[13:41:38] [RemoteAMPAuth:Anonymous Activity] : Authentication success
[13:41:42] [API:admin Activity]   : Updating the application.
Redirecting stderr to '/home/amp/Steam/logs/stderr.txt'
/tmp/dumps is not owned by us - delete and recreate
Unable to delete /tmp/dumps. Continuing anyway.
[  0%] Checking for available updates...
[----] Downloading update (137 of 53,972 KB)...
[  0%] Downloading update (3,691 of 53,972 KB)...
[  6%] Downloading update (7,544 of 53,972 KB)...
[ 13%] Downloading update (10,026 of 53,972 KB)...
[ 18%] Downloading update (12,524 of 53,972 KB)...
[ 23%] Downloading update (15,264 of 53,972 KB)...
[ 28%] Downloading update (17,718 of 53,972 KB)...
[ 32%] Downloading update (20,214 of 53,972 KB)...
[ 37%] Downloading update (22,957 of 53,972 KB)...
[ 42%] Downloading update (25,432 of 53,972 KB)...
[ 47%] Downloading update (27,906 of 53,972 KB)...
[ 51%] Downloading update (30,632 of 53,972 KB)...
[ 56%] Downloading update (33,095 of 53,972 KB)...
[ 61%] Downloading update (35,096 of 53,972 KB)...
[ 65%] Downloading update (36,805 of 53,972 KB)...
[ 68%] Downloading update (38,021 of 53,972 KB)...
[ 70%] Downloading update (39,273 of 53,972 KB)...
[ 72%] Downloading update (40,623 of 53,972 KB)...
[ 75%] Downloading update (41,855 of 53,972 KB)...
[ 77%] Downloading update (43,101 of 53,972 KB)...
[ 79%] Downloading update (44,464 of 53,972 KB)...
[ 82%] Downloading update (45,707 of 53,972 KB)...
[ 84%] Downloading update (47,059 of 53,972 KB)...
[ 87%] Downloading update (48,299 of 53,972 KB)...
[ 89%] Downloading update (49,534 of 53,972 KB)...
[ 91%] Downloading update (50,884 of 53,972 KB)...
[ 94%] Downloading update (52,116 of 53,972 KB)...
[ 96%] Downloading update (53,365 of 53,972 KB)...
[ 98%] Downloading update (53,972 of 53,972 KB)...
[100%] Download complete.
[----] Installing update...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Cleaning up...
[----] Update complete, launching Steamcmd...
Redirecting stderr to '/home/amp/Steam/logs/stderr.txt'
/tmp/dumps is not owned by us - delete and recreate
Unable to delete /tmp/dumps. Continuing anyway.
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...OK
Connecting anonymously to Steam Public...OK
Waiting for client config...OK
Waiting for user info...OK
 Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
 Update state (0x11) preallocating, progress: 22.27 (235839406 / 1059006974)
 Update state (0x61) downloading, progress: 0.00 (0 / 1059006974)
 Update state (0x61) downloading, progress: 6.57 (69594853 / 1059006974)
 Update state (0x61) downloading, progress: 39.25 (415708222 / 1059006974)
 Update state (0x61) downloading, progress: 58.53 (619860849 / 1059006974)
 Update state (0x61) downloading, progress: 72.43 (767065361 / 1059006974)
 Update state (0x61) downloading, progress: 87.41 (925713225 / 1059006974)
 Update state (0x81) verifying update, progress: 5.58 (59127591 / 1059006974)
 Update state (0x81) verifying update, progress: 54.53 (577476890 / 1059006974)
 Update state (0x101) committing, progress: 22.87 (242227237 / 1059006974)
Success! App '896660' fully installed.

then hit start.

[13:43:19] [API:admin Activity]   : Starting the application.
[13:43:19] [APIService:admin Warning] : Returned exception from API call Core/Start
[13:43:19] [Core:admin Error]     : ArgumentException
[13:43:19] [Core:admin Error]     : [0] (ArgumentException) : An item with the same key has already been added. Key: ServerName
[13:43:19] [Core:admin Error]     :   at Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, Collections.Generic.InsertionBehavior behavior) 
  at Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) 
  at ModuleShared.EnumerableExtensions.AddRange[K,V] (Collections.Generic.IDictionary`2[TKey,TValue] source, Collections.Generic.IEnumerable`1[T] values) 
  at GenericModule.GenericModuleConfig+ApplicationConfig.GetCommandLineArgs (ModuleShared.SupportedOS OS, String FormattedArgs) 
  at GenericModule.GenericApp.SetupProcess () 
  at GenericModule.GenericApp.Start () 
  at GSMyAdmin.WebServer.WebMethods.Start () 
  at GSMyAdmin.WebServer.WebAttributes.InvokeMethod (String MethodName, Newtonsoft.Json.Linq.JObject Data, m.Http.IHttpRequest request, ModuleShared.IWebSession Session, ModuleShared.WebMethodsBase MethodsClass, String RawRequest) 
  at GSMyAdmin.WebServer.APIService.InvokeAPI (m.Http.IHttpRequest request, ModuleShared.IWebSession Session, Newtonsoft.Json.Linq.JObject Data, String RequestModule, String RequestMethod, String RawRequest) 
trevjonez commented 2 years ago

was crawling thru cube's discord and saw people with similar issues. did the following and got it up. open console for amp container in unraid web ui

su amp
ampinstmgr --nocache upgrade

then it prompts for instance name. runs the update. after that I was able to start the server.

MitchTalmadge commented 2 years ago

Thank you, I think this was caused by CubeCoders releasing a patch under the same version number as the original release, which my continuous deployment scripts cannot detect. I've started a release of v18 which should hopefully solve this.

MitchTalmadge commented 2 years ago

Let me know if this still happens!

notschema commented 2 years ago

Let me know if this still happens!

I'm having this issue running UnRaid

AMP Release "Triton"

v20211110.1, built 10/11/2021 03:00

Application State: Installing components
SteamCMD20:25:02
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
20:25:04
[----] Extracting package...
[----] Installing update...
[----] Cleaning up...
[----] Failed to remove temporary unzip folder, continuing anyway
[----] Update complete, launching...
Redirecting stderr to '/home/amp/Steam/logs/stderr.txt'
ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt".
[ 0%] Checking for available update...
[ 0%] Download Complete.
[----] Verifying installation...
[ 0%] Downloading Update...
[ 0%] Checking for available update...
20:25:05
[ 0%] Download Complete.
[----] Extracting package...
[----] Extracting package...
20:25:06
[----] Extracting package...
20:25:07
[----] Extracting package...
[----] Installing update...
[----] Cleaning up...
[----] Failed to remove temporary unzip folder, continuing anyway
[----] Update complete, launching...
MitchTalmadge commented 2 years ago

Thanks! Is there a startup error?

notschema commented 2 years ago

Thanks! Is there a startup error?

I'm not seeing any startup error in either the Unraid Logs or the Container Logs. It's just what i pasted above loops when i start the instance, there isn't errors anywhere else.

Let me know what you want me to try provide and i can, Schema#7399 is my Discord if it makes it easier to grab info off me and we can chuck it in this afterwards, The issue persists on the Nightly & Stable builds

Also to note - this is for the game "Satisfactory"

avalanche208 commented 2 years ago

I am also having issues with Satisfactory, here is my console log after hitting start:

SteamCMD24:24:17
Redirecting stderr to '/home/amp/Steam/logs/stderr.txt'
Looks like steam didn't shutdown cleanly, scheduling immediate update check
src/tier0/threadtools.cpp (4085) : Probably deadlock or failure waiting for thread to initialize.
[ 0%] Checking for available updates...
Thread failed to initialize
src/tier0/threadtools.cpp (4085) : Probably deadlock or failure waiting for thread to initialize.
Thread failed to initialize
CWorkThreadPool::StartWorkThread: Thread creation failed.
Exiting on SPEW_ABORT
24:24:19
Redirecting stderr to '/home/amp/Steam/logs/stderr.txt'
Looks like steam didn't shutdown cleanly, scheduling immediate update check
src/tier0/threadtools.cpp (4085) : Probably deadlock or failure waiting for thread to initialize.
[ 0%] Checking for available updates...
Thread failed to initialize
src/tier0/threadtools.cpp (4085) : Probably deadlock or failure waiting for thread to initialize.
Thread failed to initialize
CWorkThreadPool::StartWorkThread: Thread creation failed.
Exiting on SPEW_ABORT
Moon-developer commented 2 years ago

Has there been an update to this? Can't get Satisfactory to run with the same error as @notschema posted in his logs

MitchTalmadge commented 2 years ago

Is everyone here using Unraid? People in this thread have found that updating to Unraid OS 6.9.2 has fixed this for Valheim, and I suspect it would fix it for all other Steam-based games.

Please try this and let me know, or if you are not using Unraid / are already on the latest version of Unraid, also let me know.

notschema commented 2 years ago

I'm on the latest version 6.10.0-rc2 and the issue still happens.

Morantz commented 2 years ago

I am running 6.10.0-rc4 and am also getting the issue with: ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt"

I tried to use the: su amp ampinstmgr --nocache upgrade But that seemed just reload AMP.

firefloc commented 2 years ago

I am running 6.10.0-rc4 and am also getting the issue with: ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt"

I tried to use the: su amp ampinstmgr --nocache upgrade But that seemed just reload AMP.

same on 6.10.0 RC5

DjSni commented 2 years ago

same one 6.10.0 RC8

CoryWithNoE commented 2 years ago

same error on 6.10.3 of Unraid for any game using SteamCMD

disbedan015 commented 1 year ago

This seems to be due to the version of steamcmd not being the correct one. I am unsure if the linux32 files it came with are also problematic but I replaced them while I was at it. I am pretty basic when it comes to Linux terminal stuff but I figured I'd share what I found worked at least and maybe it will be useful to someone more knowledgeable then myself. I downloaded https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz and extracted the contents so I had both steamcmd.sh and the linux32 folder. From the webpage of amp you'll need to go to the file manager or sftp into your root of your server navigate to the name of the instance you need to fix. go into the folder that is the name of your game You will see steamcmd.sh and a folder for linux32. delete both of these files. You'll need to upload the downloaded version of steamcmd.sh and the linux32 folder From here you'll need to open the console for the amp docker in unraid. run the following commands

su amp cd /home/amp/.ampdata/instances/{instance name here}/{game name here} chmod -x steamcmd.sh chmod -R -x linux32

This seems to have corrected it for me but does need done to every game that uses SteamCMD from what I can tell.

MitchTalmadge commented 8 months ago

Please try the latest update and re-open if it fails. Provide logs if it fails. Thank you!!