Steamcmd login failed with error code 3

January 14, 2015 7.8k views

Hi all,

I'm trying to set up a CS:GO server using the steamcmd tool. But when I attempt "login anonymous" or "login USERNAME PASSWORD" I get the following

Connecting anonymously to Steam Public...Login Failure: No Connection
FAILED with result code 3

I've tried with Ubuntu 12.04 64, 14.04 64 and Debian 7 32 and I get the same issue.

I've tried implemented to recommended firewall rules

iptables -A INPUT -p udp -m udp --sport 27000:27030 --dport 1025:65355 -j ACCEPT
iptables -A INPUT -p udp -m udp --sport 4380 --dport 1025:65355 -j ACCEPT

But I still get the same. I've tried with steamCMD directly as well as the following csgo specific script http://danielgibbs.co.uk/lgsm/csgoserver/

Has anyone done this recently? Am I missing something obvious?

Ta :)

-Chris

Edit

Here is the original guide I intended to follow, it mentions DO specifically, so I assume it's possible!

http://ksloan.net/how-to-set-up-your-own-csgo-dedicated-server-in-less-than-5-minutes-linux/

3 Answers

For fun, I decided to write you a launcher. It is best to run this on a server that's not had steamcmd installed before (or just remove /home/steam/steamcmd folder and run "userdel steam")

This will open up the firewall rules on Ubuntu 12.04/14.x for you, install steamcmd, and launch it. If you run this script after installing, it will merely launch the service.

copy/paste this in /root/steam_launch.sh:

#!/bin/bash
if [ ! -f /home/steam/steamcmd/steamcmd.sh ]; then
# Opening firewall ports
sudo ufw allow proto udp from any to any port 1200,27000:27017,27020
sudo ufw allow proto tcp from any to any port 27015,27020:27041
sudo apt-get install lib32gcc1 wget
adduser -m steam
su steam <<'EOF'
mkdir ~/steamcmd
cd ~/steamcmd
wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz
tar -xvzf steamcmd_linux.tar.gz
EOF
echo "Steamcmd is now installed."
else
echo "Starting steamcmd...."
su steam <<'EOF'
cd ~/steamcmd
./steamcmd.sh
EOF
fi

Next, run this:

chmod +x /root/steam_launch.sh

Next, run this to do the install:

/root/steam_launch.sh

Once you see "Steamcmd is now installed.", re-run the script:

/root/steam_launch.sh

You should see "Starting steamcmd...." and then it should be running.

EDIT* Modified the script to use "if is regular file" rather than "ls"

Hey JonsJava I really appreciate your efforts : D

I changed the script slightly (adduser to useradd) but I am still getting the same.

Once I've opened the Steam prompt and attempt to login either anonymously or with a username and password, after a long delay, i get error code 3

A routing issue somewhere maybe? Though I've no idea where I would be looking

Huh.... so I've finally been able to log in and it seems the issue was the fact the server was in the New York data centre... ?

I've just recreated the exact same Ubuntu 14.04 64bit server but in the London data centre and it worked as expected first time...

Fun! :D

Thanks again Jons

  • Hi ChrisMingay, how did you change the data center? I'm having the same issue and opening the ports didn't help me either (although I'm on a private network so it could be an issue there also).

  • Nothing clever I'm afraid. I destroyed the VPS and then just recreated it elsewhere.

    You might be able to take an image of your server though and then redeploy the image on a newly created droplet elsewhere?

Have another answer? Share your knowledge.