GameServerManagers / LinuxGSM

The command-line tool for quick, simple deployment and management of Linux dedicated game servers.
https://linuxgsm.com
MIT License
4.18k stars 801 forks source link

[Bug]: startparams should be missing for cs2server #4457

Open Toutzn opened 5 months ago

Toutzn commented 5 months ago

User story

need to fix a bug

Game

cs2server

Linux distro

Debian 12

Command

command: start

Further information

After update of the linuxgsm tool via cs2server ul the cs2server crahses with segfault. I investigated some time, because there was a cs2 update as well. After recovering backup everything was fine. I updates the linuxgsm first, then the cs2 server files I had the same issue. I recovered the backup again but did only the cs2 server update, everything was fine. the up updated the linuxgsm files, I got the issue again.

in that case, there must something with the start script or modules which shows me in the ps ax not all params.

before:

   6695 ?        Ss     0:00 tmux -L cs2server-50eb8943 new-session -d -x 80 -y 23 -s cs2server  ./cs2 -dedicated -ip 0.0.0.0 -port 27015 -maxplayers 12 -tickrate 128 -serverlogging +sv_setsteamaccount XXXXXXXXXXXXXXXXXXXXX +map de_dust2 +game_type 0 +game_mode 1 +sv_game_mode_flags 0 +sv_skirmish_id 0 +sv_logfile 1 +exec cs2server.cfg
   6696 pts/2    Ssl+   0:14 ./cs2 -dedicated -ip 0.0.0.0 -port 27015 -maxplayers 12 -tickrate 128 -serverlogging +sv_setsteamaccount XXXXXXXXXXXXXXXXXXXXX +map de_dust2 +game_type 0 +game_mode 1 +sv_game_mode_flags 0 +sv_skirmish_id 0 +sv_logfile 1 +exec cs2server.cfg

after:

  13166 ?        Ss     0:00 tmux -L cs2server-50eb8943 new-session -d -x 80 -y 23 -s cs2server  ./cs2 -dedicated -ip 0.0.0.0 -port 27015 -maxplayers 12 -authkey  +exec cs2server.cfg
  13167 pts/2    Ssl+   0:02 ./cs2 -dedicated -ip 0.0.0.0 -port 27015 -maxplayers 12 -authkey +exec cs2server.cfg

Relevant log output

Loaded /home/lgsm/serverfiles/game/bin/linuxsteamrt64/libengine2.so, got 0x6323e1332ce0

