Jump to content

game client crashes when joining my dedicated server


Recommended Posts

So I got my server up and running, but whenever I attempt to join the server I get the followinging stacktrace:

322330_screenshots_2015-02-15_00001.jpg

 

 

settings.ini

 

[sTEAM]

DISABLECLOUD = true
 
 
[network]
default_server_name = Kallisti11235
default_server_description = testing dedicated server
server_port = 10999
max_players = 10
pvp = true
game_mode = survival
enable_snapshots = false
enable_autosaver = true
tick_rate = 30
enable_vote_kick = true
pause_when_empty = false
server_save_slot = 1
 
 
[MISC]
CONSOLE_ENABLED = true
MODS_ENABLED = true
 

 

server-side log.txt

 

Starting Up

Version: 126778
Don't Starve Together: 126778 LINUX
Build Date: 2015-02-12_17-20-33
Command Line Arguments: -conf_dir survival 
THREAD - started 'GAClient' (4136135488)
create "/home/steam/.klei/survival"
create "/home/steam/.klei/survival/save"
create "/home/steam/.klei/survival/save/mod_config_data"
HttpClient::ClientThread::Main()
create "/home/steam/.klei/survival/save/server"
create "/home/steam/.klei/survival/save/client"
create "/home/steam/.klei/survival/save/session"
THREAD - started 'GAClient' (4133657408)
HttpClient::ClientThread::Main()
THREAD - started 'GAClient' (4132436800)
HttpClient::ClientThread::Main()
Network tick rate: U=15(2), D=0
Network tick rate: U=30(1), D=0
OnLoadPermissionList: /home/steam/.klei/survival/save/blocklist.txt (Failure)
OnLoadPermissionList: /home/steam/.klei/survival/save/adminlist.txt (Failure)
Server token retrieved from: server_token.txt
THREAD - started 'GAClient' (4132301632)
HttpClient::ClientThread::Main()
cGame::InitializeOnMainThread
cDontStarveGame::DoGameSpecificInitialize()
FMOD Error: An invalid object handle was used. 
cGame::StartPlaying
LOADING LUA
DoLuaFile scripts/main.lua
DoLuaFile loading buffer scripts/main.lua
scripts/main.lua(167,1) running main.lua
 
loaded modindex
ModIndex: Beginning normal load sequence for dedicated server.
 
