mathielo / dst-dedicated-server

Don't Starve Together dedicated server guide for all platforms (Linux, Mac, Windows) with Docker. Extensive documentation covering mods installation, server config and performance, world generation and setting up admins.
MIT License
292 stars 56 forks source link

Endless Validating portal #4

Closed dixon961 closed 6 years ago

dixon961 commented 6 years ago

Hello @mathielo I have some problems starting server. What i did:

Cloned your repo Copied cluster_token.txt to ~/dst-dedicated-server/DSTClusterConfig/ sudo docker-compose up and what a see:

dst_caves | [00:08:30]: [Shard] Connecting to master... dst_caves | [00:08:40]: [Shard] Connection to master failed. Waiting to reconnect...

and this:

dst_master | [00:11:14]: [Steam] SteamGameServer_Init success dst_master | [00:11:14]: Validating portal[1] <-> [1] (inactive) dst_master | [00:11:14]: Validating portal[2] <-> [2] (inactive) dst_master | [00:11:14]: Validating portal[3] <-> [3] (inactive) dst_master | [00:11:14]: Validating portal[4] <-> [4] (inactive) dst_master | [00:11:14]: Validating portal[5] <-> [5] (inactive) dst_master | [00:11:14]: Validating portal[6] <-> [6] (inactive) dst_master | [00:11:14]: Validating portal[7] <-> [7] (inactive) dst_master | [00:11:14]: Validating portal[8] <-> [8] (inactive) dst_master | [00:11:14]: Validating portal[9] <-> [9] (inactive) dst_master | [00:11:14]: Validating portal[10] <-> [10] (inactive) dst_master | [00:11:14]: Sim paused

10998 and 10999 ports are open. By the way thanks for this repo!

mathielo commented 6 years ago

Hey @dixon961 can you send the full logs for both Master and Caves shards? There may be more information there to help identify the issue. You can find the files at:

dixon961 commented 6 years ago

This is Master.

[00:00:00]: PersistRootStorage is now /home/dst/.klei//DoNotStarveTogether/DSTWhalesCluster/Master/
[00:00:00]: Starting Up
[00:00:00]: Version: 260075
[00:00:00]: Current time: Sat Apr 14 11:28:40 2018

[00:00:00]: System Name: Linux
[00:00:00]: Host Name: 664e80957bd7
[00:00:00]: Release(Kernel) Version: 4.4.0-1054-aws
[00:00:00]: Kernel Build Timestamp: #63-Ubuntu SMP Wed Mar 28 19:42:42 UTC 2018
[00:00:00]: Machine Arch: x86_64
[00:00:00]: Don't Starve Together: 260075 LINUX
[00:00:00]: Build Date: 3388
[00:00:00]: Parsing command line
[00:00:00]: Command Line Arguments: -cluster DSTWhalesCluster -shard Master
[00:00:00]: Initializing distribution platform
[00:00:00]: ....Done
[00:00:00]: THREAD - started 'GAClient' (4133296960)
[00:00:00]: CurlRequestManager::ClientThread::Main()
[00:00:00]: Mounting file system databundles/shaders.zip successful.
[00:00:00]: Mounting file system databundles/fonts.zip successful.
[00:00:00]: Mounting file system databundles/anim_dynamic.zip successful.
[00:00:00]: Mounting file system databundles/bigportraits.zip successful.
[00:00:00]: Mounting file system databundles/images.zip successful.
[00:00:00]: Mounting file system databundles/scripts.zip successful.
[00:00:00]: ProfileIndex:12.43
[00:00:00]: [Connect] PendingConnection::Reset(true)
[00:00:00]: Network tick rate: U=15(2), D=0
[00:00:00]: Network tick rate: U=15(2), D=0
[00:00:00]: OnLoadPermissionList: /home/dst/.klei//DoNotStarveTogether/DSTWhalesCluster/blocklist.txt (Failure)
[00:00:00]: OnLoadPermissionList: /home/dst/.klei//DoNotStarveTogether/DSTWhalesCluster/adminlist.txt (Failure)
[00:00:00]: OnLoadUserIdList: /home/dst/.klei//DoNotStarveTogether/DSTWhalesCluster/whitelist.txt (Failure)
[00:00:00]: Token retrieved from: /home/dst/.klei//DoNotStarveTogether/DSTWhalesCluster/cluster_token.txt
[00:00:00]: Token retrieved from: /home/dst/.klei//DoNotStarveTogether/DSTWhalesCluster/cluster_token.txt
[00:00:00]: cGame::InitializeOnMainThread
[00:00:00]: THREAD - started 'StreamInput' (4126145344)
[00:00:00]: Renderer initialize: Okay
[00:00:00]: AnimManager initialize: Okay
[00:00:00]: Buffers initialize: Okay
[00:00:00]: cDontStarveGame::DoGameSpecificInitialize()
[00:00:00]: GameSpecific initialize: Okay
[00:00:00]: cGame::StartPlaying
[00:00:00]: LOADING LUA
[00:00:00]: DoLuaFile scripts/main.lua
[00:00:00]: DoLuaFile loading buffer scripts/main.lua
[00:00:00]:   taskgrouplist:    default Together
[00:00:00]:   taskgrouplist:    classic Classic
[00:00:00]:   taskgrouplist:    cave_default    Underground
[00:00:00]:   taskgrouplist:    lavaarena_taskset       The Forge
[00:00:00]: running main.lua

