Creating new Vein Server Template; encountering issues related to Steam API init after download, during first launch

OS Name/Version: Ubuntu 22.04.5

Product Name/Version: AMP Release “Callisto” v2.5.1.8

Problem Description: I am encountering issues with the Vein Dedicated Server related to Steam API initialization. The server fails to log in using anonymous credentials, leading to error messages about accessing Steam interfaces before the API has been initialized.

[S_API FAIL] Tried to access Steam interface SteamNetworkingMessages002 before SteamAPI_Init succeeded.
[S_API FAIL] Tried to access Steam interface SteamUtils010 before SteamAPI_Init succeeded.

Steps to reproduce:

  1. Create custom AMP Template.
  2. Upload Template to Github.
  3. Fetch Latest Repos.
  4. Create new Vein server.
  5. Initialize steamcmd download.
  6. Launch server.

Actions taken to resolve so far:

  1. Confirmed template successfully downloads and installs the folder structure and first launch creates new files/folders as well.
  2. Attempted to modify VeinServer.sh and log in anonymously before launching the server. Here’s a portion of my script:
# Ensure Steam is running
if ! pgrep -x "steam" > /dev/null; then
    steam -silent &
    sleep 10
fi

# Log into Steam anonymously
if ! steamcmd +login anonymous +quit; then
    echo "Failed to log in to Steam anonymously."
    exit 1
fi
  1. Double-checked KVP Configuration:
Meta.DisplayName=Vein
Meta.Description=Vein Dedicated Server
App.SteamUpdateAnonymousLogin=True
App.ExecutableLinux=2131400//Vein/Binaries/Linux/VeinServer-Linux-Test
App.EnvironmentVariables={"LD_LIBRARY_PATH": "{{$FullBaseDir}}linux64:{{$FullRootDir}}linux64:%LD_LIBRARY_PATH%"}
  1. Looked for additional logs to identify any other issues.

I would appreciate any guidance on how to resolve these API initialization issues or any other troubleshooting steps I may have overlooked. Thank you!

Latest Configuration since this post:

