PDA

View Full Version : srcds on Debian Sarge, doesn't open any ports


cottons
12-13-2004, 06:16 AM
Hi,

I had set up srcds quite happily, until I restarted the srcds server. Upon restarting I find the server is no longer listening on any ports at all. I've tried a full reinstall to no avail, so it leads me to believe there is a problem with the Linux side. What the problem is I haven't been able to find out.

Anyway, here's my kernel:


steam@solar:~$ uname -a
Linux solar 2.4.25-1-386 #2 Wed Apr 14 19:38:08 EST 2004 i686 GNU/Linux


I can start the server and it seems to look ok, although I get no warnings upon start:


steam@solar:~$ ./srcds_run -game cstrike +maxplayers 8 +ip 192.168.2.1 -port 27015 -nomaster
Auto detecting CPU
Using default binary.
Auto-restarting the server on crash
Console initialized.
Attempted to create unknown entity type event_queue_saveload_proxy!
Game .dll loaded for "Counter-Strike: Source"
maxplayers set to 8


That's all I get and it will sit there until I stop it. If I check open ports:


steam@solar:~$ netstat -aln | grep 270
steam@solar:~$


I see nothing in netstat output. I can check lsof too but that doesn't show anything either:


steam@solar:~$ lsof | grep 27015
steam@solar:~$


I checked my libc6 version (but since I can't find any docs on what is required, I don't know if it's 100% ok):


steam@solar:~$ dpkg -l | grep libc6
ii libc6 2.3.2.ds1-18 GNU C Library: Shared libraries and Timezone


I seem to have no console initialised properly:


status
help
Usage: help <cvarname>
status
?
Unknown command "?"


And I can make the server SIGSEGV on demand:


say hello
./srcds_run: line 423: 15225 Segmentation fault $HL_CMD
Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem
Mon Dec 13 13:59:04 GMT 2004: Server restart in 10 seconds


So something smells there. Not had any luck searching for anything similar. Any ideas or seen anything similar?

Edit: bit more info. This is a PIII system:


solar:/home/steam3# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 8
model name : Pentium III (Coppermine)
stepping : 3
cpu MHz : 597.411
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse
bogomips : 1192.75


PCI info:


steam@solar:/home/steam2$ lspci
0000:00:00.0 Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
0000:00:01.0 PCI bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03)
0000:00:0e.0 Ethernet controller: Intel Corp. 82557/8/9 [Ethernet Pro 100] (rev 08)
0000:00:0f.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 78)
0000:00:10.0 SCSI storage controller: Adaptec AHA-2940U/UW/D / AIC-7881U (rev 01)
0000:00:14.0 ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 02)
0000:00:14.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01)
0000:00:14.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01)
0000:00:14.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 02)
0000:01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA 2164W [Millennium II] AGP


The srcds is all up to date:


Checking bootstrapper version ...
Updating Installation
Logging in as 'cottons'
Checking/Installing 'Base Source Shared Materials' version 3
Checking/Installing 'Base Source Shared Models' version 3
Checking/Installing 'Base Source Shared Sounds' version 3
Checking/Installing 'Counter-Strike Source Shared Content' version 19
Checking/Installing 'Linux Source HLDS' version 20
HLDS installation up to date


I have also applied the patch from the thread "Server runs, but player falls through floor?" that was provided by Alfred, which hasn't had any effect.

Cheers,
Steve.

TripHammer
12-13-2004, 10:55 AM
you have to specify a map! Otherwise server will start but not really run :(./srcds_run -game cstrike +maxplayers 16 +map de_dust

You don't have to specify an IP address unless your server is multihommed.....same goes for the port, 27015 is default so you don't need to specify it explicitly.

Also since you are behind a nat box (you ip address is in the 192.168 range) then i'm assuming you made changes on your gateway to have the appropriate ports forwarded?

UDP 27010
UDP 27011
UDP 27015

Your glibc version is fine.

cottons
12-13-2004, 11:46 AM
you have to specify a map! Otherwise server will start but not really run :(


Wow, really? Huh! I don't believe it, the omission of the map breaks the server ... how could I not have tried that. It now works :)


You don't have to specify an IP address unless your server is multihommed.....same goes for the port, 27015 is default so you don't need to specify it explicitly.


Yeah I know, it is multi-homed. Port is added automatically by a script which fills in a few vars, I will be running more than one srcds.


Also since you are behind a nat box (you ip address is in the 192.168 range) then i'm assuming you made changes on your gateway to have the appropriate ports forwarded?


Yup, that's all fine.

Your glibc version is fine.


Excellent, thanks very much for your help :)

Steve.