Skip to content

Unexpectedly disconnected from remote server #1251

Open
@Teslicek

Description

@Teslicek

Sometimes, when a player has a weird connection, they are kicked to the fallback server without properly joining it, which causes an error on proxy, as well as some random message on the backend server.

Upon asking, I was told that this error is caused by the client being stuck in the configuration phase, because the proxy did not receive any packets from the client.

Happened on Velocity 359 with no resource pack.

Backend message:

[14:17:38 INFO]: com.mojang.authlib.GameProfile@6b42ad17[id=337fe0e8-d37d-4e5e-b2fc-583f25df3f90,name=Hachimaki950529,properties={textures=[Property[name=textures, value=ewogICJ0aW1lc3RhbXAiIDogMTcwODY4OTE5ODIyMywKICAicHJvZmlsZUlkIiA6ICIzMzdmZTBlOGQzN2Q0ZTVlYjJmYzU4M2YyNWRmM2Y5MCIsCiAgInByb2ZpbGVOYW1lIiA6ICJIYWNoaW1ha2k5NTA1MjkiLAogICJzaWduYXR1cmVSZXF1aXJlZCIgOiB0cnVlLAogICJ0ZXh0dXJlcyIgOiB7CiAgICAiU0tJTiIgOiB7CiAgICAgICJ1cmwiIDogImh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYWJiYzM0N2VjNTkxNzBmZDRmODlkYmUxMDg4ZGI3NGVjZDY0ZWE2N2YwNmNjZWNkNmFiODdiNzFlNjkyNTk2YiIsCiAgICAgICJtZXRhZGF0YSIgOiB7CiAgICAgICAgIm1vZGVsIiA6ICJzbGltIgogICAgICB9CiAgICB9CiAgfQp9, signature=rwgPbrDpEMXIttrj3wxvsMuXekeGb515yzqRPUSjTpWZWFBJCDOAeAJ/06MF0aJUzXHReI1oIS6INwk01O3PZxtYhGugRnWwMPPG0cQyo2hniRJvmjNzfg2eBLs5BdCGTInGtz/lhoVKD45FEPqAzLDOxpLakfxiYzYOyU5wUk28iTU89t33/sIF4MxpkO4Lf9ibFPhyJO2zoaC6T3qnI8ESZ/r1r7FhLrIxoriXeLM9PJ/4O0LIrutkwImUSPC8vzJTCRcfdlkgBtk9CLj5P1CPZlWk9M/IzsjJOy2pgOH0M6LylVNWkr+L0tvW7aRJrrgII+QOTHcBHwhTdxhRR5VkLncMwc7iPGRAi3GYPkj45aVKOBeh9ywlQAD1Db71WKoosfHP/jv14Yx67xDzrBDxiLFttzaN/mATsiT/ygwEiNy4u2x1/XA6701xNwlEMI8DQwxkWFf6dzZTYKqdbbHEsS98c8Z/b3l/ekd/eQzFLI1WPxBl7nxQMQngMbvK9pWCutmW2mojKJWGOEOYAzOc9AJ8iY8R5+7zOMAuL2VdSaloHCKBBrGE6a4fVLiOIhhMGi3kbmXzbkTPZPCIV6t5/ZpZFdumT99bCM84KHYGimyDopiE77rRBGvPNrRXEgWzJn54oj5IBquptd7P4+WsZgHHrIw3qZUcZCBrpr0=]]}] lost connection: Disconnected

Velocity error:

[14:17:08] [Netty epoll Worker #42/INFO] [com.velocitypowered.proxy.connection.MinecraftConnection]: [server connection] Hachimaki950529 -> lifesteal has disconnected
[14:17:08] [Netty epoll Worker #42/INFO] [com.velocitypowered.proxy.connection.MinecraftConnection]: [server connection] Hachimaki950529 -> hub has connected
[14:17:38] [Netty epoll Worker #42/ERROR] [com.velocitypowered.proxy.connection.MinecraftConnection]: [server connection] Hachimaki950529 -> hub: read timed out
[14:17:38] [Netty epoll Worker #42/INFO] [com.velocitypowered.proxy.connection.MinecraftConnection]: [server connection] Hachimaki950529 -> hub has disconnected
[14:17:38] [Netty epoll Worker #42/ERROR] [com.velocitypowered.proxy.connection.client.ConnectedPlayer]: [connected player] Hachimaki950529 ((their ip):45158): unable to connect to server hub
java.io.IOException: Unexpectedly disconnected from remote server
	at com.velocitypowered.proxy.connection.backend.ConfigSessionHandler.disconnected(ConfigSessionHandler.java:224) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at com.velocitypowered.proxy.connection.MinecraftConnection.channelInactive(MinecraftConnection.java:125) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:303) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:281) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:274) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:81) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at com.velocitypowered.proxy.protocol.netty.PlayPacketQueueHandler.channelInactive(PlayPacketQueueHandler.java:81) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:303) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:281) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:274) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:81) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.handler.timeout.IdleStateHandler.channelInactive(IdleStateHandler.java:277) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:303) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:281) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:274) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:411) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:376) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:303) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:281) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:274) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1405) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:301) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:281) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:901) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.channel.AbstractChannel$AbstractUnsafe$7.run(AbstractChannel.java:813) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:173) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:166) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:413) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[velocity-359-custom.jar:3.3.0-SNAPSHOT (git-ecf936f3)]
	at java.base/java.lang.Thread.run(Thread.java:840) [?:?]
[14:17:38] [Netty epoll Worker #42/INFO] [com.velocitypowered.proxy.connection.client.ConnectedPlayer]: [connected player] Hachimaki950529 ((their ip):45158) has disconnected: 无法将您连接至 hub,请稍后再试。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions