Saliom 28 Jan, 2014 @ 11:51am
Dedicated CS:GO server on an ubuntu server problems starting
Hi, i'm trying to start a dedicated CS:GO server with this script : http://danielgibbs.co.uk/scripts/csgoserver/

but when i try to launch the server with
./csgoserver debug
i see in the log that there is an error :


Originally posted by logs:
Counter Strike: Global Offensive Debug
============================

Use for identifying server issues only!
Press CTRL+c to drop out of debug mode
WARNING! If csgo-server is already running it will be stopped

Start parameters:
-game csgo -usercon +map de_dust2 +mapgroup random_classic +game_mode 0 +game_type 0 -strictportbind -ip 43.85.158.215 -port 27015 +clientport 27005 +tv_port 27020 -maxplayers 16

Continue? [y/N]y
[ FAIL ] Stopping csgo-server: .dynamyx. server is already stopped
[ OK ] Starting debug mode csgo-server: .dynamyx. server
Enabling debug mode
Server will auto-restart if there is a crash.
LD_LIBRARY_PATH=/home/csgouser/serverfiles/bin:/home/csgoserver/serverfiles:/home/csgoserver/serverfiles/bin:
#Using breakpad minidump system
Using breakpad crash handler
#
#Console initialized.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Game.dll loaded for "Counter-Strike: Global Offensive"
#CGameEventManager::AddListener: event 'server_pre_shutdown' unknown.
#CGameEventManager::AddListener: event 'game_newmap' unknown.
#CGameEventManager::AddListener: event 'finale_start' unknown.
#CGameEventManager::AddListener: event 'round_start' unknown.
#CGameEventManager::AddListener: event 'round_end' unknown.
#CGameEventManager::AddListener: event 'difficulty_changed' unknown.
#GameTypes: initializing game types interface from GameModes.txt.
#GameTypes: merging game types interface from gamemodes_server.txt.
#GameTypes: missing mapgroupsSP entry for game type/mode (custom/custom).
Server is hibernating
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.dll.
szCmd: /bin/sh -c '"/home/csgouser/.steam/root/steam.sh" steam://run/215 -game csgo -usercon +map de_dust2 +mapgroup random_classic +game_mode 0 +game_type 0 -strictportbind -ip 43.85.158.215 -port 27015 +clientport 27005 +tv_port 27020 -maxplayers 16 -debug' &
serverGameDLL->DLLInit() failed.

/bin/sh: /home/csgouser/.steam/root/steam.sh: No such file or directory
./srcds_run: line 318: 22167 Segmentation fault (core dumped) $HL_CMD
BFD: Warning: /home/csgouser/serverfiles/core is truncated: expected core file size >= 290807808, found: 1077248.
Cannot access memory at address 0xdf704908
Cannot access memory at address 0xdf704904
debug.cmds:1: Error in sourced command file:
Cannot access memory at address 0xffb15950
email debug.log to linux@valvesoftware.com
mardi 28 janvier 2014, 13:22:09 (UTC+0100): Server restart in 10 seconds
mardi 28 janvier 2014, 13:22:11 (UTC+0100): Server Quit


When i try with this link : https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Dedicated_Servers#Downloading_Counter-Strike:_Global_Offensive
i follow every step and then when i try :
./srcds_linux -game csgo -console -usercon +game_type 0 +game_mode 1 +mapgroup mg_bomb_se +map de_dust2_se

i get this :
Originally posted by logs:
LD_LIBRARY_PATH=/home/server/CounterStrikeGO/bin:(null)
#Using breakpad minidump system
Using breakpad crash handler
#
#Console initialized.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Game.dll loaded for "Counter-Strike: Global Offensive"
#CGameEventManager::AddListener: event 'server_pre_shutdown' unknown.
#CGameEventManager::AddListener: event 'game_newmap' unknown.
#CGameEventManager::AddListener: event 'finale_start' unknown.
#CGameEventManager::AddListener: event 'round_start' unknown.
#CGameEventManager::AddListener: event 'round_end' unknown.
#CGameEventManager::AddListener: event 'difficulty_changed' unknown.
#GameTypes: initializing game types interface from GameModes.txt.
#GameTypes: merging game types interface from gamemodes_server.txt.
#GameTypes: missing mapgroupsSP entry for game type/mode (custom/custom).
Server is hibernating
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.dll.
szCmd: /bin/sh -c '"/home/user/steamcmd/steam.sh" steam://run/215 -game csgo -console -usercon +game_type 0 +game_mode 1 +mapgroup mg_bomb_se +map de_dust2_se' &
serverGameDLL->DLLInit() failed.

