Minecraft Troubleshooting

Fix Failed to Verify Username and Mojang Session Errors

Fix 'Failed to verify username' and 'Authentication servers are down' on a Minecraft Java server. Tell a Mojang outage from a setup problem, and what to check.

Last updated: November 23, 2026

4.9

789+ Satisfied Customers

“Failed to verify username!” and “Authentication servers are down” mean your server couldn’t confirm a player’s Minecraft account with Mojang’s session service. If one player sees it, that player restarts Minecraft and the launcher. If every player sees it, check for a Mojang outage, a proxy setting, or Minehut or MineKeep settings your server doesn’t need. Don’t turn off online-mode to get around it.

What the Session Service Does

When online-mode=true (the default), your server checks every player who joins against Minecraft’s account database. It asks Mojang’s session service whether the player is really signed in to the account they’re using. If the answer is yes, they join with their real account and UUID. If the check fails, the player is kicked before they reach the world.

The server also contacts Mojang’s services when it starts, to fetch public keys it needs from them.

Which Error Are You Seeing?

Each message points to a different part of the check. Match what the player sees, or what the Console logs at the moment they’re kicked.

MessageWhat it meansStart here
Failed to verify username! (console: Username 'Name' tried to join with an invalid session)The session service answered, and it couldn’t confirm this player signed inOne Player or Everyone?
Authentication servers are down. Please try again later. Sorry! (console: Couldn't verify username because servers are unavailable)Your server couldn’t get an answer from the session serviceMojang Outage or Your Server?
Failed to log in: Invalid session (Try restarting your game and the launcher)The player’s own game couldn’t complete its half of the sign-inOne Player or Everyone?
Failed to log in: The authentication servers are currently not reachable. Please try again.The player’s own game couldn’t reach MojangMojang Outage or Your Server?
Console: Got an error with a html body connecting to ...Your server asked a session service and got an error web page back instead of an answerCheck the address in that line (below)
Console at startup: Failed to request Minecraft Services public key (older versions: Failed to request yggdrasil public key)Your server couldn’t reach Mojang’s services when it startedMojang Outage or Your Server?

One Player or Everyone?

If one player is affected and others can join, the problem is usually that player’s sign-in rather than your server. Have them:

  1. Close Minecraft and the Minecraft Launcher completely
  2. Reopen the launcher and sign in with the Microsoft account that owns Minecraft: Java Edition
  3. Rejoin your server

If that doesn’t help, have them sign out of the launcher and back in, one of the steps in Minecraft Help’s Java Edition multiplayer troubleshooting. A player using a launcher that isn’t signed in to a Microsoft account can’t pass this check on a server with online-mode=true.

If every player is affected, the problem is on the server side or with Mojang. Work through the next three sections.

Mojang Outage or Your Server?

When every player gets “Authentication servers are down”, or the console logs Couldn't verify username because servers are unavailable, your server couldn’t get an answer from Mojang. The quickest way to tell where the problem is:

  • Players can’t join other online-mode servers either: the problem is most likely Mojang’s service, or those players’ own connection. Wait and try again later. Nothing on your server needs changing
  • Players can join other online-mode servers, but not yours: something between your server and Mojang is the problem. Check the next two sections first, then contact our support team with the console lines

Minecraft Help sends players to the Xbox status page to check for Minecraft service outages, though that guidance is written for Bedrock Edition. For Java Edition sign-in, testing another online-mode server is the more direct check.

Don’t Turn Off online-mode to Fix This

Setting online-mode=false stops the errors because the server stops checking players at all. It causes bigger problems:

  • Anyone can join with any username, including an admin’s. Without an authentication plugin, that lets a griefer log in as one of your admins. See How to Recover from Griefing
  • Players get different UUIDs in offline mode, so they show up as new players. Whitelist entries, inventories and plugin data tied to their old UUIDs no longer match

If Mojang’s service is down, wait for it to come back. If you changed online-mode while troubleshooting, set it back to true and restart. See Minecraft Server Properties for how the setting works.

The one exception is a backend server behind a proxy, which is set to online-mode=false on purpose because the proxy checks players instead.

Behind a Velocity or BungeeCord Proxy?

With a proxy in front of your servers, the proxy checks players with Mojang, not your backend servers. So:

  • Look for the error in the proxy’s console, not the backend’s
  • Keep the proxy’s own setting on: online-mode = true in velocity.toml, or online_mode: true in BungeeCord’s config.yml. Both are on by default
  • Keep online-mode=false on each backend, with forwarding set up so the backend trusts the proxy. With Velocity modern forwarding on Paper, proxies.velocity.online-mode in config/paper-global.yml must match the proxy’s online-mode

Errors such as Unable to verify player details or This server requires you to connect with Velocity are forwarding problems between the proxy and the backend, not Mojang problems. See Minecraft Velocity Proxy or Minecraft Java Proxy Servers.

Minehut and MineKeep Settings Are Only for Those Platforms

The Minehut and MineKeep guides add JVM flags that point your server at that platform’s session server instead of Mojang’s, and turn on proxy-protocol or haproxy-protocol. These settings are only for a server that is actually connected to that platform. On a server players join directly, they cause login and connection failures:

  • Platform JVM flags (-Dminecraft.api.session.host=..., -Dmojang.sessionserver=..., or -Dwaterfall.auth.url=... with a Minehut or MineKeep address): the platform’s session server is meant for players joining through that platform, so direct joins can fail with “Failed to verify username!”
  • proxy-protocol: true in config/paper-global.yml: only turn it on if HAProxy, a platform guide, or another service in front of your server requires it. If nothing in front of your server sends PROXY protocol, players can’t connect
  • haproxy-protocol = true in velocity.toml: the same rule applies to a Velocity proxy. If you don’t use HAProxy or a platform that needs it, leave it off

To remove them from a server that isn’t on Minehut or MineKeep, delete every flag the platform guide added from your server’s JVM flags: all of the -Dminecraft.api.* flags, plus any -Dmojang.sessionserver or -Dwaterfall.auth.url flag. Minecraft Server Startup Parameters shows where the JVM flags are. Then set proxy-protocol: false under proxies in config/paper-global.yml, haproxy-protocol = false in velocity.toml, or proxy_protocol: false under listeners in Waterfall’s config.yml, as applicable, unless HAProxy, a platform, or another service in front of your server sends PROXY protocol. Fully restart the server.

Still Not Working?

If players still can’t join, contact our support team with:

  • Your Server UUID
  • The exact message players see, and the console line printed at the same moment
  • Whether it affects one player or everyone, and when it started
  • Whether players can join other online-mode servers
  • Whether the server is behind a proxy, or connected to Minehut or MineKeep, and what’s in your JVM Flags field

Frequently Asked Questions

Your server asked Mojang's session service whether the player is signed in to the account they're joining with, and the answer was no. If only one player sees it, they should close Minecraft and the launcher completely, sign back in, and rejoin. If every player sees it, check for Minehut or MineKeep JVM flags your server doesn't need, or a proxy setting.

No. With online-mode=false, anyone can join with any username, and existing players get new UUIDs, so their inventories, whitelist entries and plugin data no longer match. If Mojang's service is down, wait for it to come back. Behind a proxy, the backend runs with online-mode=false because the proxy checks players instead.

Only if your server is connected to that platform. Those flags point your server at Minehut's or MineKeep's session server, which is meant for players joining through that platform. On a server players join directly, remove them and restart.

Look at the console line printed when the player is kicked. 'Couldn't verify username because servers are unavailable' means your server couldn't reach Mojang. If players also can't join other online-mode servers, the problem is most likely Mojang's service or those players' own connection, so wait and try again. If other servers work but yours doesn't, contact support.