FMOD Error: An invalid object handle was used. 
LOADING LUA SUCCESS
PlayerDeaths could not load morgue
loaded profile
bloom_enabled false
loaded saveindex
OnFilesLoaded()
OnUpdatePurchaseStateComplete
Unload BE
Could not unload undefined prefab 0x4374c56c (yellowstaff)
Could not unload undefined prefab 0x303bfdce (axe)
Could not unload undefined prefab 0x94cf6c04 (goldenpickaxe)
Could not unload undefined prefab 0x1541c9cc (armorruins)
Could not unload undefined prefab 0x8cc766ef (pumpkin_lantern)
Could not unload undefined prefab 0xfdcabd86 (earmuffshat)
Could not unload undefined prefab 0x9a6718eb (resurrectionstatue)
Could not unload undefined prefab 0x6b0c64bf (resurrectionstatue_placer)
Could not unload undefined prefab 0x69afe33b (book_brimstone)
Could not unload undefined prefab 0xdfb37276 (telestaff)
Could not unload undefined prefab 0xaf34ecc0 (trunkvest_winter)
Could not unload undefined prefab 0x34a58be1 (book_sleep)
Could not unload undefined prefab 0xa3ec4f57 (book_gardening)
Could not unload undefined prefab 0x875750ea (turf_road)
Could not unload undefined prefab 0x2cc493e4 (book_birds)
Could not unload undefined prefab 0xcd7669e5 (nightsword)
Could not unload undefined prefab 0x1daa5ab7 (turf_carpetfloor)
Could not unload undefined prefab 0xefa57cea (bandage)
Could not unload undefined prefab 0xde4bc7e7 (wall_hay_item)
Could not unload undefined prefab 0xe51acd32 (lightning_rod)
Could not unload undefined prefab 0x947bfcb8 (lightning_rod_placer)
Could not unload undefined prefab 0x378bda50 (wall_wood_item)
Could not unload undefined prefab 0xb1fa364d (pickaxe)
Could not unload undefined prefab 0x34fb4f82 (pitchfork)
Could not unload undefined prefab 0xdf13a0c1 (ruins_bat)
Could not unload undefined prefab 0xe490ce6b (book_tentacles)
Could not unload undefined prefab 0x3f5176c5 (firepit)
Could not unload undefined prefab 0x8a462465 (firepit_placer)
Could not unload undefined prefab 0xe16c07d0 (ruinshat)
Could not unload undefined prefab 0x3d4d1dc6 (bedroll_straw)
Could not unload undefined prefab 0xadfdb7ae (armor_sanity)
Could not unload undefined prefab 0x3edae42e (multitool_axe_pickaxe)
Could not unload undefined prefab 0x76d26529 (bugnet)
Could not unload undefined prefab 0x5ce426c4 (blowdart_fire)
Could not unload undefined prefab 0xc3bf310c (blueamulet)
Could not unload undefined prefab 0x36768a92 (orangestaff)
Could not unload undefined prefab 0xa0c84037 (wall_moonrock_item)
Could not unload undefined prefab 0x1c48b877 (campfire)
Could not unload undefined prefab 0xdfe3a33 (campfire_placer)
Could not unload undefined prefab 0x1153dbb9 (pottedfern)
Could not unload undefined prefab 0xf2102a71 (pottedfern_placer)
Could not unload undefined prefab 0x4740cff7 (tent)
Could not unload undefined prefab 0xb4d742b3 (tent_placer)
Could not unload undefined prefab 0x10473739 (spear)
Could not unload undefined prefab 0x2ca456a0 (orangeamulet)
Could not unload undefined prefab 0x8d44bbad (cookpot)
Could not unload undefined prefab 0x30d2f57d (cookpot_placer)
Could not unload undefined prefab 0xa1e54a85 (goldenaxe)
Could not unload undefined prefab 0x739fbe3c (homesign)
Could not unload undefined prefab 0x33fdbd2e (homesign_placer)
Could not unload undefined prefab 0xa8b25abc (wall_ruins_item)
Could not unload undefined prefab 0xe6af29d2 (compass)
Could not unload undefined prefab 0x21bf03b1 (thulecite)
Could not unload undefined prefab 0xcf1626 (rabbithouse)
Could not unload undefined prefab 0x1aa31ec4 (rabbithouse_placer)
Could not unload undefined prefab 0xe474f23c (armormarble)
Could not unload undefined prefab 0x3ccdbe75 (icestaff)
Could not unload undefined prefab 0x68ba7101 (researchlab3)
Could not unload undefined prefab 0xd6985329 (researchlab3_placer)
Could not unload undefined prefab 0xcda99af6 (winterhat)
Could not unload undefined prefab 0x19c004b2 (pighouse)
Could not unload undefined prefab 0x469fe538 (pighouse_placer)
Could not unload undefined prefab 0xca16846d (boards)
Could not unload undefined prefab 0x2e264dbc (blowdart_pipe)
Could not unload undefined prefab 0x2e54b535 (cane)
Could not unload undefined prefab 0xfa14dec6 (birdtrap)
Could not unload undefined prefab 0xe2bfa46 (tophat)
Could not unload undefined prefab 0x7c11af2 (treasurechest)
Could not unload undefined prefab 0xd411bef8 (treasurechest_placer)
Could not unload undefined prefab 0xef21c9f2 (rope)
Could not unload undefined prefab 0x539e9e8a (trunkvest_summer)
Could not unload undefined prefab 0x75370b6 (papyrus)
Could not unload undefined prefab 0xb981ecda (fast_farmplot)
Could not unload undefined prefab 0x2639673 (farmplot_placer)
Could not unload undefined prefab 0xf4eb0943 (shovel)
Could not unload undefined prefab 0xbcfca634 (strawhat)
Could not unload undefined prefab 0x3f6c9ebb (diviningrod)
Could not unload undefined prefab 0x86860bc2 (boomerang)
Could not unload undefined prefab 0x761a1799 (gunpowder)
Could not unload undefined prefab 0x1cd9e60e (razor)
Could not unload undefined prefab 0x46094f1b (beefalohat)
Could not unload undefined prefab 0x68ba7100 (researchlab2)
Could not unload undefined prefab 0x3386a16a (researchlab2_placer)
Could not unload undefined prefab 0xec43b9f4 (sewing_kit)
Could not unload undefined prefab 0x68370bd6 (trap_teeth)
Could not unload undefined prefab 0x9a99c7b7 (armorgrass)
Could not unload undefined prefab 0x8bbc7f55 (beemine)
Could not unload undefined prefab 0xd8067599 (beehat)
Could not unload undefined prefab 0xda17c8e8 (armorslurper)
Could not unload undefined prefab 0x47611d71 (sweatervest)
Could not unload undefined prefab 0x85181f7c (minerhat)
Could not unload undefined prefab 0x15220700 (backpack)
Could not unload undefined prefab 0xfb180669 (blowdart_sleep)
Could not unload undefined prefab 0xe8f381a1 (turf_checkerfloor)
Could not unload undefined prefab 0xd5201c09 (beebox)
Could not unload undefined prefab 0x753b7621 (beebox_placer)
Could not unload undefined prefab 0xb918c5fd (fishingrod)
Could not unload undefined prefab 0x111db7ae (footballhat)
Could not unload undefined prefab 0x80cb1e18 (featherhat)
Could not unload undefined prefab 0x5a59f5cc (goldenshovel)
Could not unload undefined prefab 0xbea16a01 (hambat)
Could not unload undefined prefab 0xc4101586 (hammer)
Could not unload undefined prefab 0x4685284 (umbrella)
Could not unload undefined prefab 0x6f21e747 (piggyback)
Could not unload undefined prefab 0xe87e06c0 (icebox)
Could not unload undefined prefab 0xf2bd1baa (icebox_placer)
Could not unload undefined prefab 0x41ba89b5 (nightmarefuel)
Could not unload undefined prefab 0x3949a42 (meatrack)
Could not unload undefined prefab 0x56340ba8 (meatrack_placer)
Could not unload undefined prefab 0xbc429ef3 (bushhat)
Could not unload undefined prefab 0xcceee6c3 (cutstone)
Could not unload undefined prefab 0xfbaefa0e (rainometer)
Could not unload undefined prefab 0xeea990dc (rainometer_placer)
Could not unload undefined prefab 0x89c20b1b (telebase)
Could not unload undefined prefab 0x868a468f (telebase_placer)
Could not unload undefined prefab 0x3cb06493 (healingsalve)
Could not unload undefined prefab 0xe5936c6a (firestaff)
Could not unload undefined prefab 0x37c31aa6 (lantern)
Could not unload undefined prefab 0x9d92cce (purpleamulet)
Could not unload undefined prefab 0x7fcb037d (greenstaff)
Could not unload undefined prefab 0xa90e8c50 (lifeinjector)
Could not unload undefined prefab 0x7f2d088c (armorwood)
Could not unload undefined prefab 0x7f46d7c0 (batbat)
Could not unload undefined prefab 0x62a5e7fe (nightlight)
Could not unload undefined prefab 0x185806ec (nightlight_placer)
Could not unload undefined prefab 0xb6201ac9 (onemanband)
Could not unload undefined prefab 0xf0330963 (panflute)
Could not unload undefined prefab 0x3c935451 (eyeturret_item)
Could not unload undefined prefab 0x22ec3802 (wall_stone_item)
Could not unload undefined prefab 0x4d9a964d (trap)
Could not unload undefined prefab 0xbd603add (reviver)
Could not unload undefined prefab 0xda1f7edf (winterometer)
Could not unload undefined prefab 0x955229cb (winterometer_placer)
Could not unload undefined prefab 0xcba65752 (amulet)
Could not unload undefined prefab 0x38967bb2 (researchlab)
Could not unload undefined prefab 0x77e9ae38 (researchlab_placer)
Could not unload undefined prefab 0xcad92460 (flowerhat)
Could not unload undefined prefab 0xb1591875 (greenamulet)
Could not unload undefined prefab 0xdac7fbf5 (birdcage)
Could not unload undefined prefab 0xe1f9b335 (birdcage_placer)
Could not unload undefined prefab 0x68ba7102 (researchlab4)
Could not unload undefined prefab 0x79aa04e8 (researchlab4_placer)
Could not unload undefined prefab 0x263bc4d5 (slow_farmplot)
Could not unload undefined prefab 0x2639673 (farmplot_placer)
Could not unload undefined prefab 0xe5071541 (nightmare_timepiece)
Could not unload undefined prefab 0x2c158f7c (torch)
Could not unload undefined prefab 0x2ae7e3b3 (purplegem)
Could not unload undefined prefab 0x265d1455 (turf_woodfloor)
Could not unload undefined prefab 0xf8e41fa9 (bedroll_furry)
Could not unload undefined prefab 0xdb20fa95 (heatrock)
Could not unload undefined prefab 0x9a0ed246 (yellowamulet)
Could not unload undefined prefab 0x33ab6997 (hud)
Could not unload undefined prefab 0x3364203d (forest)
Could not unload undefined prefab 0x2e5cb72d (cave)
Could not unload undefined prefab 0x40b82ff2 (maxwell)
Could not unload undefined prefab 0xbddda476 (fire)
Could not unload undefined prefab 0x1078732c (character_fire)
Could not unload undefined prefab 0x427b5b39 (shatter)
Unload BE done
Load FE
Load FE: done
ModIndex: Load sequence finished successfully.
 
