Alew Posted March 16, 2016 Share Posted March 16, 2016 So, I've been trying to run DST on Digital Ocean (with Ubuntu 15.10), and I followed a number of guides without success. I will paste here the output of one such attempts: Testando, a vanilla forest server (with no caves) - but the same error is given when I run a cluster with caves. Besides the undefined prefab message, it also says Can't find prefab spawnpoint and SpawnSaveRecord [nil, spawnpoint] FAILED. $ ./dontstarve_dedicated_server_nullrenderer -cluster Testando PersistRootStorage is now /home/steam/.klei//DoNotStarveTogether/Testando/Master/ Starting Up Version: 169551 Current time: Tue Mar 15 23:45:12 2016 System Name: Linux Host Name: new-yorker Release(Kernel) Version: 4.2.0-27-generic Kernel Build Timestamp: #32-Ubuntu SMP Fri Jan 22 04:49:08 UTC 2016 Machine Arch: x86_64 Don't Starve Together: 169551 LINUX NNN Build Date: 238 Parsing command line Command Line Arguments: -cluster Testando THREAD - started 'GAClient' (4132907840) CurlRequestManager::ClientThread::Main() ProfileIndex:6.48 [Connect] PendingConnection::Reset(true) Network tick rate: U=15(2), D=0 Network tick rate: U=15(2), D=0 OnLoadPermissionList: /home/steam/.klei//DoNotStarveTogether/Testando/blocklist.txt (Failure) OnLoadPermissionList: /home/steam/.klei//DoNotStarveTogether/Testando/adminlist.txt (Failure) OnLoadUserIdList: /home/steam/.klei//DoNotStarveTogether/Testando/whitelist.txt (Failure) Token retrieved from: /home/steam/.klei//DoNotStarveTogether/Testando/cluster_token.txt Token retrieved from: /home/steam/.klei//DoNotStarveTogether/Testando/cluster_token.txt cGame::InitializeOnMainThread THREAD - started 'ConsoleInput' (4126145344) Renderer initialize: Okay AnimManager initialize: Okay Buffers initialize: Okay cDontStarveGame::DoGameSpecificInitialize() FMOD Error: An invalid object handle was used. GameSpecific initialize: Okay cGame::StartPlaying LOADING LUA DoLuaFile scripts/main.lua DoLuaFile loading buffer scripts/main.lua scripts/main.lua(166,1) running main.lua Could not load modindex ModIndex: Beginning normal load sequence for dedicated server. DownloadMods(0) FMOD Error: An invalid object handle was used. LOADING LUA SUCCESS PlayerDeaths could not load morgue PlayerHistory could not load player_history bloom_enabled false Could not load saveindex OnFilesLoaded() OnUpdatePurchaseStateComplete Load FE Load FE: done ModIndex: Load sequence finished successfully. Reset() returning [200] Account Communication Success (6) Received (KU_8cYRMlEQ) from TokenPurpose Starting Dedicated Server Game Network tick rate: U=15(2), D=0 About to start a server with the following settings: Dedicated: true Online: true Passworded: true ServerPort: 10999 SteamAuthPort: 8766 SteamMasterServerPort: 27016 ClanID: false ClanOnly: false ClanAdmin: false LanOnly: false FriendsOnly: false EnableAutosaver: true PVP: false MaxPlayers: 6 GameMode: endless OverridenDNS: PauseWhenEmpty: true InternetBroadcasting: true Intent: cooperative [Shard] Shard server mode disabled by configuration file Online Server Started on port: 10999 Collecting garbage... lua_gc took 0.02 seconds ~ShardLuaProxy() ~ItemServerLuaProxy() ~InventoryLuaProxy() ~NetworkLuaProxy() ~SimLuaProxy() lua_close took 0.02 seconds ReleaseAll ReleaseAll Finished cGame::StartPlaying LOADING LUA DoLuaFile scripts/main.lua DoLuaFile loading buffer scripts/main.lua scripts/main.lua(166,1) running main.lua loaded modindex ModIndex: Beginning normal load sequence for dedicated server. LOADING LUA SUCCESS PlayerDeaths could not load morgue PlayerHistory could not load player_history bloom_enabled false Could not load saveindex OnFilesLoaded() OnUpdatePurchaseStateComplete Not applying world gen overrides. WorldSim::SimThread::SimThread() ABOUT TO INSTALL STACKTRACE DoLuaFile scripts/stacktrace.lua DoLuaFile loading buffer scripts/stacktrace.lua INSTALLED STACKTRACE WorldSim::SimThread::SimThread() complete ModIndex: Load sequence finished successfully. Reset() returning THREAD - started 'WorldSim' (3891014464) WorldSim::SimThread::Main() DoLuaFile scripts/worldgen_main.lua DoLuaFile loading buffer scripts/worldgen_main.lua DLC enabled : false scripts/worldgen_main.lua(80,1) running worldgen_main.lua scripts/worldgen_main.lua(82,1) SEED = 1458099915 scripts/worldgen_main.lua(439,1) Generating world with these parameters: scripts/worldgen_main.lua(440,1) level_type survival scripts/worldgen_main.lua(441,1) current_level 1 scripts/worldgen_main.lua(442,1) customizationpresets: scripts/worldgen_main.lua(444,1) worldgen_choices: scripts/worldgen_main.lua(467,1) ####### # # Generating SURVIVAL Mode Level # ####### scripts/worldgen_main.lua(475,1) WORLDGEN PRESET: SURVIVAL_TOGETHER scripts/worldgen_main.lua(483,1) WORLDGEN LEVEL ID: 1 scripts/worldgen_main.lua(490,1) ####### # # Generating Normal Mode Together Forever Level SURVIVAL_TOGETHER # ####### Maxwell4 added to Great Plains Chessy_2 added to Make A Beehat Chessy_1 added to Mole Colony Rocks Maxwell6 added to Kill the spiders Maxwell2 added to Squeltch scripts/worldgen_main.lua(525,1) ***************************** scripts/worldgen_main.lua(526,1) Final Worldgen Choices: K: preset V: SURVIVAL_TOGETHER K: level_id V: 1 K: finaltweak V table: 0xe77a2d20 scripts/worldgen_main.lua(528,1) ***************************** Creating story... LinkNodesByKeys Finding valid start task... ...picked Make a pick Has start node Clearing Baking map... 350 [WorldSimActual::GenerateVoronoiMap] GenerateVoronoiMap [1]: [=] ...Done. [AddEmptyNodes] GenerateVoronoiMap [100]: [====================================================================================================] ...Done. [WorldSimActual::GenerateVoronoiMap] complete [success] [WorldSimActual::ConvertToTileMap] [ConvertToTileMap] [WorldSimActual::ConvertToTileMap] complete [WorldSimActual::SeparateIslands] [SeparateIslands] [WorldSimActual::SeparateIslands] complete Map Baked! [WorldSimActual::ForceConnectivity] [GenerateLandmasses] [MergeConnectedLandmasses] true [WorldSimActual::ForceConnectivity] complete [GetWormholesExtra] connected 0 unconnected 1 [GetWormholesExtra] after: connected 1 unconnected 0 [GetWormholesExtra] pushed 0 wormholes [WorldSimActual::DrawRoads] [DrawRoads] [WorldSimActual::DrawRoads] complete Encoding... Encoding... DONE Checking Tags Populating voronoi... Warning! Could not find a spot for MooseNest in node Magic meadow:2:Clearing Warning! Could not find a spot for Maxwell6 in node Kill the spiders:3:CrappyDeepForest Warning! Could not find a spot for Maxwell2 in node Squeltch:BG_38:BGMarsh Warning! Could not find a spot for Dev Graveyard in node Badlands:3:HoundyBadlands disconnected tiles... 0 Done forest map gen! scripts/worldgen_main.lua(248,1) Checking map... scripts/worldgen_main.lua(604,1) Generation complete WorldSim::SimThread::Main() complete Serializing world: session/A2CB3F2957B1612F/0000000002 Unload FE Unload FE done LOAD BE LOAD BE: done Begin Session: A2CB3F2957B1612F saving to server_temp/server_save MiniMapComponent::AddAtlas( minimap/minimap_data.xml ) Could not preload undefined prefab 0x1872ccf0 (FROMNUM) Loading Nav Grid Can't find prefab spawnpoint SpawnSaveRecord [nil, spawnpoint] FAILED Killed $ echo $? 137 I thought that maybe the problem with Testando is that the dedicated server failed at generating the world. So I copied a world generated in the graphical client, Cluster_5. Cluster_5 also doesn't have caves. The error messages seems different, but it still exits with error 137 $ ./dontstarve_dedicated_server_nullrenderer -cluster Cluster_5 PersistRootStorage is now /home/steam/.klei//DoNotStarveTogether/Cluster_5/Master/ Starting Up Version: 169551 Current time: Wed Mar 16 06:21:11 2016 System Name: Linux Host Name: new-yorker Release(Kernel) Version: 4.2.0-27-generic Kernel Build Timestamp: #32-Ubuntu SMP Fri Jan 22 04:49:08 UTC 2016 Machine Arch: x86_64 Don't Starve Together: 169551 LINUX NNN Build Date: 238 Parsing command line Command Line Arguments: -cluster Cluster_5 THREAD - started 'GAClient' (4133399360) CurlRequestManager::ClientThread::Main() ProfileIndex:6.13 [Connect] PendingConnection::Reset(true) Network tick rate: U=15(2), D=0 Network tick rate: U=15(2), D=0 Error trying to change cluster setting (NETWORK->cluster_intention) from '' to 'social' OnLoadPermissionList: /home/steam/.klei//DoNotStarveTogether/Cluster_5/blocklist.txt (Failure) OnLoadPermissionList: /home/steam/.klei//DoNotStarveTogether/Cluster_5/adminlist.txt (Failure) OnLoadUserIdList: /home/steam/.klei//DoNotStarveTogether/Cluster_5/whitelist.txt (Failure) THREAD - started 'ConsoleInput' (4126145344) Token retrieved from: /home/steam/.klei//DoNotStarveTogether/Cluster_5/cluster_token.txt Token retrieved from: /home/steam/.klei//DoNotStarveTogether/Cluster_5/cluster_token.txt cGame::InitializeOnMainThread Renderer initialize: Okay AnimManager initialize: Okay Buffers initialize: Okay cDontStarveGame::DoGameSpecificInitialize() FMOD Error: An invalid object handle was used. GameSpecific initialize: Okay cGame::StartPlaying LOADING LUA DoLuaFile scripts/main.lua DoLuaFile loading buffer scripts/main.lua scripts/main.lua(166,1) running main.lua loaded modindex ModIndex: Beginning normal load sequence for dedicated server. DownloadMods(0) FMOD Error: An invalid object handle was used. LOADING LUA SUCCESS PlayerDeaths could not load morgue PlayerHistory could not load player_history bloom_enabled false loaded saveindex OnFilesLoaded() OnUpdatePurchaseStateComplete Load FE Load FE: done ModIndex: Load sequence finished successfully. Reset() returning [200] Account Communication Success (6) Received (KU_8cYRMlEQ) from TokenPurpose Starting Dedicated Server Game Network tick rate: U=15(2), D=0 About to start a server with the following settings: Dedicated: true Online: true Passworded: true ServerPort: 10999 SteamAuthPort: 8766 SteamMasterServerPort: 27016 ClanID: false ClanOnly: false ClanAdmin: false LanOnly: false FriendsOnly: false EnableAutosaver: true PVP: false MaxPlayers: 6 GameMode: endless OverridenDNS: PauseWhenEmpty: true InternetBroadcasting: true Intent: social [Shard] Shard server mode disabled by configuration file Online Server Started on port: 10999 Collecting garbage... lua_gc took 0.01 seconds ~ShardLuaProxy() ~ItemServerLuaProxy() ~InventoryLuaProxy() ~NetworkLuaProxy() ~SimLuaProxy() lua_close took 0.02 seconds ReleaseAll ReleaseAll Finished cGame::StartPlaying LOADING LUA DoLuaFile scripts/main.lua DoLuaFile loading buffer scripts/main.lua scripts/main.lua(166,1) running main.lua loaded modindex ModIndex: Beginning normal load sequence for dedicated server. LOADING LUA SUCCESS PlayerDeaths could not load morgue PlayerHistory could not load player_history bloom_enabled false loaded saveindex OnFilesLoaded() OnUpdatePurchaseStateComplete Unload FE Unload FE done LOAD BE LOAD BE: done Loading world: session/2E20229260FE2CD1/0000000003 Save file is at version 1 Begin Session: 2E20229260FE2CD1 saving to server_temp/server_save MiniMapComponent::AddAtlas( minimap/minimap_data.xml ) Could not preload undefined prefab 0x1872ccf0 (FROMNUM) Loading Nav Grid setting summerlength 15 setting isnightmaredawn false setting elapseddaysinseason 0 setting isfullmoon false setting moisture 0.033333335071802 setting cavephase day setting isnightmarewild false setting moonphase new setting precipitationrate 0 setting iswet false setting winterlength 15 setting temperature 30.033215972026 setting isnightmarewarn false setting iswinter false setting moistureceil 566.48748779297 setting isday true setting israining false setting remainingdaysinseason 50 setting precipitation none setting wetness 0 setting isnightmarecalm false setting timeinphase 0.000555674235026 setting isdusk false setting iscavedusk false setting isautumn true setting issnowing false setting iscaveday true setting phase day setting snowlevel 0 setting issnowcovered false setting autumnlength 50 setting pop 5.884213824681e-05 setting nightmaretime 0 setting springlength 20 setting isspring false setting nightmarephase none setting season autumn setting time 0.000277837117513 setting iscavenight false setting cycles 0 setting isnight false setting nightmaretimeinphase 0 setting issummer false Killed $ echo $? 137 Well, in both cases, Could not preload undefined prefab 0x1872ccf0 (FROMNUM) is featured. PS: I didn't expect that copying Cluster_5 from my graphical (non-dedicated) game to the DST dedicated server would work; but it still seemed to not get stuck on exactly the same place as Testando. I'm just wondering: why was it Killed in the end? Why the same error code as before, 137? What does this error code mean? Those are the guides I referred: Dedicated Server Quick Setup Guide - Linux (mostly this one) Guides/Don’t Starve Together Dedicated Servers (the token instructions seem outdated) How to setup dedicated server with cave on Linux I'm annexing the relevant files. Testando-server_log.txt Testando-server.ini Testando-cluster.ini Cluster_5-worldgenoverride.lua Cluster_5-server_log.txt Cluster_5-server.ini Cluster_5-cluster.ini Link to comment Share on other sites More sharing options...
Alew Posted March 16, 2016 Author Share Posted March 16, 2016 Also, the same error appear when I run with screen. Doing chmod a+rw `tty` also doesn't help. Link to comment Share on other sites More sharing options...
ToNiO55 Posted March 16, 2016 Share Posted March 16, 2016 Hi @Alew i don't think this is an error that prevents the server works, because I have same thing on my all dedicated server and it's works fine it's also missing part [SHARD] in your two cluster.ini, this is deliberate? or you forget to add this? Link to comment Share on other sites More sharing options...
Alew Posted March 16, 2016 Author Share Posted March 16, 2016 Thanks. So it mysteriously exits, but the error message is actually spurious, good to know. I removed it (more to test of what would happen if I did) but it doesn't change anything if I include it. I read that the [shard] section is useful only if you're running two servers, the main and the caves. Running two servers don't change anything: they successfully connect to each other and run quite a bit, but then suddenly exits. Now the only thing I have is that it exits with error code 137 (on any possible configuration). I can't find documentation on what this code means. And oh, just to note, my Digital Ocean droplet can successfully open the UDP port 10999 and receive data from it (I tested with the nc command) Link to comment Share on other sites More sharing options...
Alew Posted March 16, 2016 Author Share Posted March 16, 2016 I don't get this, in Cluster_5's server_log.txt: Error trying to change cluster setting (NETWORK->cluster_intention) from '' to 'social' It doesn't make sense, because in cluster.ini, I actually have [NETWORK] server_intention = cooperative And it was generated by the graphical DST client running on Steam (I simply copied the file), so it should have the right syntax. Despite that, perhaps it should be cluster_intention = cooperative? edit: indeed, if I change to cluster_intention that error message apparently disappears, but it is still Killed in the end. Link to comment Share on other sites More sharing options...
Alew Posted March 19, 2016 Author Share Posted March 19, 2016 Just to note here: it's being killed because it lacks RAM. I'm starting on a VM with only 512mb of RAM, and it uses all of it until the OOM kills it. dmesg says: [298007.154348] Out of memory: Kill process 1385 (dontstarve_dedi) score 838 or sacrifice child [298007.157221] Killed process 1385 (dontstarve_dedi) total-vm:472340kB, anon-rss:418868kB, file-rss:0kB Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.