Valheim - failed to configure new instance in Docker

  • 648 Views
  • Last Post 12 February 2021
  • Topic Is Solved
AbhorrentJoel posted this 12 February 2021

OS Name/Version: Ubuntu 20.04.2 LTS

Product Name/Version: AMP (version 2.1.0.6 - originally upgraded from 2.1) - NOTE: I am using Docker for instances.

Problem Description: When attempting to create a new instance for Valheim, the configuration fails:

[08:49:34] [InstanceManager:[redacted] Info] : Using cached archive: /home/amp/.ampdata/instances/AMPCache-2106.zip
[08:49:36] [Core:[redacted] Info] : su: ignoring --preserve-environment, it's mutually exclusive with --login
[08:49:36] [Core:[redacted] Info] : -bash: -c: line 0: syntax error near unexpected token `('
[08:49:36] [Core:[redacted] Info] : -bash: -c: line 0: `cd /AMP; HOME=/home/amp /AMP/AMP_Linux_x86_64 -firststart +GenericModule.Meta.DisplayName "Valheim" +GenericModule.Meta.Description "" +GenericModule.Meta.OS "Windows, Linux" +GenericModule.Meta.Author "CubeCoders Limited" +GenericModule.Meta.URL "https://www.valheimgame.com/" +GenericModule.Meta.DisplayImageSource "steam:892970" +GenericModule.Meta.EndpointURIFormat "steam://connect/{0}" +GenericModule.Meta.ConfigManifest "valheimconfig.json" +GenericModule.Meta.ConfigRoot "valheim.kvp" +GenericModule.App.DisplayName "Valheim" +GenericModule.App.RootDir "./Valheim/" +GenericModule.App.ExecutableWin "896660\valheim_server.exe" +GenericModule.App.ExecutableLinux "896660/valheim_server.x86_64" +GenericModule.App.WorkingDir "896660" +GenericModule.App.CommandLineArgs "-port {{$ApplicationPort1}} {{$FormattedArgs}} -savedir \Data\ -public 1" +GenericModule.App.CommandLineVars "{\ServerName\: \My Valheim Server - Powered by AMP\, \WorldName\: \PoweredByAMP\, \ServerPassword\: \12345\}" +GenericModule.App.EnvironmentVariables "{\LD_LIBRARY_PATH\: \./linux64:%LD_LIBRARY_PATH%\, \SteamAppId\: \892970\}" +GenericModule.App.CommandLineParameterFormat "-{0} \\{1\}\" +GenericModule.App.ExitMethod "OS_CLOSE" +GenericModule.App.ExitString "" +GenericModule.App.ExitFile "" +GenericModule.App.HasWriteableConsole "False" +GenericModule.App.HasReadableConsole "True" +GenericModule.App.ApplicationIPBinding "0.0.0.0" +GenericModule.App.ApplicationPort1 "5678" +GenericModule.App.ApplicationPort2 "5679" +GenericModule.App.ApplicationPort3 "5680" +GenericModule.App.RemoteAdminPort "0" +GenericModule.App.MaxUsers "10" +GenericModule.App.UseRandomAdminPassword "False" +GenericModule.App.RemoteAdminPassword "Password123" +GenericModule.App.AdminMethod "STDIO" +GenericModule.App.UpdateSource "SteamCMD" +GenericModule.App.Compatibility "None" +GenericModule.App.SteamUpdateAnonymousLogin "True" +GenericModule.App.SteamForceWindowsVersion "False" +GenericModule.App.UpdateSourceData "896660" +GenericModule.App.UpdateSourceArgs "" +GenericModule.App.UpdateSourceVersion "" +GenericModule.App.UnzipUpdateSource "False" +GenericModule.App.OverwriteExistingFiles "False" +GenericModule.App.ApplicationReadyMode "RegexMatch" +GenericModule.Console.FilterMatchRegex "^\d\d\/\d\d\/\d{4} \d\d:\d\d:\d\d: " +GenericModule.Console.FilterMatchReplacement "" +GenericModule.Console.ThrowawayMessageRegex "^\(Filename: .*? Line: \d+\)$" +GenericModule.Console.AppReadyRegex "^Game server connected$" +GenericModule.Console.UserJoinRegex "^Got character ZDOID from (?<username>.+?) : (?<userid>-?\d+):\d+$" +GenericModule.Console.UserLeaveRegex "^Destroying abandoned non persistent zdo -?\d+:\d+ owner (?<userid>-?\d+)$" +GenericModule.Console.UserChatRegex "" +GenericModule.Console.UserActions "{}" +Core.Privacy.AutoReportFatalExceptions "false" +Core.Privacy.AllowAnalytics "false" +Core.Login.UseAuthServer "True" +Core.Login.AuthServerURL "http://localhost:8080/" +Core.Login.MetricsServerPort "12820" +FileManagerPlugin.SFTP.SFTPIPBinding "0.0.0.0" +FileManagerPlugin.SFTP.SFTPPortNumber "2227" +Core.Webserver.Port "8084" +Core.Webserver.IPBinding "127.0.0.1" +Core.AMP.AppModule "GenericModule" +Core.AMP.InstanceID "[redacted]" +Core.AMP.InstanceName "Valheim01" +Core.AMP.FriendlyName "Valheim01" +Core.AMP.PrimaryEndpoint "0.0.0.0:5678" +Core.AMP.PrimaryEndpointUri "steam://connect/0.0.0.0:5678" +Core.AMP.LicenceKey "[redacted]"; exit 0'
[08:49:36] [InstanceManager:[redacted] Warning] : Failed to configure new instance Valheim01 - Startup failure: Docker returned error code 1
[08:49:36] [InstanceManager:[redacted] Error] : Configuration Failed: Startup failure: Docker returned error code 1

Steps to reproduce:

  • Install AMP (enable Docker for instances)
  • Attempt to create Valheim instance

Actions taken to resolve so far:

  • Updated all instances using nocache
  • Attempted to try without Docker (appears to configure to launch fine outside a container)

Order By: Standard | Newest | Votes
Mike posted this 12 February 2021

Known issue, Nightly has a fix for this.

AbhorrentJoel posted this 12 February 2021

'ery nice. Works now.

Close