Segmentation fault
user@serv:/home/user2/CounterStrikeGO$ Error: Couldn't find Steam install license agreement, aborting!
Error:
Couldn't find Steam install license agreement, aborting!
Press enter to continue:

can anyone point me to how i can fix this and finally get a server to start?
< >
Showing 1-8 of 8 comments
Saliom 3 Feb, 2014 @ 12:05pm 
Ok, following the answer here : http://danielgibbs.co.uk/scripts/csgoserver/#comment-1227914682

here is what i did :

- i deleted everything about steam and csgo servers
- installed the steamcmd in my csgoserver folder

ls -al
Originally posted by result:
total 36
drwxr-xr-x 5 csgoserver csgoserver 4096 Feb 3 20:22 .
drwxr-xr-x 7 root root 4096 Jan 28 13:32 ..
-rw------- 1 csgoserver csgoserver 817 Jan 28 13:29 .bash_history
-rw-r--r-- 1 csgoserver csgoserver 220 Jan 26 21:26 .bash_logout
-rw-r--r-- 1 csgoserver csgoserver 3486 Jan 26 21:26 .bashrc
drwx------ 2 csgoserver csgoserver 4096 Jan 26 22:01 .cache
-rw-r--r-- 1 csgoserver csgoserver 675 Jan 26 21:26 .profile
drwxrwxr-x 7 csgoserver csgoserver 4096 Feb 3 20:23 Steam
drwxrwxr-x 5 csgoserver csgoserver 4096 Feb 3 20:22 steamcmd


- i did login anonymously oon the steamcmd.
- i downloaded the script in my folder.

ls -al
Originally posted by result:
total 60
drwxr-xr-x 5 csgoserver csgoserver 4096 Feb 3 20:32 .
drwxr-xr-x 7 root root 4096 Jan 28 13:32 ..
-rw------- 1 csgoserver csgoserver 817 Jan 28 13:29 .bash_history
-rw-r--r-- 1 csgoserver csgoserver 220 Jan 26 21:26 .bash_logout
-rw-r--r-- 1 csgoserver csgoserver 3486 Jan 26 21:26 .bashrc
drwx------ 2 csgoserver csgoserver 4096 Jan 26 22:01 .cache
-rw-r--r-- 1 csgoserver csgoserver 675 Jan 26 21:26 .profile
drwxrwxr-x 7 csgoserver csgoserver 4096 Feb 3 20:23 Steam
-rwxrwxr-x 1 csgoserver csgoserver 22109 Feb 3 20:32 csgoserver
drwxrwxr-x 5 csgoserver csgoserver 4096 Feb 3 20:22 steamcmd

- here is the install
./csgoserver install

Originally posted by result:
=================================
Counter Strike: Global Offensive
Linux Game Server Manager
by Daniel Gibbs
http://danielgibbs.co.uk
=================================

Installing SteamCMD
=================================

Steam already installed!

Installing Counter Strike: Global Offensive Server
=================================
mkdir: created directory `/home/csgoserver/serverfiles'
Redirecting stderr to '/home/csgoserver/Steam/logs/stderr.txt'
[ 0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam3...OK.
Loading Steam2...OK.

Connecting anonymously to Steam Public...Success.
Initial App state (0x2) update required
App state (0x10102) reconfiguring, progress: 0.00 (0 / 0)
...
App state (0x300502) downloading, progress: 100.00 (3893913200 / 3893913200)
Success! App '740' fully installed.

=================================
Was the install successful? [y/N]y

Applying steamclient.so fix
=================================
mkdir: created directory `/home/csgoserver/.steam'
mkdir: created directory `/home/csgoserver/.steam/sdk32'
`/home/csgoserver/steamcmd/linux32/steamclient.so' -> `/home/csgoserver/.steam/sdk32/steamclient.so'

Creating log directorys
=================================
mkdir: created directory `/home/csgoserver/log'
mkdir: created directory `/home/csgoserver/log/script'
mkdir: created directory `/home/csgoserver/log/console'
`/home/csgoserver/log/server' -> `/home/csgoserver/serverfiles/csgo/logs'

Configuring Counter Strike: Global Offensive Server
=================================
Enter server name: ...
...
Creating server.cfg.
Creating csgo-server.cfg config file.