Reset() returning
THREAD - started 'GAClient' (4128725824)
HttpClient::ClientThread::Main()
DownloadMods(4)
Download server mod 343762271
RecursivelyDeleteDirectory [../mods/workshop-343762271]
Could not open directory [../mods/workshop-343762271] 2 (/home/steam/steamapps/DST/data)
cWorkshopMod::UnzipMod ../mods/workshop-343762271
Download server mod 356833566
RecursivelyDeleteDirectory [../mods/workshop-356833566]
Could not open directory [../mods/workshop-356833566] 2 (/home/steam/steamapps/DST/data)
cWorkshopMod::UnzipMod ../mods/workshop-356833566
Download server mod 373991022
RecursivelyDeleteDirectory [../mods/workshop-373991022]
Could not open directory [../mods/workshop-373991022] 2 (/home/steam/steamapps/DST/data)
cWorkshopMod::UnzipMod ../mods/workshop-373991022
Download server mod 369588618
RecursivelyDeleteDirectory [../mods/workshop-369588618]
Could not open directory [../mods/workshop-369588618] 2 (/home/steam/steamapps/DST/data)
cWorkshopMod::UnzipMod ../mods/workshop-369588618
HttpClient::ClientThread::Main() complete
[200] Account Communication Success (6)
[ACCOUNT_ACTION_TOKEN_PURPOSE] Received UserId from TokenPurpose: KU_8x6Y5bux
Starting Dedicated Server Game
Network tick rate: U=30(1), D=0
Setting up socket descriptors
Online Server Started on port: 10999
Collecting garbage...
lua_gc took 0.01 seconds
~NetworkLuaProxy()
~SimLuaProxy()
lua_close took 0.01 seconds
ReleaseAll
ReleaseAll Finished
cGame::StartPlaying
LOADING LUA
DoLuaFile scripts/main.lua
DoLuaFile loading buffer scripts/main.lua
scripts/main.lua(167,1) running main.lua
 
