joedwards32/CS2

Can't make container listen on specific network interface

Closed this issue · 10 comments

Hi!

First, thanks for the great work! I'm currently planning to use your image for my upcoming LAN party.

I have a server with 4 network cards, and I'm trying to run a server on a specific IP:

docker run --net=host -v $(pwd)/cs2-data:/home/steam/cs2-dedicated/ --name=cs2-dedicated -e STEAMUSER=xxxxxx -e STEAMPASS='xxxxxx' -e CS2_IP=10.0.0.9 joedwards32/cs2

So it should be available on 10.0.0.9:27015, correct?

My network interfaces are:

enp0s31f6: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.0.7  netmask 255.255.255.0  broadcast 10.0.0.255
        inet6 fe80::25c8:6dde:d44c:665f  prefixlen 64  scopeid 0x20<link>
        ether 6c:4b:90:3c:f2:8a  txqueuelen 1000  (Ethernet)
        RX packets 28025  bytes 6952870 (6.9 MB)
        RX errors 0  dropped 2  overruns 0  frame 0
        TX packets 6077  bytes 551034 (551.0 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 17  memory 0xf7000000-f7020000

enxa0cec87ec7af: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.0.8  netmask 255.255.255.0  broadcast 10.0.0.255
        inet6 fe80::df74:b3e5:a65a:80f5  prefixlen 64  scopeid 0x20<link>
        ether a0:ce:c8:7e:c7:af  txqueuelen 1000  (Ethernet)
        RX packets 42793420  bytes 63700996016 (63.7 GB)
        RX errors 0  dropped 2  overruns 0  frame 0
        TX packets 16005355  bytes 1246772741 (1.2 GB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enxa0cec87ed1d5: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.0.9  netmask 255.255.255.0  broadcast 10.0.0.255
        inet6 fe80::e83:28b1:2db3:a1c3  prefixlen 64  scopeid 0x20<link>
        ether a0:ce:c8:7e:d1:d5  txqueuelen 1000  (Ethernet)
        RX packets 20241  bytes 1559573 (1.5 MB)
        RX errors 0  dropped 2  overruns 0  frame 0
        TX packets 6393  bytes 590692 (590.6 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enxa0cec87f48da: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.0.10  netmask 255.255.255.0  broadcast 10.0.0.255
        inet6 fe80::8771:6ddc:1581:8a4  prefixlen 64  scopeid 0x20<link>
        ether a0:ce:c8:7f:48:da  txqueuelen 1000  (Ethernet)
        RX packets 34968  bytes 2673867 (2.6 MB)
        RX errors 0  dropped 2  overruns 0  frame 0
        TX packets 6417  bytes 588684 (588.6 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

However the server always starts on 10.0.0.8:27015. It seems that the container ignores the CS2_IP env var.

Can you tell me if I'm doing something wrong here?

Thanks!
Pascal

Container Log is :

Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
Logging directory: '/home/steam/Steam/logs'
[  0%] Checking for available updates...
[----] Downloading update (0 of 59,532 KB)...
[  0%] Downloading update (673 of 59,532 KB)...
[  1%] Downloading update (2,311 of 59,532 KB)...
[  3%] Downloading update (3,798 of 59,532 KB)...
[  6%] Downloading update (5,210 of 59,532 KB)...
[  8%] Downloading update (6,285 of 59,532 KB)...
[ 10%] Downloading update (7,876 of 59,532 KB)...
[ 13%] Downloading update (9,483 of 59,532 KB)...
[ 15%] Downloading update (11,097 of 59,532 KB)...
[ 18%] Downloading update (12,879 of 59,532 KB)...
[ 21%] Downloading update (14,493 of 59,532 KB)...
[ 24%] Downloading update (16,108 of 59,532 KB)...
[ 27%] Downloading update (17,722 of 59,532 KB)...
[ 29%] Downloading update (19,504 of 59,532 KB)...
[ 32%] Downloading update (21,126 of 59,532 KB)...
[ 35%] Downloading update (22,733 of 59,532 KB)...
[ 38%] Downloading update (24,514 of 59,532 KB)...
[ 41%] Downloading update (26,041 of 59,532 KB)...
[ 43%] Downloading update (27,751 of 59,532 KB)...
[ 46%] Downloading update (29,362 of 59,532 KB)...
[ 49%] Downloading update (31,147 of 59,532 KB)...
[ 52%] Downloading update (32,762 of 59,532 KB)...
[ 55%] Downloading update (34,368 of 59,532 KB)...
[ 57%] Downloading update (36,134 of 59,532 KB)...
[ 60%] Downloading update (37,597 of 59,532 KB)...
[ 63%] Downloading update (39,371 of 59,532 KB)...
[ 66%] Downloading update (40,661 of 59,532 KB)...
[ 68%] Downloading update (41,727 of 59,532 KB)...
[ 70%] Downloading update (42,776 of 59,532 KB)...
[ 71%] Downloading update (43,850 of 59,532 KB)...
[ 73%] Downloading update (45,031 of 59,532 KB)...
[ 75%] Downloading update (46,081 of 59,532 KB)...
[ 77%] Downloading update (47,182 of 59,532 KB)...
[ 79%] Downloading update (48,288 of 59,532 KB)...
[ 81%] Downloading update (49,373 of 59,532 KB)...
[ 82%] Downloading update (50,495 of 59,532 KB)...
[ 84%] Downloading update (51,660 of 59,532 KB)...
[ 86%] Downloading update (52,734 of 59,532 KB)...
[ 88%] Downloading update (53,799 of 59,532 KB)...
[ 90%] Downloading update (54,849 of 59,532 KB)...
[ 92%] Downloading update (55,899 of 59,532 KB)...
[ 93%] Downloading update (57,096 of 59,532 KB)...
[ 95%] Downloading update (58,146 of 59,532 KB)...
[ 97%] Downloading update (58,313 of 59,532 KB)...
[ 97%] Downloading update (59,402 of 59,532 KB)...
[ 99%] Downloading update (59,532 of 59,532 KB)...
[100%] Download complete.
[----] Installing update...
[----] 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...
Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
Logging directory: '/home/steam/Steam/logs'
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation - version 1698778122
-- type 'quit' to exit --
Loading Steam API...OK
Logging in user 'xxxxxx' to Steam Public...OK
Waiting for client config...OK
Waiting for user info...OK
Success! App '730' already up to date.
Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libengine2.so, got 0x55ed57de84d0
Using breakpad crash handler
Setting breakpad minidump AppID = 2347773
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit

Console initialized.
Steam AppId(730), BreakpadId(2347771)
InitSteamLogin_Internal: Initializing breakpad.
Steam Universe is invalid, possibly asking before Steam was successfully initialized.
ResetBreakpadAppId: Universe is 0 (k_EUniverseInvalid)
ResetBreakpadAppId: Setting dedicated server app id: 2347773
Loaded libSDL3.so.0, got 0x55ed57ee7bd0
Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libtier0.so, got 0x55ed57dd2290
Visibility enabled.
Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libfilesystem_stdio.so, got 0x55ed57ee8090
USRLOCAL path not found!
Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/liblocalize.so, got 0x55ed57efa5c0
Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/librendersystemempty.so, got 0x55ed57f0c6c0
Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libresourcesystem.so, got 0x55ed57f1ebf0
Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libschemasystem.so, got 0x55ed57f30cf0
Trying to set dxlevel (111) which is higher than the card can support (110)!
Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libmaterialsystem2.so, got 0x55ed57f43210
---------------
Path ID:             File Path:
ADDONS               "/home/steam/cs2-dedicated/game/csgo_addons/"
CONTENT              "/home/steam/cs2-dedicated/content/csgo/"
CONTENT              "/home/steam/cs2-dedicated/content/csgo_imported/"
CONTENT              "/home/steam/cs2-dedicated/content/csgo_core/"
CONTENT              "/home/steam/cs2-dedicated/content/core/"
CONTENTADDONS        "/home/steam/cs2-dedicated/content/csgo_addons/"
CONTENTROOT          "/home/steam/cs2-dedicated/content/"
DEFAULT_WRITE_PATH   "/home/steam/cs2-dedicated/game/csgo/pak01.vpk" (vpk) /home/steam/cs2-dedicated/game/csgo/pak01.vpk
DEFAULT_WRITE_PATH   "/home/steam/cs2-dedicated/game/csgo/"
EXECUTABLE_PATH      "/home/steam/cs2-dedicated/game/bin/linuxsteamrt64/"
GAME                 "/home/steam/cs2-dedicated/game/csgo/pak01.vpk" (vpk) /home/steam/cs2-dedicated/game/csgo/pak01.vpk
GAME                 "/home/steam/cs2-dedicated/game/csgo_imported/pak01.vpk" (vpk) /home/steam/cs2-dedicated/game/csgo_imported/pak01.vpk
GAME                 "/home/steam/cs2-dedicated/game/csgo_core/pak01.vpk" (vpk) /home/steam/cs2-dedicated/game/csgo_core/pak01.vpk
GAME                 "/home/steam/cs2-dedicated/game/core/pak01.vpk" (vpk) /home/steam/cs2-dedicated/game/core/pak01.vpk
GAME                 "/home/steam/cs2-dedicated/game/csgo/"
GAME                 "/home/steam/cs2-dedicated/game/csgo_imported/"
GAME                 "/home/steam/cs2-dedicated/game/csgo_core/"
GAME                 "/home/steam/cs2-dedicated/game/core/"
GAMEBIN              "/home/steam/cs2-dedicated/game/csgo/bin/linuxsteamrt64/"
GAMEBIN              "/home/steam/cs2-dedicated/game/csgo/bin/"
GAMEBIN              "/home/steam/cs2-dedicated/game/csgo_imported/bin/linuxsteamrt64/"
GAMEBIN              "/home/steam/cs2-dedicated/game/csgo_imported/bin/"
GAMEBIN              "/home/steam/cs2-dedicated/game/csgo_core/bin/linuxsteamrt64/"
GAMEBIN              "/home/steam/cs2-dedicated/game/csgo_core/bin/"
GAMEBIN              "/home/steam/cs2-dedicated/game/core/bin/linuxsteamrt64/"
GAMEBIN              "/home/steam/cs2-dedicated/game/core/bin/"
GAMEROOT             "/home/steam/cs2-dedicated/game/"
MOD                  "/home/steam/cs2-dedicated/game/csgo/pak01.vpk" (vpk) /home/steam/cs2-dedicated/game/csgo/pak01.vpk
MOD                  "/home/steam/cs2-dedicated/game/csgo_imported/pak01.vpk" (vpk) /home/steam/cs2-dedicated/game/csgo_imported/pak01.vpk
MOD                  "/home/steam/cs2-dedicated/game/csgo_core/pak01.vpk" (vpk) /home/steam/cs2-dedicated/game/csgo_core/pak01.vpk
MOD                  "/home/steam/cs2-dedicated/game/csgo/"
MOD                  "/home/steam/cs2-dedicated/game/csgo_imported/"
MOD                  "/home/steam/cs2-dedicated/game/csgo_core/"
PLATFORM             "/home/steam/cs2-dedicated/game/core/pak01.vpk" (vpk) /home/steam/cs2-dedicated/game/core/pak01.vpk
PLATFORM             "/home/steam/cs2-dedicated/game/core/"
SHADER_SOURCE        "/home/steam/cs2-dedicated/src/shaders/csgo/"
SHADER_SOURCE        "/home/steam/cs2-dedicated/src/shaders/csgo_imported/"
SHADER_SOURCE        "/home/steam/cs2-dedicated/src/shaders/csgo_core/"
SHADER_SOURCE        "/home/steam/cs2-dedicated/src/shaders/core/"
SHADER_SOURCE_MOD    "/home/steam/cs2-dedicated/src/shaders/csgo/"
SHADER_SOURCE_ROOT   "/home/steam/cs2-dedicated/src/shaders/"
command line arguments:
-dedicated -ip 10.0.0.9 -port 27015 -console -usercon -maxplayers 10 +game_type 0 +game_mode 1 +mapgroup mg_active +map de_inferno
protected command line arguments (stripped from above):
+rcon_password <protected> +sv_password <protected>
Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libmeshsystem.so, got 0x55ed57f55730
Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libworldrenderer.so, got 0x55ed57f67c50
Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libpulse_system.so, got 0x55ed57f7a590
Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libvscript.so, got 0x55ed57f8ef70
Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libnetworksystem.so, got 0x55ed57fa1070
Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libanimationsystem.so, got 0x55ed57fb5270
Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libvphysics2.so, got 0x55ed57fcb570
Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libsoundsystem.so, got 0x55ed57fde2d0
Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libscenesystem.so, got 0x55ed57ff45d0
Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libv8system.so, got 0x55ed58009850
 failed to dlopen "/home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libserver_valve.so" error=/home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libserver_valve.so: cannot open shared object file: No such file or directory
Network System Initialized
Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libserver_valve.so, got (nil)
 failed to dlopen "libserver_valve.so" error=libserver_valve.so: cannot open shared object file: No such file or directory
 failed to dlopen /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libserver_valve.so error=/home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libserver_valve.so: cannot open shared object file: No such file or directory
Loaded libserver_valve.so, got (nil)
 failed to dlopen libserver_valve.so error=libserver_valve.so: cannot open shared object file: No such file or directory
Loaded /home/steam/cs2-dedicated/game/csgo/bin/linuxsteamrt64/libserver.so, got 0x55ed580239f0
Physics Console Communications is not initialized
Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libengine2.so, got 0x55ed57de84d0
Loaded /home/steam/cs2-dedicated/game/csgo/bin/linuxsteamrt64/libhost.so, got 0x55ed580545d0
Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libscenefilecache.so, got 0x55ed58067750
Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libparticles.so, got 0x55ed58079c70
Loaded /home/steam/cs2-dedicated/game/csgo/bin/linuxsteamrt64/libmatchmaking.so, got 0x55ed5808d630
[S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
CAppInfoCacheReadFromDiskThread took 4 milliseconds to initialize
Setting breakpad minidump AppID = 730
SteamInternal_SetMinidumpSteamID:  Caching Steam ID:  76561197960265728 [API loaded yes]
SteamInternal_SetMinidumpSteamID:  Setting Steam ID:  76561197960265728
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
SteamInternal_SetMinidumpSteamID:  Caching Steam ID:  76561197960265728 [API loaded yes]
SteamInternal_SetMinidumpSteamID:  Setting Steam ID:  76561197960265728
[S_API FAIL] Tried to access Steam interface SteamUtils010 before SteamAPI_Init succeeded.
Setting breakpad minidump AppID = 2347773
No .vcds loaded or no scenes/scenes.vrman
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).
Event System loaded 93 events from file: vpk:/home/steam/cs2-dedicated/game/core/pak01.vpk:resource/core.gameevents.
Event System loaded 50 events from file: vpk:/home/steam/cs2-dedicated/game/csgo/pak01.vpk:resource/game.gameevents.
Event System loaded 152 events from file: vpk:/home/steam/cs2-dedicated/game/csgo/pak01.vpk:./resource/mod.gameevents.
CEntitySystem::BuildEntityNetworking (parallel build of server) took 48.475 msecs for 213 out of 292 classes
CHostStateMgr::QueueNewRequest( Idle (console), 1 )
Source2Init OK
HostStateRequest::Start(HSR_IDLE):  loop(console) id(1) addons() desc(Idle (console))
SwitchToLoop console requested:  id [1] addons []
Host activate: Idle (console)
Setting mapgroup to 'mg_active'
Loading map "de_inferno"
CHostStateMgr::QueueNewRequest( Loading (de_inferno), 2 )
HostStateRequest::Start(HSR_GAME):  loop(levelload) id(2) addons() desc(Loading (de_inferno))
SwitchToLoop levelload requested:  id [2] addons []
SV:  Level loading started for 'de_inferno'
CL:  CLoopModeLevelLoad::MaybeSwitchToGameLoop switching to "game" loopmode with addons ()
SwitchToLoop game requested:  id [2] addons []
SteamGameServer_Init()
dlmopen steamservice.so failed: steamservice.so: cannot open shared object file: No such file or directory
Steam Universe valid after having been requested when invalid.  Universe is now 1
ResetBreakpadAppId: Universe is 1 (k_EUniversePublic)
ResetBreakpadAppId: Setting dedicated server app id: 2347773
SteamGameServer_Init() OK, logging on to Steam
****************************************************
*                                                  *
*  No Steam account token was specified.           *
*  Logging into anonymous game server account.     *
*  Connections will be restricted to LAN only.     *
*                                                  *
*  To create a game server account go to           *
*  http://steamcommunity.com/dev/managegameservers *
*                                                  *
****************************************************
CNetworkSystem::InitGameServer: CSteamGameServerAPIContext::Init OK
Initialized low level socket/threading support.
SDR_LISTEN_PORT is set, but not SDR_CERT/SDR_PRIVATE_KEY.
Set SteamNetworkingSockets P2P_STUN_ServerList to '' as per SteamNetworkingSocketsSerialized
CNetworkGameServerBase::SetServerState (ss_dead -> ss_waitingforgamesessionmanifest)
SV:  maxplayers set to 10
Server is hibernating
ResetGameConVarsToDefaults
Created poll group for socket 'server'
SDR RelayNetworkStatus:  avail=Attempting  config=Attempting  anyrelay=Not Attempted   (Attempt #1 to fetch config (only-if-cached) from https://api.steampowered.com/ISteamApps/GetSDRConfig/v1?appid=730)
AuthStatus (invalid):  Waiting  (Waiting for Steam login)
Network socket 'server' opened on port 27015
Initializing CSGO VScript Game System
SV:  Executing server defaults
SV:  Executing dedicated server config file
GameTypes: could not find matching game mode value of "" in any game type.
SV:  CGameRulesGameSystem::GameInit installed game rules
LoadResponseSystem scripts/talker/response_rules.vrr - StartCResponseSystem:  scripts/talker/response_rules.vrr (7681 rules, 811 criteria, and 7681 responses)
LoadResponseSystem scripts/talker/response_rules.vrr - FinishEntry player was not found in surfaceproperties_footsteps.txt
exec: couldn't exec '{*}cfg/skill1.cfg', unable to read file
execing server_default.cfg
execing server.cfg
execing gamemode_competitive.cfg
exec: couldn't exec '{*}cfg/gamemode_competitive_server.cfg', unable to read file
Unknown command 'mp_molotovusedelay'!
Unknown command 'spec_freeze_panel_extended_time'!
Unknown command 'sv_occlude_players'!
Unknown command 'occlusion_test_async'!
Unknown command 'sv_gameinstructor_enable'!
Failed loading resource "materials/models/player/holiday/facemasks/facemask_battlemask/battlemask.vmat_c" (ERROR_FILEOPEN: File not found)
Failed loading resource "materials/models/player/holiday/santahat.vmat_c" (ERROR_FILEOPEN: File not found)
Failed loading resource "models/weapons/v_tablet.vmdl_c" (ERROR_FILEOPEN: File not found)
Model models/props/crates/csgo_drop_crate_armsdeal2.vmdl: sequence/animation name collision found "tools_preview"
Model !embedded_sequence_data!characters/models/shared/animsets/animset_t.vmdl: unable to find bone reference "ball_l"
Model !embedded_sequence_data!characters/models/shared/animsets/animset_ct.vmdl: unable to find bone reference "ball_l"
Model !embedded_sequence_data!characters/models/shared/animsets/animset_uiplayer.vmdl: unable to find bone reference "ball_l"
Model models/props/crates/csgo_drop_crate_bravo.vmdl: sequence/animation name collision found "tools_preview"
Model !embedded_sequence_data!characters/models/shared/animsets/animset_ct.vmdl: unable to find bone reference "ball_l"
Model !embedded_sequence_data!characters/models/shared/animsets/animset_uiplayer.vmdl: unable to find bone reference "ball_l"
Model models/props/crates/csgo_drop_crate_winteroffensive.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_armsdeal3.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_phoenix.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_huntsman.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_breakout.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_vanguard.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_dangerzone.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_community_22.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_chroma.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_community_23.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_community_24.vmdl: sequence/animation name collision found "tools_preview"
material2.cpp(711): Error! Material "materials/error.vmat" doesn't have any valid layers to get the CVsInputSignatureVector from!
material2.cpp(711): Error! Material "materials/error.vmat" doesn't have any valid layers to get the CVsInputSignatureVector from!
Model models/props/crates/csgo_drop_crate_chroma2.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_community_25.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_chroma3.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_community_26.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_community_27.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_bloodhound.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_gamma.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_community_28.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_community_29.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_gamma2.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_community_30.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_shadow.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_glove.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_community_31.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_community_32.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_spectrum.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_revolver.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_armsdeal1.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_hydra.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_spectrum2.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_wildfire.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_clutch.vmdl: sequence/animation name collision found "tools_preview"
Model models/props/crates/csgo_drop_crate_horizon.vmdl: sequence/animation name collision found "tools_preview"
SV:  Spawn Server: de_inferno
CNetworkGameServerBase::SetServerState (ss_waitingforgamesessionmanifest -> ss_loading)
SV:  Connection to Steam servers successful.
SV:  ServerSteamID=[A:1:748606464:24586] (90177589361955840).
Got SDR network config.  Loaded revision 1698875488 OK
SDR RelayNetworkStatus:  avail=Not Attempted  config=OK  anyrelay=Not Attempted   (No need for SDR client network access)
Waited 2.1ms for SteamNetworkingSockets lock [Internal_SDR_LISTEN_PORT]
Gameserver logged on to Steam, assigned identity steamid:90177589361955840
src/steamnetworkingsockets/clientlib/sdr/steamnetworkingsockets_sdr_common.cpp(7061): Assertion Failed: !s_pConfigFetchInProgress

Seems to me, that the entry script takes into account the correct IP :

command line arguments:
-dedicated -ip 10.0.0.9 -port 27015 -console -usercon -maxplayers 10 +game_type 0 +game_mode 1 +mapgroup mg_active +map de_inferno

There's some discussion online that +ip not -ip is the correct CLI parameter. I'll try to test that tomorrow.

In fact, you could try

CS2_ADDITIONAL_ARGS="+ip 10.0.0.9"

There's some discussion online that +ip not -ip is the correct CLI parameter. I'll try to test that tomorrow.

Thanks for the quick reply !
I'll give that a try right now

Unfortunately, no luck :

 -dedicated -ip 0.0.0.0 -port 27015 -console -usercon -maxplayers 10 +game_type 0 +game_mode 1 +mapgroup mg_active +map de_inferno +ip 10.0.0.9

or

-dedicated -ip 10.0.0.9 -port 27015 -console -usercon -maxplayers 10 +game_type 0 +game_mode 1 +mapgroup mg_active +map de_inferno +ip 10.0.0.9

if I keep the CS2_IP variable.

I'll check if I can remove the -ip

rebuilt the image just now, still no luck :

-dedicated +ip 10.0.0.9 -port 27015 -console -usercon -maxplayers 10 +game_type 0 +game_mode 1 +mapgroup mg_active +map de_inferno

It seems that this parameter is broken..

The alternative is to stop using --net=host on your docker run command and switch to using published ports instead:

https://docs.docker.com/network/

This will allow you to control at the docker level what happens with network bindings:

docker run -v $(pwd)/cs2-data:/home/steam/cs2-dedicated/ --name=cs2-dedicated -e STEAMUSER=xxxxxx -e STEAMPASS='xxxxxx' -p 10.0.0.9:27015:27015/udp -p 10.0.0.9:27015:27015/tcp joedwards32/cs2

The alternative is to stop using --net=host on your docker run command and switch to using published ports instead:

https://docs.docker.com/network/

This will allow you to control at the docker level what happens with network bindings:

docker run -v $(pwd)/cs2-data:/home/steam/cs2-dedicated/ --name=cs2-dedicated -e STEAMUSER=xxxxxx -e STEAMPASS='xxxxxx' -p 10.0.0.9:27015:27015/udp -p 10.0.0.9:27015:27015/tcp joedwards32/cs2

nice! I'll give that a try!

In the meantime, I tested a bit. The server appears 4 times in the LAN browser (1 per Network interface), but always on the same IP :

grafik

The alternative is to stop using --net=host on your docker run command and switch to using published ports instead:

https://docs.docker.com/network/

This will allow you to control at the docker level what happens with network bindings:

docker run -v $(pwd)/cs2-data:/home/steam/cs2-dedicated/ --name=cs2-dedicated -e STEAMUSER=xxxxxx -e STEAMPASS='xxxxxx' -p 10.0.0.9:27015:27015/udp -p 10.0.0.9:27015:27015/tcp joedwards32/cs2

Excellent! Works like a charm now. I'll put that into a docker compose file and post it here.

version: "3.6"

services:
  cs2-competitive:
    image: joedwards32/cs2
    container_name: cs2_competitive
    volumes:
      - /home/<home_dir>/cs2-data:/home/steam/cs2-dedicated/
    ports:
      - <local ip>:27015:27015/udp
      - <local ip>:27015:27015/tcp
    environment:
      - STEAMUSER=xxxxxx
      - STEAMPASS=xxxxxx
      - CS2_IP=<local ip>
      - CS2_SERVERNAME=CS2 - Competitive
      - CS2_PORT=27015
      - CS2_MAXPLAYERS=10
      - CS2_MAPGROUP=mg_active
      - CS2_STARTMAP=de_inferno

Closing the issue, thanks for the help!