Jump to content

Caves shutting down. Not sure how to check


Recommended Posts

It looks ok on the previous parts of the logs..

[00:01:00]: [Shard] Secondary shard is waiting for LUA...
[00:04:59]: SWITCHING     false    
[00:04:59]: Reconstructing topology    
[00:04:59]:     ...Sorting points    
[00:04:59]:     ...Sorting edges    
[00:04:59]:     ...Connecting nodes    
[00:04:59]:     ...Validating connections    
[00:04:59]:     ...Housekeeping    
[00:04:59]:     ...Done!    
[00:04:59]: 1 uploads added to server. From server_temp
[00:04:59]: About to start a shard with these settings:
[00:04:59]:   ShardName: Caves
[00:04:59]:   ShardID: 1982448054
[00:04:59]:   ShardRole: SECONDARY
[00:04:59]:   MasterHost: 127.0.0.1
[00:04:59]:   MasterBind: (null)
[00:04:59]:   MasterPort: 10888
[00:04:59]: [Shard] Connecting to master...
[00:04:59]: Telling Client our new session identifier: 9947577D93FBE6F2
[00:04:59]: Check for write access: TRUE
[00:04:59]: Check for read access: TRUE
[00:04:59]: Available disk space for save files: 19962 MB
[00:04:59]: ModIndex: Load sequence finished successfully.    
[00:04:59]: Reset() returning
[00:04:59]: Parent process is dead, exiting...
[00:04:59]: Available disk space for save files: 19962 MB
[00:05:00]: Serializing world: session/9947577D93FBE6F2/0000000004
[00:05:00]: [Shard] Stopping shard mode
[00:05:00]: [Steam] SendUserDisconnect for ''
[00:05:00]: Collecting garbage...
[00:05:01]: lua_gc took 0.38 seconds
[00:05:01]: ~ShardLuaProxy()
[00:05:01]: ~cEventLeaderboardProxy()
[00:05:01]: ~ItemServerLuaProxy()
[00:05:01]: ~InventoryLuaProxy()
[00:05:01]: ~NetworkLuaProxy()
[00:05:01]: ~SimLuaProxy()
[00:05:01]: Cancelling LuaQueryCallback handle [2]
[00:05:01]: lua_close took 0.42 seconds
[00:05:01]: Could not unload undefined prefab (alterguardian_spiketrail_fx)
[00:05:01]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:05:01]: CurlRequestManager::ClientThread::Main() complete
[00:05:01]: HttpClient2 discarded 0 callbacks.
[00:05:01]: Shutting down

I thing it stops on parent process.

Link to comment
Share on other sites

3 hours ago, Vavidy said:

[00:04:59]: Parent process is dead, exiting...

This line seems to indicate the beginning of the shutdown. It seems to indicate, that the parent process, which from my understanding would be either a part of the DST server itself, or the shell which executes the DST server.

The first one would be unlikely, so I'd assume that it might be related to the shell running the server.

Hoiw do you start your server, and did you maybe close the shell session that was running the caves shard?

Link to comment
Share on other sites

I used a bash script to run my server.

#!/bin/bash

steamcmd_dir="$HOME/steamcmd"
install_dir="$HOME/dstds"
cluster_name="ClusterServer"
dontstarve_dir="$HOME/saveServer"

function fail()
{
    echo Error: "$@" >&2
    exit 1
}

function check_for_file()
{
    if [ ! -e "$1" ]; then
        fail "Missing file: $1"
    fi
}

cd "$steamcmd_dir" || fail "Missing $steamcmd_dir directory!"

check_for_file "steamcmd.sh"
check_for_file "$dontstarve_dir/$cluster_name/cluster.ini"
check_for_file "$dontstarve_dir/$cluster_name/cluster_token.txt"
check_for_file "$dontstarve_dir/$cluster_name/Master/server.ini"
check_for_file "$dontstarve_dir/$cluster_name/Caves/server.ini"
check_for_file "$install_dir/bin"

cd "$install_dir/bin" || fail

run_shared=(./dontstarve_dedicated_server_nullrenderer)
run_shared+=(-persistent_storage_root "$dontstarve_dir" -conf_dir "")
run_shared+=(-console)
run_shared+=(-cluster "$cluster_name")
run_shared+=(-monitor_parent_process $$)

"${run_shared[@]}" -shard Caves  | sed 's/^/Caves:  /' &
"${run_shared[@]}" -shard Master | sed 's/^/Master: /'

 it has a few mods installed and with this settings

 

[GAMEPLAY]
game_mode = survival
max_players = 15
pvp = true
pause_when_empty = true


[NETWORK]
lan_only_cluster = false
cluster_intention = cooperative
cluster_password = ###
cluster_description = ###
cluster_name = ###
offline_cluster = false
cluster_language = en

[MISC]
console_enabled = true
enable_snapshots = true
enable_autosaver = true


[SHARD]
shard_enabled = true
bind_ip = 127.0.0.1
master_ip = 127.0.0.1
master_port = 10888
cluster_key = defaultPass

I only have 1gb for memory tho. :/

Also this worked like one time. then after it didnt

Link to comment
Share on other sites

With only 1 Gb of RAM it could actually be that the Systems shuts down the caves process to avoid crashing/running out of memory. Not sure tho, never tried running a DST server with that low memory, and it could also depend on the world size.

Check how the memory usage is while starting the server, and/or make sure that your Swap disk has plenty of space to accomodate the extra usage.

Link to comment
Share on other sites

Based on this topic and not being the only person getting this issue try my solution: Go to the Caves\save\session\<some number and letters folder>" folder and delete the last two files you see there and then start the Caves shard again and see if it works or not. Oh, make a backup of the files before deleting, just in case it doesn't work and you didn't just waste some precious spelunking time for nothing. :)

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