jackblk Posted November 29, 2015 Share Posted November 29, 2015 EDIT: I figured out why. My VPS has 512 MB of RAM, it's not enough for 2 servers to run at the same time. A server costs around 400-500MB of RAM, that's why when i run the second server, the first one would get crashed. So... if anyone having this problem, upgrade your hosting plan. So i'm comfortable with running a dedicated server with no caves, thanks to the guide =D. I'm using a Linux server with Steamcmd to install DST Dedicated server. It runs fine without the cave. Today i shut down my server and try to make it work with caves. I've been through all the guides and set up all of it. When i run my script shell to run master server, it works fine. After that, i run the slave one, the master one got crashed. Terminated, command line said it was "Killed". I've checked settings.ini and many other things, i can be sure that they are fine. So I tested that if i run Slave first, then Master after that, turned out that the Slave one got crashed. This is my shell script for Master: #!/bin/shcd /dstserver/bin/bin/sh -c './dontstarve_dedicated_server_nullrenderer -only_update_server_mods -console -conf_dir DoNotStarveTogether'/usr/bin/screen -S "DST Server" /bin/sh -c './dontstarve_dedicated_server_nullrenderer -skip_update_server_mods -console -conf_dir DoNotStarveTogether' Slave one: #!/bin/shcd /dstserver/bin/usr/bin/screen -S "DST Server Cave" /bin/sh -c './dontstarve_dedicated_server_nullrenderer -skip_update_server_mods -console -conf_dir dstcave' I decided to test again, this time i run Slave first, and Master. Slave one crashed when Master command line got to this line: "Load BE" Here's full log of Master:Starting UpVersion: 158273Current time: Sun Nov 29 11:08:44 2015System Name: LinuxHost Name: frexRelease(Kernel) Version: 3.13.0-68-genericKernel Build Timestamp: #111-Ubuntu SMP Fri Nov 6 18:18:09 UTC 2015Machine Arch: i686Don't Starve Together: 158273 LINUXNNN Build Date: 2015-11-27_17-57-06Parsing command lineCommand Line Arguments: -skip_update_server_mods -console -conf_dir DoNotStarveTogetherTHREAD - started 'GAClient' (3061934912)HttpClient2::ClientThread::Main()ProfileIndex:6.28[CONNECT] PendingConnection::Reset(true)Network tick rate: U=15(2), D=0Network tick rate: U=30(1), D=0OnLoadPermissionList: /root/.klei/DoNotStarveTogether/save/blocklist.txt (Failure)OnLoadPermissionList: /root/.klei/DoNotStarveTogether/save/adminlist.txt (Failure)OnLoadUserIdList: /root/.klei/DoNotStarveTogether/save/whitelist.txt (Failure)[WARNING] [ACCOUNT] dedicated_lan_server has been deprecated and replaced with [NETWORK] offline_servercGame::InitializeOnMainThreadRenderer initialize: OkayAnimManager initialize: OkayBuffers initialize: OkaycDontStarveGame::DoGameSpecificInitialize()FMOD Error: An invalid object handle was used.GameSpecific initialize: OkaycGame::StartPlayingTHREAD - started 'ConsoleInput' (3054500672)LOADING LUADoLuaFile scripts/main.luaDoLuaFile loading buffer scripts/main.luascripts/main.lua(173,1) running main.lualoaded modindexModIndex: Beginning normal load sequence for dedicated server.FMOD Error: An invalid object handle was used.LOADING LUA SUCCESSPlayerDeaths could not load morguePlayerHistory could not load player_history_stagingbloom_enabled falseloaded saveindexOnFilesLoaded()OnUpdatePurchaseStateCompleteLoad FELoad FE: doneModIndex: Load sequence finished successfully.Reset() returning[200] Account Communication Success (6)[ACCOUNT_ACTION_TOKEN_PURPOSE] Received UserId from TokenPurpose: KU_m5lvOqqxStarting Dedicated Server GameNetwork tick rate: U=30(1), D=0About to start a server with the following settings:Dedicated: trueOnline: truePassworded: falseServerPort: 10999SteamAuthPort: 12348SteamMasterServerPort: 12349ClanID: trueClanOnly: falseClanAdmin: falseLanOnly: falseEnablePunchthrough: falseEnableAutosaver: truePVP: falseMaxPlayers: 8GameMode: survivalOverridenDNS:PauseWhenEmpty: trueInternetBroadcasting: trueIntent: cooperativeOnline Server Started on port: 10999Collecting garbage...lua_gc took 0.01 seconds~ShardLuaProxy()~InventoryLuaProxy()~NetworkLuaProxy()~SimLuaProxy()lua_close took 0.02 secondsReleaseAllReleaseAll FinishedcGame::StartPlayingLOADING LUADoLuaFile scripts/main.luaDoLuaFile loading buffer scripts/main.luascripts/main.lua(173,1) running main.lualoaded modindexModIndex: Beginning normal load sequence for dedicated server.LOADING LUA SUCCESSPlayerDeaths could not load morguePlayerHistory could not load player_history_stagingbloom_enabled falseloaded saveindexOnFilesLoaded()OnUpdatePurchaseStateCompleteUnload FEUnload FE doneLOAD BELOAD BE: doneDeserialize world session from session/FFFFFFFFBE353A6E/0000000003Save file is at version 1Begin Session: FFFFFFFFBE353A6Esaving to server_temp/server_saveMiniMapComponent::AddAtlas( minimap/minimap_data.xml )Loading Nav Gridsetting summerlength 15setting isnightmaredawn falsesetting elapseddaysinseason 0setting isfullmoon falsesetting moisture 0setting cavephase daysetting isnightmarewild falsesetting moonphase newsetting precipitationrate 0setting iswet falsesetting winterlength 15setting temperature 30setting isnightmarewarn falsesetting iswinter falsesetting moistureceil 538.64526367188setting isday truesetting israining falsesetting remainingdaysinseason 20setting precipitation nonesetting wetness 0setting isnightmarecalm falsesetting timeinphase 0setting isdusk falsesetting iscavedusk falsesetting isautumn truesetting issnowing falsesetting iscaveday truesetting phase daysetting snowlevel 0setting issnowcovered falsesetting autumnlength 20setting pop 0setting nightmaretime 0setting springlength 20setting isspring falsesetting nightmarephase nonesetting season autumnsetting time 0setting iscavenight falsesetting cycles 0setting isnight falsesetting nightmaretimeinphase 0setting issummer falseValidating ID -1: world: (auto) available: false recieves: -1 status: inactive (disabled by prefab)Validating ID -1: world: (auto) available: false recieves: -1 status: inactive (disabled by prefab)Validating ID -1: world: (auto) available: false recieves: -1 status: inactive (disabled by prefab)Validating ID -1: world: (auto) available: false recieves: -1 status: inactive (disabled by prefab)Validating ID -1: world: (auto) available: false recieves: -1 status: inactive (disabled by prefab)Validating ID -1: world: (auto) available: false recieves: -1 status: inactive (disabled by prefab)Validating ID -1: world: (auto) available: false recieves: -1 status: inactive (disabled by prefab)Validating ID -1: world: (auto) available: false recieves: -1 status: inactive (disabled by prefab)Validating ID -1: world: (auto) available: false recieves: -1 status: inactive (disabled by prefab)Validating ID -1: world: (auto) available: false recieves: -1 status: inactive (disabled by prefab)Reconstructing topology...Sorting points...Sorting edges...Connecting nodes...Validating connections...Housekeeping...Done!1 uploads added to server. From server_tempAbout to start a shard with these settings:ShardName: [sHDMASTER]ShardID: 1ShardRole: MASTERMasterHost: (null)MasterBind: 127.0.0.1MasterPort: 11200[sHARD] STARTING MASTER SERVER[sHARD] Shard Server Started on port: 11200Telling Client our new session identifier: FFFFFFFFBE353A6EModIndex: Load sequence finished successfully.Reset() returningSim pausedSteamGameServer_Init (12348, 10999, 12349)SteamGameServer_Init SuccessConsoleInput: "c_shutdown()"c_shutdownSerializing world session to session/FFFFFFFFBE353A6E/0000000004[steam] UserDisconnect successfully sent for steamid '0'Collecting garbage...lua_gc took 0.17 seconds~ShardLuaProxy()~InventoryLuaProxy()~NetworkLuaProxy()~SimLuaProxy()lua_close took 0.23 secondsHttpClient2::ClientThread::Main() completeHttpClient2 discarded 1 callbacks.Shutting down Full log of Slave: Starting UpVersion: 158273Current time: Sun Nov 29 11:07:11 2015System Name: LinuxHost Name: frexRelease(Kernel) Version: 3.13.0-68-genericKernel Build Timestamp: #111-Ubuntu SMP Fri Nov 6 18:18:09 UTC 2015Machine Arch: i686Don't Starve Together: 158273 LINUXNNN Build Date: 2015-11-27_17-57-06Parsing command lineCommand Line Arguments: -skip_update_server_mods -console -conf_dir dstcaveTHREAD - started 'GAClient' (3062483776)HttpClient2::ClientThread::Main()ProfileIndex:17.11[CONNECT] PendingConnection::Reset(true)Network tick rate: U=15(2), D=0Network tick rate: U=30(1), D=0OnLoadPermissionList: /root/.klei/dstcave/save/blocklist.txt (Failure)OnLoadPermissionList: /root/.klei/dstcave/save/adminlist.txt (Failure)OnLoadUserIdList: /root/.klei/dstcave/save/whitelist.txt (Failure)[WARNING] [ACCOUNT] dedicated_lan_server has been deprecated and replaced with [NETWORK] offline_servercGame::InitializeOnMainThreadTHREAD - started 'ConsoleInput' (3055549248)Renderer initialize: OkayAnimManager initialize: OkayBuffers initialize: OkaycDontStarveGame::DoGameSpecificInitialize()FMOD Error: An invalid object handle was used.GameSpecific initialize: OkaycGame::StartPlayingLOADING LUADoLuaFile scripts/main.luaDoLuaFile loading buffer scripts/main.luascripts/main.lua(173,1) running main.lualoaded modindexModIndex: Beginning normal load sequence for dedicated server.FMOD Error: An invalid object handle was used.LOADING LUA SUCCESSPlayerDeaths could not load morguePlayerHistory could not load player_history_stagingbloom_enabled falseloaded saveindexOnFilesLoaded()OnUpdatePurchaseStateCompleteLoad FELoad FE: doneModIndex: Load sequence finished successfully.Reset() returning[200] Account Communication Success (6)[ACCOUNT_ACTION_TOKEN_PURPOSE] Received UserId from TokenPurpose: KU_m5lvOqqxStarting Dedicated Server GameNetwork tick rate: U=30(1), D=0About to start a server with the following settings:Dedicated: trueOnline: truePassworded: trueServerPort: 11001SteamAuthPort: 12350SteamMasterServerPort: 12351ClanID: trueClanOnly: falseClanAdmin: falseLanOnly: falseEnablePunchthrough: falseEnableAutosaver: truePVP: falseMaxPlayers: 8GameMode: survivalOverridenDNS:PauseWhenEmpty: trueInternetBroadcasting: trueIntent: cooperativeOnline Server Started on port: 11001Collecting garbage...lua_gc took 0.01 seconds~ShardLuaProxy()~InventoryLuaProxy()~NetworkLuaProxy()~SimLuaProxy()lua_close took 0.02 secondsReleaseAllReleaseAll FinishedcGame::StartPlayingLOADING LUADoLuaFile scripts/main.luaDoLuaFile loading buffer scripts/main.luascripts/main.lua(173,1) running main.lualoaded modindexModIndex: Beginning normal load sequence for dedicated server.LOADING LUA SUCCESSPlayerDeaths could not load morguePlayerHistory could not load player_history_stagingbloom_enabled falseloaded saveindexOnFilesLoaded()OnUpdatePurchaseStateCompleteUnload FEUnload FE doneLOAD BELOAD BE: doneDeserialize world session from session/FFFFFFFFBE6CE18E/0000000003Save file is at version 1Begin Session: FFFFFFFFBE6CE18Esaving to server_temp/server_saveMiniMapComponent::AddAtlas( minimap/minimap_data.xml )Loading Nav Gridsetting summerlength 15setting isnightmaredawn falsesetting elapseddaysinseason 0setting isfullmoon falsesetting moisture 0setting cavephase daysetting isnightmarewild falsesetting moonphase newsetting precipitationrate 0setting iswet falsesetting winterlength 15setting temperature 18setting isnightmarewarn falsesetting iswinter falsesetting moistureceil 938.63653564453setting isday falsesetting israining falsesetting remainingdaysinseason 20setting precipitation nonesetting wetness 0setting isnightmarecalm truesetting timeinphase 0setting isdusk falsesetting iscavedusk falsesetting isautumn truesetting issnowing falsesetting iscaveday truesetting phase nightsetting snowlevel 0setting issnowcovered falsesetting autumnlength 20setting pop 0setting nightmaretime 0setting springlength 20setting isspring falsesetting nightmarephase calmsetting season autumnsetting time 0setting iscavenight falsesetting cycles 0setting isnight truesetting nightmaretimeinphase 0setting issummer falseOVERRIDE: setting waves to offReconstructing topology...Sorting points...Sorting edges...Connecting nodes...Validating connections...Housekeeping...Done!1 uploads added to server. From server_tempAbout to start a shard with these settings:ShardName: cavesShardID: -1699689114ShardRole: SLAVEMasterHost: 127.0.0.1MasterBind: (null)MasterPort: 11200[sHARD] Connecting to master...Telling Client our new session identifier: FFFFFFFFBE6CE18EModIndex: Load sequence finished successfully.Reset() returningSim pausedSteamGameServer_Init (12350, 11001, 12351)SteamGameServer_Init Success[sHARD] Connection to master failed. Waiting to reconnect...About to start a shard with these settings:ShardName: cavesShardID: -1699689114ShardRole: SLAVEMasterHost: 127.0.0.1MasterBind: (null)MasterPort: 11200[sHARD] Connecting to master...[sHARD] Connection to master failed. Waiting to reconnect...About to start a shard with these settings:ShardName: cavesShardID: -1699689114ShardRole: SLAVEMasterHost: 127.0.0.1MasterBind: (null)MasterPort: 11200[sHARD] Connecting to master...[sHARD] Connection to master failed. Waiting to reconnect...About to start a shard with these settings:ShardName: cavesShardID: -1699689114ShardRole: SLAVEMasterHost: 127.0.0.1MasterBind: (null)MasterPort: 11200[sHARD] Connecting to master...[sHARD] Connection to master failed. Waiting to reconnect...About to start a shard with these settings:ShardName: cavesShardID: -1699689114ShardRole: SLAVEMasterHost: 127.0.0.1MasterBind: (null)MasterPort: 11200[sHARD] Connecting to master...[sHARD] Connection to master failed. Waiting to reconnect...About to start a shard with these settings:ShardName: cavesShardID: -1699689114ShardRole: SLAVEMasterHost: 127.0.0.1MasterBind: (null)MasterPort: 11200[sHARD] Connecting to master...[sHARD] Connection to master failed. Waiting to reconnect... Thank you for your help, i will provide any further info. Hope it could work soon... Link to comment https://forums.kleientertainment.com/forums/topic/59547-master-crashed-after-running-slave/ Share on other sites More sharing options...
ToNiO55 Posted November 29, 2015 Share Posted November 29, 2015 Hi @jackblk, it's look like not crash of your server master i just see he stop the server normally without crashConsoleInput: "c_shutdown()"c_shutdowncan you share settings.ini of your both servers please? Link to comment https://forums.kleientertainment.com/forums/topic/59547-master-crashed-after-running-slave/#findComment-689462 Share on other sites More sharing options...
jackblk Posted November 29, 2015 Author Share Posted November 29, 2015 Hi @jackblk, it's look like not crash of your server master i just see he stop the server normally without crashConsoleInput: "c_shutdown()"c_shutdowncan you share settings.ini of your both servers please?Hi there, as i wrote, i tested another way around, it's the opposite from the title so it may cause you confused.- Title said crashing master when running slave- My log is when the slave crashed after running master. I c_shutdown() it after the slave one crashed. Here's the master settings: [MISC]CONSOLE_ENABLED = trueautocompiler_enabled = true[shard]shard_enable = trueis_master = truemaster_port = 11200cluster_key = secret[NETWORK]default_server_name = aaadefault_server_description = aaaserver_port = 10999max_players = 8pvp = falsegame_mode = survivalenable_autosaver = truetick_rate = 30connection_timeout = 8000enable_vote_kick = falsepause_when_empty = trueserver_intention = cooperativesteam_authentication_port = 12348steam_master_server_port = 12349[account]dedicated_lan_server = falseserver_token = xxx Slave settings: [MISC]CONSOLE_ENABLED = trueautocompiler_enabled = true[shard]shard_enable = trueis_master = falsemaster_ip = 127.0.0.1master_port = 11200shard_name = cavescluster_key = secretshard_id = 2595278123[NETWORK]default_server_name = aaadefault_server_description = aaaserver_port = 11001max_players = 8pvp = falsegame_mode = survivalenable_autosaver = truetick_rate = 30connection_timeout = 8000enable_vote_kick = falsepause_when_empty = trueserver_intention = cooperativesteam_authentication_port = 12350steam_master_server_port = 12351server_password = abc[account]dedicated_lan_server = falseserver_token = xxx Link to comment https://forums.kleientertainment.com/forums/topic/59547-master-crashed-after-running-slave/#findComment-689466 Share on other sites More sharing options...
jackblk Posted November 29, 2015 Author Share Posted November 29, 2015 @ToNiO55 Do i need to opt beta cave on my server? Link to comment https://forums.kleientertainment.com/forums/topic/59547-master-crashed-after-running-slave/#findComment-689478 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.