Failed to verify username for own server
Hi r/Minecraft… bit of an oddity here and need some help.
I was previously hosting a Minecraft server on my own hardware for myself just fine through a Proxmox LXC.
I’ve been spending the day migrating my Proxmox homelab to a different Mini PC I had around that has more RAM and more CPU cores.
Upon setting up the server using Mojang’s official server software (and ChatGPT writing a script for me to download it) I got the DNS setup, firewall rules, it’s theoretically fully functional and lights up as online when I type in the domain I have even away from home
However, attempting to connect always yields “Error: failed to verify username!”. I was able to connect to the server \*once\* successfully, every other connect attempt is the same error… chatGPT is saying Mojang’s auth servers are blocking me, not sure how much I can trust, but connecting to other servers work fine… I can ping Mojang’s auth servers from my Proxmox LXC… so I’m genuinely at a loss… any ideas?
I was previously hosting a Minecraft server on my own hardware for myself just fine through a Proxmox LXC.
I’ve been spending the day migrating my Proxmox homelab to a different Mini PC I had around that has more RAM and more CPU cores.
Upon setting up the server using Mojang’s official server software (and ChatGPT writing a script for me to download it) I got the DNS setup, firewall rules, it’s theoretically fully functional and lights up as online when I type in the domain I have even away from home
However, attempting to connect always yields “Error: failed to verify username!”. I was able to connect to the server \*once\* successfully, every other connect attempt is the same error… chatGPT is saying Mojang’s auth servers are blocking me, not sure how much I can trust, but connecting to other servers work fine… I can ping Mojang’s auth servers from my Proxmox LXC… so I’m genuinely at a loss… any ideas?
Commentaires
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
----
(*Vote has already ended*)
`# Minecraft auto-updater for Java server`
`MINECRAFT_DIR="/srv/minecraft"`
`LOCAL_JAR="$MINECRAFT_DIR/server.jar"`
`TMP_JAR="$MINECRAFT_DIR/server_tmp.jar"`
`# Fetch latest server JSON metadata`
`LATEST_JSON=$(curl -s https://launchermeta.mojang.com/mc/game/version_manifest.json)`
`# Get latest release version`
`LATEST_VERSION=$(echo "$LATEST_JSON" | jq -r '.latest.release')`
`# Get the URL to the server JAR for the latest version`
`LATEST_JAR_URL=$(echo "$LATEST_JSON" | jq -r --arg ver "$LATEST_VERSION" '.versions[] | select(.id==$ver) | .url' | xargs curl -s | jq -r '.downloads.server.url')`
`# Check if we already have the latest version`
`CURRENT_HASH=$(sha256sum "$LOCAL_JAR" 2>/dev/null | awk '{print $1}')`
`wget -q -O "$TMP_JAR" "$LATEST_JAR_URL"`
`TMP_HASH=$(sha256sum "$TMP_JAR" | awk '{print $1}')`
`if [ "$CURRENT_HASH" != "$TMP_HASH" ]; then`
`echo "New Minecraft server detected! Updating..."`
`systemctl stop minecraft`
`mv "$TMP_JAR" "$LOCAL_JAR"`
`chown minecraft:minecraft "$LOCAL_JAR"`
`systemctl start minecraft`
`echo "Update complete and server restarted."`
`else`
`echo "Server is already up-to-date."`
`rm -f "$TMP_JAR"`
`fi`
heres the script ChatGPT came up with
edit:
and heres the system service I created for it:
\[Unit\]
Description=Minecraft Java Edition Server
[After=network.target](http://After=network.target)
\[Service\]
User=minecraft
Group=minecraft
WorkingDirectory=/srv/minecraft
ExecStart=/usr/bin/java -Xmx7G -Xms2G -jar server.jar nogui
Restart=on-failure
RestartSec=10
SuccessExitStatus=0 1
StandardOutput=journal
StandardError=journal
\[Install\]
[WantedBy=multi-user.target](http://WantedBy=multi-user.target)