[00:00:00]: loaded modindex
[00:00:00]: ModIndex: Beginning normal load sequence for dedicated server.

[00:00:00]: DownloadMods(0)
[00:00:02]: LOADING LUA SUCCESS
[00:00:02]: PlayerDeaths could not load morgue
[00:00:02]: PlayerHistory could not load player_history
[00:00:02]: bloom_enabled       false
[00:00:02]: loaded saveindex
[00:00:02]: OnFilesLoaded()
[00:00:02]: OnUpdatePurchaseStateComplete
[00:00:03]:     Load FE
[00:00:04]:     Load FE: done
[00:00:04]: ModIndex: Load sequence finished successfully.
[00:00:04]: Reset() returning
[00:00:04]: THREAD - started 'FilesExistAsyncThread' (4065434432)
[00:00:04]: FilesExistAsyncThread started (13883 files)...
[00:00:04]: [200] Account Communication Success (6)
[00:00:04]: Received (KU_EO1Nch6C) from TokenPurpose
[00:00:04]: Starting Dedicated Server Game
[00:00:04]: Network tick rate: U=15(2), D=0
[00:00:04]: About to start a server with the following settings:
[00:00:04]:   Dedicated: true
[00:00:04]:   Online: true
[00:00:04]:   Passworded: true
[00:00:04]:   ServerPort: 10999
[00:00:04]:   SteamAuthPort: 8766
[00:00:04]:   SteamMasterServerPort: 27016
[00:00:04]:   ClanID: false
[00:00:04]:   ClanOnly: false
[00:00:04]:   ClanAdmin: false
[00:00:04]:   LanOnly: false
[00:00:05]:   FriendsOnly: false
[00:00:05]:   EnableAutosaver: true
[00:00:05]:   EncodeUserPath: true
[00:00:05]:   PVP: false
[00:00:05]:   MaxPlayers: 16
[00:00:05]:   GameMode: survival
[00:00:05]:   OverridenDNS:
[00:00:05]:   PauseWhenEmpty: true
[00:00:05]:   IdleTimeout: 1800s
[00:00:05]:   VoteEnabled: true
[00:00:05]:   InternetBroadcasting: true
[00:00:05]:   Intent: cooperative
[00:00:05]: Online Server Started on port: 10999
[00:00:05]: ... FilesExistAsyncThread complete
[00:00:05]: Collecting garbage...
[00:00:05]: lua_gc took 0.04 seconds
[00:00:05]: ~ShardLuaProxy()
[00:00:05]: ~ItemServerLuaProxy()
[00:00:05]: ~InventoryLuaProxy()
[00:00:05]: ~NetworkLuaProxy()
[00:00:05]: ~SimLuaProxy()
[00:00:05]: lua_close took 0.06 seconds
[00:00:05]: ReleaseAll
[00:00:05]: ReleaseAll Finished
[00:00:05]: cGame::StartPlaying
[00:00:05]: LOADING LUA
[00:00:05]: DoLuaFile scripts/main.lua
[00:00:05]: DoLuaFile loading buffer scripts/main.lua
[00:00:05]:   taskgrouplist:    default Together
[00:00:05]:   taskgrouplist:    classic Classic
[00:00:05]:   taskgrouplist:    cave_default    Underground
[00:00:05]:   taskgrouplist:    lavaarena_taskset       The Forge
[00:00:05]: running main.lua

[00:00:05]: loaded modindex
[00:00:05]: ModIndex: Beginning normal load sequence for dedicated server.

