Giter VIP home page Giter VIP logo

docker-garrysmod's Introduction

docker-garrysmod's People

Contributors

hackebein avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

blutril getcoff3e

docker-garrysmod's Issues

Error on start: SteamUpdater: Error: Download failed: http error 0

My docker-compose:

version: '3'
services:
server:
image: hackebein/garrysmod:latest
ports:
- 27015:27015
environment:
- GLST=xyz
- WORKSHOPCOLLECTIONID=1138474870
volumes:
- ./my.terrortown.cfg:/opt/garrysmod/garrysmod/volume/

The error inside the docker container:

server_1 | Redirecting stderr to '/root/.steam/logs/stderr.txt'
server_1 | ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt".
server_1 | [ 0%] Checking for available update...
server_1 | SteamUpdater: Error: Download failed: http error 0
server_1 | [ 0%] Download Complete.
server_1 | [----] Verifying installation...
server_1 | [ 0%] Downloading Update...
server_1 | [ 0%] Checking for available update...
server_1 | SteamUpdater: Error: Download failed: http error 0
server_1 | [ 0%] Download Complete.
server_1 | SteamUpdater: Error: Steam needs to be online to update. Please confirm your network connection and try again.
server_1 | [ 0%] !!! Fatal Error: Steam needs to be online to update. Please confirm your network connection and try again.
server_1 | entrypoint.sh: line 19: ./srcds_run: No such file or directory
gmod_server_1 exited with code 127

Do you maybe have a solution for me? I am using Debian Stretch and got the latest docker on my server..

AUTHKEY not working for me

Thanks for the possibility to have a GM server as a docker container.

Currently I encounter to the issue that my AUTHKEY seems not to work.

ttt-server  | GLST can't be created! Check your AUTHKEY, GLSTAPP and account requirements

I generated the API key again but woth the same issue.

Do you know if I do something wrong?

FastDL

Is there a FastDL environment variable?

Can I mount the garrysmod files?

Hey, can I mount the garrysmod files so I can place my own lua scripts and edit some options? I've only seen the option to mount the server.cfg.

Support for betas, especially x86-64

MySQLOO, a popular module for connecting to MySQL and MariaDB databases from a Garry's Mod server recently dropped support for x86 systems due to lack of x86 builds of MySQL 8. This module might not work with the default x86 and allowing betas and especially x86-64 could fix possible problems.

no TTY (-t) detected

Starting with a recent update my container will no longer start, giving the error:
no TTY (-t) detected
Steam needs it. Exit.

Env WORKSHOPDL will add linked collections into WorkshopDL.lua instead of expanding them

When setting WORKSHOPDL to a collection that contains linked collections, the generated WorkshopDL.lua file will contain
resource.AddWorkshop("<Linked collection id>") calls, which are not supported by resource.AddWorkshop.

In the best case WORKSHOPDL should recursively expand collections, while avoiding loops.
Alternatively if they can be detected, linked collections should be omitted from WorkshopDL.lua and it should be documented to only set WORKSHOPDL to "flat" collections.

I personally would prefer the first approach since I often structure my collections by linking them, e.g. to separate maps from gameplay add-ons.

Steamcmd offline

Since yesterday I receive this error on docker start:

!!! Fatal Error: Steamcmd needs to be online to update. Please confirm your network connection and try again.

It seems my docker just doesn't want to talk to the internet anymore. And I have no idea why. My host has no problem to connect to the internet.
And a simple alpine:latest docker container also doesn't have any problem connecting to the internet.

Can't connect to server on localhost (windows)

Sorry I'm asking for support, not an issue. I'm running this on docker on Windows and I can't connect to the server - I see it in 'browse local games' but whenever I try to connect I get the failed after 6 retries. I'm on Windows 10 using WSL 2 backend, disabled windows firewall.

I've tried in the garrys mod console to connect via 127.0.0.1, my local 192.168.1.x address and my public ip address, also by clicking on the server in the local browser - I get the same failed after 6 retries message every way.

docker-compose.yml:

version: '3.3'
services:
    garrysmod:
        ports:
            - '27015:27015/tcp'
            - '27015:27015/udp'
        environment:
            - AUTHKEY=...
            - GAMEMODE=murder
            - MAP=cs_office
            - WORKSHOP=2530469034
            - WORKSHOPDL=247622320
        volumes:
            - './server.cfg:/opt/steam/garrysmod/cfg/server.cfg'
            - './overlay:/opt/overlay'
        image: hackebein/garrysmod
        stdin_open: true
        tty: true

server.cfg is empty

Container output:

Redirecting stderr to '/opt/steam/Steam/logs/stderr.txt'
/tmp/dumps insufficient permissions - delete and recreate
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...OK.

Connecting anonymously to Steam Public...Logged in OK
Waiting for user info...OK
 Update state (0x5) verifying install, progress: 0.18 (4196506 / 2288547467)
 Update state (0x5) verifying install, progress: 11.89 (272059968 / 2288547467)
 Update state (0x5) verifying install, progress: 26.47 (605819831 / 2288547467)
 Update state (0x5) verifying install, progress: 41.12 (941159429 / 2288547467)
 Update state (0x5) verifying install, progress: 55.79 (1276857242 / 2288547467)
 Update state (0x5) verifying install, progress: 70.29 (1608712782 / 2288547467)
 Update state (0x5) verifying install, progress: 84.56 (1935188926 / 2288547467)
 Update state (0x5) verifying install, progress: 97.15 (2223434634 / 2288547467)
Warning: failed to init SDL thread priority manager: SDL not found
 Update state (0x61) downloading, progress: 0.81 (378188 / 46492709)
 Update state (0x61) downloading, progress: 17.69 (8223357 / 46492709)
 Update state (0x61) downloading, progress: 17.69 (8223357 / 46492709)
 Update state (0x61) downloading, progress: 50.04 (23263896 / 46492709)
 Update state (0x81) verifying update, progress: 78.70 (36587869 / 46492709)
Success! App '232330' fully installed.
Redirecting stderr to '/opt/steam/Steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...OK.

Connecting anonymously to Steam Public...Logged in OK
Waiting for user info...OK
 Update state (0x5) verifying install, progress: 0.00 (150333 / 3982117999)
 Update state (0x5) verifying install, progress: 5.73 (228182992 / 3982117999)
 Update state (0x5) verifying install, progress: 14.19 (564945879 / 3982117999)
 Update state (0x5) verifying install, progress: 22.42 (892714768 / 3982117999)
 Update state (0x5) verifying install, progress: 29.65 (1180498976 / 3982117999)
 Update state (0x5) verifying install, progress: 38.10 (1517326618 / 3982117999)
 Update state (0x5) verifying install, progress: 46.64 (1857269642 / 3982117999)
Warning: failed to init SDL thread priority manager: SDL not found
 Update state (0x5) verifying install, progress: 55.09 (2193559843 / 3982117999)
 Update state (0x5) verifying install, progress: 63.56 (2530881211 / 3982117999)
 Update state (0x5) verifying install, progress: 71.99 (2866917380 / 3982117999)
 Update state (0x5) verifying install, progress: 80.42 (3202238557 / 3982117999)
 Update state (0x5) verifying install, progress: 88.86 (3538390499 / 3982117999)
 Update state (0x5) verifying install, progress: 97.07 (3865635855 / 3982117999)
 Update state (0x61) downloading, progress: 0.00 (0 / 53344519)
 Update state (0x61) downloading, progress: 14.92 (7959386 / 53344519)
 Update state (0x61) downloading, progress: 70.50 (37606935 / 53344519)
Success! App '4020' fully installed.
Try to created GLST
Created GLST: B9BAB01785A610E5B451D6AAB950374C (1a190551f79c) for APPID 4000


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


