ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
634 stars 74 forks source link

SteamCMD / HL2:DM (Dedicated Server) fails to launch. #262

Closed swordfischer closed 11 years ago

swordfischer commented 11 years ago

Hello.

Debian Version 6.0.6
Linux PiNHEAD 2.6.32-5-amd64 #1 SMP Sun Sep 23 10:07:46 UTC 2012 x86_64 GNU/Linux

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 6
model name      : Intel(R) Xeon(TM) CPU 3.00GHz
stepping        : 8
cpu MHz         : 2992.499
cache size      : 4096 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 6
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss syscall nx lm constant_tsc pebs bts tsc_reliable nonstop_tsc pni cx16 hypervisor lahf_lm
bogomips        : 5984.99
clflush size    : 64
cache_alignment : 128
address sizes   : 40 bits physical, 48 bits virtual

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 15
model           : 6
model name      : Intel(R) Xeon(TM) CPU 3.00GHz
stepping        : 8
cpu MHz         : 2992.499
cache size      : 4096 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 6
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss syscall nx lm constant_tsc pebs bts tsc_reliable nonstop_tsc pni cx16 hypervisor lahf_lm
bogomips        : 5984.99
clflush size    : 64
cache_alignment : 128
address sizes   : 40 bits physical, 48 bits virtual

processor       : 2
vendor_id       : GenuineIntel
cpu family      : 15
model           : 6
model name      : Intel(R) Xeon(TM) CPU 3.00GHz
stepping        : 8
cpu MHz         : 2992.499
cache size      : 4096 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 6
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss syscall nx lm constant_tsc pebs bts tsc_reliable nonstop_tsc pni cx16 hypervisor lahf_lm
bogomips        : 5984.99
clflush size    : 64
cache_alignment : 128
address sizes   : 40 bits physical, 48 bits virtual

processor       : 3
vendor_id       : GenuineIntel
cpu family      : 15
model           : 6
model name      : Intel(R) Xeon(TM) CPU 3.00GHz
stepping        : 8
cpu MHz         : 2992.499
cache size      : 4096 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 6
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss syscall nx lm constant_tsc pebs bts tsc_reliable nonstop_tsc pni cx16 hypervisor lahf_lm
bogomips        : 5984.99
clflush size    : 64
cache_alignment : 128
address sizes   : 40 bits physical, 48 bits virtual

MemTotal:       16472612 kB
MemFree:          743916 kB
Buffers:          382168 kB
Cached:         13300148 kB
SwapCached:            0 kB
Active:         11553368 kB
Inactive:        3605592 kB
Active(anon):    1476572 kB
Inactive(anon):      192 kB
Active(file):   10076796 kB
Inactive(file):  3605400 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2594808 kB
SwapFree:        2594808 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:       1476552 kB
Mapped:            54608 kB
Shmem:               212 kB
Slab:             509596 kB
SReclaimable:     485924 kB
SUnreclaim:        23672 kB
KernelStack:        1720 kB
PageTables:         9592 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    10831112 kB
Committed_AS:    2763784 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      303976 kB
VmallocChunk:   34359431296 kB
HardwareCorrupted:     0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:       10240 kB
DirectMap2M:    16766976 kB

I have installed SteamCMD by following this guide https://developer.valvesoftware.com/wiki/SteamCMD.

I then update HL2:DM by

/home/steamlug/steamcmd/steamcmd.sh +runscript hl2dm.txt

Content of hl2dm.txt:

@ShutdownOnFailedCommand 0
@NoPromptForPassword 1
login anonymous
force_install_dir /home/steamlug/steamcmd/HL2DM
app_update "232370 -beta beta" validate
quit

I then launch srdcs_run by (this is the minimal launch options as far as I know):

cd ~/steamcmd/HL2DM/
./srcds_run -game hl2mp +map dm_lockdown
Auto detecting CPU
Using default binary: ./srcds_linux
Server will auto-restart if there is a crash.
Using breakpad minidump system
Using breakpad crash handler