[00:00:05]: LOADING LUA SUCCESS
[00:00:05]: PlayerDeaths could not load morgue
[00:00:05]: PlayerHistory could not load player_history
[00:00:05]: bloom_enabled       false
[00:00:05]: loaded saveindex
[00:00:05]: OnFilesLoaded()
[00:00:05]: OnUpdatePurchaseStateComplete
[00:00:05]: Loading world: session/21F13AEEC428AAEC/0000000002
[00:00:05]: Save file is at version 4.77
[00:00:05]:     Unload FE
[00:00:05]:     Unload FE done
[00:00:06]:     LOAD BE
[00:00:10]:     LOAD BE: done
[00:00:10]: Begin Session: 21F13AEEC428AAEC
[00:00:10]: saving to server_temp/server_save
[00:00:10]: MiniMapComponent::AddAtlas( minimap/minimap_data.xml )
[00:00:11]: Loading Nav Grid
[00:14:14]: Reconstructing topology
[00:14:14]:     ...Sorting points
[00:14:14]:     ...Sorting edges
[00:14:14]:     ...Connecting nodes
[00:14:14]:     ...Validating connections
[00:14:14]:     ...Housekeeping
[00:14:14]:     ...Done!
[00:14:14]: 1 uploads added to server. From server_temp
[00:14:14]: About to start a shard with these settings:
[00:14:14]:   ShardName: [SHDMASTER]
[00:14:14]:   ShardID: 1
[00:14:14]:   ShardRole: MASTER
[00:14:14]:   MasterHost: (null)
[00:14:14]:   MasterBind: 0.0.0.0
[00:14:14]:   MasterPort: 10888
[00:14:14]: [Shard] Starting master server
[00:14:14]: [Shard] Shard server started on port: 10888
[00:14:14]: Telling Client our new session identifier: 21F13AEEC428AAEC
[00:14:14]: ModIndex: Load sequence finished successfully.
[00:14:14]: Reset() returning
[00:14:14]: [Steam] SteamGameServer_Init(8766, 10999, 27016)
[00:14:15]: [Steam] SteamGameServer_Init success
[00:14:15]: Validating portal[1] <-> <nil>[1] (inactive)
[00:14:15]: Validating portal[2] <-> <nil>[2] (inactive)
[00:14:15]: Validating portal[3] <-> <nil>[3] (inactive)
[00:14:16]: Validating portal[4] <-> <nil>[4] (inactive)
[00:14:16]: Validating portal[5] <-> <nil>[5] (inactive)
[00:14:16]: Validating portal[6] <-> <nil>[6] (inactive)
[00:14:16]: Validating portal[7] <-> <nil>[7] (inactive)
[00:14:16]: Validating portal[8] <-> <nil>[8] (inactive)
[00:14:16]: Validating portal[9] <-> <nil>[9] (inactive)
[00:14:16]: Validating portal[10] <-> <nil>[10] (inactive)
[00:14:16]: Sim paused
dixon961 commented 6 years ago

This is caves.

[00:00:00]: PersistRootStorage is now /home/dst/.klei//DoNotStarveTogether/DSTWhalesCluster/Caves/
[00:00:00]: Starting Up
[00:00:00]: Version: 260075
[00:00:00]: Current time: Sat Apr 14 11:28:40 2018

