Coder Social home page Coder Social logo

cm2walki / csgo Goto Github PK

View Code? Open in Web Editor NEW
246.0 246.0 77.0 433 KB

Dockerfile for automated build of a CS:GO gameserver: https://hub.docker.com/r/cm2network/csgo/

Home Page: https://CM2.Network

License: MIT License

Dockerfile 30.54% Shell 69.46%
counter-strike csgo csgo-server dedicated-server dockerfile game game-server metamod sourcemod

csgo's Introduction

Repository Archived

🚨 Attention All Contributors & Users 🚨

Due to the release of Counter-Strike 2, this repository is now archived and will no longer be actively maintained. The Docker Hub images will still be available, however they'll no longer receive updates.

πŸ”— We're Moving! πŸ”—

πŸ‘‰ Development continues on the CS2 Repository πŸ‘ˆ

Please make sure to star ⭐ the new repository and submit any new issues, pull requests, or contributions there.

Regards,
Walentin 'Walki' Lamonos


Docker Cloud Build Status Docker Stars Docker Pulls Discord

Supported tags and respective Dockerfile links

What is Counter-Strike: Global Offensive?

Counter-Strike: Global Offensive (CS: GO) expands upon the team-based action gameplay that it pioneered when it was launched 19 years ago. CS: GO features new maps, characters, weapons, and game modes, and delivers updated versions of the classic CS content (de_dust2, etc.). This Docker image contains the dedicated server of the game.

CS:GO

logo

How to use this image

Hosting a simple game server

Running on the host interface (recommended):

$ docker run -d --net=host --name=csgo-dedicated -e SRCDS_TOKEN={YOURTOKEN} cm2network/csgo

Running using a bind mount for data persistence on container recreation:

$ mkdir -p $(pwd)/csgo-data
$ chmod 777 $(pwd)/csgo-data # Makes sure the directory is writeable by the unprivileged container user
$ docker run -d --net=host -v $(pwd)/csgo-data:/home/steam/csgo-dedicated/ --name=csgo-dedicated -e SRCDS_TOKEN={YOURTOKEN} cm2network/csgo

Running multiple instances (increment SRCDS_PORT and SRCDS_TV_PORT):

$ docker run -d --net=host --name=csgo-dedicated2 -e SRCDS_PORT=27016 -e SRCDS_TV_PORT=27021 -e SRCDS_TOKEN={YOURTOKEN} cm2network/csgo

SRCDS_TOKEN is required to be listed & reachable. Generate one here using AppID 730:
https://steamcommunity.com/dev/managegameservers

SRCDS_WORKSHOP_AUTHKEY is required to use workshop features:
https://steamcommunity.com/dev/apikey

It's also recommended to use "--cpuset-cpus=" to limit the game server to a specific core & thread.
The container will automatically update the game on startup, so if there is a game update just restart the container.

Configuration

Environment Variables

Feel free to overwrite these environment variables, using -e (--env):

