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
92 stars 23 forks source link

Garry's mod instance fails to start #79

Closed Bm1170 closed 1 year ago

Bm1170 commented 3 years ago

attempting to run the server manually:

************** WARNING ***************
Running the dedicated server as root  
is highly discouraged. It is generally
unnecessary to use root privileges to 
execute the dedicated server.         
**************************************

WARNING: No map specified! Defaulting to gm_construct
Auto detecting CPU
Using default binary: ./srcds_linux
Enabling debug mode
./srcds_run: 182: ulimit: error setting limit (Operation not permitted)
Server will auto-restart if there is a crash.
tcmalloc: large alloc 4286955520 bytes == (nil) @ 
Failed to load keyvalues file cfg/mount.cfg!
tcmalloc: large alloc 4286955520 bytes == (nil) @ 
Couldn't load shader dll: game_shader_generic_garrysmod_srv.soConVarRef mat_dxlevel doesn't point to an existing ConVar
Game_srv.so loaded for "Garry's Mod"
Setting breakpad minidump AppID = 4000
tcmalloc: large alloc 4286955520 bytes == (nil) @ 
---------------
Paths:
--- ENGINECORE ---
"/home/amp/.ampdata/instances/test/srcds/4020/bin/" "EXECUTABLE_PATH" 
"/home/amp/.ampdata/instances/test/srcds/4020/" "BASE_PATH" 
"/home/amp/.ampdata/instances/test/srcds/4020/garrysmod/bin/" "GAMEBIN" 
"/home/amp/.ampdata/instances/test/srcds/4020/garrysmod/" "LOGDIR" 
--- GMODCORE ---
"/home/amp/.ampdata/instances/test/srcds/4020/garrysmod/workshop/" "GAME" 
"/home/amp/.ampdata/instances/test/srcds/4020/garrysmod/workshop/" "workshop" 
"/home/amp/.ampdata/instances/test/srcds/4020/garrysmod/workshop/" "thirdparty" 
"/home/amp/.ampdata/instances/test/srcds/4020/garrysmod/garrysmod.vpk" "MOD" (VPK)
"/home/amp/.ampdata/instances/test/srcds/4020/garrysmod/garrysmod.vpk" "GAME" (VPK)
"/home/amp/.ampdata/instances/test/srcds/4020/garrysmod/garrysmod.vpk" "garrysmod" (VPK)
"/home/amp/.ampdata/instances/test/srcds/4020/garrysmod/overrides/" "MOD" 
"/home/amp/.ampdata/instances/test/srcds/4020/garrysmod/overrides/" "GAME" 
"/home/amp/.ampdata/instances/test/srcds/4020/garrysmod/overrides/" "garrysmod" 
"/home/amp/.ampdata/instances/test/srcds/4020/garrysmod/" "MOD" 
"/home/amp/.ampdata/instances/test/srcds/4020/garrysmod/" "MOD_WRITE" 
"/home/amp/.ampdata/instances/test/srcds/4020/garrysmod/" "DEFAULT_WRITE_PATH" 
"/home/amp/.ampdata/instances/test/srcds/4020/garrysmod/" "GAME" 
"/home/amp/.ampdata/instances/test/srcds/4020/garrysmod/" "GAME_WRITE" 
"/home/amp/.ampdata/instances/test/srcds/4020/garrysmod/" "garrysmod" 
--- SOURCESDK ---
"/home/amp/.ampdata/instances/test/srcds/4020/sourceengine/hl2_misc.vpk" "GAME" (VPK)
"/home/amp/.ampdata/instances/test/srcds/4020/sourceengine/hl2_sound_misc.vpk" "GAME" (VPK)
"/home/amp/.ampdata/instances/test/srcds/4020/sourceengine/hl2_sound_vo_english.vpk" "GAME" (VPK)
"/home/amp/.ampdata/instances/test/srcds/4020/sourceengine/hl2_textures.vpk" "GAME" (VPK)
"/home/amp/.ampdata/instances/test/srcds/4020/sourceengine/" "GAME" 
"/home/amp/.ampdata/instances/test/srcds/4020/platform/platform_misc.vpk" "GAME" (VPK)
"/home/amp/.ampdata/instances/test/srcds/4020/platform/" "GAME" 
--- DOWNLOADS ---
"/home/amp/.ampdata/instances/test/srcds/4020/garrysmod/download/" "GAME" 
"/home/amp/.ampdata/instances/test/srcds/4020/garrysmod/download/" "DOWNLOAD" 
--- FALLBACKS ---
"/home/amp/.ampdata/instances/test/srcds/4020/garrysmod/fallbacks.vpk" "GAME" (VPK)
"/home/amp/.ampdata/instances/test/srcds/4020/garrysmod/fallbacks.vpk" "MOD" (VPK)
"/home/amp/.ampdata/instances/test/srcds/4020/garrysmod/fallbacks/" "GAME" 
"/home/amp/.ampdata/instances/test/srcds/4020/garrysmod/fallbacks/" "MOD" 
LOAD FROM FILE FAILED resource/serverevents.res
LOAD FROM FILE FAILED resource/serverevents.res