[00:00:00]: System Name: Linux
[00:00:00]: Host Name: 3838a05f5269
[00:00:00]: Release(Kernel) Version: 4.4.0-1054-aws
[00:00:00]: Kernel Build Timestamp: #63-Ubuntu SMP Wed Mar 28 19:42:42 UTC 2018
[00:00:00]: Machine Arch: x86_64
[00:00:00]: Don't Starve Together: 260075 LINUX
[00:00:00]: Build Date: 3388
[00:00:00]: Parsing command line
[00:00:00]: Command Line Arguments: -cluster DSTWhalesCluster -shard Caves
[00:00:00]: Initializing distribution platform
[00:00:00]: ....Done
[00:00:00]: THREAD - started 'GAClient' (4133149504)
[00:00:00]: CurlRequestManager::ClientThread::Main()
[00:00:00]: Mounting file system databundles/shaders.zip successful.
[00:00:00]: Mounting file system databundles/fonts.zip successful.
[00:00:00]: Mounting file system databundles/anim_dynamic.zip successful.
[00:00:00]: Mounting file system databundles/bigportraits.zip successful.
[00:00:00]: Mounting file system databundles/images.zip successful.
[00:00:00]: Mounting file system databundles/scripts.zip successful.
[00:00:00]: ProfileIndex:11.92
[00:00:00]: [Connect] PendingConnection::Reset(true)
[00:00:00]: Network tick rate: U=15(2), D=0
[00:00:00]: Network tick rate: U=15(2), D=0
[00:00:00]: OnLoadPermissionList: /home/dst/.klei//DoNotStarveTogether/DSTWhalesCluster/blocklist.txt (Failure)
[00:00:00]: OnLoadPermissionList: /home/dst/.klei//DoNotStarveTogether/DSTWhalesCluster/adminlist.txt (Failure)
[00:00:00]: OnLoadUserIdList: /home/dst/.klei//DoNotStarveTogether/DSTWhalesCluster/whitelist.txt (Failure)
[00:00:00]: Token retrieved from: /home/dst/.klei//DoNotStarveTogether/DSTWhalesCluster/cluster_token.txt
[00:00:00]: Token retrieved from: /home/dst/.klei//DoNotStarveTogether/DSTWhalesCluster/cluster_token.txt
[00:00:00]: cGame::InitializeOnMainThread
[00:00:00]: THREAD - started 'StreamInput' (4126145344)
[00:00:00]: Renderer initialize: Okay
[00:00:00]: AnimManager initialize: Okay
[00:00:00]: Buffers initialize: Okay
[00:00:00]: cDontStarveGame::DoGameSpecificInitialize()
[00:00:00]: GameSpecific initialize: Okay
[00:00:00]: cGame::StartPlaying
[00:00:00]: LOADING LUA
[00:00:00]: DoLuaFile scripts/main.lua
[00:00:00]: DoLuaFile loading buffer scripts/main.lua
[00:00:00]:   taskgrouplist:    default Together
[00:00:00]:   taskgrouplist:    classic Classic
[00:00:00]:   taskgrouplist:    cave_default    Underground
[00:00:00]:   taskgrouplist:    lavaarena_taskset       The Forge
[00:00:00]: running main.lua

[00:00:00]: loaded modindex
[00:00:00]: ModIndex: Beginning normal load sequence for dedicated server.

[00:00:00]: DownloadMods(0)
[00:00:02]: LOADING LUA SUCCESS
[00:00:02]: PlayerDeaths could not load morgue
[00:00:02]: PlayerHistory could not load player_history
[00:00:02]: bloom_enabled       false
[00:00:02]: loaded saveindex
[00:00:02]: OnFilesLoaded()
[00:00:02]: OnUpdatePurchaseStateComplete
[00:00:03]:     Load FE
[00:00:04]:     Load FE: done
[00:00:04]: ModIndex: Load sequence finished successfully.
[00:00:04]: Reset() returning
[00:00:04]: THREAD - started 'FilesExistAsyncThread' (4066483008)
[00:00:04]: FilesExistAsyncThread started (13883 files)...
[00:00:04]: [200] Account Communication Success (6)
[00:00:04]: Received (KU_EO1Nch6C) from TokenPurpose
[00:00:04]: Starting Dedicated Server Game
[00:00:04]: Network tick rate: U=15(2), D=0
[00:00:04]: About to start a server with the following settings:
[00:00:04]:   Dedicated: true
[00:00:04]:   Online: true
[00:00:04]:   Passworded: true
[00:00:04]:   ServerPort: 10998
[00:00:04]:   SteamAuthPort: 8766
[00:00:04]:   SteamMasterServerPort: 27016
[00:00:04]:   ClanID: false
[00:00:04]:   ClanOnly: false
[00:00:04]:   ClanAdmin: false
[00:00:04]:   LanOnly: false
[00:00:04]:   FriendsOnly: false
[00:00:04]:   EnableAutosaver: true
[00:00:04]:   EncodeUserPath: true
[00:00:04]:   PVP: false
[00:00:04]:   MaxPlayers: 16
[00:00:04]:   GameMode: survival
[00:00:04]:   OverridenDNS:
[00:00:04]:   PauseWhenEmpty: true
[00:00:04]:   IdleTimeout: 1800s
[00:00:04]:   VoteEnabled: true
[00:00:04]:   InternetBroadcasting: true
[00:00:04]:   Intent: cooperative
[00:00:05]: Online Server Started on port: 10998
[00:00:05]: ... FilesExistAsyncThread complete
[00:00:05]: Collecting garbage...
[00:00:05]: lua_gc took 0.05 seconds
[00:00:05]: ~ShardLuaProxy()
[00:00:05]: ~ItemServerLuaProxy()
[00:00:05]: ~InventoryLuaProxy()
[00:00:05]: ~NetworkLuaProxy()
[00:00:05]: ~SimLuaProxy()
[00:00:05]: lua_close took 0.06 seconds
[00:00:05]: ReleaseAll
[00:00:05]: ReleaseAll Finished
[00:00:05]: cGame::StartPlaying
[00:00:05]: LOADING LUA
[00:00:05]: DoLuaFile scripts/main.lua
[00:00:05]: DoLuaFile loading buffer scripts/main.lua
[00:00:05]:   taskgrouplist:    default Together
[00:00:05]:   taskgrouplist:    classic Classic
[00:00:05]:   taskgrouplist:    cave_default    Underground
[00:00:05]:   taskgrouplist:    lavaarena_taskset       The Forge
[00:00:05]: running main.lua

