Hi i am currently hosting a server on a VPS running debian and when i try to connect to the server my client gets an error saying the authentication servers are down, and the server displays an error saying it is unable to connect to the authentication servers. I have checked the status of the servers and Mojang says they are up and running. I suspect it has something to do with the fact it is a vps and i need to add the authentication servers to a file somewhere in the OS to allow the server to connect I am just unsure where and how.
Step 5 - Configure your new Spigot Minecraft Server. For example, on a Raspberry Pi with 1GB of ram I have set xms and xmx to 512M and 1008M respectively. So start the JVM with 512MB of ram and let it grow to just under 1GB max. Finally, make sure to enter the right version that you have built.
Please help. :)Thanks
6 Answers
Some folks use VPS servers to try and 'crack' all kinds of authentication servers, including Mojang's. They're not really interested in Minecraft accounts beyond learning of an email / password pair that might work for other (more important) things like gmail.
It's not unlikely that the previous 'owner' of your VMs IP was engaged in those sort of shenanigans, and that Mojang inserted a firewall rule on their side to stop the abuse.
If that is the case:
- Contact Mojang. Tell them you just bought a new VPS and it can't connect to their authentication server.
- Be ready to back up that claim - keep the welcome email the host sent you
- If all fails, try explaining this to your host, and ask for an IP from a different block
SSH to the VM first and try pinging / traceroute to the auth server, include this information when you contact Mojang.
When you get a shiny new VM, you also (unfortunately) inherit all of the bad behavior that might have been coming from the IP it was assigned - once in a while you have to play the it ain't me game to get stuff working again.
I had a similar issues.
The problem with all the fixes i found was that I installed Minecraft via snap. sudo snap install minecraft
and because snaps are self contained the java on my machine did not effected it.
What fixed it for me was installing the old launcher instead.
- Remove snap version
sudo snap remove minecraft
- completely remove java 10 ( If Installed )
I've had this issue before, turned out that whilst I'd created iptables rules to allow incoming connections to ports that the server used for the game, I hadn't allowed established/related connections coming back from the authentication servers.
If you are using iptables, you might want to check you have this rule on your input chain.
Check if you have any iptables rules using the command iptables -L
If this helps, these are my iptables rules (as seen by the command iptables -L
), basically, it firewalls off all incoming connections apart from SSH (used to manage the server), http as I run a web server on the system, then I allow 25565 (Minecraft) and 25575 (rcon), and any other incoming traffic on the local network (192.168.1.0/24). I place no restrictions on traffic being output from the system, and note that I also allow all ICMP traffic through, which isn't essential, but it could cause problems if you block it.
I'm not sure if you are still having this issue, but I finally found a solution that works for me. Along with making sure the iptables rules suggested earlier are in place, I had to add two java command line arguments.
After adding those in my java execution line, I was able to connect to my minecraft server running on my debian vps.
I had this problem on a new Digital Ocean box running Ubuntu 18.04 and tried a lot of things, but these steps finally fixed it.
Ensure you can access the following URLs from your box using ping, curl, wget etc.
- minecraft.net
- account.mojang.com (note, this will give you a 403 by default)
- authserver.mojang.com
- skins.minecraft.net
- textures.minecraft.net
If you cannot, look at Tim Post's answer, if you can connect, continue.
Completely remove the currently installed version of Java from the box. There are complete answers online as to how to do that.
apt-get install openjdk-8-jdk
. (I had java 10 installed fromapt-get install default-jre
and nothing I did would make that work.)update-ca-certificates -f
Run the commands from this script
/usr/bin/printf 'xfexedxfexedx00x00x00x02x00x00x00x00xe2x68x6ex45xfbx43xdfxa4xd9x92xddx41xcexb6xb2x1cx63x30xd7x92' > /etc/ssl/certs/java/cacerts
/var/lib/dpkg/info/ca-certificates-java.postinst configure
reboot
Success!
I suggest that you completely re-create the server (using same map, etc.) since you just copied the files from a windows computer.
Server files that come from a windows machine CANNOT be used on Linux unless you create a virtual machine.
You can download Linux server files from here under multiplayer setup:https://minecraft.net/download
I hope this helps :)
Not the answer you're looking for? Browse other questions tagged minecrafthosting or ask your own question.
I own a vps in which I run various servers from.One of those things is a Minecraft server. Recently I also installed a teamspeak server following a tutorial. This server however started up automatically on boot and would run even if I did not have an ssh window open running the process. I then attempted to create a similar start up script for my Minecraft server. However I could not do it successfully. I looked up the formatting codes and instructions on the official help page, but when I boot up the Minecraft server it does not auto start like the team speak server. Note: I know screen is an option however I prefer not to use it. The startupscript for team speak was placed in the init.d folder and now runs as long as the server is up despite if I am connected to it or not.
1 Answer
I've had the same issue when I was setting up a minecraft server on Debian. The following advice should apply to Ubuntu as well.
There are several scripts available. The minecraft wiki has a list at the bottom linking to some popular scripts. However, I'd personally recommend Athenus' minecraft init script, which also contains some nice features like world backup and log rotation. It uses screen like many other scripts, but to be honest I think that's a good thing, because that way you can always attach to the console of your server if you ever need it.
Alternatively, you can write your own init script, by using something like this as a template. You just need to tweak the start
and stop
procedures, which shouldn't be that difficult if you have a bit of experience with the terminal.