Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-172541

Lag causes client to join server twice. Kicked due to logging in from another location

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.15.2
    • None
    • The bug is confirmed for 1.12 through 1.15, and possibly (but unconfirmed) goes back as far as 1.8

      Happened on multiple servers from big network servers to 5 person private servers.

      Windows 8
    • Community Consensus
    • Networking

      What Happens: While the player is already connected to a server, something happens that causes their game to connect to the server while they are still connected. This causes a "handleDisconnection() called twice" error and the player is then timed out. The player is unable to rejoin the server due to "You logged in from another location". A server restart fixes the issue.

      Server Log:
      [01:17:22] User Authenticator #6/INFO: UUID of player NicoleX is XXXX
      [01:17:22] [Server thread/INFO]: NicoleX[/xx.xx.xx.xx:50770] logged in with entity id 159 [...]

      # Several minutes pass with no problems

      [...]
      [01:21:53] User Authenticator #7/INFO: UUID of player NicoleX is XXXX

      _# After lag spike, Client attempts to re-establish the connection (The ip address stays the same)_
      [01:21:53] [Server thread/INFO]: NicoleX lost connection: You logged in from another location
      [01:21:53] [Server thread/INFO]: NicoleX left the game
      [01:21:53] [Server thread/INFO]: NicoleX[/xx.xx.xx.xx:50805] logged in with entity id 167 [...]
      [01:21:53] [Server thread/WARN]: handleDisconnection() called twice
      [01:22:40] [Server thread/INFO]: NicoleX lost connection: Timed out
      [01:22:40] [Server thread/INFO]: NicoleX left the game

      # Further login attempts result in the "You logged in from another location" error

      Client Log:
      [11:44:55] [Client thread/INFO]: [CHAT] You cannot enter your own wool room!

      # Client disconnects here
      [11:45:25] [Client thread/INFO]: Connecting to mc.server.net, 25565
      [11:46:42] [Client thread/INFO]: Connecting to mc.server.net, 25565

      # After two attempts to re-join, player closed the game
      [11:47:02] [Client thread/INFO]: Stopping!
      [11:47:02] [Client thread/INFO]: SoundSystem shutting down...
      [11:47:02] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

      Probable Causes: The user I know that suffers from this occasionally has their internet cut out or drop. What exactly causes these drops is unknown, but it seems the Minecraft server and/or client is not handling the loss of connection properly. When the lag happens they are kicked from the server, but their character gets left behind. Then Minecraft tries to reconnect them and causes the error.

            Unassigned Unassigned
            bubblesandsuch Zachary C.
            Votes:
            8 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              CHK: