Assistance installing game server

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
phaiz
A semi-regular
A semi-regular
Posts: 28
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Jul 24, 2014 9:48 pm

Assistance installing game server

Post by phaiz »

Hello

I've followed this guide http://www.nfoservers.com/forums/viewto ... 67&t=11249 and I am running into problems with step 3.

The guide asks me to download Steam, extract it and then run a script. I have no issues until I attempt to run the script, here is what happens
steam@***:~/steam-server$ ls
linux32 steamcmd_linux.tar.gz steamcmd_linux.tar.gz.1 steamcmd.sh steam.sh
steam@***:~/steam-server$ ./steamcmd.sh
./steamcmd.sh: line 29: /home/steam/steam-server/linux32/steamcmd: No such file or directory
I've spoken with one support member and we attempted this

Code: Select all

steam@***:~/steam-server$ sh steamcmd.sh
steamcmd.sh: 3: cd: can't cd to steamcmd.sh
steamcmd.sh: 16: [: unexpected operator
steamcmd.sh: 16: [: unexpected operator
steamcmd.sh: 29: steamcmd.sh: /linux32/steamcmd: not found
I am running Ubuntu if anyone asks.
Does anyone have an idea as to what the issue is?
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Assistance installing game server

Post by soja »

You are missing 32 bit binaries.

They can be obtained by running this as root:

Code: Select all

apt-get install lib32stdc++6
if you have any further issues please ask!
Not a NFO employee
phaiz
A semi-regular
A semi-regular
Posts: 28
Joined: Thu Jul 24, 2014 9:48 pm

Re: Assistance installing game server

Post by phaiz »

soja wrote:You are missing 32 bit binaries.

They can be obtained by running this as root:

Code: Select all

apt-get install lib32stdc++6
if you have any further issues please ask!
This fixed it, thanks for the help! Sorry to bother everyone with this simple stuff, still new to all of this. Hopefully there aren't any more road blocks :)
phaiz
A semi-regular
A semi-regular
Posts: 28
Joined: Thu Jul 24, 2014 9:48 pm

Re: Assistance installing game server

Post by phaiz »

Would it be at all possible to include this as an FYI maybe you need to do this to the tutorial?
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Assistance installing game server

Post by soja »

phaiz wrote:Would it be at all possible to include this as an FYI maybe you need to do this to the tutorial?
It is at the bottom :P You can get strange errors like this, joshh20 if you're reading this, make installing 32-bit binaries step 1! :)
Not a NFO employee
phaiz
A semi-regular
A semi-regular
Posts: 28
Joined: Thu Jul 24, 2014 9:48 pm

Re: Assistance installing game server

Post by phaiz »

Another road block.

If I didn't say it already, I am brand new to dedicated servers. Again I followed the tutorial exactly. I connected via ftp and added a server.cfg file with the correct info. After this I ran the server again with ./tf2-startup.sh

I am unsure what it means, but I get these messages afterwards
WARNING: Port 27015 was unavailable - bound to port 27016 instead
WARNING: Port 27005 was unavailable - bound to port 27006 instead
WARNING: Port 27020 was unavailable - bound to port 27021 instead

Also, I'm sure it's related somehow, I am unable to connect to the server in game.

I really don't know what to do here as I'm "limited" to the amount of support I can get since my plan is not managed.
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: Assistance installing game server

Post by kraze »

That error would indicate that something is already running on those ports. Did you setup a second instance by chance? It really shouldn't be a big issue since it re-bound itself to different ports automatically, unless you want the stock ports.
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
phaiz
A semi-regular
A semi-regular
Posts: 28
Joined: Thu Jul 24, 2014 9:48 pm

Re: Assistance installing game server

Post by phaiz »

kraze wrote:That error would indicate that something is already running on those ports. Did you setup a second instance by chance? It really shouldn't be a big issue since it re-bound itself to different ports automatically, unless you want the stock ports.
It ended up rebinding to port 27018 and I have since managed to connect to the server in game with that port. I honestly wouldn't know if I setup a second or maybe even a third instance unless using the command ./tf2-startup.sh multiple times does that. In which case yeah I probably did. Is there a way to remove those instances?
phaiz
A semi-regular
A semi-regular
Posts: 28
Joined: Thu Jul 24, 2014 9:48 pm

Re: Assistance installing game server

Post by phaiz »

I found this command to check the ports

Code: Select all

steam@***:~/steam-server$ netstat -lnptu | grep 270
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp        0      0 192.223.26.33:27015     0.0.0.0:*               LISTEN      2646/srcds_linux
tcp        0      0 192.223.26.33:27016     0.0.0.0:*               LISTEN      3541/srcds_linux
tcp        0      0 192.223.26.33:27017     0.0.0.0:*               LISTEN      3660/srcds_linux
tcp        0      0 192.223.26.33:27018     0.0.0.0:*               LISTEN      3760/srcds_linux
udp        0      0 192.223.26.33:27005     0.0.0.0:*                           2646/srcds_linux
udp        0      0 192.223.26.33:27006     0.0.0.0:*                           3541/srcds_linux
udp        0      0 192.223.26.33:27007     0.0.0.0:*                           3660/srcds_linux
udp        0      0 192.223.26.33:27008     0.0.0.0:*                           3760/srcds_linux
udp    39936      0 192.223.26.33:27015     0.0.0.0:*                           2646/srcds_linux
udp     9984      0 192.223.26.33:27016     0.0.0.0:*                           3541/srcds_linux
udp        0      0 192.223.26.33:27017     0.0.0.0:*                           3660/srcds_linux
udp        0      0 192.223.26.33:27018     0.0.0.0:*                           3760/srcds_linux
udp        0      0 192.223.26.33:27020     0.0.0.0:*                           2646/srcds_linux
udp        0      0 192.223.26.33:27021     0.0.0.0:*                           3541/srcds_linux
udp        0      0 192.223.26.33:27022     0.0.0.0:*                           3660/srcds_linux
udp        0      0 192.223.26.33:27023     0.0.0.0:*                           3760/srcds_linux
phaiz
A semi-regular
A semi-regular
Posts: 28
Joined: Thu Jul 24, 2014 9:48 pm

Re: Assistance installing game server

Post by phaiz »

Well this is interesting. Now it works with port 27015 instead of 27018 and I didn't get any IP errors. I didn't touch anything.
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Assistance installing game server

Post by soja »

In your netstat you have 4 srcds servers running.

You can use the PID(Process Identification Number)s in netstat to shut them down I think, I usually use screen, which seems more convenient and user-friendly.

To shut a process using the PID, find the number and type this in putty:

Code: Select all

kill 123
123 being the example PID.
Not a NFO employee
phaiz
A semi-regular
A semi-regular
Posts: 28
Joined: Thu Jul 24, 2014 9:48 pm

Re: Assistance installing game server

Post by phaiz »

I see. I've killed all of those processes. I'm still trying to figure out how to correctly make two game servers run. After speaking to a support person, I copied the entire tf2 directory and renamed it to tf2_2 (for the 2nd game server). I then came to the conclusion that one startup script which was above both directories would probably result in two identical servers or something. What I've done is removed the script and placed one inside both tf2 directories, each defining its own IP, port and map.

Now it seems that I run into the port errors again and I am connecting to the servers via ports other than 27015. I've sshd into each directory and executed the tf2-startup.sh.
phaiz
A semi-regular
A semi-regular
Posts: 28
Joined: Thu Jul 24, 2014 9:48 pm

Re: Assistance installing game server

Post by phaiz »

I can kill all servers and moments later will have this

Code: Select all

tcp        0      0 192.223.26.33:27015     0.0.0.0:*               LISTEN      7121/srcds_linux
tcp        0      0 74.91.119.95:27015      0.0.0.0:*               LISTEN      7117/srcds_linux
tcp        0      0 192.223.26.33:27016     0.0.0.0:*               LISTEN      7165/srcds_linux
udp        0      0 192.223.26.33:27005     0.0.0.0:*                           7121/srcds_linux
udp        0      0 74.91.119.95:27005      0.0.0.0:*                           7117/srcds_linux
udp        0      0 192.223.26.33:27006     0.0.0.0:*                           7165/srcds_linux
udp        0      0 192.223.26.33:27015     0.0.0.0:*                           7121/srcds_linux
udp        0      0 74.91.119.95:27015      0.0.0.0:*                           7117/srcds_linux
udp        0      0 192.223.26.33:27016     0.0.0.0:*                           7165/srcds_linux
udp        0      0 192.223.26.33:27020     0.0.0.0:*                           7121/srcds_linux
udp        0      0 74.91.119.95:27020      0.0.0.0:*                           7117/srcds_linux
udp        0      0 192.223.26.33:27021     0.0.0.0:*                           7165/srcds_linux
phaiz
A semi-regular
A semi-regular
Posts: 28
Joined: Thu Jul 24, 2014 9:48 pm

Re: Assistance installing game server

Post by phaiz »

From what I can tell, I need to know how to only have the two servers running and how to give both gameservers their own command line.

edit -
If both game servers have different IPs, can they use the same port? (27015)
$atanic $pirit
This is my homepage
This is my homepage
Posts: 251
Joined: Tue Jan 28, 2014 5:32 am

Re: Assistance installing game server

Post by $atanic $pirit »

phaiz wrote: If both game servers have different IPs, can they use the same port? (27015)
Yes, each IP can have it's own set of ports, if you have 2 different IPs then you can use 27015 port for both.

To me your srcds process starts on it's own or it's not terminated properly. Did you setup any auto-start scripts? Did you try to restart your machine in between, if not then give it a shot as well.
Image
Post Reply