loaded modindex
ModIndex: Beginning normal load sequence for dedicated server.
 
LOADING LUA SUCCESS
PlayerDeaths could not load morgue
loaded profile
bloom_enabled false
loaded saveindex
OnFilesLoaded()
OnUpdatePurchaseStateComplete
Unload FE
Unload FE done
LOAD BE
Could not preload undefined prefab 0x20e21d7a (puppet_wes)
Could not preload undefined prefab 0x20e21d7a (puppet_wes)
LOAD BE: done
Begin Session: 0000000011D60EC1
saving to server/0000000011D60EC1/server_save
MiniMapComponent::AddAtlas( minimap/minimap_data.xml )
Loading Nav Grid
ClearCurrentResurrectors CB
DeregisterResurrector
DeregisterResurrector
DeregisterResurrector
DeregisterResurrector
0 uploads added to server. From server/0000000011D60EC1
Telling Client our new session identifier: 0000000011D60EC1
ModIndex: Load sequence finished successfully.
 
Reset() returning
New incoming connection 75.90.8.202|53156
ValidateGameSessionToken token: cqdSjhD/y7lyEi1I2vxpEYqbcEmLjV3y for: 373799073061517188
SendHandShakeServerListing
Resurrector:OnSave 100054 - resurrectionstone used:false active:false
DeregisterResurrector
DeregisterResurrector
Resurrector:OnSave 100055 - resurrectionstone used:false active:false
DeregisterResurrector
DeregisterResurrector
Saved survival_1
Resurrector:OnSave 100054 - resurrectionstone used:false active:false
DeregisterResurrector
DeregisterResurrector
Resurrector:OnSave 100055 - resurrectionstone used:false active:false
DeregisterResurrector
DeregisterResurrector
Saved survival_1
ID_CONNECTION_LOST 75.90.8.202|53156
 

 