LOAD FROM FILE FAILED resource/serverevents.res

Segmentation fault
cat: hlds.4481.pid: No such file or directory
email debug.log to linux@valvesoftware.com
Thu Jun 17 04:48:40 AM EDT 2021: Server restart in 10 seconds

AMPLOG 2021-06-17 03-43-36.log

Glitchy02 commented 3 years ago

Hi, I think I'm getting a similar issue to the OP. This was taken from trying to startup srcds_linux-20210619-222949.sh through the terminal after following the diagnosing app startup issues (https://github.com/CubeCoders/AMP/wiki/Diagnosing-AMP-issues). (Also, I can't launch TF2 servers either, but I figure fixing one will fix the other) If it helps, I'm running this through Unraid.


Failed to load keyvalues file cfg/mount.cfg!
tcmalloc: large alloc 4290625536 bytes == (nil) @ 
Couldn't load shader dll: game_shader_generic_garrysmod_srv.soConVarRef mat_dxlevel doesn't point to an existing ConVar
Game_srv.so loaded for "Garry's Mod"
Setting breakpad minidump AppID = 4000
tcmalloc: large alloc 4290625536 bytes == (nil) @ 
---------------
Paths:
--- ENGINECORE ---
"/home/amp/.ampdata/instances/Gmod/srcds/4020/bin/" "EXECUTABLE_PATH" 
"/home/amp/.ampdata/instances/Gmod/srcds/4020/" "BASE_PATH" 
"/home/amp/.ampdata/instances/Gmod/srcds/4020/garrysmod/bin/" "GAMEBIN" 
"/home/amp/.ampdata/instances/Gmod/srcds/4020/garrysmod/" "LOGDIR" 
--- GMODCORE ---
"/home/amp/.ampdata/instances/Gmod/srcds/4020/garrysmod/workshop/" "GAME" 
"/home/amp/.ampdata/instances/Gmod/srcds/4020/garrysmod/workshop/" "workshop" 
"/home/amp/.ampdata/instances/Gmod/srcds/4020/garrysmod/workshop/" "thirdparty" 
"/home/amp/.ampdata/instances/Gmod/srcds/4020/garrysmod/garrysmod.vpk" "MOD" (VPK)
"/home/amp/.ampdata/instances/Gmod/srcds/4020/garrysmod/garrysmod.vpk" "GAME" (VPK)
"/home/amp/.ampdata/instances/Gmod/srcds/4020/garrysmod/garrysmod.vpk" "garrysmod" (VPK)
"/home/amp/.ampdata/instances/Gmod/srcds/4020/garrysmod/overrides/" "MOD" 
"/home/amp/.ampdata/instances/Gmod/srcds/4020/garrysmod/overrides/" "GAME" 
"/home/amp/.ampdata/instances/Gmod/srcds/4020/garrysmod/overrides/" "garrysmod" 
"/home/amp/.ampdata/instances/Gmod/srcds/4020/garrysmod/" "MOD" 
"/home/amp/.ampdata/instances/Gmod/srcds/4020/garrysmod/" "MOD_WRITE" 
"/home/amp/.ampdata/instances/Gmod/srcds/4020/garrysmod/" "DEFAULT_WRITE_PATH" 
"/home/amp/.ampdata/instances/Gmod/srcds/4020/garrysmod/" "GAME" 
"/home/amp/.ampdata/instances/Gmod/srcds/4020/garrysmod/" "GAME_WRITE" 
"/home/amp/.ampdata/instances/Gmod/srcds/4020/garrysmod/" "garrysmod" 
--- SOURCESDK ---
"/home/amp/.ampdata/instances/Gmod/srcds/4020/sourceengine/hl2_misc.vpk" "GAME" (VPK)
"/home/amp/.ampdata/instances/Gmod/srcds/4020/sourceengine/hl2_sound_misc.vpk" "GAME" (VPK)
"/home/amp/.ampdata/instances/Gmod/srcds/4020/sourceengine/hl2_sound_vo_english.vpk" "GAME" (VPK)
"/home/amp/.ampdata/instances/Gmod/srcds/4020/sourceengine/hl2_textures.vpk" "GAME" (VPK)
"/home/amp/.ampdata/instances/Gmod/srcds/4020/sourceengine/" "GAME" 
"/home/amp/.ampdata/instances/Gmod/srcds/4020/platform/platform_misc.vpk" "GAME" (VPK)
"/home/amp/.ampdata/instances/Gmod/srcds/4020/platform/" "GAME" 
--- DOWNLOADS ---
"/home/amp/.ampdata/instances/Gmod/srcds/4020/garrysmod/download/" "GAME" 
"/home/amp/.ampdata/instances/Gmod/srcds/4020/garrysmod/download/" "DOWNLOAD" 
--- FALLBACKS ---
"/home/amp/.ampdata/instances/Gmod/srcds/4020/garrysmod/fallbacks.vpk" "GAME" (VPK)
"/home/amp/.ampdata/instances/Gmod/srcds/4020/garrysmod/fallbacks.vpk" "MOD" (VPK)
"/home/amp/.ampdata/instances/Gmod/srcds/4020/garrysmod/fallbacks/" "GAME" 
"/home/amp/.ampdata/instances/Gmod/srcds/4020/garrysmod/fallbacks/" "MOD" 
LOAD FROM FILE FAILED resource/serverevents.res
LOAD FROM FILE FAILED resource/serverevents.res