Console initialized.
Steam AppId(730), BreakpadId(2347771)
InitSteamLogin_Internal: Initializing breakpad.
Using breakpad crash handler
Steam Universe is invalid, possibly asking before Steam was successfully initialized.
ResetBreakpadAppId: Universe is 0 (k_EUniverseInvalid)
ResetBreakpadAppId: Setting dedicated server app id: 2347773
Setting breakpad minidump AppID = 2347773
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Loaded libSDL3.so.0, got 0x6323e1430740
Loaded /home/lgsm/serverfiles/game/bin/linuxsteamrt64/libtier0.so, got 0x6323e131c0f0
Visibility enabled.
Loaded /home/lgsm/serverfiles/game/bin/linuxsteamrt64/libfilesystem_stdio.so, got 0x6323e1430c20
Unknown read error 21
USRLOCAL path not found!
Loaded /home/lgsm/serverfiles/game/bin/linuxsteamrt64/liblocalize.so, got 0x6323e1443160
Loaded /home/lgsm/serverfiles/game/bin/linuxsteamrt64/librendersystemempty.so, got 0x6323e1455280
Loaded /home/lgsm/serverfiles/game/bin/linuxsteamrt64/libresourcesystem.so, got 0x6323e14677c0
Loaded /home/lgsm/serverfiles/game/bin/linuxsteamrt64/libschemasystem.so, got 0x6323e1479d00
Trying to set dxlevel (111) which is higher than the card can support (110)!
Loaded /home/lgsm/serverfiles/game/bin/linuxsteamrt64/libmaterialsystem2.so, got 0x6323e148be20
---------------
Path ID:             File Path:
ADDONS               "/home/lgsm/serverfiles/game/csgo_addons/"
CONTENT              "/home/lgsm/serverfiles/content/csgo/addons/metamod/"
CONTENT              "/home/lgsm/serverfiles/content/csgo/"
CONTENT              "/home/lgsm/serverfiles/content/csgo_imported/"
CONTENT              "/home/lgsm/serverfiles/content/csgo_core/"
CONTENT              "/home/lgsm/serverfiles/content/core/"
CONTENTADDONS        "/home/lgsm/serverfiles/content/csgo_addons/"
CONTENTROOT          "/home/lgsm/serverfiles/content/"
DEFAULT_WRITE_PATH   "/home/lgsm/serverfiles/game/csgo/addons/metamod/"
EXECUTABLE_PATH      "/home/lgsm/serverfiles/game/bin/linuxsteamrt64/"
GAME                 "/home/lgsm/serverfiles/game/csgo/pak01.vpk" (vpk) /home/lgsm/serverfiles/game/csgo/pak01.vpk
GAME                 "/home/lgsm/serverfiles/game/csgo_imported/pak01.vpk" (vpk) /home/lgsm/serverfiles/game/csgo_imported/pak01.vpk
GAME                 "/home/lgsm/serverfiles/game/csgo_core/pak01.vpk" (vpk) /home/lgsm/serverfiles/game/csgo_core/pak01.vpk
GAME                 "/home/lgsm/serverfiles/game/core/pak01.vpk" (vpk) /home/lgsm/serverfiles/game/core/pak01.vpk
GAME                 "/home/lgsm/serverfiles/game/csgo/addons/metamod/"
GAME                 "/home/lgsm/serverfiles/game/csgo/"
GAME                 "/home/lgsm/serverfiles/game/csgo_imported/"
GAME                 "/home/lgsm/serverfiles/game/csgo_core/"
GAME                 "/home/lgsm/serverfiles/game/core/"
GAMEBIN              "/home/lgsm/serverfiles/game/csgo/addons/metamod/bin/linuxsteamrt64/"
GAMEBIN              "/home/lgsm/serverfiles/game/csgo/addons/metamod/bin/"
GAMEBIN              "/home/lgsm/serverfiles/game/csgo/bin/linuxsteamrt64/"
GAMEBIN              "/home/lgsm/serverfiles/game/csgo/bin/"
GAMEBIN              "/home/lgsm/serverfiles/game/csgo_imported/bin/linuxsteamrt64/"
GAMEBIN              "/home/lgsm/serverfiles/game/csgo_imported/bin/"
GAMEBIN              "/home/lgsm/serverfiles/game/csgo_core/bin/linuxsteamrt64/"
GAMEBIN              "/home/lgsm/serverfiles/game/csgo_core/bin/"
GAMEBIN              "/home/lgsm/serverfiles/game/core/bin/linuxsteamrt64/"
GAMEBIN              "/home/lgsm/serverfiles/game/core/bin/"
GAMEROOT             "/home/lgsm/serverfiles/game/"
MOD                  "/home/lgsm/serverfiles/game/csgo/pak01.vpk" (vpk) /home/lgsm/serverfiles/game/csgo/pak01.vpk
MOD                  "/home/lgsm/serverfiles/game/csgo_imported/pak01.vpk" (vpk) /home/lgsm/serverfiles/game/csgo_imported/pak01.vpk
MOD                  "/home/lgsm/serverfiles/game/csgo_core/pak01.vpk" (vpk) /home/lgsm/serverfiles/game/csgo_core/pak01.vpk
MOD                  "/home/lgsm/serverfiles/game/csgo/"
MOD                  "/home/lgsm/serverfiles/game/csgo_imported/"
MOD                  "/home/lgsm/serverfiles/game/csgo_core/"
PLATFORM             "/home/lgsm/serverfiles/game/core/pak01.vpk" (vpk) /home/lgsm/serverfiles/game/core/pak01.vpk
PLATFORM             "/home/lgsm/serverfiles/game/core/"
SHADER_SOURCE        "/home/lgsm/serverfiles/src/shaders/csgo/addons/metamod/"
SHADER_SOURCE        "/home/lgsm/serverfiles/src/shaders/csgo/"
SHADER_SOURCE        "/home/lgsm/serverfiles/src/shaders/csgo_imported/"
SHADER_SOURCE        "/home/lgsm/serverfiles/src/shaders/csgo_core/"
SHADER_SOURCE        "/home/lgsm/serverfiles/src/shaders/core/"
SHADER_SOURCE_MOD    "/home/lgsm/serverfiles/src/shaders/csgo/addons/metamod/"
SHADER_SOURCE_ROOT   "/home/lgsm/serverfiles/src/shaders/"
command line arguments:
-dedicated -ip 0.0.0.0 -port 27015 -maxplayers 12 -authkey +exec cs2server.cfg
Loaded /home/lgsm/serverfiles/game/bin/linuxsteamrt64/libmeshsystem.so, got 0x6323e149e780
Loaded /home/lgsm/serverfiles/game/bin/linuxsteamrt64/libworldrenderer.so, got 0x6323e14b0cc0
Loaded /home/lgsm/serverfiles/game/bin/linuxsteamrt64/libpulse_system.so, got 0x6323e14c3200
Loaded /home/lgsm/serverfiles/game/bin/linuxsteamrt64/libvscript.so, got 0x6323e14d7cc0
Loaded /home/lgsm/serverfiles/game/bin/linuxsteamrt64/libnetworksystem.so, got 0x6323e14e9de0
Loaded /home/lgsm/serverfiles/game/bin/linuxsteamrt64/libanimationsystem.so, got 0x6323e14fe420
Loaded /home/lgsm/serverfiles/game/bin/linuxsteamrt64/libvphysics2.so, got 0x6323e1514320
Loaded /home/lgsm/serverfiles/game/bin/linuxsteamrt64/libsoundsystem.so, got 0x6323e15274c0
Loaded /home/lgsm/serverfiles/game/bin/linuxsteamrt64/libscenesystem.so, got 0x6323e153d3c0
Loaded /home/lgsm/serverfiles/game/bin/linuxsteamrt64/libv8system.so, got 0x6323e1552a80
Network System Initialized
Loaded /home/lgsm/serverfiles/game/bin/linuxsteamrt64/libserver_valve.so, got (nil)
 failed to dlopen /home/lgsm/serverfiles/game/bin/linuxsteamrt64/libserver_valve.so error=/home/lgsm/serverfiles/game/bin/linuxsteamrt64/libserver_valve.so: cannot open shared object file: No such file or directory
 failed to dlopen "/home/lgsm/serverfiles/game/bin/linuxsteamrt64/libserver_valve.so" error=/home/lgsm/serverfiles/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
 failed to dlopen "libserver_valve.so" error=libserver_valve.so: cannot open shared object file: No such file or directory
