Jump to content

Issue with the cave shard. Error is looping on Cave server: "Sendto failed with code -1"


Recommended Posts

Hey. 

I have this issue with the Cave Shard with default configurations (master port on cluster.ini is changed) on the same machine with firewall completely disabled on PC and the Cave Shard is not able to connect to the Master (Overworld shard).

Master works fine and can be reached from lan/internet.

Here is the error that keeps looping on the Cave Server:

[00:09:58]:   ShardRole: SECONDARY
[00:09:58]:   MasterHost: 127.0.0.1
[00:09:58]:   MasterBind: (null)
[00:09:58]:   MasterPort: 12999
[00:09:58]: [Shard] Connecting to master...
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 548.
sendto failed with code -1 for char 5 and length 548.
sendto failed with code -1 for char 5 and length 548.
sendto failed with code -1 for char 5 and length 548.
sendto failed with code -1 for char 5 and length 548.
[00:10:08]: [Shard] Connection to master failed. Waiting to reconnect...
[00:10:13]: About to start a shard with these settings:
[00:10:13]:   ShardName: Caves
[00:10:13]:   ShardID: 473251842
[00:10:13]:   ShardRole: SECONDARY
[00:10:13]:   MasterHost: 127.0.0.1
[00:10:13]:   MasterBind: (null)
[00:10:13]:   MasterPort: 12999
[00:10:13]: [Shard] Connecting to master...
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 548.
sendto failed with code -1 for char 5 and length 548.

Here is cluster.ini


[GAMEPLAY]
game_mode = survival
max_players = 6
pvp = false
pause_when_empty = true

[NETWORK]
cluster_description = This server is super duper!
cluster_name = Super Server
cluster_password = 

[MISC]
console_enabled = true

[SHARD]
shard_enabled = true
bind_ip = 127.0.0.1
master_ip = 127.0.0.1
master_port = 12999
cluster_key = supersecretkey

From Master. server.ini:

[NETWORK]
server_port = 11000


[SHARD]
is_master = true


[STEAM]
master_server_port = 27018
authentication_port = 8768


[ACCOUNT]
encode_user_path = true

From Cave. server.ini:

[NETWORK]
server_port = 11001


[SHARD]
is_master = false
name = Caves
id = 473251842


[STEAM]
master_server_port = 27019
authentication_port = 8769


[ACCOUNT]
encode_user_path = true

 

cave_server_log.txt master_server_log.txt

Link to comment
Share on other sites

Never seen this one before, but my gut tells me that it might be MTU related. Check if the MTU of your network interface is set to a reasonable number. (Usually 1492 or 1500)

It might be that the DST server requires a MTU of at least 1172 (or as fallback 548) for the communication between the shards.

Link to comment
Share on other sites

I was able to get the server running and caves to connect to master on an another computer.
So it seems to be pc specific. What the underlying reason is.. I have no clue.
Any ideas on how to investigate further?

Link to comment
Share on other sites

While Zauxst already mentioned, that disabling the firewall didn't help, maybe it does for you?
Otherwise, if you are on Linux, check if SElinux causes problems (once again).
Furthermore make sure that the hosts file is correct (Linux: /etc/hosts, Windows:
%windir%\system32\drivers\etc\hosts). Especially the part with the 127.0.0.1, since that's the part that the DST Server uses by default. Though, iirc the network interfaces usually have the 127.0.0.1 hardcoded.
Speaking of network interfaces, check if those ones are configured correctly. For example if you can ping the network interface itself over itself and stuff.

Link to comment
Share on other sites

It is probably something VPN related as I myself also run VPN on the machine. However I did use splittunneling to run the server itself outside of the vpn, but I guess something is still messed up.
Will try to figure it out some more and then give up.
I am on windows I would believe the 127.0.0.1 is configured correctly, but I am not 100% sure. Any tips on how to test/check it?
I was able to ping 127.0.0.1 atleast just fine and the local network address also.

 

Link to comment
Share on other sites

I want to say that I actually had an exclusion for the app in the VPN and the issue is still there.

It just loops in the caves server:

