SRCDS Steam group


Multiple issues getting server online, pls help
#1
hi,
i did hours and days of research and for some reason i can't get it to fully work.

my problems are:
1) server not shown in steam server list.
2) not 100% sure what command to use to start up server

./srcds_run -console -game cstrike +map de_dust2 +maxplayers 12 -port 27015 -autoupdate +ip 192.168.1.8

(is that ip supposed to be the public one) if i set is to public addr it keeps looping the start of the server)

3) Mani mod does not work. (error:Unable to load plugin "../cstrike/addons/mani_admin_plugin")
see below in output. basically i could not find a good how-to for linux cli users with the newest version of the plugin.


now i know these are very common things and there is a LOT of info out there but it just seems to be different from my situation. i tried many of the possible solutions. if you think you know how to solve any of these i'd be very gratefull. if you need more info from my part just let me know what and i'll get it.

my setup:
Davolink2020 router (ports forwarded this should not be the issue, used portforward.com to do this.)
pc with linux ubuntu server 11.04 (cli only)
running the game under port 27095 on a different pc.

i think the easyest way to put is is to post my output.
before that i want to note the server goes up and i can connect and a friend can connect as well from a different location, it's just that i want the server to show in the server list.
for testing purpose i'll leave the server online so you can try to connect my ip.

here goes the output:

Setting breakpad minidump AppID = 240
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Installing breakpad exception handler for appid(240)/version(4659)
Unable to load plugin "../cstrike/addons/mani_admin_plugin"
maxplayers set to 12
Unknown command "r_decal_cullsize"
maxplayers set to 12
WARNING: NNET_OpenSocket: bind: Cannot assign requested address
Couldn't allocate any server IP port
Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem
Tue Aug 23 15:25:55 CEST 2011: Server restart in 10 seconds
Updating server using Steam.
Checking bootstrapper version ...
Updating Installation
Checking/Installing 'Counter-Strike Source Shared Content' version 113


Checking/Installing 'Base Source Shared Models' version 4


Checking/Installing 'Base Source Shared Sounds' version 4


Checking/Installing 'Base Source Shared Materials' version 8


Checking/Installing 'OB Linux Dedicated Server' version 120


HLDS installation up to date
CAsyncIOManager: 0 threads terminating. 0 reads, 0 writes, 0 deferrals.
CAsyncIOManager: 102 single object sleeps, 0 multi object sleeps
CAsyncIOManager: 0 single object alertable sleeps, 0 multi object alertable sleeps
Using breakpad minidump system
Using breakpad crash handler

Console initialized.
Game.dll loaded for "Counter-Strike: Source"
Setting breakpad minidump AppID = 240
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Installing breakpad exception handler for appid(240)/version(4659)
Unable to load plugin "../cstrike/addons/mani_admin_plugin"
maxplayers set to 12
Unknown command "r_decal_cullsize"
maxplayers set to 12
WARNING: NNET_OpenSocket: bind: Cannot assign requested address
Couldn't allocate any server IP port
Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem
Tue Aug 23 15:26:24 CEST 2011: Server restart in 10 seconds

[2]+ Stopped ./srcds_run -console -game cstrike +map de_dust2 +maxplayers 12 -port 27015 -autoupdate +ip 87.210.153.8
adminds@Ubuntu-DS:~/srcds_1/orangebox$ ./srcds_run -console -game cstrike +map de_dust2 +maxplayers 12 -port 27015 -autoupdate +ip 192.168.1.8
Auto detecting CPU
Using default binary: ./srcds_linux
Server will auto-restart if there is a crash.
INFO: Located steam: ../steam
Updating server using Steam.
Checking bootstrapper version ...
Updating Installation
Checking/Installing 'Counter-Strike Source Shared Content' version 113


Checking/Installing 'Base Source Shared Models' version 4


Checking/Installing 'Base Source Shared Sounds' version 4


Checking/Installing 'Base Source Shared Materials' version 8


Checking/Installing 'OB Linux Dedicated Server' version 120


HLDS installation up to date
CAsyncIOManager: 0 threads terminating. 0 reads, 0 writes, 0 deferrals.
CAsyncIOManager: 103 single object sleeps, 0 multi object sleeps
CAsyncIOManager: 0 single object alertable sleeps, 0 multi object alertable sleeps
Using breakpad minidump system
Using breakpad crash handler