Loaded /home/lgsm/serverfiles/game/csgo/addons/metamod/bin/linuxsteamrt64/libserver.so, got 0x6323e156c8d0
Physics Console Communications is not initialized
Loaded /home/lgsm/serverfiles/game/bin/linuxsteamrt64/libengine2.so, got 0x6323e1332ce0
Loaded /home/lgsm/serverfiles/game/csgo/bin/linuxsteamrt64/libhost.so, got 0x6323e159ea10
Loaded /home/lgsm/serverfiles/game/bin/linuxsteamrt64/libscenefilecache.so, got 0x6323e15b1fd0
Loaded /home/lgsm/serverfiles/game/bin/linuxsteamrt64/libparticles.so, got 0x6323e15c40f0
Loaded /home/lgsm/serverfiles/game/csgo/bin/linuxsteamrt64/libmatchmaking.so, got 0x6323e15d7ad0
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).
[19:49:42.888] CSSharp: Initializing
[19:49:42.888] CSSharp: CoreConfig loaded.
[19:49:42.888] CSSharp: Globals loaded.
[19:49:42.905] CSSharp: Loading .NET runtime...
[19:49:42.905] CSSharp: Loading hostfxr from /home/lgsm/serverfiles/game/csgo/addons/counterstrikesharp/dotnet/host/fxr/7.0.11/libhostfxr.so
[19:49:42.905] CSSharp: .NET Runtime Initialised.
[19:49:42.905] CSSharp: Loading CSS API, Runtime Config: /home/lgsm/serverfiles/game/csgo/addons/counterstrikesharp/api/CounterStrikeSharp.API.runtimeconfig.json
Loading CoreConfig from "configs/core.json"
Loaded core configuration
Loading GameData from "gamedata/gamedata.json"
Loaded game data with 12 methods.
Loading Admins from "configs/admins.json"
Loaded admin data with 0 admins.
Loading C# plugins...
Plugin path: /home/lgsm/serverfiles/game/csgo/addons/counterstrikesharp/plugins/PugSharp/PugSharp.dll
Loading plugin: PugSharp
info: PugSharp.Application[0]
      Begin RegisterEventHandlers