=================================
Counter Strike: Global Offensive
Linux Game Server Manager
by Daniel Gibbs
http://danielgibbs.co.uk
=================================


Counter Strike: Global Offensive Server Details
============================
Server name: dynamix server
Server IP: /*my ip*/:27015
RCON password: /*mypass*/
Config file: /home/csgoserver/serverfiles/csgo/cfg/csgo-server.cfg

dynamix server Ports
============================
Ports the server is currently using.

DIRECTION DESCRIPTION PORT
INBOUND Game/RCON port 27015
INBOUND SourceTV port 27020
OUTBOUND Client port 27005

You can change ports by editing the
start parameters in ./csgoserver.

Status: OFFLINE

=================================
Install Complete!

To start server type:
./csgoserver start

-here is what's in the script
Originally posted by script_parms:
gamemode="0"
gametype="1"
defaultmap="de_dust2_se"
mapgroup="mg_bomb_se"
maxplayers="10"
port="27015"
sourcetvport="27020"
clientport="27005"
ip="/*my ip*/"

# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
# https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Dedicated_Servers#Starting_the_Server
fn_parms(){
parms="-game csgo -console -usercon +map ${defaultmap} +mapgroup ${mapgroup} +game_mode ${gamemode} +game_type ${gametype} -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} -maxplayers ${maxplayers} +servercfgfile ${servercfg}"
}

-till here, there is no problem. I now try
./csgoserver debug
Originally posted by result:
Counter Strike: Global Offensive Debug
============================

Use for identifying server issues only!
Press CTRL+c to drop out of debug mode
WARNING! If csgo-server is already running it will be stopped

Start parameters:
-game csgo -console -usercon +map de_dust2_se +mapgroup mg_bomb_se +game_mode 0 +game_type 1 -strictportbind -ip /*my ip*/ -port 27015 +clientport 27005 +tv_port 27020 -maxplayers 10 +servercfgfile csgo-server.cfg

Continue? [y/N]y
[ FAIL ] Stopping csgo-server: dynamix server is already stopped
[ OK ] Starting debug mode csgo-server: dynamix server
Enabling debug mode
Server will auto-restart if there is a crash.
LD_LIBRARY_PATH=/home/csgoserver/serverfiles/bin:/home/csgoserver/serverfiles:/home/csgoserver/serverfiles/bin:
#Using breakpad minidump system
Using breakpad crash handler
#
#Console initialized.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Game.dll loaded for "Counter-Strike: Global Offensive"
#CGameEventManager::AddListener: event 'server_pre_shutdown' unknown.
#CGameEventManager::AddListener: event 'game_newmap' unknown.
#CGameEventManager::AddListener: event 'finale_start' unknown.
#CGameEventManager::AddListener: event 'round_start' unknown.
#CGameEventManager::AddListener: event 'round_end' unknown.
#CGameEventManager::AddListener: event 'difficulty_changed' unknown.
#GameTypes: initializing game types interface from GameModes.txt.
#GameTypes: merging game types interface from gamemodes_server.txt.
#GameTypes: missing mapgroupsSP entry for game type/mode (custom/custom).
Server is hibernating
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.dll.
szCmd: /bin/sh -c '"/home/csgoserver/.steam/root/steam.sh" steam://run/215 -game csgo -console -usercon +map de_dust2_se +mapgroup mg_bomb_se +game_mode 0 +game_type 1 -strictportbind -ip /*my ip*/ -port 27015 +clientport 27005 +tv_port 27020 -maxplayers 10 +servercfgfile csgo-server.cfg -debug' &
serverGameDLL->DLLInit() failed.

/bin/sh: /home/csgoserver/.steam/root/steam.sh: No such file or directory
./srcds_run: line 318: 501 Segmentation fault (core dumped) $HL_CMD
BFD: Warning: /home/csgoserver/serverfiles/core is truncated: expected core file size >= 290807808, found: 1077248.
Cannot access memory at address 0xf24ce908
Cannot access memory at address 0xf24ce904
debug.cmds:1: Error in sourced command file:
Cannot access memory at address 0xffb138a0
email debug.log to linux@valvesoftware.com
Mon Feb 3 21:02:33 CET 2014: Server restart in 10 seconds
Mon Feb 3 21:02:38 CET 2014: Server Quit

so is there anything weird with what i'm doing?
Last edited by Saliom; 3 Feb, 2014 @ 12:08pm
Saliom 4 Feb, 2014 @ 11:31am 
ok so after following what's here : http://danielgibbs.co.uk/scripts/csgoserver/#comment-1223960488

