01
Installing and updating with SteamCMD
The server and the game share the same Steam ID, 730, and download anonymously. Two SteamCMD errors come up often, both described on Valve's wiki.
steamcmd: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
SteamCMD is a 32-bit program: on a 64-bit system, it needs the 32-bit libraries. This message mostly appears when SteamCMD was installed by hand, from Valve's archive. On Debian or Ubuntu:
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install -y lib32stdc++6
Login Failure: No Connection
SteamCMD cannot reach Steam. On Linux, Valve's wiki links this error to firewall rules that block replies from Steam's servers. Check that the VPS's outgoing traffic is not filtered and that UDP replies from ports 27000 to 27030 and from port 4380 are accepted; with iptables:
sudo iptables -A INPUT -p udp -m udp --sport 27000:27030 --dport 1025:65355 -j ACCEPT
sudo iptables -A INPUT -p udp -m udp --sport 4380 --dport 1025:65355 -j ACCEPT
Two precautions prevent other trouble: Valve notes that on some distributions the folder given to force_install_dir must not contain any capital letters, and that the update has to be run again every time the game is updated. The guide create a Counter-Strike 2 server gives the full command.
02
The server does not start
Failed to load module '/home/your_user/.steam/sdk64/steamclient.so'
In place of your_user, you will see the name of the account that runs the server. According to Valve's wiki, SteamCMD does not put steamclient.so where the server looks for it. Create the expected folder and a link to the file provided by SteamCMD, as the server's account (cs2 here), then start again:
sudo -iu cs2
mkdir -p ~/.steam/sdk64
ln -sf "$(find ~ -name steamclient.so -path '*linux64*' -print -quit)" ~/.steam/sdk64/steamclient.so
ls -l ~/.steam/sdk64/
The link must point to a steamclient.so file in a linux64 folder. If you run several servers under different accounts, each account needs its own link.
Failed to initialize Steamworks SDK for gameserver. Failed to load module 'C:\Program Files (x86)\Steam\steamclient64.dll'
This is the Windows equivalent: Valve states that Steam must be installed on the machine to launch this version of the server. Install the Steam client on the Windows VPS, then start again. The wiki also warns that the window closes right after this error: run cs2.exe -dedicated from a terminal that is already open so you can read it.
The server refuses to start on an old system. On Linux, CS2 needs the system C library (glibc) at version 2.31 or later, meaning Ubuntu 20.04, Debian 11 or Enterprise Linux 9 at the very least. The processor must also support the POPCNT and SSE4.2 instructions. To check:
ldd --version | head -1
grep -o -w 'popcnt\|sse4_2' /proc/cpuinfo | sort -u
03
Players cannot join the server
These problems show no specific message on the server side: you recognise them by their symptoms.
- The server runs, but nobody else can get in: Valve requires a GSLT (Game Server Login Token) for other players to be able to join the server. Create one on
steamcommunity.com/dev/managegameservers with the ID 730, then add +sv_setsteamaccount followed by the token to the launch line. Plan on one token per server.
- Only players on the local network can connect: check
sv_lan. Set to 1, the server runs as a LAN server, with no authentication and no announcement to Steam's servers. Put sv_lan 0 in server.cfg.
- Everyone is turned away after a CS2 update: a server one version behind no longer accepts up-to-date players. Stop it, run
app_update 730 again with SteamCMD, then restart it.
- The server cannot be reached from outside: port 27015 UDP (set with
-port) must be open in the VPS firewall. The guide game server ports explains the method.
The sv_lan, password and game mode settings are explained in the guide CS2 server configuration. If every player drops at the same moment with no error in the console, think of an attack: see protecting a game server from DDoS attacks.
04
Metamod:Source and CounterStrikeSharp
Unknown Command in reply to meta list
According to the CounterStrikeSharp documentation, this reply means Metamod:Source is not loaded. Check, in this order:
- Metamod's
addons folder is in game/csgo/;
- the file you edited is
game/csgo/gameinfo.gi, not csgo_core/gameinfo.gi, which does not load Metamod according to its wiki;
- the line
Game csgo/addons/metamod sits right below Game_LowViolence csgo_lv, before every other Game line.
The Metamod:Source wiki warns that this line has to be added again every time a game update changes gameinfo.gi. After the fix and a restart, meta list should reply Listing 1 plugin: followed by CounterStrikeSharp.
Couldn't find a valid ICU package installed on the system.
This message comes from .NET, the runtime that CounterStrikeSharp and its plugins run on. The ICU library is missing from the system; the CounterStrikeSharp documentation says to install it with the package manager:
sudo apt install -y libicu-dev
sudo systemctl restart cs2
For a first installation, also take the with-runtime build of CounterStrikeSharp, which includes .NET. On Windows, Microsoft's Visual Studio Redistributables are needed as well.
Cannot set or get 'Class::Property' with "FollowCS2ServerGuidelines" option enabled.
In the real message, Class::Property is replaced by the game data being targeted. A plugin tried to use a function that CounterStrikeSharp blocks because it breaks Valve's rules for CS2 servers: according to the documentation, these functions can get all of the server owner's GSLT tokens banned. The FollowCS2ServerGuidelines option, on by default in addons/counterstrikesharp/configs/core.json, does this blocking. Remove the plugin or look for an updated version rather than turning the option off: it does not prevent every ban, but it rules out the known causes.
The full installation and the css_plugins commands are in the guide CounterStrikeSharp on CS2.
05
On CloudFive
CloudFive has no ready-made Counter-Strike 2 plan: the server is installed on a VPS, using the method in the guide create a Counter-Strike 2 server. Our VPS for game servers, from €5.99 per month, offer:
- an AMD Ryzen 9 9950X, with DDR5 memory and NVMe storage: Valve asks for 65 GB of disk, so pick a tier with enough storage for the game and its updates;
- root access and a dedicated IPv4 address;
- basic DDoS protection included; Premium Protection, with a filter specific to the game, is a paid option;
- servers in France, monthly with no commitment, with support in French 7 days a week, by ticket, on Discord and by phone.
On the Ryzen VPS, install a recent system, for example Ubuntu 22.04 or 24.04, or Debian 12: all of them meet the glibc version CS2 requires.
06
Frequently asked questions
How do I fix "Failed to load module" with steamclient.so on a CS2 server?
The server looks for steamclient.so in ~/.steam/sdk64, where SteamCMD does not put it. Create that folder as the server's account, then a link to the steamclient.so file in SteamCMD's linux64 folder, and start the server again.
Why can nobody join my CS2 server?
Most often the GSLT token is missing: Valve requires it for other players to be able to join. Create one with the ID 730 and pass it with +sv_setsteamaccount. Also check that sv_lan is 0 and that port 27015 is open in UDP.
What does Unknown Command mean when I type meta list?
Metamod:Source is not loaded. Check that the addons folder is in game/csgo and that the line Game csgo/addons/metamod sits below Game_LowViolence csgo_lv in csgo/gameinfo.gi. A game update can erase that line.
How do I fix "Couldn't find a valid ICU package" with CounterStrikeSharp?
Install the ICU library with the package manager, for example sudo apt install libicu-dev on Debian or Ubuntu, then restart the server. .NET, which runs CounterStrikeSharp, needs it.
Should I turn off FollowCS2ServerGuidelines if a plugin does not work?
It is not recommended. This option blocks functions that can get all of the server owner's GSLT tokens banned. Remove the plugin instead, or look for a version that follows Valve's rules.