Console initialized.
Game.dll loaded for "Counter-Strike: Source"
Setting breakpad minidump AppID = 240
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Installing breakpad exception handler for appid(240)/version(4659)
Unable to load plugin "../cstrike/addons/mani_admin_plugin"
maxplayers set to 12
Unknown command "r_decal_cullsize"
maxplayers set to 12
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
WARNING: Port 27040 was unavailable - bound to port 27041 instead
Network: IP 192.168.1.8, mode MP, dedicated Yes, ports 27016 SV / 27006 CL
ConVarRef room_type doesn't point to an existing ConVar
Executing dedicated server config file
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Failed to load Steam ServiceServiceStart: failed to startGame will not start until both teams have players.
exec: couldn't exec banned_user.cfg
exec: couldn't exec banned_ip.cfg
Game will not start until both teams have players.
Dropped RTV Grant from server (Kicked by Console)
Connection to Steam servers successful.
VAC secure mode is activated.
Tue Aug 23 17:01:30 CEST 2011: Server Quit

adminds@Ubuntu-DS:~/srcds_1/orangebox$ ls
bin hl2 libcurl.so.4.2.0 srcds_run
cstrike libcurl.so.4 srcds_linux steam_appid.txt
adminds@Ubuntu-DS:~/srcds_1/orangebox$ cd cstrike
adminds@Ubuntu-DS:~/srcds_1/orangebox/cstrike$ ls
addons DownloadLists media scripts
autobuy.txt downloads models shader_cache.cfg
bin dxsupport_override.cfg modelsounds.cache sound
botchatter.db gameinfo.txt motd_text.txt stats.txt
botprofile.db lights.rad motd.txt steam.inf
cfg mapcycle.txt particles whitelist_beta.cfg
classes maplist.txt rebuy.txt whitelist.cfg
credits.txt maps reslists_xbox
detail.vbsp materials resource
adminds@Ubuntu-DS:~/srcds_1/orangebox/cstrike$ cd cfg
adminds@Ubuntu-DS:~/srcds_1/orangebox/cstrike/cfg$ ls
ai.cfg mani_admin_plugin skill1.cfg
buypresetsdefault_ct.vdf mani_admin_plugin_license.txt user_default.scr
buypresetsdefault_ter.vdf mani_server.cfg valve.rc
config_default.cfg server.cfg
game.cfg settings_default.scr
adminds@Ubuntu-DS:~/srcds_1/orangebox/cstrike/cfg$
adminds@Ubuntu-DS:~/srcds_1/orangebox/cstrike/cfg$ end

No command 'end' found, did you mean:
Command 'xend' from package 'xen-utils-3.3' (universe)
Command 'bnd' from package 'bnd' (universe)
Command 'ed' from package 'ed' (main)
Command 'esd' from package 'pulseaudio-esound-compat' (main)
Command 'esd' from package 'esound' (universe)
Command 'send' from package 'nmh' (universe)
Command 'send' from package 'mailutils-mh' (universe)
Command 'eid' from package 'id-utils' (universe)
Command 'and' from package 'and' (universe)
Command 'nd' from package 'nd' (universe)
Command 'ent' from package 'ent' (universe)
Command 'env' from package 'coreutils' (main)
Command 'snd' from package 'snd-nox' (universe)
Command 'snd' from package 'snd-gtk-pulse' (universe)
Command 'snd' from package 'snd-gtk-jack' (universe)
end: command not found
adminds@Ubuntu-DS:~/srcds_1/orangebox/cstrike/cfg$
adminds@Ubuntu-DS:~/srcds_1/orangebox/cstrike/cfg$
adminds@Ubuntu-DS:~/srcds_1/orangebox/cstrike/cfg$ cd ..
adminds@Ubuntu-DS:~/srcds_1/orangebox/cstrike$ cd ..
adminds@Ubuntu-DS:~/srcds_1/orangebox$ ./srcds_run -console -game cstrike +map de_dust2 +maxplayers 12 -port 27015 -autoupdate +ip 192.168.1.8
Auto detecting CPU
Using default binary: ./srcds_linux
Server will auto-restart if there is a crash.
INFO: Located steam: ../steam
Updating server using Steam.
Checking bootstrapper version ...
Updating Installation
Checking/Installing 'Counter-Strike Source Shared Content' version 113


Checking/Installing 'Base Source Shared Models' version 4


Checking/Installing 'Base Source Shared Sounds' version 4


Checking/Installing 'Base Source Shared Materials' version 8