LOAD FROM FILE FAILED resource/serverevents.res

./srcds_linux-20210619-222949.sh: line 6:  1024 Segmentation fault      "/home/amp/.ampdata/instances/Gmod/srcds/4020/srcds_linux" -game garrysmod -console -usercon -ip 172.17.0.6 -port 27015 +rcon_password x +map gm_flatgrass +maxplayers 8 +hostname "Source Dedicated Server - Powered by AMP" +sv_password +sv_pure 1 +log on +gamemode sandbox +logaddress_add 172.17.0.6:54705```
MitchTalmadge commented 3 years ago

Thanks for the reports! What are your UID/GID set to in the docker config?

MitchTalmadge commented 3 years ago

Also feel free to try version mitchtalmadge/amp-dockerized:staging-20.04 and see if the issue goes away. Thank you!

Bm1170 commented 3 years ago

I looked through advanced settings and everything in mitchtalmadge/amp-dockerized and looks like UID/GID are not set in the config. I will try the 20.04 branch though and see if it works then.

Bm1170 commented 3 years ago

Same problem with 20.04

MikeyC3040 commented 3 years ago

Also having this issue with both latest and 20.04 running through unraid. Game files validated and dependencies manually installed. It is the case for both AMP user and root user.

0xFFFFFFFFFFFFFFFFFF commented 1 year ago

I'm having the same issue although it only occurs on my root server, while the same image and docker version runs on my desktop machine just fine. I wonder if it correlates to the file system being used since my server is running on XFS while my desktop uses BTRFS. I seem to remember that the source engine has been prone to problems with some file systems.

MitchTalmadge commented 1 year ago

This may be fixed by the latest release. Please test and re-open if there is still a failure. Thanks!