Colony Survival

Colony Survival

View Stats:
RadGH Jun 1, 2018 @ 4:50am
Can't connected to dedicated server on Ubuntu VPS
With some help from @Zun on discord I managed to get the dedicated server working on my Digital Ocean VPS. I haven't set up any firewalls or anything. However, when I try to join my server from the server list I get stuck at "Trying to connected to steam server..." and the server reports the following:

[2018-06-01_10-58-31][Log]:[SteamAPI] P2P connection request from account 765****363, moved to pending [2018-06-01_10-58-46][Log]:[SteamAPI] P2P connection failed/lost to account 36***35 with error k_EP2PSessionErrorTimeout

I have tried all sorts of settings including turning Vac on and specifying the IP/ports. The settings take effect, but I still get the problem.

I am running colonysurvivaldedicated.exe with mono. Here is the command I am using:

start_server +server.world world4 +server.name "Radley's Digital Ocean Dedicated Server" +server.networktype SteamOnline

Here's a video of me trying to connect so you can see it in action: https://s3-us-west-2.amazonaws.com/elasticbeanstalk-us-west-2-868470985522/ShareX/2018/06/2018-06-01_04-11-18.mp4

Any ideas? Maybe my server is missing a component? It's a fresh copy of Ubuntu 16.04.4 x64 with just a few packages to get SteamCMD installed.

EDIT:

I did try these commands to open ports on UFW, which is apparently a firewall that comes with ubuntu, though it didn't help at all (restarted, still the same symptoms):

sudo ufw allow 27015 sudo ufw allow 27016 sudo ufw allow 27017 sudo ufw allow 27018

EDIT 2: Firewall is irrelevant, I realized it is installed but not active.

(Moved this thread from the Servers forum to Bug Reports)
Last edited by RadGH; Jun 1, 2018 @ 5:04am
< >
Showing 1-2 of 2 comments
RadGH Jun 1, 2018 @ 9:14pm 
I've created a new server and made a step-by-step guide to configure Ubuntu to run a Colony Survival server. This works, but due to the networking issues above you won't be able to connect to the server.

I'm providing this so the developers can reproduce the issue. In the future, these instructions might work to set up a dedicated server on your own!

How to install a Colony Survival Dedicated Server on a new Digital Ocean VPS

Steam CMD instructions: https://developer.valvesoftware.com/wiki/SteamCMD#Linux

Instructions:

1. Create an Ubuntu VPS droplet on digital ocean. Follow the instructions, you can use an SSH key pair or root username/password. You can use my referral link to get $25 credit: https://m.do.co/c/07474f2c48c1

2. If you create an SSH key pair using PuTTY, make sure to copy the public key from the text box instead of clicking "save public key" because the saved version is formatted differently. You should still save the private key, which PuTTY uses. If you went with root user/pass, disregard this.

3. Log in to SSH with PuTTY

4. If you installed 64bit OS, install 32bit support for steamcmd:

dpkg --add-architecture i386 add-apt-repository multiverse apt-get update apt-get dist-upgrade

5. Install SteamCMD in a new "steam" user directory:

useradd -m steam cd /home/steam/ apt-get install steamcmd

6. Install Colony Survival Dedicated server via steamcmd

cd /home/steam/ steamcmd +login anonymous +force_install_dir /home/steam/colony_survival_dedicated/ +app_update 748090 +quit

7. Install mono, required to run the dedicated server on linux
apt install mono-runtime

8. Run the server software, replace the tags "YOUR_SOMETHING" with your own info.

mono "/home/steam/colony_survival_dedicated/colonyserverdedicated.exe" start_server +server.world YOUR_WORLD_NAME +server.name "YOUR_SERVER_NAME" +server.networktype SteamOnline +server.ip YOUR_SERVER_IP_ADDRESS

9. Firewall is disabled by default, but if needed allow via UFW or iptables (they are the same thing) via:

# 3478, 4379, 4380 are required, from source sdk: "make sure that UDP ports 3478, 4379, and 4380 are open in an outbound direction" ufw allow 3478 ufw allow 4379 ufw allow 4380 # Port 27016 is the default game port and 27017 is the default steam query port ufw allow 27016 ufw allow 27017 # Steam assigns a random port between 49152 and 65535 to new connections ufw allow 49152:65535/tcp ufw allow 49152:65535/udp # the same thing as above, but for iptables. note that ufw changes iptables so you shouldn't need both iptables -I INPUT -p udp -m udp --dport 3478 -j ACCEPT iptables -I INPUT -p udp -m udp --dport 4379 -j ACCEPT iptables -I INPUT -p udp -m udp --dport 4380 -j ACCEPT iptables -I INPUT -p tcp -m tcp --dport 27016 -j ACCEPT iptables -I INPUT -p tcp -m tcp --dport 27017 -j ACCEPT iptables -A INPUT -p tcp --match multiport --dport 27017:65535 -j ACCEPT iptables -A INPUT -p udp --match multiport --dport 27017:65535 -j ACCEPT
Last edited by RadGH; Jun 1, 2018 @ 9:16pm
RadGH Jun 2, 2018 @ 7:25pm 
Update:

Although I did not fix the issue, I did find this prebuilt docker container for Colony Survival which works on the same server that was set up following the instructions above:

https://github.com/Didstopia/colony-survival-server

Note: You can stop at after completing 4 above and instead do:

...5. Set up a new user, I named it docker: https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-16-04

6. Follow this guide: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04
Or if using ubuntu 18.04: https://linuxconfig.org/how-to-install-docker-on-ubuntu-18-04-bionic-beaver

7. do this as your docker user:
git clone https://github.com/Didstopia/colony-survival-server.git cd colony-survival-server ./docker_build.sh

8. configure the server by setting these environment variables (lol i don't know how to do this step):
SERVER_NAME (DEFAULT: "Docker" - Sets the publicly visible name of the server) SERVER_EXTRA_ARGS (DEFAULT: "" - Optional startup arguments for the server)

9. run the server:
./docker_run.sh
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: Jun 1, 2018 @ 4:50am
Posts: 2