Console initialized.
Loaded 13 VPK file hashes from /home/steamlug/steamcmd/HL2DM/hl2mp/hl2mp_pak.vpk for pure server operation.
Loaded 13 VPK file hashes from /home/steamlug/steamcmd/HL2DM/hl2mp/hl2mp_pak.vpk for pure server operation.
Loaded 1213 VPK file hashes from /home/steamlug/steamcmd/HL2DM/hl2/hl2_textures.vpk for pure server operation.
Loaded 574 VPK file hashes from /home/steamlug/steamcmd/HL2DM/hl2/hl2_sound_vo_english.vpk for pure server operation.
Loaded 381 VPK file hashes from /home/steamlug/steamcmd/HL2DM/hl2/hl2_sound_misc.vpk for pure server operation.
Loaded 432 VPK file hashes from /home/steamlug/steamcmd/HL2DM/hl2/hl2_misc.vpk for pure server operation.
Loaded 5 VPK file hashes from /home/steamlug/steamcmd/HL2DM/platform/platform_misc.vpk for pure server operation.
ConVarRef mat_dxlevel doesn't point to an existing ConVar
Game_srv.so loaded for "Half-Life 2 Deathmatch"
Setting breakpad minidump AppID = 320
Forcing breakpad minidump interfaces to load
dlopen failed trying to load:
/home/steamlug/.steam/sdk32/steamclient.so
with error:
/home/steamlug/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
maxplayers set to 2
WARNING: Port 27005 was unavailable - bound to port 27011 instead
WARNING: Port 27020 was unavailable - bound to port 27029 instead
Network: IP 130.226.217.214, mode MP, dedicated Yes, ports 27015 SV / 27011 CL
ConVarRef room_type doesn't point to an existing ConVar
Executing dedicated server config file server.cfg
Precache of sprites/redglow1 ambigious (no extension specified)
Precache of sprites/redglow1 ambigious (no extension specified)
Initializing Steam libraries for secure Internet server
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
dlopen failed trying to load:
/home/steamlug/.steam/sdk32/steamclient.so
with error:
/home/steamlug/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Logging into anonymous gameserver account.
Cannot change maxplayers while the server is running
ConVarRef room_type doesn't point to an existing ConVar
Executing dedicated server config file server.cfg
Precache of sprites/redglow1 ambigious (no extension specified)
Precache of sprites/redglow1 ambigious (no extension specified)
Initializing Steam libraries for secure Internet server
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
Forcing breakpad minidump interfaces to load
dlopen failed trying to load:
/home/steamlug/.steam/sdk32/steamclient.so
with error:
/home/steamlug/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
dlopen failed trying to load:
/home/steamlug/.steam/sdk32/steamclient.so
with error:
/home/steamlug/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
dlopen failed trying to load:
/home/steamlug/.steam/sdk32/steamclient.so
with error:
/home/steamlug/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Logging into anonymous gameserver account.
Cannot change maxplayers while the server is running
ConVarRef room_type doesn't point to an existing ConVar
Executing dedicated server config file server.cfg
Precache of sprites/redglow1 ambigious (no extension specified)
Precache of sprites/redglow1 ambigious (no extension specified)
Initializing Steam libraries for secure Internet server
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
Forcing breakpad minidump interfaces to load
dlopen failed trying to load:
/home/steamlug/.steam/sdk32/steamclient.so
with error:
/home/steamlug/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
dlopen failed trying to load:
/home/steamlug/.steam/sdk32/steamclient.so
with error:
/home/steamlug/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Logging into anonymous gameserver account.
Cannot change maxplayers while the server is running
Wed Apr  3 08:07:03 CEST 2013: Server Quit

Please notice: The Server Quit was me breaking it (^C), otherwise it will continuously loop and never launch.

Also, it is worth mentioning that I have both Day of Defeat: Source and Counter-Strike: Source servers running with the same configuration (ehh, minor adjustments in installation method) - so it should work.

Another thing is that I have another user on the same server, where HL2:DM works, but DoD:S does not.

I have tried launching srcds_run with -debug -debuglog debug.log -consolelog console.log (and I have gdb installed) - neither of the mentioned parameters produce any logfiles (anywhere in my home), and I have write permissions to my home directory (and all child folders)

If there are any information missing please let me know, and I will try to acquire it.

johndrinkwater commented 11 years ago

Unrelatedly, looks like srcds_linux is looking in the old location for libs, as ~/.steam/sdk32/steamclient.so only exists if the client is installed. With the current steamcmd, its inside ./linux32/steamclient.so See https://github.com/ValveSoftware/steam-for-linux/issues/726 for that change.

swordfischer commented 11 years ago

Well, I managed to find the issue myself.

server.cfg had a line with: map dm_lockdown

If I removed that line, the server loaded correctly.

Which makes sense I guess, because using map <level> it restarts the server, and it loads server.cfg on start. Though, would be nice if the dedicated server prevented these loops.

powerlord commented 11 years ago

You should use +map dm_lockdown on the startup line, or put map sm_lockdown in autoexec.cfg

swordfischer commented 11 years ago

Yeah, I am aware of that. Was a bloop on my account. :)