timche / docker-csgo

Counter-Strike: Global Offensive (CS:GO) Dedicated Server with automated/manual updating and optional SourceMod and PugSetup/PracticeMode integrations
https://hub.docker.com/r/timche/csgo
MIT License
193 stars 27 forks source link

Server hibernating. #29

Closed KurtzPT closed 1 year ago

KurtzPT commented 1 year ago

So I'm trying out the image tag timche/csgo:pug-practice and after installing the server shutdowns after couple of seconds with the last message "Server is hibernating":

#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.
#Filesystem successfully switched to safe whitelist mode
#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.
#CGameEventManager::AddListener: event 'player_death' unknown.
#CGameEventManager::AddListener: event 'hltv_replay' unknown.
#CGameEventManager::AddListener: event 'player_connect' unknown.
#CGameEventManager::AddListener: event 'player_disconnect' unknown.
#GameTypes: missing mapgroupsSP entry for game type/mode (custom/custom).
#GameTypes: missing mapgroupsSP entry for game type/mode (cooperative/cooperative).
#GameTypes: missing mapgroupsSP entry for game type/mode (cooperative/coopmission).
Failed to load gamerulescvars.txt, game rules cvars might not be reported to management tools.
Server is hibernating

What's happening here? Tried out the debug as true, but I don't see anything on the logs.

Server command:

/home/csgo/server/srcds_run -game csgo -console -norestart -usercon -nobreakpad +ip 0.0.0.0 -port 27015 -tickrate 64 -maxplayers_override 16 +game_type 0 +game_mode 1 +mapgroup mg_active +map de_dust2 +rcon_password <password> +sv_setsteamaccount <token> +hostname Counter-Strike: Global Offensive -authkey <key>
timche commented 1 year ago

The server is hibernating and not shut down. You should still be able to connect to the server and it will wake up.

This behaviour is normal:

"sv_hibernate_when_empty" = "0" ( def. "1" ) - Puts the server into extremely low CPU usage mode when no clients connected

KurtzPT commented 1 year ago

When the csgo server hibernates, the docker container stops and is no longer running.

I cannot figure it out why.

On Sun, Oct 23, 2022, 09:10 Tim Cheung @.***> wrote:

The server is hibernating and not shut down. You should still be able to connect to the server and it will wake up.

— Reply to this email directly, view it on GitHub https://github.com/timche/docker-csgo/issues/29#issuecomment-1288046861, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADR5BCLI5CNC7UX5OZSQW7TWETXHTANCNFSM6AAAAAARLS75CU . You are receiving this because you authored the thread.Message ID: @.***>

KurtzPT commented 1 year ago

Noticed #30 issue, it seems that was what was happening with me, docker container would stop because of a crash and it just happened after that hibernating line, which was why I thought it was something to do with it.

Tried right now and the container is no longer stopping/crashing, so all seems good now.