[00:00:05]: loaded modindex
[00:00:05]: ModIndex: Beginning normal load sequence for dedicated server.

[00:00:05]: LOADING LUA SUCCESS
[00:00:05]: PlayerDeaths could not load morgue
[00:00:05]: PlayerHistory could not load player_history
[00:00:05]: bloom_enabled       false
[00:00:05]: loaded saveindex
[00:00:05]: OnFilesLoaded()
[00:00:05]: OnUpdatePurchaseStateComplete
[00:00:05]: Loading world: session/E08B14E2C53A4A2E/0000000002
[00:00:05]: Save file is at version 4.77
[00:00:05]:     Unload FE
[00:00:05]:     Unload FE done
[00:00:06]:     LOAD BE
[00:00:10]:     LOAD BE: done
[00:00:10]: Begin Session: E08B14E2C53A4A2E
[00:00:10]: saving to server_temp/server_save
[00:00:10]: MiniMapComponent::AddAtlas( minimap/minimap_data.xml )
[00:00:11]: Loading Nav Grid
[00:00:11]: [Shard] Slave is waiting for LUA...
[00:00:15]: Reconstructing topology
[00:00:15]:     ...Sorting points
[00:00:15]:     ...Sorting edges
[00:00:15]:     ...Connecting nodes
[00:00:15]:     ...Validating connections
[00:00:16]:     ...Housekeeping
[00:00:16]:     ...Done!
[00:00:16]: 1 uploads added to server. From server_temp
[00:00:16]: About to start a shard with these settings:
[00:00:16]:   ShardName: Caves
[00:00:16]:   ShardID: 586447616
[00:00:16]:   ShardRole: SLAVE
[00:00:16]:   MasterHost: dst_master
[00:00:16]:   MasterBind: (null)
[00:00:16]:   MasterPort: 10888
[00:00:16]: [Shard] Connecting to master...
[00:00:16]: Telling Client our new session identifier: E08B14E2C53A4A2E
[00:00:16]: ModIndex: Load sequence finished successfully.
[00:00:16]: Reset() returning
[00:00:16]: [Steam] SteamGameServer_Init(8766, 10998, 27016)
[00:00:16]: [Steam] SteamGameServer_Init(8766, 10998, 27017)
[00:00:16]: [Steam] SteamGameServer_Init(8766, 10998, 27018)
[00:00:16]: [Steam] SteamGameServer_Init(8766, 10998, 27019)
[00:00:16]: [Steam] SteamGameServer_Init(8766, 10998, 27020)
[00:00:16]: [Steam] SteamGameServer_Init(8766, 10998, 27021)
[00:00:16]: [Steam] SteamGameServer_Init(8766, 10998, 27022)
[00:00:16]: [Steam] SteamGameServer_Init(8766, 10998, 27023)
[00:00:16]: [Steam] SteamGameServer_Init(8766, 10998, 27024)
[00:00:16]: [Steam] SteamGameServer_Init(8766, 10998, 27025)
[00:00:16]: [Warning] SteamGameServer_Init failed
[00:00:16]: Your server will still start, but some Steam functionality may be missing.
[00:00:16]: Steam ports can be configured through command line by adding:
[00:00:16]: -steam_authentication_port 12345 -steam_master_server_port 12346
[00:00:16]: or through settings.ini, under the [network] heading
[00:00:16]: steam_authentication_port = 12345
[00:00:16]: steam_master_server_port  = 12346
[00:00:16]: Auth port: 8766 Master server port: 27016
[00:00:16]: [Shard] Connection to master failed. Waiting to reconnect...
[00:00:17]: Validating portal[1] <-> <nil>[1] (inactive)
[00:00:17]: Validating portal[2] <-> <nil>[2] (inactive)
[00:00:17]: Validating portal[3] <-> <nil>[3] (inactive)
[00:00:17]: Validating portal[4] <-> <nil>[4] (inactive)
[00:01:51]: Validating portal[5] <-> <nil>[5] (inactive)
[00:03:07]: Validating portal[6] <-> <nil>[6] (inactive)
[00:04:17]: Validating portal[7] <-> <nil>[7] (inactive)
[00:04:46]: Validating portal[8] <-> <nil>[8] (inactive)
[00:06:22]: Validating portal[9] <-> <nil>[9] (inactive)
[00:07:54]: Validating portal[10] <-> <nil>[10] (inactive)
[00:09:13]: About to start a shard with these settings:
[00:09:13]:   ShardName: Caves
[00:09:13]:   ShardID: 586447616
[00:09:13]:   ShardRole: SLAVE
[00:09:14]:   MasterHost: dst_master
[00:09:14]:   MasterBind: (null)
[00:09:14]:   MasterPort: 10888
[00:09:14]: [Shard] Connecting to master...
[00:09:26]: [Shard] Connection to master failed. Waiting to reconnect...
[00:09:32]: About to start a shard with these settings:
[00:09:32]:   ShardName: Caves
[00:09:33]:   ShardID: 586447616
[00:09:33]:   ShardRole: SLAVE
[00:09:33]:   MasterHost: dst_master
[00:09:33]:   MasterBind: (null)
[00:09:33]:   MasterPort: 10888
[00:09:33]: [Shard] Connecting to master...
[00:09:46]: [Shard] Connection to master failed. Waiting to reconnect...
[00:09:54]: About to start a shard with these settings:
[00:09:54]:   ShardName: Caves
[00:09:54]:   ShardID: 586447616
[00:09:54]:   ShardRole: SLAVE
[00:09:54]:   MasterHost: dst_master
[00:09:54]:   MasterBind: (null)
[00:09:54]:   MasterPort: 10888
[00:09:54]: [Shard] Connecting to master...
[00:10:06]: [Shard] Connection to master failed. Waiting to reconnect...
[00:10:11]: About to start a shard with these settings:
[00:10:12]:   ShardName: Caves
[00:10:12]:   ShardID: 586447616
[00:10:12]:   ShardRole: SLAVE
[00:10:12]:   MasterHost: dst_master
[00:10:12]:   MasterBind: (null)
[00:10:12]:   MasterPort: 10888
[00:10:12]: [Shard] Connecting to master...
[00:10:24]: [Shard] Connection to master failed. Waiting to reconnect...
[00:10:30]: About to start a shard with these settings:
[00:10:30]:   ShardName: Caves
[00:10:30]:   ShardID: 586447616
[00:10:30]:   ShardRole: SLAVE
[00:10:31]:   MasterHost: dst_master
[00:10:31]:   MasterBind: (null)
[00:10:31]:   MasterPort: 10888
[00:10:32]: [Shard] Connecting to master...
[00:10:41]: [Shard] Connection to master failed. Waiting to reconnect...
[00:10:47]: About to start a shard with these settings:
[00:10:47]:   ShardName: Caves
[00:10:47]:   ShardID: 586447616
[00:10:47]:   ShardRole: SLAVE
[00:10:47]:   MasterHost: dst_master
[00:10:47]:   MasterBind: (null)
[00:10:47]:   MasterPort: 10888
[00:10:48]: [Shard] Connecting to master...
[00:10:59]: [Shard] Connection to master failed. Waiting to reconnect...
[00:11:04]: About to start a shard with these settings:
[00:11:05]:   ShardName: Caves
[00:11:05]:   ShardID: 586447616
[00:11:05]:   ShardRole: SLAVE
[00:11:05]:   MasterHost: dst_master
[00:11:05]:   MasterBind: (null)
[00:11:05]:   MasterPort: 10888
[00:11:05]: [Shard] Connecting to master...
[00:11:16]: [Shard] Connection to master failed. Waiting to reconnect...
[00:11:22]: About to start a shard with these settings:
[00:11:22]:   ShardName: Caves
[00:11:22]:   ShardID: 586447616
[00:11:23]:   ShardRole: SLAVE
[00:11:23]:   MasterHost: dst_master
[00:11:23]:   MasterBind: (null)
[00:11:23]:   MasterPort: 10888
[00:11:23]: [Shard] Connecting to master...
[00:11:35]: [Shard] Connection to master failed. Waiting to reconnect...
[00:11:41]: About to start a shard with these settings:
[00:11:41]:   ShardName: Caves
[00:11:41]:   ShardID: 586447616
[00:11:41]:   ShardRole: SLAVE
[00:11:41]:   MasterHost: dst_master
[00:11:41]:   MasterBind: (null)
[00:11:41]:   MasterPort: 10888
[00:11:41]: [Shard] Connecting to master...
[00:11:51]: [Shard] Connection to master failed. Waiting to reconnect...
[00:11:58]: About to start a shard with these settings:
[00:11:58]:   ShardName: Caves
[00:11:59]:   ShardID: 586447616
[00:11:59]:   ShardRole: SLAVE
[00:11:59]:   MasterHost: dst_master
[00:11:59]:   MasterBind: (null)
[00:11:59]:   MasterPort: 10888
[00:12:00]: [Shard] Connecting to master...
[00:12:11]: [Shard] Connection to master failed. Waiting to reconnect...
[00:12:17]: About to start a shard with these settings:
[00:12:17]:   ShardName: Caves
[00:12:17]:   ShardID: 586447616
[00:12:17]:   ShardRole: SLAVE
[00:12:17]:   MasterHost: dst_master
[00:12:17]:   MasterBind: (null)
[00:12:17]:   MasterPort: 10888
[00:12:17]: [Shard] Connecting to master...
[00:12:27]: [Shard] Connection to master failed. Waiting to reconnect...
[00:12:32]: About to start a shard with these settings:
[00:12:33]:   ShardName: Caves
[00:12:33]:   ShardID: 586447616
[00:12:33]:   ShardRole: SLAVE
[00:12:33]:   MasterHost: dst_master
[00:12:33]:   MasterBind: (null)
[00:12:33]:   MasterPort: 10888
[00:12:34]: [Shard] Connecting to master...
[00:12:42]: [Shard] Connection to master failed. Waiting to reconnect...
[00:12:49]: About to start a shard with these settings:
[00:12:49]:   ShardName: Caves
[00:12:49]:   ShardID: 586447616
[00:12:49]:   ShardRole: SLAVE
[00:12:50]:   MasterHost: dst_master
[00:12:50]:   MasterBind: (null)
[00:12:50]:   MasterPort: 10888
[00:12:51]: [Shard] Connecting to master...
[00:12:59]: [Shard] Connection to master failed. Waiting to reconnect...
[00:13:05]: About to start a shard with these settings:
[00:13:05]:   ShardName: Caves
[00:13:05]:   ShardID: 586447616
[00:13:05]:   ShardRole: SLAVE
[00:13:05]:   MasterHost: dst_master
[00:13:05]:   MasterBind: (null)
[00:13:05]:   MasterPort: 10888
[00:13:05]: [Shard] Connecting to master...
[00:13:15]: [Shard] Connection to master failed. Waiting to reconnect...
[00:13:21]: About to start a shard with these settings:
[00:13:22]:   ShardName: Caves
[00:13:22]:   ShardID: 586447616
[00:13:22]:   ShardRole: SLAVE
[00:13:22]:   MasterHost: dst_master
[00:13:22]:   MasterBind: (null)
[00:13:22]:   MasterPort: 10888
[00:13:22]: [Shard] Connecting to master...
[00:13:34]: [Shard] Connection to master failed. Waiting to reconnect...
[00:13:40]: About to start a shard with these settings:
[00:13:40]:   ShardName: Caves
[00:13:40]:   ShardID: 586447616
[00:13:40]:   ShardRole: SLAVE
[00:13:40]:   MasterHost: dst_master
[00:13:40]:   MasterBind: (null)
[00:13:40]:   MasterPort: 10888
[00:13:40]: [Shard] Connecting to master...
[00:14:01]: [Shard] Unable to connect to shard master server: CANNOT_RESOLVE_DOMAIN_NAME
[00:14:02]: c_shutdown  true
[00:14:07]: Out of memory. Bytes requested: 3145728