Link to comment
Share on other sites

  • Developer

It sounds like the map on the server is somehow corrupt.

 

I would suspect one of the mods you have enabled is causing your grief.

 

You can try disabling mods / resetting the world and then see if you can connect.  This would rule out the game / hardware causing the issue.

 

Link to comment
Share on other sites

I tried this fix client-side, but it doesn't seem to affect anything. I don't appear to be having the same issue as people in that thread, though I'm getting a very similar stacktrace. For one, I can connect to any other server (including other dedicated servers) without issue. Secondly, everything appears to be saving/loading from My Documents as expected. I also added a "-persistent_storage_root ~/.klei" option to my server launch script to see if this did anything, but it also has no effect. Both changes were done in separate tests.

 

I might look through the lua scripts later today and add some trace statements for additional debug info. Anything in particular I should be looking to print out from the lua files?

 

Additionally, I'm running my server on a dreamhost VPS running Ubuntu 12.04. it's very possible that the way the VPS is sandboxed is interfering with DST normal operation. For instance, I know that raw access to network interfaces (eth0, etc) is not allowed on my VPS. I doubt DST interacts directly with the network interfaces in this way, but there could be some other system resource that is denying permission or configured unexpectedly that might cause server-side save state to be corrupted. Is there anything I should check on the server that might indicate this is the case?

 

Link to comment
Share on other sites

  • Developer

@kallisti,

 

Ah, you're correct, if you can join other servers it's not a client side issue but a server side issue. It happening on Linux surprises me.

 

When you get this error on the client, does the directory exist, and does the file exist server_save exist inside that directory on the server? (in the ~/.klei/DoNotStarveTogether/server/save directory)

 

 

Link to comment
Share on other sites

