MitchTalmadge / AMP-dockerized

CubeCoders AMP in a Docker Image. Easily create game servers for games like Minecraft, GMod, TF2, Factorio, and StarBound!
https://hub.docker.com/r/mitchtalmadge/amp-dockerized
Other
89 stars 21 forks source link

CSGO server very long map startup time and looping 'restart' #113

Closed makerduck closed 1 year ago

makerduck commented 2 years ago

Hi, I used your docker image since I switched from windows server to unraid and so far it worked as expected with GMOD, satisfactory and more game servers. But I always run into an issue with my csgo instance:

  1. first of all it takes more than 5 minutes to start up an map, which 'normally' should never took longer than 30 seconds.
  2. after that I still can't join and the server reloads the map, in this example 'de_cbble' again which took another good 4 minutes before the map starts and bots will be placed
  3. after the bots are loaded the server is recognized as online and active from the community server browser within steam/csgo
  4. I then can join the server but it takes a couple of minutes before I actually joined the server and can pick a team and move around on the map as expected. Once one player is already in the server more can join relatively quickly. Server commands can be executed and server performance is very good as expected.
  5. and after the players decided to vote for a map different to the loaded map, it takes ages to load the new map and 'transfer' the already connected players

It this time I can't verify that this problem only occurs within this docker image but I can't recall having this long loading times in a native AMP instance on windows server and I can't find a solution or similar issues to this one online or on the amp-forum. If anybody recognizes this problem or experienced similar things please tell me about it. Any help is very appreciated!

I already tried deleting the instance and start from scratch with a new instance multiple times but the issues occurs even with brand new 'vanilla' csgo instance. My server hardware should be more then efficient for a csgo instance: Xeon (8C/16T), 48GB ECC DDR4, and the docker appdata is stored on a Samsung SSD.

Log:

[11:04:55] [API:admin Activity]   : Starting the application.
02/18/2022 - 11:05:08: [META] Loaded 1 plugin.
02/18/2022 - 11:05:08: Log file closed
02/18/2022 - 11:05:08: Log file started (file "logs/L179_010_010_001_27015_202202181105_000.log") (game "/home/amp/.ampdata/instances/csgo/srcds/740/csgo") (version "8461")
02/18/2022 - 11:05:08: Loading map "de_cbble"
02/18/2022 - 11:05:08: server cvars start
02/18/2022 - 11:05:08: "cash_player_killed_teammate" = "-300"
--- more csgo commands deleted for visibility ---
02/18/2022 - 11:05:08: "sv_specspeed" = "3"
[11:05:08] [srcds:admin Info]     : Setting up RCON...
02/18/2022 - 11:05:08: server cvars end
02/18/2022 - 11:05:10: Started map "de_cbble" (CRC "-1324187427")
02/18/2022 - 11:05:12: server_cvar: "sm_nextmap" "de_cbble"
--- more server_cvar deleted for visibility ---
02/18/2022 - 11:05:12: server_cvar: "sv_deadtalk" "1"
[11:05:21] [RemoteAMPAuth:Anonymous Activity] : Authentication attempt for user admin from 179.10.10.1
[11:05:22] [RemoteAMPAuth:Anonymous Activity] : Authentication success
[11:07:21] [srcds:admin Info]     : RCON connection successful.
02/18/2022 - 11:11:49: server_cvar: "nextlevel" "de_cbble"
02/18/2022 - 11:11:49: [META] Loaded 0 plugins (1 already loaded)
02/18/2022 - 11:11:49: [META] Loaded 0 plugins (1 already loaded)
02/18/2022 - 11:11:50: Log file closed
02/18/2022 - 11:11:50: Log file started (file "logs/L179_010_010_001_27015_202202181111_000.log") (game "/home/amp/.ampdata/instances/csgo/srcds/740/csgo") (version "8461")
02/18/2022 - 11:11:50: Loading map "de_cbble"
02/18/2022 - 11:11:50: server cvars start
02/18/2022 - 11:11:50: "cash_player_killed_teammate" = "-300"
--- more csgo commands deleted for visibility ---
02/18/2022 - 11:11:50: "sv_specspeed" = "3"
[11:11:50] [srcds:admin Warning]  : Tried to start RCON but server is not in the correct state (Server is in Ready state, expected 'Starting')
02/18/2022 - 11:11:50: server cvars end
02/18/2022 - 11:12:32: Started map "de_cbble" (CRC "-1324187427")
02/18/2022 - 11:12:33: server_cvar: "cash_player_interact_with_hostage" "150"
--- more server_cvar deleted for visibility---
02/18/2022 - 11:12:33: server_cvar: "sv_deadtalk" "1"
02/18/2022 - 11:14:54: World triggered "Round_Start"
02/18/2022 - 11:14:54: "Seth<2><BOT><>" connected, address ""
02/18/2022 - 11:14:54: "Seth<2><BOT>" switched from team <Unassigned> to <TERRORIST>
02/18/2022 - 11:14:55: World triggered "Game_Commencing"
02/18/2022 - 11:14:55: "Seth<2><BOT><>" entered the game
02/18/2022 - 11:14:55: "Jeff<3><BOT><>" connected, address ""
02/18/2022 - 11:14:55: "Jeff<3><BOT>" switched from team <Unassigned> to <CT>
02/18/2022 - 11:14:55: "Jeff<3><BOT><>" entered the game
02/18/2022 - 11:14:57: server_cvar: "sm_nextmap" "de_dust"
02/18/2022 - 11:14:57: Starting Freeze period
02/18/2022 - 11:14:58: World triggered "Match_Start" on "de_cbble"
02/18/2022 - 11:14:58: MatchStatus: Team "CT" is unset.
02/18/2022 - 11:14:58: MatchStatus: Team "TERRORIST" is unset.
02/18/2022 - 11:14:58: MatchStatus: Score: 0:0 on map "de_cbble" RoundsPlayed: -1
02/18/2022 - 11:14:59: "Seth<2><BOT><TERRORIST>" disconnected (reason "Punting bot, server is hibernating")
02/18/2022 - 11:14:59: "Seth<2><BOT>" switched from team <TERRORIST> to <Unassigned>
02/18/2022 - 11:14:59: "Jeff<3><BOT><CT>" disconnected (reason "Punting bot, server is hibernating")
02/18/2022 - 11:14:59: "Jeff<3><BOT>" switched from team <CT> to <Unassigned>
makerduck commented 1 year ago

So after one year of not using csgo server through AMP I found a fix for my problem. The csgo srcds server is not happy while the docker is running with following appdata path: /mnt/user/appdata/amp instead the path should be: /mnt/cache/appdata/amp

Found the solution in the Unraid support forum for AMP: https://forums.unraid.net/topic/98290-support-amp-application-management-panel-corneliousjd-repo/