Aaaaaand "out of memory". I tried to start it on AWS micro instace, which have 1Gb of RAM.

mathielo commented 6 years ago

Hey @dixon961 thanks for sharing and sorry I couldn't reply sooner.

So I fired off a fresh copy of the repo locally to compare logs, and your logs are mostly looking fine. Master logs are solid and it seems that the master shard is running without any issues.

The Caves log, however, seems a bit off when connecting to Steam apparently:

[00:00:16]: [Steam] SteamGameServer_Init(8766, 10998, 27016)
[00:00:16]: [Steam] SteamGameServer_Init(8766, 10998, 27017)
[00:00:16]: [Steam] SteamGameServer_Init(8766, 10998, 27018)
[00:00:16]: [Steam] SteamGameServer_Init(8766, 10998, 27019)
[00:00:16]: [Steam] SteamGameServer_Init(8766, 10998, 27020)
[00:00:16]: [Steam] SteamGameServer_Init(8766, 10998, 27021)
[00:00:16]: [Steam] SteamGameServer_Init(8766, 10998, 27022)
[00:00:16]: [Steam] SteamGameServer_Init(8766, 10998, 27023)
[00:00:16]: [Steam] SteamGameServer_Init(8766, 10998, 27024)
[00:00:16]: [Steam] SteamGameServer_Init(8766, 10998, 27025)
[00:00:16]: [Warning] SteamGameServer_Init failed
[00:00:16]: Your server will still start, but some Steam functionality may be missing.
[00:00:16]: Steam ports can be configured through command line by adding:
[00:00:16]: -steam_authentication_port 12345 -steam_master_server_port 12346
[00:00:16]: or through settings.ini, under the [network] heading
[00:00:16]: steam_authentication_port = 12345
[00:00:16]: steam_master_server_port  = 12346