Registering listener for OnMapStart with 1
info: PugSharp.Application[0]
      End RegisterEventHandlers
Finished loading plugin: PugSharp Plugin
All managed modules were loaded. 1 plugins loaded.
[19:49:43.382] CSSharp: CounterStrikeSharp.API Loaded Successfully.
[19:49:43.382] CSSharp: Hooks added.
Event System loaded 93 events from file: vpk:/home/lgsm/serverfiles/game/core/pak01.vpk:resource/core.gameevents.
Event System loaded 50 events from file: vpk:/home/lgsm/serverfiles/game/csgo/pak01.vpk:resource/game.gameevents.
Event System loaded 152 events from file: vpk:/home/lgsm/serverfiles/game/csgo/pak01.vpk:./resource/mod.gameevents.
CEntitySystem::BuildEntityNetworking (parallel build of server) took 62.206 msecs for 218 out of 297 classes
[STARTUP] {1.904} server module init ok
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)
execing cs2server.cfg
Server logging enabled.
Unknown command 'sv_hibernate_ms'!
Unknown command 'host_name_store'!
Unknown command 'host_info_show'!
Unknown command 'host_players_show'!
execing banned_user.cfg
execing banned_ip.cfg
Unknown command 'sv_mincmdrate'!
Unknown command 'sv_minupdaterate'!
quit
CHostStateMgr::QueueNewRequest( Quitting, 2 )
HostStateRequest::Start(HSR_QUIT)
Host activate: Quitting
Dispatching EventAppShutdown_t {
Requested non-existent write path USRLOCAL!
Requested non-existent write path USRLOCAL!
Error writing user config file 'cfg/cs2_user_keys_0_slot0.vcfg'
Error writing user config file 'cfg/cs2_user_convars_0_slot0.vcfg'
} Dispatched EventAppShutdown_t
Requested non-existent write path USRLOCAL!
MainLoop returning
Source2Shutdown
ShutdownSource2Logging
CNetworkSystem::Shutdown()
CNetworkSystem::CloseAllSockets()
Forgot to remove resource type manager for type vpost!
Forgot to remove resource type manager for type vpcf!
Forgot to remove resource type manager for type vsnap!
Segmentation fault

Steps to reproduce

No response

Kirzilla commented 2 months ago

Command quit in log is probably saying that you hav monitoring enabled that is checking instance that is not started yet and asking to quit instance that is not responding (it is not started yet). I could be wrong, but it is worth checking.