Checking/Installing 'OB Linux Dedicated Server' version 120


HLDS installation up to date
CAsyncIOManager: 0 threads terminating. 0 reads, 0 writes, 0 deferrals.
CAsyncIOManager: 103 single object sleeps, 0 multi object sleeps
CAsyncIOManager: 0 single object alertable sleeps, 0 multi object alertable sleeps
Using breakpad minidump system
Using breakpad crash handler

Console initialized.
Game.dll loaded for "Counter-Strike: Source"
Setting breakpad minidump AppID = 240
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Installing breakpad exception handler for appid(240)/version(4659)
Unable to load plugin "../cstrike/addons/mani_admin_plugin"
maxplayers set to 12
Unknown command "r_decal_cullsize"
maxplayers set to 12
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
WARNING: Port 27040 was unavailable - bound to port 27041 instead
Network: IP 192.168.1.8, mode MP, dedicated Yes, ports 27016 SV / 27006 CL
ConVarRef room_type doesn't point to an existing ConVar
Executing dedicated server config file
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Failed to load Steam ServiceServiceStart: failed to startGame will not start until both teams have players.
exec: couldn't exec banned_user.cfg
exec: couldn't exec banned_ip.cfg
Game will not start until both teams have players.
Dropped RTV Grant from server (Kicked by Console)
Connection to Steam servers successful.
VAC secure mode is activated.
Tue Aug 23 17:15:23 CEST 2011: Server Quit

adminds@Ubuntu-DS:~/srcds_1/orangebox$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:0d:61:09:87:46
inet addr:192.168.1.8 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20d:61ff:fe09:8746/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:89120 errors:0 dropped:0 overruns:0 frame:0
TX packets:57707 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:127046321 (127.0 MB) TX bytes:3984005 (3.9 MB)
Interrupt:17 Base address:0xdc00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

adminds@Ubuntu-DS:~/srcds_1/orangebox$



thnx for any help..
if you have any suggestion i'm ready to try it all.

cheerss

server is online you may connect @ connect 87.210.153.8:27015
if needed and you think you can help i can give you acces to my linux server (only if you are well known on this forum though)


added NMAP scan result:

Nmap Options: -p27015 -T4 -sS -sU 87.210.153.8


