CS2 server on Linux will not start
Commands:

cd /home/mrhip/Games/Counterstrike2 ./srcds_run -game csgo -console -usercon +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2 -debug

Output::

./srcds_run: 32: pushd: not found ./srcds_run: 35: popd: not found Enabling debug mode Server will auto-restart if there is a crash. LD_LIBRARY_PATH=/home/mrhip/Games/Counterstrike2/bin:/home/mrhip/Games/Counterstrike2:/home/mrhip/Games/Counterstrike2/bin: Failed to open libtier0.so (/home/mrhip/Games/Counterstrike2/bin/libgcc_s.so.1: version `GCC_7.0.0' not found (required by /lib/i386-linux-gnu/libstdc++.so.6)) cat: hlds.889.pid: No such file or directory email debug.log to linux@valvesoftware.com Sat Apr 27 05:03:51 PM CDT 2024: Server restart in 10 seconds

debug.log:

---------------------------------------------- CRASH: Sat Apr 27 05:03:51 PM CDT 2024 Start Line: ./srcds_linux -game csgo -console -usercon +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2 -debug End of Source crash report ----------------------------------------------

(Gee, a lot of help that is...)

If I remove libgcc_s.so.1 in the bin folder, it gets further along, but eventually gets stuck here:

Your server needs to be restarted in order to receive the latest update.

I've also tried creating a symbolic link but the result is the same as above:

ln -s /usr/lib/i386-linux-gnu/libgcc_s.so.1

I've tried prefixing the srcds command with:
LIB="lib/i386-linux-gnu" LD_PRELOAD="/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1 /usr/$LIB/libgpg-error.so"

I have run steamcmd but it fixes nothing:
steamcmd +force_install_dir /home/mrhip/Games/Counterstrike2 +login anonymous +app_update 740 validate

I've also made sure all my packages are up to date (BTW I'm running Debian 12) and rebooted the computer.

Nothing works! Aaauugh!
Zuletzt bearbeitet von mrhip; 27. Apr. 2024 um 15:36
< >
Beiträge 18 von 8
Is the Debian install 32-bit or 64-bit?

If 64-bit, did you enable 32-bit:
sudo dpkg --add-architecture i386;
Also, install GCC:
sudo apt-get install -y lib32gcc-s1;

NOTE: Must do those under a "root" or "sudo"-enabled account.
Zuletzt bearbeitet von [WL/S³] Weasel (Probably AFK); 27. Apr. 2024 um 16:00
mrhip 27. Apr. 2024 um 16:40 
It is 64-bit with 32-bit architecture enabled. Still the same errors after installing lib32gcc-s1.
mmmm, I'm running on Debian 12 (64-bit) also, no issues (other than the "UNEXPECTED LONG FRAME DETECTED" messages on the console, which is a known issue these days).
Zuletzt bearbeitet von [WL/S³] Weasel (Probably AFK); 27. Apr. 2024 um 17:01
Ursprünglich geschrieben von mrhip:
Commands:
cd /home/mrhip/Games/Counterstrike2 ./srcds_run -game csgo -console -usercon +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2 -debug

Oh wait, are you trying to call srcds directly? I don't think that works for CS2. They changed-up the way dedicated servers work for CS2 (and probably all Source2-engine games in general going-forward I would guess). That messed me up for a long time too.

You need to use, in your case, something like:
/home/mrhip/Games/Counterstrike2/game/bin/linuxsteamrt64/cs2 -dedicated -usercon +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2 -debug
Not sure about some of the other options you had in there, but basics should all work. You just probably need to:
  • Use a different executable (game/bin/linuxsteamrt64/cs2),
  • Do not specify the "game" (it is only CS2), and
  • Add the "-dedicated" parameter.

Hope this helps! or at least sets you in the right direction!
Zuletzt bearbeitet von [WL/S³] Weasel (Probably AFK); 27. Apr. 2024 um 17:53
mrhip 27. Apr. 2024 um 19:44 
I didn't find an executable called "cs2" anywhere in the folder for the Counterstrike "Server" (App ID 740). However, App ID 730 contains both the real working server and the client, and that's where "cs2" is. I deleted my Counterstrike2 folder and started from scratch, this time downloading 730:

steamcmd +force_install_dir /home/mrhip/Games/Counterstrike2 +login anonymous +app_update 730 validate
Ursprünglich geschrieben von mrhip:
I didn't find an executable called "cs2" anywhere in the folder for the Counterstrike "Server" (App ID 740). However, App ID 730 contains both the real working server and the client, and that's where "cs2" is. I deleted my Counterstrike2 folder and started from scratch, this time downloading 730:

steamcmd +force_install_dir /home/mrhip/Games/Counterstrike2 +login anonymous +app_update 730 validate

Yep, its AppID 730 now too instead of 740. Sorry I didn't spot that in your install notes before. It's weird that they made client and dedicated server in the same AppID just with different launch options (-dedicated).
Zuletzt bearbeitet von [WL/S³] Weasel (Probably AFK); 27. Apr. 2024 um 20:18
< >
Beiträge 18 von 8
Pro Seite: 1530 50