{“_availablePortOptions”:[“Custom Port”,“RCON Port”],“_compatibility”:“None”,“Meta_DisplayName”:“Vein”,“Meta_Description”:“Vein Dedicated Server”,“Meta_Arch”:“x86_64”,“_Meta_Author”:“UserID10T”,“Meta_Author”:“UserID10T - Made with AMP Config Generator”,“_Meta_GithubOrigin”:“https://github.com/UserID10T - Made with AMP Config Generator/AMPTemplates.git”,“_Meta_GithubURL”:“https://github.com/UserID10T - Made with AMP Config Generator/AMPTemplates”,“Meta_URL”:“VEIN on Steam} -batchmode {{CustomServerArgs}} +server.port {{$ServerPort}} +server.queryport {{$Query_RCONPort}} +rcon.port {{$Query_RCONPort}} +app.port {{$RustPlusAppPort}} +rcon.password "{{$RemoteAdminPassword}}" +rcon.web 1 +server.ip {{$ApplicationIPBinding}} +rcon.ip {{$ApplicationIPBinding}} +app.listenip {{$ApplicationIPBinding}} +app.publicip {{$ExternalIP}} {{$FormattedArgs}}”,“App_WindowsCommandLineArgs”:“”,“App_CommandLineParameterFormat”:“-{0} "{1}"”,“App_CommandLineParameterDelimiter”:" “,“App_RapidStartup”:“false”,“App_ApplicationReadyMode”:“Immediate”,“App_ExitMethod”:“OS_CLOSE”,“App_ExitString”:“stop”,“App_ExitTimeout”:“30”,“App_ExitFile”:“app_exit.lck”,“App_SupportsLiveSettingsChanges”:“False”,“App_LiveSettingChangeCommandFormat”:“set {0} "{1}"”,“App_ApplicationIPBinding”:“0.0.0.0”,“App_AdminPortRef”:“RemoteAdminPort”,“App_UniversalSleepApplicationUDPPortRef”:“GamePort1”,“App_PrimaryApplicationPortRef”:“GamePort1”,“App_UniversalSleepSteamQueryPortRef”:“SteamQueryPort”,“App_MaxUsers”:“8”,“App_UseRandomAdminPassword”:“True”,“App_RemoteAdminPassword”:”“,“App_AdminLoginTransform”:“None”,“App_RCONConnectDelaySeconds”:“30”,“App_RCONConnectRetrySeconds”:“15”,“App_RCONHeartbeatCommand”:“ping”,“App_RCONHeartbeatMinutes”:“0”,“App_TelnetLoginFormat”:”{0}“,“App_SteamUpdateAnonymousLogin”:“True”,“App_SteamForceLoginPrompt”:“False”,“App_SupportsUniversalSleep”:“False”,“App_WakeupMode”:“Any”,“App_TemplateMatchRegex”:”{{(\$?[\w]+)}}“,“App_MonitorChildProcess”:“False”,“App_MonitorChildProcessWaitMs”:“1000”,“App_MonitorChildProcessName”:”“,“App_Compatibility”:“None”,”_App_SteamWorkshopDownloadLocation":“”,“App_SteamWorkshopDownloadLocation”:“”,“Console_FilterMatchRegex”:“”,“Console_FilterMatchReplacement”:“”,“Console_ThrowawayMessageRegex”:“(WARNING|ERROR): Shader.+”,“_Console_AppReadyRegex”:“Server is ready\.”,“_Console_UserJoinRegex”:“User \{username} \(\{userid}\) connected from \[\{endpoint}\]“,”_Console_UserLeaveRegex":"User \{username} \(\{userid}\) disconnected\. Reason: \{misc}”,“_Console_UserChatRegex”:“\{username}: \{message}”,“Console_UpdateAvailableRegex”:“^\[\d\d:\d\d:\d\d\] \[INFO\] A new server update is available! v[\d\.]+.$”,“Console_SuppressLogAtStart”:“False”,“Console_ActivateLogRegex”:“”,“Console_UserActions”:“{}”,“Console_SleepMode”:“False”,“Console_SleepOnStart”:“False”,“Console_SleepDelayMinutes”:“5”,“Console_DozeDelay”:“2”,“Console_AutoRetryCount”:“5”,“Console_SleepStartThresholdSeconds”:“25”,“_PortMappings”:[{“_Protocol”:“0”,“Protocol”:“Both”,“Port”:“27021”,“_PortType”:“Steam Query Port”,“_Name”:“Steam Query Port”,“Name”:“Steam Query Port”,“_Description”:“”,“Description”:“Port used for main game traffic”,“Ref”:“SteamQueryPort”},{“_Protocol”:“2”,“Protocol”:“UDP”,“Port”:“7780”,“_PortType”:“Main Game Port”,“_Name”:“Application Port”,“Name”:“Main Game Port”,“_Description”:“Port for main traffic”,“Description”:“Port used for main game traffic”,“Ref”:“MainGamePort”}],“_ConfigFileMappings”:[{“ConfigFile”:“Vein/Saved/Config/WindowsServer/GameUserSettings.ini”,“_ConfigType”:“1”,“ConfigType”:“ini”,“_AutoMap”:true,“AutoMap”:true}],“_UpdateSourceURL”:“”,“_UpdateSourceGitRepo”:“”,“_UpdateSourceUnzip”:false,“_DisplayImageSource”:“steam:1857950”,“_SteamServerAppID”:“2131400”,“_WinExecutableName”:“”,“_LinuxExecutableName”:“Vein/Binaries/Linux/VeinServer-Linux-Test”,“_AppSettings”:[{“DisplayName”:“Server Name”,“Category”:“Server Settings”,“Description”:“The name displayed in the server title.”,“Keywords”:“server,name”,“FieldName”:“servername”,“InputType”:“text”,“IsFlagArgument”:false,“ParamFieldName”:“servername”,“IncludeInCommandLine”:true,“DefaultValue”:“MyVeinServer”,“Placeholder”:“MyVeinServer”,“Suffix”:“”,“Hidden”:false,“SkipIfEmpty”:false,“_CheckedValue”:“true”,“_UncheckedValue”:“false”,“_EnumMappings”:,“EnumValues”:{}},{“DisplayName”:“Max Players”,“Category”:“Server Settings”,“Description”:“The maximum number of players”,“Keywords”:“max,players”,“FieldName”:“maxplayers”,“InputType”:“text”,“IsFlagArgument”:false,“ParamFieldName”:“maxplayers”,“IncludeInCommandLine”:true,“DefaultValue”:“6”,“Placeholder”:“6”,“Suffix”:“”,“Hidden”:false,“SkipIfEmpty”:false,“_CheckedValue”:“true”,“_UncheckedValue”:“false”,“_EnumMappings”:,“EnumValues”:{}}],“_UpdateStages”:[{“UpdateStageName”:“SteamCMD Download”,“_UpdateSourcePlatform”:“1”,“UpdateSourcePlatform”:“Linux”,“_UpdateSource”:“8”,“UpdateSource”:“SteamCMD”,“UpdateSourceData”:“2131400”,“UpdateSourceArgs”:“1857950”,“UpdateSourceVersion”:“public”,“UpdateSourceTarget”:“”,“UnzipUpdateSource”:false,“OverwriteExistingFiles”:false,“_ForceDownloadPlatform”:“1”,“ForceDownloadPlatform”:“Linux”,“UpdateSourceConditionSetting”:null,“UpdateSourceConditionValue”:null,“DeleteAfterExtract”:true,“OneShot”:true}],“Console_AppReadyRegex”:“^Server\s+is\s+ready\\\.$”,“Console_UserJoinRegex”:“^User\s+\\(?.+)\s+\\\(\\(?.+)\\\)\s+connected\s+from\s+\\\[\\(?.+)\\\]$”,“Console_UserLeaveRegex”:“^User\s+\\(?.+)\s+\\\(\\(?.+)\\\)\s+disconnected\\\.\s+Reason:\s+\\.*$”,“Console_UserChatRegex”:“^\\(?.+):\s+\\(?.+)$”,“Meta_OS”:2,“Meta_ConfigManifest”:“veinconfig.json”,“Meta_MetaConfigManifest”:“veinmetaconfig.json”,“_Meta_PortsManifest”:“veinports.json”,“_Meta_StagesManifest”:“veinupdates.json”,“Meta_ConfigRoot”:“vein.kvp”,“App_RootDir”:“./vein/”,“_SteamCheck”:“1857950”,“Meta_DisplayImageSource”:“steam:1857950”,“App_BaseDirectory”:“./vein/1857950/”,“App_WorkingDir”:“1857950”,“_SteamClientAppID”:“1857950”,“App_ExecutableWin”:“1857950\”,“App_ExecutableLinux”:“1857950/Vein/Binaries/Linux/VeinServer-Linux-Test”,“_App_LinuxCommandLineArgsCompat”:“”,“_App_LinuxCommandLineArgsInput”:“”,“App_LinuxCommandLineArgs”:“”,“App_Ports”:“@IncludeJson[veinports.json]”,“App_UpdateSources”:“@IncludeJson[veinupdates.json]”,“Errors”:,“isValid”:true}

Replied on your GitHub issue

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