Server Troubleshooting¶
Most server problems show up in the log files (logs/).
If you are running the container image, you can also check:
The server stops right after starting¶
- No configuration: A first start without
cfg/server.cfgdisplas a hint to rename the shippedserver.cfg.example. Copy and adjust it, start again - The port is already in use: Another program on the machine is bound to the game or voice port. Stop it or move your server to another port as described in Networking & Ports
- The bind address is wrong: A
sv_bindaddrthat names an interface the machine does not have cannot be used. Remove the setting to listen on every interface again - The server cannot write to its folder: The updater and log writing both need write access to the server directory
- You did not provide a
sv_server_keynor did you setsv_lan true. If you do not want to register your server in the global server list, settingsv_lanallows you to run your server without any internet connectivity
Players cannot connect¶
- Is the server listening? The log contains the bind address, usually
[::]:20770. If it does not, see the previous section - Are the ports open? Both UDP and TCP are needed for both ports
- Is traffic reaching the machine? On home connections this means forwarding the ports from the router to the machine running the server. Also make sure to make a firewall exception
- If you are hosting a public server using a server key, make sure that the
address you are advertising in
sv_endpointis correct. If you are not advertising an address, your server is listed under its registered IP address - In a container, are the ports published? A port has to be listed in the compose file. Leaving it out makes the server unreachable even though it starts fine
If a player is on the same network and cannot connect either, the problem is likely with your configuration and not with your network infrastructure.
Players connect but get stuck loading¶
Check if you forgot to open the TCP side for both ports. Bundle downloads happen via HTTP, which is a TCP connection.
Voice chat does not work¶
Voice chat uses its own port, both UDP and TCP. If the game itself works and voice does not, verify that you forwarded and opened the second port.
A good indicator for network issues with VOIP is repeated client log entries like this:
audio::voip::VOIPManager: Failed to connect to VOIP server <server_ip>:20771. Requesting a fresh password
Voice can also be disabled on the server with sv_voip_enabled,
check your cfg/server.cfg.
The server keeps restarting or stopping¶
Some automatic restarts are expected, depending on your update configuration.
If a server keeps repeatedly restarting, it might be crashing. Inspect the log files in logs/
and make a report.
The server does not appear in the server browser¶
The server is either lacking a sv_server_key issued from the management panel or
is outdated and requires an update (see Updates)
Where to look next¶
- Managing a server for reading logs and reaching the console
- Configuration for the settings mentioned above
- Networking & Ports for details about network setup