Jump to content

Master crashed after running Slave


Recommended Posts

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.  :wickerbottomthanks:

 

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/sh
cd /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/sh
cd /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 Up
Version: 158273
Current time: Sun Nov 29 11:08:44 2015

System Name: Linux
Host Name: frex
Release(Kernel) Version: 3.13.0-68-generic
Kernel Build Timestamp: #111-Ubuntu SMP Fri Nov 6 18:18:09 UTC 2015
Machine Arch: i686
Don't Starve Together: 158273 LINUX
NNN Build Date: 2015-11-27_17-57-06
Parsing command line
Command Line Arguments: -skip_update_server_mods -console -conf_dir DoNotStarveTogether
THREAD - started 'GAClient' (3061934912)
HttpClient2::ClientThread::Main()
ProfileIndex:6.28
[CONNECT] PendingConnection::Reset(true)
Network tick rate: U=15(2), D=0
Network tick rate: U=30(1), D=0
OnLoadPermissionList: /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_server
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
THREAD - started 'ConsoleInput' (3054500672)
LOADING LUA
DoLuaFile scripts/main.lua
DoLuaFile loading buffer scripts/main.lua
scripts/main.lua(173,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
PlayerHistory could not load player_history_staging
bloom_enabled false
loaded saveindex
OnFilesLoaded()
OnUpdatePurchaseStateComplete
Load FE
Load FE: done
ModIndex: Load sequence finished successfully.
Reset() returning
[200] Account Communication Success (6)
[ACCOUNT_ACTION_TOKEN_PURPOSE] Received UserId from TokenPurpose: KU_m5lvOqqx
Starting Dedicated Server Game
Network tick rate: U=30(1), D=0
About to start a server with the following settings:
Dedicated: true
Online: true
Passworded: false
ServerPort: 10999
SteamAuthPort: 12348
SteamMasterServerPort: 12349
ClanID: true
ClanOnly: false
ClanAdmin: false
LanOnly: false
EnablePunchthrough: false
EnableAutosaver: true
PVP: false
MaxPlayers: 8
GameMode: survival
OverridenDNS:
PauseWhenEmpty: true
InternetBroadcasting: true
Intent: cooperative
Online Server Started on port: 10999
Collecting garbage...
lua_gc took 0.01 seconds
~ShardLuaProxy()
~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(173,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_staging
bloom_enabled false
loaded saveindex
OnFilesLoaded()
OnUpdatePurchaseStateComplete
Unload FE
Unload FE done
LOAD BE
LOAD BE: done
Deserialize world session from session/FFFFFFFFBE353A6E/0000000003
Save file is at version 1
Begin Session: FFFFFFFFBE353A6E
saving to server_temp/server_save
MiniMapComponent::AddAtlas( minimap/minimap_data.xml )
Loading Nav Grid
setting summerlength 15
setting isnightmaredawn false
setting elapseddaysinseason 0
setting isfullmoon false
setting moisture 0
setting cavephase day
setting isnightmarewild false
setting moonphase new
setting precipitationrate 0
setting iswet false
setting winterlength 15
setting temperature 30
setting isnightmarewarn false
setting iswinter false
setting moistureceil 538.64526367188
setting isday true
setting israining false
setting remainingdaysinseason 20
setting precipitation none
setting wetness 0
setting isnightmarecalm false
setting timeinphase 0
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 20
setting pop 0
setting nightmaretime 0
setting springlength 20
setting isspring false
setting nightmarephase none
setting season autumn
setting time 0
setting iscavenight false
setting cycles 0
setting isnight false
setting nightmaretimeinphase 0
setting issummer false
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)
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_temp
About to start a shard with these settings:
ShardName: [sHDMASTER]
ShardID: 1
ShardRole: MASTER
MasterHost: (null)
MasterBind: 127.0.0.1
MasterPort: 11200
[sHARD] STARTING MASTER SERVER
[sHARD] Shard Server Started on port: 11200
Telling Client our new session identifier: FFFFFFFFBE353A6E
ModIndex: Load sequence finished successfully.
Reset() returning
Sim paused
SteamGameServer_Init (12348, 10999, 12349)
SteamGameServer_Init Success
ConsoleInput: "c_shutdown()"
c_shutdown
Serializing 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 seconds
HttpClient2::ClientThread::Main() complete
HttpClient2 discarded 1 callbacks.
Shutting down
 
Full log of Slave:
 
Starting Up
Version: 158273
Current time: Sun Nov 29 11:07:11 2015

System Name: Linux
Host Name: frex
Release(Kernel) Version: 3.13.0-68-generic
Kernel Build Timestamp: #111-Ubuntu SMP Fri Nov 6 18:18:09 UTC 2015
Machine Arch: i686
Don't Starve Together: 158273 LINUX
NNN Build Date: 2015-11-27_17-57-06
Parsing command line
Command Line Arguments: -skip_update_server_mods -console -conf_dir dstcave
THREAD - started 'GAClient' (3062483776)
HttpClient2::ClientThread::Main()
ProfileIndex:17.11
[CONNECT] PendingConnection::Reset(true)
Network tick rate: U=15(2), D=0
Network tick rate: U=30(1), D=0
OnLoadPermissionList: /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_server
cGame::InitializeOnMainThread
THREAD - started 'ConsoleInput' (3055549248)
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(173,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
PlayerHistory could not load player_history_staging
bloom_enabled false
loaded saveindex
OnFilesLoaded()
OnUpdatePurchaseStateComplete
Load FE
Load FE: done
ModIndex: Load sequence finished successfully.
Reset() returning
[200] Account Communication Success (6)
[ACCOUNT_ACTION_TOKEN_PURPOSE] Received UserId from TokenPurpose: KU_m5lvOqqx
Starting Dedicated Server Game
Network tick rate: U=30(1), D=0
About to start a server with the following settings:
Dedicated: true
Online: true
Passworded: true
ServerPort: 11001
SteamAuthPort: 12350
SteamMasterServerPort: 12351
ClanID: true
ClanOnly: false
ClanAdmin: false
LanOnly: false
EnablePunchthrough: false
EnableAutosaver: true
PVP: false
MaxPlayers: 8
GameMode: survival
OverridenDNS:
PauseWhenEmpty: true
InternetBroadcasting: true
Intent: cooperative
Online Server Started on port: 11001
Collecting garbage...
lua_gc took 0.01 seconds
~ShardLuaProxy()
~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(173,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_staging
bloom_enabled false
loaded saveindex
OnFilesLoaded()
OnUpdatePurchaseStateComplete
Unload FE
Unload FE done
LOAD BE
LOAD BE: done
Deserialize world session from session/FFFFFFFFBE6CE18E/0000000003
Save file is at version 1
Begin Session: FFFFFFFFBE6CE18E
saving to server_temp/server_save
MiniMapComponent::AddAtlas( minimap/minimap_data.xml )
Loading Nav Grid
setting summerlength 15
setting isnightmaredawn false
setting elapseddaysinseason 0
setting isfullmoon false
setting moisture 0
setting cavephase day
setting isnightmarewild false
setting moonphase new
setting precipitationrate 0
setting iswet false
setting winterlength 15
setting temperature 18
setting isnightmarewarn false
setting iswinter false
setting moistureceil 938.63653564453
setting isday false
setting israining false
setting remainingdaysinseason 20
setting precipitation none
setting wetness 0
setting isnightmarecalm true
setting timeinphase 0
setting isdusk false
setting iscavedusk false
setting isautumn true
setting issnowing false
setting iscaveday true
setting phase night
setting snowlevel 0
setting issnowcovered false
setting autumnlength 20
setting pop 0
setting nightmaretime 0
setting springlength 20
setting isspring false
setting nightmarephase calm
setting season autumn
setting time 0
setting iscavenight false
setting cycles 0
setting isnight true
setting nightmaretimeinphase 0
setting issummer false
OVERRIDE: setting waves to off
Reconstructing topology
...Sorting points
...Sorting edges
...Connecting nodes
...Validating connections
...Housekeeping
...Done!
1 uploads added to server. From server_temp
About to start a shard with these settings:
ShardName: caves
ShardID: -1699689114
ShardRole: SLAVE
MasterHost: 127.0.0.1
MasterBind: (null)
MasterPort: 11200
[sHARD] Connecting to master...
Telling Client our new session identifier: FFFFFFFFBE6CE18E
ModIndex: Load sequence finished successfully.
Reset() returning
Sim paused
SteamGameServer_Init (12350, 11001, 12351)
SteamGameServer_Init Success
[sHARD] Connection to master failed. Waiting to reconnect...
About to start a shard with these settings:
ShardName: caves
ShardID: -1699689114
ShardRole: SLAVE
MasterHost: 127.0.0.1
MasterBind: (null)
MasterPort: 11200
[sHARD] Connecting to master...
[sHARD] Connection to master failed. Waiting to reconnect...
About to start a shard with these settings:
ShardName: caves
ShardID: -1699689114
ShardRole: SLAVE
MasterHost: 127.0.0.1
MasterBind: (null)
MasterPort: 11200
[sHARD] Connecting to master...
[sHARD] Connection to master failed. Waiting to reconnect...
About to start a shard with these settings:
ShardName: caves
ShardID: -1699689114
ShardRole: SLAVE
MasterHost: 127.0.0.1
MasterBind: (null)
MasterPort: 11200
[sHARD] Connecting to master...
[sHARD] Connection to master failed. Waiting to reconnect...
About to start a shard with these settings:
ShardName: caves
ShardID: -1699689114
ShardRole: SLAVE
MasterHost: 127.0.0.1
MasterBind: (null)
MasterPort: 11200
[sHARD] Connecting to master...
[sHARD] Connection to master failed. Waiting to reconnect...
About to start a shard with these settings:
ShardName: caves
ShardID: -1699689114
ShardRole: SLAVE
MasterHost: 127.0.0.1
MasterBind: (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...

Hi @jackblk,

 

it's look like not crash of your server master

 

i just see he stop the server normally without crash

ConsoleInput: "c_shutdown()"c_shutdown

can 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 = true

autocompiler_enabled = true

[shard]

shard_enable = true

is_master = true

master_port = 11200

cluster_key = secret

[NETWORK]

default_server_name = aaa

default_server_description = aaa

server_port = 10999

max_players = 8

pvp = false

game_mode = survival

enable_autosaver = true

tick_rate = 30

connection_timeout = 8000

enable_vote_kick = false

pause_when_empty = true

server_intention = cooperative

steam_authentication_port = 12348

steam_master_server_port = 12349

[account]

dedicated_lan_server = false

server_token = xxx

 

Slave settings:

 

[MISC]

CONSOLE_ENABLED = true

autocompiler_enabled = true

[shard]

shard_enable = true

is_master = false

master_ip = 127.0.0.1

master_port = 11200

shard_name = caves

cluster_key = secret

shard_id = 2595278123

[NETWORK]

default_server_name = aaa

default_server_description = aaa

server_port = 11001

max_players = 8

pvp = false

game_mode = survival

enable_autosaver = true

tick_rate = 30

connection_timeout = 8000

enable_vote_kick = false

pause_when_empty = true

server_intention = cooperative

steam_authentication_port = 12350

steam_master_server_port = 12351

server_password = abc

[account]

dedicated_lan_server = false

server_token = xxx

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...