Jump to content

Unable to download mod for Ubuntu 24.04 Server


ouni00
  • Pending

updated dedicated_server_mods_setup.lua as follow:

--There are two functions that will install mods, ServerModSetup and ServerModCollectionSetup. Put the calls to the functions in this file and they will be executed on boot.

--ServerModSetup takes a string of a specific mod's Workshop id. It will download and install the mod to your mod directory on boot.
	--The Workshop id can be found at the end of the url to the mod's Workshop page.
	--Example: http://steamcommunity.com/sharedfiles/filedetails/?id=350811795
	--ServerModSetup("350811795")

--ServerModCollectionSetup takes a string of a specific mod's Workshop id. It will download all the mods in the collection and install them to the mod directory on boot.
	--The Workshop id can be found at the end of the url to the collection's Workshop page.
	--Example: http://steamcommunity.com/sharedfiles/filedetails/?id=379114180
	--ServerModCollectionSetup("379114180")
ServerModSetup("1185229307")
ServerModSetup("1595631294")
ServerModSetup("2189004162")
ServerModSetup("2621090176")
ServerModSetup("2946486855")
ServerModSetup("3044756151")
ServerModSetup("3138571948")

Tried to start server using https://accounts.klei.com/assets/gamesetup/linux/run_dedicated_servers.sh with following line removed

./steamcmd.sh +force_install_dir "$install_dir" +login anonymous +app_update 343050 validate +quit

The mod does not download from steam successfully.

Also tried 

./dontstarve_dedicated_server_nullrenderer_x64 -only_update_server_mods -ugc_directory ../ugc_mods -cluster MyDediServer -shard Master

Log:

[00:00:00]: PersistRootStorage is now /home/ouni00/.klei//DoNotStarveTogether/MyDediServer/Master/
[00:00:00]: Starting Up
[00:00:00]: Version: 634023
[00:00:00]: Current time: Tue Oct 15 16:04:27 2024