here is what i have now :

Originally posted by server_debug:
Counter Strike: Global Offensive Debug
============================

Use for identifying server issues only!
Press CTRL+c to drop out of debug mode
WARNING! If csgo-server is already running it will be stopped

Start parameters:
-game csgo -console -usercon +map de_dust2_se +mapgroup mg_bomb_se +game_mode 0 +game_type 1 -strictportbind -ip /*MY IP*/ -port 27015 +clientpor t 27005 +tv_port 27020 -maxplayers 10 +servercfgfile csgo-server.cfg

Continue? [y/N]y
[ OK ] Stopping csgo-server: dynamix server
[ OK ] Starting debug mode csgo-server: dynamix server
Enabling debug mode
Server will auto-restart if there is a crash.
LD_LIBRARY_PATH=/home/csgoserver/serverfiles/bin:/home/csgoserver/serverfiles:/home/csgoserver/serverfiles/bin:
#Using breakpad minidump system
Using breakpad crash handler
#
#Console initialized.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Game.dll loaded for "Counter-Strike: Global Offensive"
#CGameEventManager::AddListener: event 'server_pre_shutdown' unknown.
#CGameEventManager::AddListener: event 'game_newmap' unknown.
#CGameEventManager::AddListener: event 'finale_start' unknown.
#CGameEventManager::AddListener: event 'round_start' unknown.
#CGameEventManager::AddListener: event 'round_end' unknown.
#CGameEventManager::AddListener: event 'difficulty_changed' unknown.
#GameTypes: initializing game types interface from GameModes.txt.
#GameTypes: merging game types interface from gamemodes_server.txt.
#GameTypes: missing mapgroupsSP entry for game type/mode (custom/custom).
Server is hibernating
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.dll.
Particles: Missing 'particles/maps/gg_vietnam.pcf'
CDedicatedServerWorkshopManager::GetNewestSubscribedFiles
No web api auth key specified - workshop downloads will be disabled.
maxplayers set to 64
Unknown command "cl_bobamt_vert"
Unknown command "cl_bobamt_lat"
Unknown command "cl_bob_lower_amt"
Unknown command "cl_viewmodel_shift_left_amt"
Unknown command "cl_viewmodel_shift_right_amt"
Unknown command "cl_teamid_min"
Unknown command "cl_teamid_max"
Unknown command "cl_teamid_overhead"
Unknown command "cl_teamid_overhead_maxdist"
CModelLoader::Map_IsValid: No such map 'maps/de_dust2_se.bsp'
map load failed: de_dust2_se not found or invalid
Setting mapgroup to 'mg_bomb_se'
Unknown command "mat_bloom_scalefactor_scalar"
mode MP, dedicated No, ports 27015 SV / 27005 CL
mardi 4 février 2014, 20:12:28 (UTC+0100): Server Quit
sNIP 6 Feb, 2014 @ 2:30pm 
I'm pretty sure this is a problem with SteamCMD. Back in January, I could install the CS:GO server without any trouble, but ever since yesterday I've been having trouble getting a new server working. I have 2 other servers running on the same machine without troubles, and they have been running for a month. It seems like SteamCMD doesn't download all the necessary files for the server. I've noticed that the file steam_appid.txt and the folder /Steam/ is missing (they are both on my old servers).
Please keep in mind that I've tried messing with this on 4 different machines in 3 different datacentres on 2 different Linux distributions.
When I created the file steam_appid.txt manually and wrote 730 in it, the server just stopped at this:
Initializing Steam libraries for secure Internet server
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
Segmentation fault


That's as far as I got.
Saliom 7 Feb, 2014 @ 11:23am 
have you tried copying the missing files from your working servers to the not working ones? i guess you did but, we never know ;)
sNIP 7 Feb, 2014 @ 1:43pm 
Yeah, I finally made it work on Ubuntu, but Debian gives the above error.
Saliom 7 Feb, 2014 @ 1:44pm 
what did you do to make it work on ubuntu? :) my server's on ubuntu xD
sNIP 7 Feb, 2014 @ 3:50pm 
I just created the steam_appid.txt file in the game servers root. Type in 730 in the file and save it, then the server should start.
Keyinator 15 Jan, 2017 @ 12:19pm 
how should this directory look?
< >
Showing 1-8 of 8 comments
Per page: 1530 50