The expected output is something like the Master's log (the shard that is working):

[00:14:14]: [Steam] SteamGameServer_Init(8766, 10999, 27016)
[00:14:15]: [Steam] SteamGameServer_Init success

I've never faced that issue before, so I'd assume it's something related to AWS's VPSs architecture, as they differ quite a lot from other VPS providers.

So trying to nail down to the actual cause of the issue:

1) Have you changed any of the config files? If so, please share what's changed. 2) Try running it locally on your computer if you have docker installed (specially if you changed config) just to confirm it works in other environments. 3) Do as the logs suggested, and add different Steam ports in DSTClusterConfig/Caves/server.ini under [NETWORK] group:

[NETWORK]
server_port = 10998
-- Add these:
steam_authentication_port = 8766
steam_master_server_port  = 27016

Some trial & error might be needed before figuring out the correct ports. See Steam's article on required ports for more info.


Now for some side notes and tips, regardless of the problem above:

1) 1Gb is too little for a VPS as (from my gaming experiences) each shard may usually eat up from 300Mb to ~700mb. So you roughly need at the very least 1Gb for both shards to be running simultaneously, plus some memory for the host OS/system as well.

I'd say that 2Gb works fine for most servers (though you could need more depending on world age + number of players)

2) I'd recommend not using AWS for VPS to host any gaming server (at all, not only DST). Reason being AWS has CPU Credits concept which works great to host any services that has an overall low CPU usage with a few peaks every now and then.