[00:00:00]: System Name: Linux
[00:00:00]: Host Name: superserver
[00:00:00]: Release(Kernel) Version: 6.8.0-47-generic
[00:00:00]: Kernel Build Timestamp: #47-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 27 21:40:26 UTC 2024
[00:00:00]: Machine Arch: x86_64
[00:00:00]: Don't Starve Together: 634023 LINUX
[00:00:00]: Build Date: 2686
[00:00:00]: Mode: 64-bit
[00:00:00]: Parsing command line
[00:00:00]: Command Line Arguments: -only_update_server_mods -ugc_directory ../ugc_mods -cluster MyDediServer -shard Master
[00:00:00]: Initializing distribution platform
[00:00:00]: ....Done
[00:00:00]: THREAD - started 'GAClient' (129511710525120)
[00:00:00]: CurlRequestManager::ClientThread::Main()
[00:00:00]: ProfileIndex:0.72
[00:00:00]: Mounting file system databundles/klump.zip successful.
[00:00:00]: Mounting file system databundles/shaders.zip successful.
[00:00:00]: Mounting file system databundles/fonts.zip successful.
[00:00:00]: Mounting file system databundles/anim_dynamic.zip successful.
[00:00:00]: Mounting file system databundles/bigportraits.zip successful.
[00:00:00]: Mounting file system databundles/images.zip successful.
[00:00:00]: Mounting file system databundles/scripts.zip successful.
[00:00:00]: [Steam] SteamGameServer_Init(11000, 27018)
[S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
CAppInfoCacheReadFromDiskThread took 2 milliseconds to initialize
Setting breakpad minidump AppID = 322330
[00:00:00]: [Steam] SteamGameServer_Init success
[00:00:00]: [Connect] PendingConnection::Reset(true)
[00:00:00]: Platform: 1
[00:00:00]: Network tick rate: U=15(2), D=0
[00:00:00]: Network tick rate: U=15(2), D=0
[00:00:00]: OnLoadPermissionList: /home/ouni00/.klei//DoNotStarveTogether/MyDediServer/blocklist.txt (Failure)
[00:00:00]: THREAD - started 'StreamInput' (129511582598848)
[00:00:00]: OnLoadPermissionList: /home/ouni00/.klei//DoNotStarveTogether/MyDediServer/adminlist.txt (Failure)
[00:00:00]: OnLoadUserIdList: /home/ouni00/.klei//DoNotStarveTogether/MyDediServer/whitelist.txt (Failure)
[00:00:00]: Token retrieved from: /home/ouni00/.klei//DoNotStarveTogether/MyDediServer/cluster_token.txt
[00:00:00]: Token retrieved from: /home/ouni00/.klei//DoNotStarveTogether/MyDediServer/cluster_token.txt
[00:00:00]: cGame::InitializeOnMainThread
[00:00:00]: Renderer initialize: Okay
[00:00:00]: AnimManager initialize: Okay
[00:00:00]: Buffers initialize: Okay
[00:00:00]: cDontStarveGame::DoGameSpecificInitialize()
[00:00:00]: GameSpecific initialize: Okay
[00:00:00]: cGame::StartPlaying
[00:00:00]: AppVersion::GetArchitecture() x64
[00:00:00]: LOADING LUA
[00:00:00]: DoLuaFile scripts/main.lua
[00:00:00]: DoLuaFile loading buffer scripts/main.lua
[00:00:00]: Translator:LoadPOFile - loading file: scripts/languages/chinese_s.po
[00:00:02]:   taskgrouplist:    default 联机版
[00:00:02]:   taskgrouplist:    classic 经典
[00:00:02]:   taskgrouplist:    cave_default    地下
[00:00:02]:   taskgrouplist:    lavaarena_taskset       熔炉
[00:00:02]:   taskgrouplist:    quagmire_taskset        暴食
[00:00:02]: Running main.lua

[00:00:02]: loaded modindex
[00:00:02]: ModIndex: Beginning normal load sequence for dedicated server.

[00:00:02]: FinishDownloadingServerMods Complete! Process trying to quit nicely..
[00:00:02]: SUCCESS: Loaded modoverrides.lua
[00:00:02]: Event data unavailable: lavaarena_event_server/lavaarena_achievement_quest_defs
[00:00:03]: LOADING LUA SUCCESS
[00:00:03]: PlayerDeaths could not load morgue
[00:00:03]: PlayerHistory could not load player_history
[00:00:03]: ServerPreferences could not load server_preferences
[00:00:03]: ConsoleScreenSettings could not load consolescreen
[00:00:03]: bloom_enabled       true
[00:00:03]: OnFilesLoaded()
[00:00:03]: OnUpdatePurchaseStateComplete
[00:00:03]: Klump load on boot started.
[00:00:03]: Klump files loaded:         0
[00:00:04]:     Load FE
[00:00:04]:     Load FE: done
[00:00:04]: THREAD - started 'FilesExistAsyncThread' (129511540655808)
[00:00:04]: FilesExistAsyncThread started (25087 files)...
[00:00:04]: Check for write access: TRUE
[00:00:04]: Check for read access: TRUE
[00:00:04]: Available disk space for save files: 84617 MB
[00:00:04]: ModIndex: Load sequence finished successfully.
[00:00:04]: Reset() returning
Updates 0Seconds elapsed: 3.73913 fps:0
Saving Dedicated server data...
[00:00:04]: Collecting garbage...
[00:00:04]: lua_gc took 0.08 seconds
[00:00:04]: ~ShardLuaProxy()
[00:00:04]: ~cEventLeaderboardProxy()
[00:00:04]: ~ItemServerLuaProxy()
[00:00:04]: ~InventoryLuaProxy()
[00:00:04]: ~NetworkLuaProxy()
[00:00:04]: ~SimLuaProxy()
[00:00:04]: FilesExistAsyncThread aborted.
[00:00:04]: ... FilesExistAsyncThread complete
[00:00:04]: lua_close took 0.10 seconds
[00:00:04]: CurlRequestManager::ClientThread::Main() complete
[00:00:04]: HttpClient2 discarded 0 callbacks.
[00:00:04]: Shutting down
src/tier1/fileio.cpp (5086) : m_vecRegisteredWriters.Count() == 0
src/tier1/fileio.cpp (5086) : m_vecRegisteredWriters.Count() == 0
src/tier1/fileio.cpp (5196) : CFileWriterThread already exited
src/tier1/fileio.cpp (5196) : CFileWriterThread already exited
Segmentation fault (core dumped)

 


Steps to Reproduce

Install ubuntu 24.04

Follow 

to setup

update  dedicated_server_mods_setup.lua and start the dedicated server




User Feedback


Same issue for ubuntu 18.04, which makes the process of updating mods in dedicated server so cumbersome. Fix it please :)

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...