Starting Nmap 4.75 ( http://nmap.org ) at 2011-08-23 17:29 Central Europe Daylight Time
Interesting ports on ip8-153-210-87.adsl2.static.versatel.nl (87.210.153.8):
PORT STATE SERVICE
27015/tcp filtered unknown
27015/udp open|filtered halflife

Nmap done: 1 IP address (1 host up) scanned in 2.14 seconds
Reply
#2
You use "-ip" to bind the server to the network adapter which uses this address (the internal ip of course).

How about portforwarding?
Reply
#3
(08-24-2011, 07:34 AM)Cyba_Mephisto Wrote:  You use "-ip" to bind the server to the network adapter which uses this address (the internal ip of course).

How about portforwarding?

hi,

thnx for the reply, i thought this would be the case but i have seen others bind their external ip so just wanted to make sure.

portforwarding i did on ports (through http://www.portforward.com):
27020-27039 TCP
1200 UDP
27000-27015 UDP
27016 UDP (this one as it gave me "WARNING: Port 27015 was unavailable - bound to port 27016 instead")
and finally 27095 TCP/UDP for the game on a different PC.

the link is:
portforward.com link

any idea's .

thnx
Reply
#4
I'm not sure If I can help, but I can point you a way atleast.

There is definitely something weird going on with ports on your box:
Code:
WARNING: NNET_OpenSocket: bind: Cannot assign requested address
Couldn't allocate any server IP port

Code:
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
WARNING: Port 27040 was unavailable - bound to port 27041 instead

That basicly means those ports are being used. But by what?
Runt this and post the output, It may help (others).

Code:
netstat -lnptu | grep 270
Reply
#5
(08-24-2011, 06:58 PM)gamerlv Wrote:  
Code:
netstat -lnptu | grep 270

actually i just restarted the dedicated server and i didn't have the port warnings above. although it doesn't solve my issue yet.

i tried to run the command above (also sudo) but i get no output.

pls see the output i got when running this morning: (including output from command above)



adminds@Ubuntu-DS:~/srcds_1/orangebox$ ./srcds_run -console -game cstrike +map d
Auto detecting CPU
Using default binary: ./srcds_linux
Server will auto-restart if there is a crash.
INFO: Located steam: ../steam
Updating server using Steam.
Checking bootstrapper version ...
Updating Installation
Checking/Installing 'Counter-Strike Source Shared Content' version 113

Checking/Installing 'Base Source Shared Models' version 4

Checking/Installing 'Base Source Shared Sounds' version 4

Checking/Installing 'Base Source Shared Materials' version 8

Updating 'OB Linux Dedicated Server' from version 120 to version 121
9.22% downloading ../orangebox/bin/datacache.so
66.51% downloading ../orangebox/bin/engine.so
84.33% downloading ../orangebox/bin/replay.so
100.00% downloading ../orangebox/bin/studiorender.so
HLDS installation up to date
CAsyncIOManager: 0 threads terminating. 0 reads, 0 writes, 0 deferrals.
CAsyncIOManager: 108 single object sleeps, 0 multi object sleeps
CAsyncIOManager: 0 single object alertable sleeps, 0 multi object alertable slee
Using breakpad minidump system
Using breakpad crash handler
Console initialized.
Game.dll loaded for "Counter-Strike: Source"
Setting breakpad minidump AppID = 240
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Installing breakpad exception handler for appid(240)/version(4659)
Unable to load plugin "../cstrike/addons/mani_admin_plugin"
maxplayers set to 12
Unknown command "r_decal_cullsize"
maxplayers set to 12
Network: IP 192.168.1.8, mode MP, dedicated Yes, ports 27015 SV / 27005 CL
ConVarRef room_type doesn't point to an existing ConVar
Executing dedicated server config file
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Failed to load Steam ServiceServiceStart: failed to startGame will not start unt
exec: couldn't exec banned_user.cfg
exec: couldn't exec banned_ip.cfg
Game will not start until both teams have players.
Dropped RTV Grant from server (Kicked by Console)
Connection to Steam servers successful.
VAC secure mode is activated.
Wed Aug 24 11:07:18 CEST 2011: Server Quit
adminds@Ubuntu-DS:~/srcds_1/orangebox$ netstat -lnptu | grep 270
(No info could be read for "-p": geteuid()=1000 but you should be root.)
adminds@Ubuntu-DS:~/srcds_1/orangebox$ sudo netstat -lnptu | grep 270
[sudo] password for adminds:
adminds@Ubuntu-DS:~/srcds_1/orangebox$
Reply
#6
and to add confusion, i rebooted the server completely and did the exact same startup command and the port warnings are back...

this is just frustrating. oh and another thing somehow i also can't connect the serverwhen i join from external pc.

if anyone thinks they can fix this by connecting to my server and check it out i'll give you access to give it a go.

cheers
Reply
#7
hi,

i was able to figure out the issue with Mani Admin plugin, i had to point the .vdf file form cstrike/addons to the following:

Quote:"Plugin"
{
"file" "../cstrike/addons/mani_admin_plugin_i486"
}

for those with the same problem, this is for linux version dedicated server

cheers
Reply
#8
another update with what i think is happening about the port warnings.

if i start the server and my session times out (ssh via putty) the server is probably still running. although i don't know how to end it.. DOES anyone KNOW how to end the running server in linux CLI?

normally i end the runninng server with ctrl+z, and i get :
Quote:[3]+ Stopped ./srcds_run -console -game cstrike +map de_dust2 +maxplayers 12 -autoupdate
adminds@Ubuntu-DS:~/srcds_1/orangebox$
(so i stopped it 3 times today)

Reply
#9
(08-27-2011, 01:10 AM)phantom(nl) Wrote:  another update with what i think is happening about the port warnings.

if i start the server and my session times out (ssh via putty) the server is probably still running. although i don't know how to end it.. DOES anyone KNOW how to end the running server in linux CLI?

normally i end the runninng server with ctrl+z, and i get :
Quote:[3]+ Stopped ./srcds_run -console -game cstrike +map de_dust2 +maxplayers 12 -autoupdate
adminds@Ubuntu-DS:~/srcds_1/orangebox$
(so i stopped it 3 times today)


With ^z (^ = CTRL) you don't stop it, just suspent it. If you want to stop a server just type exit in console/rcon or press ^C.
If disconnect from console without stopping the server ( either with timeout or discconect) then you must kill the server with this command:

Code:
killall -v -u $USER srcds_linux

However both ^C and killall are considered bad practice. The server can't properly shutdown to save it's stuff. So I would say run your server in a screen.

You do this by putting the command screen before your startup line. If you discconect from your server's console for what ever reason you can get back to it with the command:

Code:
screen -r

If you want to manually put your server in the background while using screen press ^a then D.

If you have any question about this, just post back.
Reply
#10
thnx i think that's what i needed to know, i've seen the screen commands before from different threads, but is this also applicable for CLI only? i guess it'll switch to the background?


for now i'm a little worried that the current internet connection might be to slow as i get disconnected the moment i join, after this i can't reconnect, so i have to restart the service to join and i get disconnected again...

i ran iptraf can you tell me what i would need to look for (this does not look correct to me)?

Quote:¦ Total rates: 33.4 kbits/sec Broadcast packets: 4 ¦
¦ 21.2 packets/sec Broadcast bytes: 618 ¦
¦ ¦
¦ Incoming rates: 3.7 kbits/sec ¦
¦ 7.2 packets/sec ¦
¦ IP checksum errors: 0 ¦
¦ Outgoing rates: 29.7 kbits/sec ¦
¦ 14.0 packets/sec

if there is a better way to check this in cli i'd like to know as well.

(my isp should be providing 20 mbps download/ 1mbps upload)

cheers
Reply
#11
(08-29-2011, 05:33 AM)phantom(nl) Wrote:  thnx i think that's what i needed to know, i've seen the screen commands before from different threads, but is this also applicable for CLI only? i guess it'll switch to the background?


for now i'm a little worried that the current internet connection might be to slow as i get disconnected the moment i join, after this i can't reconnect, so i have to restart the service to join and i get disconnected again...

i ran iptraf can you tell me what i would need to look for (this does not look correct to me)?

Quote:¦ Total rates: 33.4 kbits/sec Broadcast packets: 4 ¦
¦ 21.2 packets/sec Broadcast bytes: 618 ¦
¦ ¦
¦ Incoming rates: 3.7 kbits/sec ¦
¦ 7.2 packets/sec ¦
¦ IP checksum errors: 0 ¦
¦ Outgoing rates: 29.7 kbits/sec ¦
¦ 14.0 packets/sec

if there is a better way to check this in cli i'd like to know as well.

(my isp should be providing 20 mbps download/ 1mbps upload)

cheers

Those number are just your current usage, not that which is avaible. If you are hosting the server on the same network your normal gaming machine is on you can use that machine to run a speedtest.net test.

If it's not, find a download file (50MB or more) from any cdn and run a wget on it. That should give you your connection download speed.

I must note that 1MB upload is pretty low to run a server on.
Reply
#12
ok than it should be ok, i'm just setting up a server for 10 to 12 players. i did some calculations to figure this out. 50 kb per player joining and some room to cover any other network use.

anyway i tried "screen -r" command like this:

screen -r ./srcds_run -console -game cstrike +map de_dust2 +maxplayers 12 -autoupdate

but is gives me unknown command "-game" i'll check this out later i think there is enough out there to work this out myself.
Reply
#13
(08-29-2011, 08:40 PM)phantom(nl) Wrote:  ok than it should be ok, i'm just setting up a server for 10 to 12 players. i did some calculations to figure this out. 50 kb per player joining and some room to cover any other network use.

anyway i tried "screen -r" command like this:

screen -r ./srcds_run -console -game cstrike +map de_dust2 +maxplayers 12 -autoupdate

but is gives me unknown command "-game" i'll check this out later i think there is enough out there to work this out myself.

No No No, with screen -r you reconnect to your discconect screen.
You would start your server with a command like so:

Code:
screen  "./srcds_run -console -game cstrike +map de_dust2 -maxplayers 12 -autoupdate"

Note the " " (quote marks). With those you tell screen what your command is, this way it doesn't try to use them as it's own arguments. A.K.A avoids errors like
Quote:unknown command "-game"
Reply
#14
Ohh,

haha i'll give it a try.

Reply
#15
could anyone tell me a possible reason for any of the following messages
(i try to connect to my server just to be clear i don't get this when joining any other server):


from dedicated server output:
Quote:Phantom(NL)<2><STEAM_0:0:4xxxxxxx><>" STEAM USERID validated
Dropped Phantom(NL) from server (No Steam logon)


from console output:
Quote:No pure server whitelist. sv_pure = 0
Phantom(NL) is connected.
Redownloading all lightmaps
Scoring will not start until both teams have players

Server connection timed out.
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)