[00:00:21]: Reset() returning
[00:00:21]: [Shard] Connection to master failed. Waiting to reconnect...
[00:00:21]: Validating portal[2] <-> <nil>[2] (inactive)
[00:00:21]: Validating portal[9] <-> <nil>[9] (inactive)
[00:00:21]: Validating portal[6] <-> <nil>[6] (inactive)
[00:00:21]: Validating portal[4] <-> <nil>[4] (inactive)
[00:00:21]: Validating portal[10] <-> <nil>[10] (inactive)
[00:00:21]: Validating portal[1] <-> <nil>[1] (inactive)
[00:00:21]: Validating portal[5] <-> <nil>[5] (inactive)
[00:00:21]: Validating portal[8] <-> <nil>[8] (inactive)
[00:00:22]: Validating portal[7] <-> <nil>[7] (inactive)
[00:00:22]: Validating portal[3] <-> <nil>[3] (inactive)
[00:00:26]: About to start a shard with these settings:
[00:00:26]:   ShardName: Caves
[00:00:26]:   ShardID: 473251842
[00:00:26]:   ShardRole: SECONDARY
[00:00:26]:   MasterHost: 127.0.0.1
[00:00:26]:   MasterBind: (null)
[00:00:26]:   MasterPort: 12999
[00:00:26]: [Shard] Connecting to master...
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 548.
sendto failed with code -1 for char 5 and length 548.
sendto failed with code -1 for char 5 and length 548.
sendto failed with code -1 for char 5 and length 548.
sendto failed with code -1 for char 5 and length 548.
[00:00:36]: [Shard] Connection to master failed. Waiting to reconnect...
[00:00:41]: About to start a shard with these settings:
[00:00:41]:   ShardName: Caves
[00:00:41]:   ShardID: 473251842
[00:00:41]:   ShardRole: SECONDARY
[00:00:41]:   MasterHost: 127.0.0.1
[00:00:41]:   MasterBind: (null)
[00:00:41]:   MasterPort: 12999
[00:00:41]: [Shard] Connecting to master...
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 548.
sendto failed with code -1 for char 5 and length 548.
sendto failed with code -1 for char 5 and length 548.
sendto failed with code -1 for char 5 and length 548.
sendto failed with code -1 for char 5 and length 548.
[00:00:51]: [Shard] Connection to master failed. Waiting to reconnect...
[00:00:56]: About to start a shard with these settings:
[00:00:56]:   ShardName: Caves
[00:00:56]:   ShardID: 473251842
[00:00:56]:   ShardRole: SECONDARY
[00:00:56]:   MasterHost: 127.0.0.1
[00:00:56]:   MasterBind: (null)
[00:00:56]:   MasterPort: 12999
[00:00:56]: [Shard] Connecting to master...
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 1172.
sendto failed with code -1 for char 5 and length 548.
sendto failed with code -1 for char 5 and length 548.
sendto failed with code -1 for char 5 and length 548.
sendto failed with code -1 for char 5 and length 548.
sendto failed with code -1 for char 5 and length 548.
[00:01:06]: [Shard] Connection to master failed. Waiting to reconnect...

This is from the master:

[00:00:20]: Reconstructing topology
[00:00:20]:     ...Sorting points
[00:00:20]:     ...Sorting edges
[00:00:20]:     ...Connecting nodes
[00:00:20]:     ...Validating connections
[00:00:20]:     ...Housekeeping
[00:00:20]:     ...Done!
[00:00:20]: 1 uploads added to server. From server_temp
[00:00:20]: About to start a shard with these settings:
[00:00:20]:   ShardName: [SHDMASTER]
[00:00:20]:   ShardID: 1
[00:00:20]:   ShardRole: MASTER
[00:00:20]:   MasterHost: (null)
[00:00:20]:   MasterBind: 127.0.0.1
[00:00:20]:   MasterPort: 12999
[00:00:20]: [Shard] Starting master server
[00:00:20]: [Warning] Could not confirm port 12999 is open in the firewall.
[00:00:20]: [Shard] Shard server started on port: 12999
[00:00:20]: Telling Client our new session identifier: 05FA63D1841F949A
[00:00:20]: Check for write access: TRUE
[00:00:20]: Check for read access: TRUE
[00:00:20]: Available disk space for save files: 533161 MB
[00:00:20]: ModIndex: Load sequence finished successfully.
[00:00:21]: Reset() returning
[00:00:21]: Validating portal[6] <-> <nil>[6] (inactive)
[00:00:21]: Validating portal[1] <-> <nil>[1] (inactive)
[00:00:21]: Validating portal[4] <-> <nil>[4] (inactive)
[00:00:21]: Validating portal[3] <-> <nil>[3] (inactive)
[00:00:21]: Validating portal[5] <-> <nil>[5] (inactive)
[00:00:21]: Validating portal[10] <-> <nil>[10] (inactive)
[00:00:21]: Validating portal[2] <-> <nil>[2] (inactive)
[00:00:21]: Validating portal[9] <-> <nil>[9] (inactive)
[00:00:21]: Validating portal[8] <-> <nil>[8] (inactive)
[00:00:21]: Validating portal[7] <-> <nil>[7] (inactive)
[00:00:21]: Sim paused
[00:00:22]: Server registered via geo DNS in eu-central-1

 

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