SRCDS_TOKEN="changeme" (value is is required to be listed & reachable, retrieve token here (AppID 730): https://steamcommunity.com/dev/managegameservers)
SRCDS_RCONPW="changeme" (value can be overwritten by csgo/cfg/server.cfg) 
SRCDS_PW="changeme" (value can be overwritten by csgo/cfg/server.cfg) 
SRCDS_PORT=27015
SRCDS_TV_PORT=27020
SRCDS_NET_PUBLIC_ADDRESS="0" (public facing ip, useful for local network setups)
SRCDS_IP="0" (local ip to bind)
SRCDS_LAN="0"
SRCDS_FPSMAX=300
SRCDS_TICKRATE=128
SRCDS_MAXPLAYERS=14
SRCDS_STARTMAP="de_dust2"
SRCDS_REGION=3
SRCDS_MAPGROUP="mg_active"
SRCDS_GAMETYPE=0
SRCDS_GAMEMODE=1
SRCDS_HOSTNAME="New CSGO Server" (first launch only)
SRCDS_WORKSHOP_START_MAP=0
SRCDS_HOST_WORKSHOP_COLLECTION=0
SRCDS_WORKSHOP_AUTHKEY="" (required to use host_workshop_map)
ADDITIONAL_ARGS="" (Pass additional arguments to srcds. Make sure to escape correctly!)

Config

The image contains a copy of the official ESL config files from here. You can edit the config using this command:

$ docker exec -it csgo-dedicated nano /home/steam/csgo-dedicated/csgo/cfg/server.cfg

If you want to learn more about configuring a CS:GO server check this documentation.

Image Variants:

The csgo images come in three flavors, each designed for a specific use case.

csgo:latest

This is the defacto image. If you are unsure about what your needs are, you probably want to use this one. It is a bare-minimum CSGO dedicated server containing no 3rd party plugins.

csgo:metamod

This is a specialized image. It contains the plugin environment Metamod:Source which can be found in the addons directory. You can find additional plugins here.

csgo:sourcemod

This is another specialized image. It contains both Metamod:Source and the popular server plugin SourceMod which can be found in the addons directory. SourceMod supports a wide variety of additional plugins that can be found here.

Contributors

Contributors Display

csgo's People

Contributors

cm2walki avatar hyd3r1 avatar joedwards32 avatar joelzwarrington avatar mvgucht avatar naruto-kyun avatar regnam- avatar senecaso avatar stevenaldinger avatar tholu avatar zozidalom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

csgo's Issues

APT autoremove

Docker best practices does not recommend on autoclean and autoremove. Getting rid of apk lists should be enough

CSGO/buster/Dockerfile

Lines 36 to 38 in 7deb67c

&& apt-get clean autoclean \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*

ref:

[QUESTION] It's possible to make a volume and add files to the volume only in the container?

I downloaded csgo files on my Linux server, created a volume to redirect to them (so I don't need to download the game files for every new container), and it's working perfectly.

But, what i want to do is add for example a file in the csgo folder, only in the container, as if I add some plugin, only this the cointainer that I added would be possible to acess it.

Example:
Volume to Container 1 - Source /home/csgo/ - Target ./
then I add
./addons/sourcemod/plugins/retakes.smx

Then if I create Container 2, make the same volume, and go to the same folder, this retakes.smx would not be there.

This way, I can add multiple config files to the same folder and will be no conflict with the others containers.

Is that possible? And if it is, how do I start? Any docs/forums that I would help?

As for now, I create a new csgo folder just to add some plugins (Retakes and Pug for example), but that sucks because I have to download an extra 25GB of game files, and have to update each of them individually.

Passing -condebug to execution?

Greetings,

i'm currently looking for a solution to start with -condebug without editing entry.sh after every deployment or set entrypoint in my composer file. Is it possible that you could add some "ADDITIONAL_ARGS" env where i can pass "-condebug". I need that for a project my company is working on currently and i would like to use your docker container and not creating my own :)

Examples (advanced)

Hi,
Is there any link or resource to get example on how to setup advanced parameters like warmup time ?
The readme mentions ADDITIONAL_ARGS but no example on how to use it ?
If you can just give a more detailed example it would be awesome !

thanks.

Duplicate server listing in server browser LAN-tab

Hi,
I've used the latest docker image and everything works fine except if I try to join the game from the CSGO client.

I select the server browser and then the LAN-tab. The server shows up 2 times with exact the same values.
One of the servers is not responding, the other is responding and I'm able to join the game.

Is there a way to remove the duplicate entry?

Thanks.

Standard utils to be included

I agree that in a docker image should be very minimalistic. But is there a reason, that standard utils, like ps or nano (or vi) are missing?

(Thanks btw for creating this, very easy to set up πŸ˜ƒ )

RCON access not working

Hey !

I just created my CSGO container using your Dockerfile !
I did pass the SRCDS_RCONPW with password to environment variables, but RCON access is not working :/
In CSGO, it says "Unable to connect to remote server"..

Do you have a trick, or do you think I missed something ?

When inspecting container, Env array gives the good key with the good password, and it looks like to start the container using -usercon and +rcon_password $SRCDS_RCONPW, so I don't understand why it doesn't work :/

Thanks ! :p

sourcemod & metamod are not recognized on mounted volume

I have been trying to use this image for developing some plugins. The problem I am facing though is that the server is up and running but not running metamod and sourcemod. The Dockerfile I used was this one.

Neither meta version nor sm version commands are working via RCON (although sm version is probably bot working because metamod is not working). I have my server directory on my host machine an I mount it into the image with the right arguments:
docker run --net=host -v $(pwd)/server:/home/steam/csgo-dedicated/ --name=csgo-ds -e SRCDS_RCONPW="testing" -e SRCDS_LAN="1" -e SRCDS_PORT=27016 -e SRCDS_IP="0.0.0.0" -e SRCDS_PW="" csgods

Shut down server without shutting down the container

Hi,

So I'd like to install sourcemod and Metamod:Source on top of this server to in the end install the splewis practice mod plugin. The instructions say that you should shut down your server for the installation which makes sense for me but how do I do that? I tried killing processes called csgo/src but that instantly shut down the server. Any ideas? Thank you!

Docker container exiting after starting

When I launch a container following the instructions, it dies immediately.

docker run -d --net=host -v /home/steam/csgo-dedicated/ --name=csgo-dedicated -e SRCDS_TOKEN=MYTOKEN cm2network/csgo

Operating system

RancherOS v1.5.6

Logs

WARNING: setlocale('en_US.UTF-8') failed, using locale: 'C'. International characters may not work.
Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Verifying installation...
[  0%] Downloading update...
[  0%] Checking for available updates...
[----] Download complete.
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Cleaning up...
[----] Update complete, launching Steamcmd...
CWorkThreadPool::~CWorkThreadPool: work processing queue not empty: 3 items discarded.
WARNING: setlocale('en_US.UTF-8') failed, using locale: 'C'. International characters may not work.
Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...Warning: failed to init SDL thread priority manager: SDL not found
OK.

Connecting anonymously to Steam Public...Logged in OK
Waiting for user info...OK
 Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
 Update state (0x5) verifying install, progress: 7.87 (1931605736 / 24533768925)
Error! App '740' state is 0x202 after update job.
CWorkThreadPool::~CWorkThreadPool: work processing queue not empty: 2 items discarded.
CWorkThreadPool::~CWorkThreadPool: work processing queue not empty: 1 items discarded.
bash: /home/steam/csgo-dedicated/srcds_run: No such file or directory

RecordSteamInterfaceCreation (PID 58): SteamUtils010 / Utils

Hello,

I have a problem when starting my docker.

Start-up stops at RecordSteamInterfaceCreation (PID 58): SteamUtils010 / Utils

My docker command is :
docker run -d --net=host -v $(pwd):/home/steam/csgo-dedicated/ --name=csgo-sourcemod -e SRCDS_TOKEN=XXXXXX -e SRCDS_HOSTNAME="CsGO Server" cm2network/csgo:sourcemod

I tried different configuration, without success.

Do you have any idea of ​​my problem?

Thank you in advance.

StΓ©phane

Insufficient permissions, game files not downloading

Hi,

I had the container running a couple of weeks ago, was now looking to revisit the server again to find it not working. I've attached a complete log of the container output. The run command executed was as follows:

docker run -it \
-e "SRCDS_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
-p 27015:27015/udp \
--restart unless-stopped \
cm2network/csgo

From what I can make out from the logs, there seem to be some permission problems. Error! App '740' state is 0x202 after update job. indicates that the game files are not downloaded. When googling this issue, I came across a case where there was not enough disk space to download the server files. I am not sure if this could be the issue, as my linux host reports 21 GB of available space.

log.txt

Error on creating container in Azure Container Instances

I'm trying to execute your image in Azure Container Instances, but I receive this error

2020-11-11T12:21:41.5924852Z stderr F /home/steam/steamcmd/steamcmd.sh: line 37: /home/steam/steamcmd/linux32/steamcmd: cannot execute binary file: Exec format error
2020-11-11T12:21:47.3000582Z stderr F tar: /home/steam/csgo-dedicated/csgo: Cannot open: No such file or directory
2020-11-11T12:21:47.3000582Z stderr F tar: Error is not recoverable: exiting now
2020-11-11T12:21:47.3230667Z stderr F sed: can't read /home/steam/csgo-dedicated/csgo/cfg/server.cfg: No such file or directory
2020-11-11T12:21:47.3250689Z stderr F bash: /home/steam/csgo-dedicated/srcds_run: No such file or directory

I'm using this command line for executing the instance
sudo docker run -p=27015:27015 --name=csgo-dedicated --env-file env-list.txt cm2network/csgo

Thanks

Can't connect to the server

Hello,

I have the same issue than the #56 . I can't connect to the server in local. I've used docker run -d --net=host -v $(pwd)/csgo-data:/home/steam/csgo-dedicated/ --name=csgo-dedicated cm2network/csgo to connect (I haven't set SRCDS_TOKEN because everything is on the same computer).

I am running the container on ArchLinux and the logs seems normal :

sv_camera_fly_enabled - missing cvar specified in bspconvar_whitelist.txt
Executing dedicated server config file
Unknown command "sm_cvar"
Unknown command "sv_unlag"
Unknown command "tv_allow_camera_man"
maxplayers set to 64
Console: "> ESL GOTV Config loaded - 14.01.2016 <"
Unknown command "sm_cvar"
Unknown command "sv_unlag"
Unknown command "tv_allow_camera_man"
maxplayers set to 64
Console: "> ESL GOTV Config loaded - 14.01.2016 <"
exec: couldn't exec gamemode_competitive_server.cfg
PrecacheScriptSound 'Survival.VO.Taunt4a' failed, no such sound script entry
PrecacheScriptSound 'Snowball.Bounce' failed, no such sound script entry
CHostage::Precache: missing hostage models for map de_dust2. Adding the default models.
PrecacheScriptSound 'balkan_epic_blank' failed, no such sound script entry
Commentary: Could not find commentary data file 'maps/de_dust2_commentary.txt'. 
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
[S_API] SteamAPI_Init(): SteamAPI_IsSteamRunning() did not locate a running instance of Steam.
[S_API] SteamAPI_Init(): Loaded '/home/steam/.steam/sdk32/steamclient.so' OK.
CAppInfoCacheReadFromDiskThread took 1 milliseconds to initialize
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
SteamInternal_SetMinidumpSteamID:  Caching Steam ID:  76561198247692264 [API loaded yes]
SteamInternal_SetMinidumpSteamID:  Setting Steam ID:  76561198247692264
Setting breakpad minidump AppID = 740

Do you have any idea ? I probably haven't setup docker correctly, that's my first time using it.

Thank's.

Additional params to srcds

Currently I can see that only a certain number of parameters are passed to srcds, and these can be overridden with environment variables.

Is it possible to configure additional parameters for srcds at container startup?

Server mount volume

I'm having some trouble mounting the STEAMAPPDIR to a different location outside my container.
Im running the server through Unraid, and haven't been able to modify the location of install.

I've tried both setting a mounting path to /home/steam/csgo-dedicated
and using a volume mount pointing to /home/steam/csgo-dedicated

Thank you for the help

Docker compose example file request

I want to run this as docker-compose.

This is my docker-compose.yml file:

version: "3"
services:  
  csgo:
    image: cm2network/csgo
    restart: always
    container_name: csgo
    hostname: csgo
    volumes:
      - ./csgo-dedicated/:/home/steam/csgo-dedicated
    environment:
      - SRCDS_TOKEN=XXXXXX
      - SRCDS_STARTMAP="de_mirage"
    network_mode: "host"
    tty: true

I am trying to run it with sudo docker-compose -up --build. However, this is what I get:

Starting csgo ... done
Attaching to csgo
csgo    | /bin/sh: 1: /home/steam/csgo-dedicated/entry.sh: not found

Could it possibly be because of permissions or that mounting an empty folder clears the contents of the /home/steam/csgo-dedicated?

${STEAMAPPDIR}/srcds_run not found

Hey folks, after i did the normal update procedure the second command in the entry.sh is failing. srcds_run not found. Hope you can help me out

Container fails to start

Hello @CM2Walki , I am experiencing the following issue when starting the container.

WARNING: setlocale('en_US.UTF-8') failed, using locale: 'C'. International characters may not work.
Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Downloading update (395 of 51413 KB)...
[  0%] Downloading update (1635 of 51413 KB)...
[  3%] Downloading update (4401 of 51413 KB)...
[  8%] Downloading update (5959 of 51413 KB)...
[ 11%] Downloading update (6966 of 51413 KB)...
[ 13%] Downloading update (7916 of 51413 KB)...
[ 15%] Downloading update (9335 of 51413 KB)...
[ 18%] Downloading update (11063 of 51413 KB)...
[ 21%] Downloading update (12637 of 51413 KB)...
[ 24%] Downloading update (14630 of 51413 KB)...
[ 28%] Downloading update (16423 of 51413 KB)...
[ 31%] Downloading update (17432 of 51413 KB)...
[ 33%] Downloading update (17741 of 51413 KB)...
[ 34%] Downloading update (19061 of 51413 KB)...
[ 37%] Downloading update (20739 of 51413 KB)...
[ 40%] Downloading update (23180 of 51413 KB)...
[ 45%] Downloading update (25067 of 51413 KB)...
[ 48%] Downloading update (26368 of 51413 KB)...
[ 51%] Downloading update (27850 of 51413 KB)...
[ 54%] Downloading update (29058 of 51413 KB)...
[ 56%] Downloading update (30174 of 51413 KB)...
[ 58%] Downloading update (31414 of 51413 KB)...
[ 61%] Downloading update (32670 of 51413 KB)...
[ 63%] Downloading update (33592 of 51413 KB)...
[ 65%] Downloading update (34616 of 51413 KB)...
[ 67%] Downloading update (35735 of 51413 KB)...
[ 69%] Downloading update (36845 of 51413 KB)...
[ 71%] Downloading update (37836 of 51413 KB)...
[ 73%] Downloading update (38642 of 51413 KB)...
[ 75%] Downloading update (39308 of 51413 KB)...
[ 76%] Downloading update (40499 of 51413 KB)...
[ 78%] Downloading update (41677 of 51413 KB)...
[ 81%] Downloading update (43032 of 51413 KB)...
[ 83%] Downloading update (44014 of 51413 KB)...
[ 85%] Downloading update (45124 of 51413 KB)...
[ 87%] Downloading update (46231 of 51413 KB)...
[ 89%] Downloading update (47328 of 51413 KB)...
[ 92%] Downloading update (48145 of 51413 KB)...
[ 93%] Downloading update (49301 of 51413 KB)...
[ 95%] Downloading update (50723 of 51413 KB)...
[ 98%] Downloading update (51413 of 51413 KB)...
[100%] Download complete.
[----] Installing update...
[----] Extracting package...
[----] Cleaning up...
[----] Update complete, launching Steamcmd...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...OK.

Connecting anonymously to Steam Public...Logged in OK
Waiting for user info...OK
 Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
 Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
Error! App '740' state is 0x202 after update job.
CWorkThreadPool::~CWorkThreadPool: work processing queue not empty: 1 items discarded.
tar: /home/steam/csgo-dedicated/csgo: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
sed: can't read /home/steam/csgo-dedicated/csgo/cfg/server.cfg: No such file or directory
bash: /home/steam/csgo-dedicated/srcds_run: No such file or directory

I am setting up the container using the following config:

image

The steamapps folder seems to appear at the physical drive.

└── steamapps
    β”œβ”€β”€ appmanifest_740.acf
    β”œβ”€β”€ downloading
    β”‚   └── 740
    β”œβ”€β”€ libraryfolders.vdf
    └── temp
        └── 740

5 directories, 2 files

I have enough disk space on my machine:

image

Container fails to start

When I am trying to run your container I am getting

bash: entry.sh: No such file or directory

And then the container exits.

The command I use:

podman run -d --net=host -v ~/podman.d/volumes/csgo/:/home/steam/csgo-dedicated/ --name=csgo-dedicated2 cm2network/csgo

SteamCMD error with new container using sourcemod tag

When deploying a new container, steamcmd is failing to update the csgo dedicated server. After downloading the ~25GB dedicated server files, steamcmd throws an error:
"SteamCMD - App state is 0x602 after update job"

Appid 740 files are still in the temp download directory.

When running steamcmd manually, I experienced:
"Loading Steam API...Warning: failed to init SDL thread priority manager: SDL not found"

I believe this is caused by the absence of a 32bit SDL library, possibly now required by steam after a recent update?

I encountered these issues when I noticed a very long delay changing maps on the server, and after pulling the container fresh, the server will not start at all.

How to set a name for my server

I found the format very interesting, but I miss more instructions, besides, I don't know how to define a name for my server.

Can you help me with that?

server not recheable

Hello,

i tried to use your image like this :

docker run -d --net=host --name=csgo-dedicated -e SRCDS_TOKEN={mytoken} cm2network/csgo

And i cannot connect to the server, and even ping my server on the port 27015.

Do you have any idea?

Thanks.

Why still restart?

when i command docker exec -it csgo-dedicated bash .
and then in the container i command ./srcds_run
all the best and show tips:
..........
sv_weapon_encumbrance_scale - 0
tv_delay - 10
weapon_accuracy_nospread - 0
weapon_air_spread_scale - 1.0
weapon_max_before_cleanup - 0
weapon_recoil_scale - 2.0
weapon_reticle_knife_show - 1
weapon_sound_falloff_multiplier - 1.0
sv_camera_fly_enabled - missing cvar specified in bspconvar_whitelist.txt
Executing dedicated server config file
Unknown command "sm_cvar"
Unknown command "sv_unlag"
Unknown command "tv_allow_camera_man"
maxplayers set to 64
Console: "> ESL GOTV Config loaded - 14.01.2016 <"
Stopping 0 worker threads
Starting 1 worker threads
1 threads. 2,622,148 ticks
exec: couldn't exec gamemode_casual_server.cfg
PrecacheScriptSound 'Survival.VO.Taunt4a' failed, no such sound script entry
PrecacheScriptSound 'Snowball.Bounce' failed, no such sound script entry
CHostage::Precache: missing hostage models for map de_dust2. Adding the default models.
PrecacheScriptSound 'balkan_epic_blank' failed, no such sound script entry
Commentary: Could not find commentary data file 'maps/de_dust2_commentary.txt'.
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Initializing Steam libraries for secure Internet server
[S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
CAppInfoCacheReadFromDiskThread took 11 milliseconds to initialize
CApplicationManagerPopulateThread took 0 milliseconds to initialize (will have waited on CAppInfoCacheReadFromDiskThread)
RecordSteamInterfaceCreation (PID 218): SteamGameServer013 /
RecordSteamInterfaceCreation (PID 218): SteamUtils009 /
Setting breakpad minidump AppID = 730
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Setting breakpad minidump AppID = 740
RecordSteamInterfaceCreation (PID 218): SteamGameServer013 / GameServer
RecordSteamInterfaceCreation (PID 218): SteamUtils009 / Utils
RecordSteamInterfaceCreation (PID 218): SteamNetworking005 / Networking
RecordSteamInterfaceCreation (PID 218): SteamGameServerStats001 / GameServerStats
RecordSteamInterfaceCreation (PID 218): STEAMHTTP_INTERFACE_VERSION003 / HTTP
RecordSteamInterfaceCreation (PID 218): STEAMINVENTORY_INTERFACE_V001 / Inventory
RecordSteamInterfaceCreation (PID 218): STEAMUGC_INTERFACE_VERSION014 / UGC
RecordSteamInterfaceCreation (PID 218): STEAMAPPS_INTERFACE_VERSION008 / Apps
Logging into Steam gameserver account with logon token '932055C4xxxxxxxxxxxxxxxxxxxxxxxx'
RecordSteamInterfaceCreation (PID 218): SteamUtils009 / Utils
RecordSteamInterfaceCreation (PID 218): SteamNetworkingSocketsSerialized003 /
RecordSteamInterfaceCreation (PID 218): SteamGameServer012 / GameServer
RecordSteamInterfaceCreation (PID 218): STEAMHTTP_INTERFACE_VERSION003 / HTTP
SteamDatagramServer_Init succeeded
RecordSteamInterfaceCreation (PID 218): SteamGameServer013 / GameServer
RecordSteamInterfaceCreation (PID 218): SteamUtils009 / Utils
RecordSteamInterfaceCreation (PID 218): SteamNetworking005 / Networking
RecordSteamInterfaceCreation (PID 218): SteamGameServerStats001 / GameServerStats
RecordSteamInterfaceCreation (PID 218): STEAMHTTP_INTERFACE_VERSION003 / HTTP
RecordSteamInterfaceCreation (PID 218): STEAMINVENTORY_INTERFACE_V001 / Inventory
RecordSteamInterfaceCreation (PID 218): STEAMUGC_INTERFACE_VERSION014 / UGC
RecordSteamInterfaceCreation (PID 218): STEAMAPPS_INTERFACE_VERSION008 / Apps
RecordSteamInterfaceCreation (PID 218): SteamGameCoordinator001 /
RecordSteamInterfaceCreation (PID 218): SteamGameServer013 / GameServer
RecordSteamInterfaceCreation (PID 218): SteamUtils009 / Utils
PutClientInServer: no info_player_start on level
GOTV[0] broadcast active.
Connection to Steam servers successful.
Public IP is 103.218.242.185.
Assigned persistent gameserver Steam ID [G:1:3404696].
Gameserver logged on to Steam, assigned identity steamid:85568392923444120
VAC secure mode is activated.

and then about 10-20seconds
it restart always . how can i do

image with csay plugin

Hi,
I was just wondering if we can have an image for eBot as well (with the csay plugin)?

Permission Denied and file not found errors

Hello,

When I start the latest image, I have the followings errors:

/home/steam/csgo-dedicated/entry.sh: 2: /home/steam/csgo-dedicated/entry.sh: /home/steam/steamcmd/steamcmd.sh: Permission denied
/home/steam/csgo-dedicated/entry.sh: 4: /home/steam/csgo-dedicated/entry.sh: /home/steam/csgo-dedicated/srcds_run: not found
/home/steam/csgo-dedicated/entry.sh: 2: /home/steam/csgo-dedicated/entry.sh: /home/steam/steamcmd/steamcmd.sh: Permission denied
/home/steam/csgo-dedicated/entry.sh: 4: /home/steam/csgo-dedicated/entry.sh: /home/steam/csgo-dedicated/srcds_run: not found

This is the command I use to start the container:
docker run -d --net=host --name=csgo-dedicated --userns=host -e SRCDS_TOKEN={MYTOKEN} --cpus=4 cm2network/csgo

Do you have any idea what could cause this ?

Thanks in advance for your help.

App '740' state is 0x202 after update job.

Hello,

I can't make it work, I use the following command :
docker run -d --net=host --name=csgo-dedicated -e SRCDS_TOKEN=MyToken cm2network/csg
But everytime I run into this error, and the docker exit (with code 127)
image
Did you ever have this issue ? Can you help me ? Thanks !

Connecting to the server

After running the container, how can my friends connect to the server externally? How can I get the IP address?

Cannot connect to Server with Windows host

When running the container on linux everything is fine.
On windows, --net=host is not supported.

So I tried a different approach and only published the ports I need. -p 27015:27015/udp -p 27015:27015/tcp.

On linux this works as well. I can connect and control the server with rcon.
On windows I finally see the server listed, but I cannot connect.

Does anyone know what the issue could be or how to get the container to run on a windows host?
I would have expected that a container should run on linux and windows in the same way

Side note: I do not pass SRCDS_TOKEN, but that should not change anything.

Map always de_dust2

Hi
I set game mode casual and created and set up the files like gamemode_casual_server.txt
I also set up a map group called mg_normal and linked it to casual mode.

As start map I am using cs_assault. After the map ends (20 rounds) the end screen appears with the vote of the next map. Don't mater what clients choose the next map is always dust2.
Also the nextmap command right after the start of the server points that it will be dust2.

I checked all files like server.cfg (no entry for mapgroups needed?) and gamemode_server.txt but both are set up correctly?

Does anyone have a tip where to look? Who ist the command for the map cycle here?

Integration of docker update into CSGO CI/CD pipeline

guys;
right now when I run the docker image, it takes quite a while for entry.sh to update the container with new binaries before the server is actually up and running.

I am thinking maybe it is a better idea to add a routine to the actual CSGO CI/CD pipelines so that whenever they release a new binary for it, this docker image is also updated along with that and tagged with "latest".

to be transparent, I just fetch "cm2network/csgo" image and not "cm2network/csgo:latest" but I don't think that would make any change in my experience.

Downloading updates on every startup?

Hey,
first, thank you for this image.
I am using it for a dev environment as i need a csgo server for my app.
But i've one issue with it.
Every time i am starting the container, the container downloads all updates.

This takes much time and is not necessary i guess... although im using a volume for this container, the updates are downloaded every time like this:

Update state (0x61) downloading, progress: 0.22 (52933403 / 24249667270)

Do you have a hint for me what i can do?

Thanks

Should this image work for creating local server?

I want to try this image without doing it in an actual server/cloud. However I tried without success, even though the container logs seem to be indicating the server started successfully.

1 - Should I be able to connect locally if I start a container with the following command?

docker run -d --net=host --name=csgo-dedicated -e SRCDS_TOKEN={YOURTOKEN} cm2network/csgo

2 - Do I even need to pass the SRCDS_TOKEN to run this image locally?
3 - If I can run this image locally, should it automatically appear listed in the LAN servers in CSGO or do I need to run a command to connect in CSGO?

UID / GID via ENV variables

As a Linux/Docker newbie I'am struggling to setup persistent mount of the server paths with you CSGO image on my Synology Diskstation (DS218+). It seems to be an issue with the NAS user and group permissions and fixed user ID 1000 (?) of your image.
It would be great to have user and group ID easy to setup via environment variables to achieve userfriendly persisten mounts.

Files are re-downloaded on every start

I have mounted my files (csgo folder) to it's docker equivalent, but this way, every time I destroy and re-create the container all the files are re-downloaded my steamcmd.

First, it is verifying my files, and after that is starts downloading all of them again for some reason.
Update state (0x5) verifying install, progress: 1.69 (418925930 / 24778345278)
...
...
Update state (0x11) preallocating, progress: 87.96 (21795643606 / 24778345278)
Update state (0x61) downloading, progress: 0.00 (265660 / 24778345278)

My configuration:

image
image

The mount if working, since I can see the content of the csgo folder on the host machine in the server116 folder. But after recreating the container steam starts redownloading all the files.

Any ideas on how to fix this?

SRCDS_RCONPW & SRCDS_PW no longer settable as intended

Functionality to configure this via start parameters was wiped unintentionally by #55.

Start behaviour should be split into:

  1. if autoexec file is present, discard SRCDS_RCONPW & SRCDS_PW
  2. if autoexec file is missing (default), use SRCDS_RCONPW & SRCDS_PW

Server restart loop after some days

I have noticed that after some days, the server is caught in a restart loop after a Valve-triggered update (similar as described in #29).

The server is deployed via docker-compose and works just fine for a few days:

version: "3.3"
services:
  csgo:
    image: cm2network/csgo:sourcemod
    env_file:
      - .env
    volumes:
      - csgo:/home/steam/csgo-dedicated/
    ports:
      - "27015:27015/tcp"
      - "27015:27015/udp"
      - "27020:27020/tcp"
      - "27020:27020/udp"

volumes:
  csgo:

I'm happy to provide more details for further debugging.

Stuck with scoreboard on side change

Hello,
I dont know if it s related to the docker image, but when the side ends, some people get stuck with the score board opened. No way to close it.
I use the esl5on5 config.
Any idea ?

./steam.sh: No such file or directory

When starting up the server, after the update process, the following error message appears:

^[[36mcsgo_1  |^[[0m Success! App '740' fully installed.
^[[36mcsgo_1  |^[[0m Server will auto-restart if there is a crash.
^[[36mcsgo_1  |^[[0m Updating server using Steam.
^[[36mcsgo_1  |^[[0m ----------------------------
^[[36mcsgo_1  |^[[0m /home/steam/csgo-dedicated/srcds_run: line 301: ./steam.sh: No such file or directory
^[[36mcsgo_1  |^[[0m ----------------------------

The server will continue to work just fine for now, but this should be looked at, as this does not seem to be expected.

Container exiting with code 127

Hello,

I would like any help troubleshooting the setup of the container on an AWS EC2. Am receiving the error 127

cfg/gamemodes_server.txt
cfg/undo360controller.cfg
cfg/esl1on1awp.cfg
cfg/navedit.cfg
bash: /home/steam/csgo-dedicated/srcds_run: No such file or directory

Attempting to run the container on my local windows machine does not encounter errors.

I have verified and attached a 50gb volume so should have more than enough space.

Mind helping me out?

Thanks

Cannot connect to rcon

Hello,

First, thank you very much for your work. I'm using your docker image and it works very well, except RCON.

I have a spare pc, that is setup with dynamic dns (because I don't have a static one.), my ip does not change that often, i think once in 6 months. So I decided to use your image and my spare pc to host a csgo server. With port forwarding it works flawlessly, me and my friends which are outside of my local network can play. But when trying to use RCON, i always get Unable to connect to remote server (192.168.x.x:27015)

I don't think it's an issue with your image, but I looked everywhere and couldn't find any tip except #2 (comment), but it didn't work either. I tried with my public and local ips without success.

Is there something else I can check? Thanks.

Problem with Steam API Key and Workshop Maps

Hello,

First Thank You for this great docker image.

I'm having a bit of trouble with loading the correct and perfect config files when creating a new container, but I will find a way past there. (Currently it is a copy and paste but) I thought of extending this image.

Unfortunately, I cannot load any workshop maps with the given parameters:

-e SRCDS_WORKSHOP_AUTHKEY={XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX}
-e SRCDS_HOST_WORKSHOP_COLLECTION={2281264614}

There is a LOG file of the container startup attached. I think the error is caused in line

2091: [S_API FAIL] SteamAPI_Init() failed; create pipe failed.[S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
ProblemLogInstallAPIKey.txt

Can someone verify this problem or am I doing it wrong?

How to add maps?

How do I add more maps to the CS:GO Server running in the Docker image? A guide for this would be very much appreciated! πŸ‘

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.