Most game servers, though, will require a lot from the CPUs so the credits concept backfires on you quite quickly. Each DST shard will use ~30% CPU when idling (no players connected, sim paused) and ~100% CPU when there's at least one player connected.

With that in mind I'd recommend a 2 CPUs VPS solution (one CPU core exclusive per shard) that lets you use your CPU capacity in full, without any restrains or limitations.

Read more about what matters for DST server performance: https://forums.kleientertainment.com/topic/84600-what-makes-a-dedicated-server-better/

mathielo commented 6 years ago

Hey @dixon961 did you manage to get your server up?

dixon961 commented 6 years ago

Wow @mathielo thanks for this detailed response. Since I live in Russia I have some problems with AWS right now, so I decided not to use AWS at all. (Our government tries to block Telegram but block everything except it =) ). In the coming days I want to rent good VPS to host my own VPN, and will try all your suggestions. All I can say now is: 1) I didn't change any of the config files. 2) I think i can try host it locally on my PC today. Thanks for links. Sorry for late answer, I was on vacations).

mathielo commented 6 years ago

Based in this issue and some other discussions I added a (hopefully) insightful page on dedicated server performance, which also covers Hosting options including VPSs.

Am closing the issue for now but feel free to reopen it - or start a new one - should you run into any issues setting up your server. Have fun!