The server will continue to launch in 10 seconds
The server will continue to launch in 9 seconds
The server will continue to launch in 8 seconds
The server will continue to launch in 7 seconds
The server will continue to launch in 6 seconds
The server will continue to launch in 5 seconds
The server will continue to launch in 4 seconds
The server will continue to launch in 3 seconds
The server will continue to launch in 2 seconds
The server will continue to launch in 1 seconds
Auto detecting CPU
Using default binary: ./srcds_linux
Server will auto-restart if there is a crash.
mount.cfg adding path: '/opt/steam/Steam'
mount.cfg adding path: '/opt/steam/cstrike'
mount.cfg adding path: '/opt/steam/hl2'
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
Initializing Steam libraries for Workshop..
[S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
CAppInfoCacheReadFromDiskThread took 3 milliseconds to initialize
CApplicationManagerPopulateThread took 0 milliseconds to initialize (will have waited on CAppInfoCacheReadFromDiskThread)
RecordSteamInterfaceCreation (PID 146): SteamGameServer013 / 
RecordSteamInterfaceCreation (PID 146): SteamUtils010 / 
RecordSteamInterfaceCreation (PID 146): SteamGameServer013 / 
RecordSteamInterfaceCreation (PID 146): SteamUtils010 / 
RecordSteamInterfaceCreation (PID 146): SteamNetworking006 / 
RecordSteamInterfaceCreation (PID 146): SteamGameServerStats001 / 
RecordSteamInterfaceCreation (PID 146): STEAMHTTP_INTERFACE_VERSION003 / 
RecordSteamInterfaceCreation (PID 146): STEAMINVENTORY_INTERFACE_V003 / 
RecordSteamInterfaceCreation (PID 146): STEAMUGC_INTERFACE_VERSION014 / 
RecordSteamInterfaceCreation (PID 146): STEAMAPPS_INTERFACE_VERSION008 / 
[S_API FAIL] Tried to access Steam interface SteamUser021 before SteamAPI_Init succeeded.
RecordSteamInterfaceCreation (PID 146): SteamGameServer013 / 
RecordSteamInterfaceCreation (PID 146): SteamUtils010 / 
RecordSteamInterfaceCreation (PID 146): SteamNetworking006 / 
RecordSteamInterfaceCreation (PID 146): SteamGameServerStats001 / 
RecordSteamInterfaceCreation (PID 146): STEAMHTTP_INTERFACE_VERSION003 / 
RecordSteamInterfaceCreation (PID 146): STEAMINVENTORY_INTERFACE_V003 / 
RecordSteamInterfaceCreation (PID 146): STEAMUGC_INTERFACE_VERSION014 / 
RecordSteamInterfaceCreation (PID 146): STEAMAPPS_INTERFACE_VERSION008 / 
-authkey is no longer required by Garry's Mod. You can safely remove it from your server's launch options.
RecordSteamInterfaceCreation (PID 146): STEAMUGC_INTERFACE_VERSION014 / UGC
RecordSteamInterfaceCreation (PID 146): SteamGameServer013 / GameServer
WS: Waiting for Steam to log us in......
WS: Fetching collection info...
Processing collection 2530469034...
RecordSteamInterfaceCreation (PID 146): SteamUtils010 / Utils
   Collection 'Mechanical Minds Murder' (5 items)
   Retrieving item details...
   5 new addon(s)
WS: Finished!

WS: Processing 5 addons...
Processing addon 5: de_forest (106821161)...
   Mounted!
Processing addon 4: House With Garden v2 (160586516)...
   Mounted!
Processing addon 3: md_clue (217808514)...
   Mounted!
Processing addon 2: Murder (187073946)...
   Mounted!
Processing addon 1: MU_Nightmare_Church - [Official Murder Gamemode Map Support!] - 14th July 2014 - Final (225468579)...
   Mounted!
WS: Finished!
Could not find steamerrorreporter binary. Any minidumps will be uploaded in-processUnknown command "cl_cmdrate"
Unknown command "cl_updaterate"
Unknown command "rate"
Changing gamemode to Murder (murder)
Network: IP 172.18.0.2, mode MP, dedicated Yes, ports 27015 SV / 27005 CL
PREP OK
Making workshop gamemode available for client download
ConVarRef room_type doesn't point to an existing ConVar
Executing dedicated server config file server.cfg
Using map cycle file cfg/mapcycle.txt.
Attempted to create unknown entity type info_ladder!
Attempted to create unknown entity type hostage_entity!
Attempted to create unknown entity type hostage_entity!
Attempted to create unknown entity type hostage_entity!
Attempted to create unknown entity type hostage_entity!
Attempted to create unknown entity type info_ladder!
Attempted to create unknown entity type func_buyzone!
Attempted to create unknown entity type func_buyzone!
Attempted to create unknown entity type func_hostage_rescue!
Attempted to create unknown entity type func_hostage_rescue!
Initializing Steam libraries for secure Internet server
[S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
CAppInfoCacheReadFromDiskThread took 4 milliseconds to initialize
CApplicationManagerPopulateThread took 0 milliseconds to initialize (will have waited on CAppInfoCacheReadFromDiskThread)
RecordSteamInterfaceCreation (PID 146): SteamGameServer013 / 
RecordSteamInterfaceCreation (PID 146): SteamUtils010 / 
RecordSteamInterfaceCreation (PID 146): SteamGameServer013 / 
RecordSteamInterfaceCreation (PID 146): SteamUtils010 / 
RecordSteamInterfaceCreation (PID 146): SteamNetworking006 / 
RecordSteamInterfaceCreation (PID 146): SteamGameServerStats001 / 
RecordSteamInterfaceCreation (PID 146): STEAMHTTP_INTERFACE_VERSION003 / 
RecordSteamInterfaceCreation (PID 146): STEAMINVENTORY_INTERFACE_V003 / 
RecordSteamInterfaceCreation (PID 146): STEAMUGC_INTERFACE_VERSION014 / 
RecordSteamInterfaceCreation (PID 146): STEAMAPPS_INTERFACE_VERSION008 / 
Logging into Steam game server account
RecordSteamInterfaceCreation (PID 146): SteamGameServer013 / 
RecordSteamInterfaceCreation (PID 146): SteamUtils010 / 
RecordSteamInterfaceCreation (PID 146): SteamNetworking006 / 
RecordSteamInterfaceCreation (PID 146): SteamGameServerStats001 / 
RecordSteamInterfaceCreation (PID 146): STEAMHTTP_INTERFACE_VERSION003 / 
RecordSteamInterfaceCreation (PID 146): STEAMINVENTORY_INTERFACE_V003 / 
RecordSteamInterfaceCreation (PID 146): STEAMUGC_INTERFACE_VERSION014 / 
RecordSteamInterfaceCreation (PID 146): STEAMAPPS_INTERFACE_VERSION008 / 
Connection to Steam servers successful.
   Public IP is i.removed.my.ip.
Assigned persistent gameserver Steam ID [G-1:4361038].
VAC secure mode is activated.

Any ideas?

Can't download workshop collection

Hey, so I used the docker container back in march quite a lot with some friends and it worked pretty well.
We then stopped playing and now wanted to play again, but for some reason the server doesn't gave any maps or addons downloaded. It also doesn't download them at all. I haven't changed anything at all, still something seems to be off.

Here's my console log:
`************** WARNING ***************
Running the dedicated server as root
is highly discouraged. It is generally
unnecessary to use root privileges to
execute the dedicated server.


Auto detecting CPUntinue to launch in 1 secondss
Using default binary: ./srcds_linux
Server will auto-restart if there is a crash.
mount.cfg adding path: '/opt/steam/Steam'
mount.cfg adding path: '/opt/steam/cstrike'
mount.cfg adding path: '/opt/steam/hl2'
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
Initializing Steam libraries for Workshop..
[S_API] SteamAPI_Init(): Loaded 'steamclient.so' OK.
CAppInfoCacheReadFromDiskThread took 55 milliseconds to initialize
CApplicationManagerPopulateThread took 0 milliseconds to initialize (will have waited on CAppInfoCacheReadFromDiskThread)
[S_API FAIL] Tried to access Steam interface SteamUser020 before SteamAPI_Init succeeded.
WS: Waiting for Steam to log us in......
WS: Fetching collection info...
Processing collection 0...
Failed to get collection info! File not found!
Collection ''
Reported 0 items, skipping
WS: Finished!

WS: Processing 0 addons...
WS: Finished!
Could not find steamerrorreporter binary. Any minidumps will be uploaded in-processCWorkThreadPool::~CWorkThreadPool: work complete queue not empty, 2 items discarded.
Unknown command "cl_cmdrate"
Unknown command "cl_updaterate"
Unknown command "rate"
Changing gamemode to Trouble in Terrorist Town (terrortown)
CModelLoader::Map_IsValid: No such map 'maps/ttt_minecraft_b5.bsp'
map load failed: ttt_minecraft_b5 not found or invalid
Network: IP 10.0.3.8, mode MP, dedicated Yes, ports 27015 SV / 27005 C`

Here's my docker config, I just replaced the auth key:

docker run -it
--name GMod_Server
-p 27015:27015/tcp
-p 27015:27015/udp
-e "AUTHKEY=XXXXXXX"
-e "GAMEMODE=terrortown"
-e "MAP=ttt_minecraft_b5"
-e "WORKSHOPCOLLECTIONID=2041111932"
-v /share/Media/ContainerData/GMod:/opt/steam/
hackebein/garrysmod

Unable to edit Gamemodes

Trying to change default settings for gamemodes. I go to the gamemode file terrortown.txt and adjust the defaults but once I restart the server, they are cleared and re-written back to the original data. Environment variables have been unsuccessful.

Workshop Collection

The server works without workshop collection, but the opposite isn't working.

no TTY (-t) detected garrysmod-gmod-1 | Steam needs it. Exit.

Hi, I'm trying to run a Garry's Mod server alongside a MySQL database in docker compose.

I'm getting these errors: garrysmod-gmod-1 | no TTY (-t) detected and garrysmod-gmod-1 | Steam needs it. Exit.

Here's my docker-compose file:

version: '3.3'
services:
    gmod:
        ports:
            - '27015:27015/udp'
            - '27015:27015'
            - '27005:27005/udp'
        volumes:
            - '$PWD/addons:/home/gmod/server/garrysmod/addons'
            - '$PWD/darkrp:/home/gmod/server/garrysmod/gamemodes/darkrp'
            - '$PWD/lua:/home/gmod/server/garrysmod/lua'
            - '/home/gmod/server'
        environment:
            - AUTHKEY=XXXXXXXXXXXXXXXXXXXXXXXX
            - GSLT=XXXXXXXXXXXXXXXXXXXXXXXX
            - GAMEMODE=sandbox
            - MAP=gm_construct
            - MAXPLAYERS=4
        image: hackebein/garrysmod
    db:
        image: mariadb:10.4
        environment:
            - MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
            - MYSQL_DATABASE=${DB_DATABASE}
            - MYSQL_USER=${DB_USER}
            - MYSQL_PASSWORD=${DB_PASSWORD}
        volumes:
            - db_data:/var/lib/mysql
        ports:
            - '3306:3306'
volumes:
    db_data:
    addons:
    gamemodes:
    lua:

Server starts but can't connect

Starting the container with:

docker run -d --name gmod \
    -p 27015:27015 \
    -e "AUTHKEY=****" \
    -e "GAMEMODE=terrortown" \
    -e "MAP=gm_flatgrass" \
    -e "WORKSHOPCOLLECTIONID=880783690" \
    -v /opt/garrysmod/:/opt/steam/garrysmod/cfg/ \
    hackebein/garrysmod

It downloads gmod and then starts it resulting in the following output:

Auto detecting CPUntinue to launch in 1 secondss
Using default binary: ./srcds_linux
Server will auto-restart if there is a crash.
Setting breakpad minidump AppID = 4000
[S_API] SteamAPI_Init(): Loaded 'steamclient.so' OK.
CAppInfoCacheReadFromDiskThread took 4 milliseconds to initialize
CApplicationManagerPopulateThread took 0 milliseconds to initialize (will have waited on CAppInfoCacheReadFromDiskThread)
[S_API FAIL] Tried to access Steam interface SteamUser020 before SteamAPI_Init succeeded.
[S_API] SteamAPI_Init(): Loaded 'steamclient.so' OK.
CAppInfoCacheReadFromDiskThread took 15 milliseconds to initialize
CApplicationManagerPopulateThread took 0 milliseconds to initialize (will have waited on CAppInfoCacheReadFromDiskThread)

I suspect the error with the steam api is preventing me from connecting. It should not have to do with port forwarding or a firewall because I am running servers for factorio, minecraft and farming simulatur on the same server and they all work fine. I've forwarded port 27005-27015 to my server.

Caching entire Gmod/Workshop installation?

Hey, is it possible to have the entire gmod/addon installs be in a mounted folder?

Kind of a pain to have them re-download every time the container exits and starts back up.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.