Ah, my apologies, that's not the actual path I pass to the option.  Here's my shell script for reference.

 

#!/bin/shcd /home/steam/steamapps/DST/binscreen -S dst ./dontstarve_dedicated_server_nullrenderer -conf_dir survival -persistent_storage_root /home/steam/.klei

So everything is already in canonical path form. Also, shell automatically expands tildes, for example:

 

$ echo ./dontstarve_dedicated_server_nullrenderer -conf_dir survival -persistent_storage_root ~/.klei./dontstarve_dedicated_server_nullrenderer -conf_dir survival -persistent_storage_root /home/steam/.klei

This behavior is standard shell language behavior (http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_01) , so any "sh" based languages (i.e. bash) should work this way.

 

That being said, if you surround the tilde in double quotes, it won't expand, so it might be a good idea to implement the tilde expansion yourself anyway, because people might write something like:

 

$ echo ./dontstarve_dedicated_server_nullrenderer -conf_dir survival -persistent_storage_root "~/.klei"./dontstarve_dedicated_server_nullrenderer -conf_dir survival -persistent_storage_root ~/.klei

and might be confused because they didn't realize the tilde doesn't expand in double quotes.

 

Anyway, going back to the problem at hand: The directory in the error message (C:\Users\adam\Documents\Klei\DoNotStarveTogether\save\client\00000000036BAAEE) exists and is empty. Here is the structure of my save directory while the server is running in the background:

steam@ps396496:~/.klei/survival/save$ tree -aF.|-- boot_modindex|-- client/|-- mod_config_data/|-- modindex|-- profile|-- saveindex|-- server/|   `-- 00000000036BAAEE/|       `-- server_save|-- session/|   `-- 00000000036BAAEE/`-- survival_16 directories, 6 files

EDIT: changed some formatting around with the code blocks

 

EDIT: added more information about the client-side save directory

Link to comment
Share on other sites

More info on server_save:

steam@ps396496:~/.klei/survival/save$ stat server/00000000036BAAEE/server_save  File: `server/00000000036BAAEE/server_save'  Size: 257227          Blocks: 504        IO Block: 4096   regular fileDevice: 811h/2065d      Inode: 1096509788  Links: 1Access: (0664/-rw-rw-r--)  Uid: (11144/   steam)   Gid: (11144/   steam)Access: 2015-02-19 12:40:42.016586501 -0800Modify: 2015-02-19 12:26:33.166190316 -0800Change: 2015-02-19 12:26:33.166190316 -0800 Birth: -
Link to comment
Share on other sites

I'm having the exact same issue, Dreamhost and all. @kallisti, were you able to get up and running on a different host?

For what it's worth, this has been working for me as a workaround:
1. Start the server.
2. Start the client.
3. Attempt to join the client to the server. Receive the "load failed for file [client/<save ID>/server_save]" message and close the client.
4. On the server, locate the ~/.klei/DoNotStarveTogether/save/server/<save ID> directory (or wherever your server's saves are stored).
5. Copy the server_save file from the server to the corresponding <save ID> directory on the client, e.g. C:\Users\Username\Documents\Klei\DoNotStarveTogether\save\client\<save ID>.
6. Start the client again and join the server. The client should connect normally now.

Obviously, this is a little clumsy, especially for people who don't have shell/FTP access to the server. You'll need to make the server_save file available to other players in some other way.

--

The client seems to be connecting to the server normally. At least I can see the "New incoming connection" messages in the server logs. And some of the initialization process seems to be happening on the client, since the <save ID> directories are getting created. Does anyone know what would prevent the server_save file from getting transferred from the server to the client? I'm guessing it's a configuration issue I'm not seeing on the server, but I'm not sure where to start looking. If anyone can give me some background on how the client gets that file, or tell me where I could start looking in the code, I can try to track down where/why it's failing. Thanks for the help!

Link to comment
Share on other sites

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.

×
  • Create New...