Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server client connection: lost connection: Took too long to log in #345

Closed
FlambeSk opened this issue Nov 20, 2020 · 7 comments · Fixed by #367
Closed

Server client connection: lost connection: Took too long to log in #345

FlambeSk opened this issue Nov 20, 2020 · 7 comments · Fixed by #367
Labels
Bug Something isn't working

Comments

@FlambeSk
Copy link

FlambeSk commented Nov 20, 2020

Describe the bug
When player ( client ) trying connect on server, server gets error: lost connection: Took too long to log in
Server is set to offline mode event this is still trying to connect on Mojang servers for authentication.

Server is with 8Gb RAM.

All other servers are working correctly. There is no problem with TCP connection.

Edit
I just tested ATM-5 and everything works great. On ATM-6 problem only.

@FlambeSk FlambeSk added the Bug Something isn't working label Nov 20, 2020
@shaoiken
Copy link

shaoiken commented Nov 21, 2020

I can atleast confirm that you are not alone with that problem. I play together with a friend on a private server and she is experiencing the same issue with ATM-6 on the 1.16.3 versions. On the older 1.16.1 one it was no problem.

We too tried to set the server to offline mode which did not help and tried to extend the timeout via java startup parameter Dfml.readTimeout=360 on the server & client, but that didn't help either.

@ViRb3
Copy link
Contributor

ViRb3 commented Nov 21, 2020

The login timeout is being overriden by RandomPatches. To adjust this, edit /config/randompatches.toml:

# Options related to the disconnect timeouts.
[timeouts]
	# The interval at which the server sends the KeepAlive packet.
	# Min: 1
	# Max: 2147483647
	# Default: 15
	keepAlivePacketInterval = 15
	# The read timeout in seconds.
	# This is the time it takes for a player to be disconnected after not responding to a KeepAlive packet.
	# This value is automatically rounded up to a product of keepAlivePacketInterval.
	# Min: 1
	# Max: 2147483647
	# Default: 90
	readTimeout = 90
	# The login timeout in seconds.
	# Min: 1
	# Max: 2147483647
	# Default: 900
	loginTimeout = 900

@FlambeSk
Copy link
Author

The login timeout is being overriden by RandomPatches. To adjust this, edit /config/randompatches.toml:

# Options related to the disconnect timeouts.
[timeouts]
	# The interval at which the server sends the KeepAlive packet.
	# Min: 1
	# Max: 2147483647
	# Default: 15
	keepAlivePacketInterval = 15
	# The read timeout in seconds.
	# This is the time it takes for a player to be disconnected after not responding to a KeepAlive packet.
	# This value is automatically rounded up to a product of keepAlivePacketInterval.
	# Min: 1
	# Max: 2147483647
	# Default: 90
	readTimeout = 90
	# The login timeout in seconds.
	# Min: 1
	# Max: 2147483647
	# Default: 900
	loginTimeout = 900

This worked, thank you so much !

@ViRb3
Copy link
Contributor

ViRb3 commented Nov 21, 2020

@FlambeSk For the record, which value did you adjust, and to how much? I'm looking to submit a PR with this change as a lot of people are having the problem, but my computer is too fast to encounter it 😅

@FlambeSk
Copy link
Author

Here are values what I set 👍

[timeouts]
# The interval at which the server sends the KeepAlive packet.
# Min: 1
# Max: 2147483647
# Default: 15
keepAlivePacketInterval = 500
# The read timeout in seconds.
# This is the time it takes for a player to be disconnected after not responding to a KeepAlive packet.
# This value is automatically rounded up to a product of keepAlivePacketInterval.
# Min: 1
# Max: 2147483647
# Default: 90
readTimeout = 500
# The login timeout in seconds.
# Min: 1
# Max: 2147483647
# Default: 900
loginTimeout = 9000

@shaoiken
Copy link

Did you adjust it only on the server or the client as well?

@FlambeSk
Copy link
Author

Did you adjust it only on the server or the client as well?

Only server. It took little longer for client to connect ( maybe 1 minute ), but then client connects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants