CM2Walki / steamcmd

Minimal image containing Valve's SteamCMD binary: https://hub.docker.com/r/cm2network/steamcmd/

Home Page:https://CM2.Network

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't start server with an entrypoint.sh

lennard0711 opened this issue · comments

Hey,

I'm currently trying to create a GMod image based on this one. But if i try to start my Server through an entrypoint.sh it fails like this:

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

But the scripts works perfectly fine after I exec into the container and run it.

Maybe you also had the problem and know how to fix it.

Here is the link to the issue in my repo if you need more info.
lennard0711/docker-gmod#1

Hey, I don't want to advertise or break any rules, but I really found https://github.com/GameServerManagers/LinuxGSM very helpful for hosting servers. Maybe some logic can be extracted from there for running.

Hey @lennard7001,

can you try latest? Was it maybe related to CM2Walki/CSGO#1?

I found the problem, it's related to this one Facepunch/garrysmod-issues#2343.

@lennard0711 Don't you have problems with source_logger? I have this:

8 Illegal instruction     (core dumped) 
./source_logger -game garrysmod -norestart -port 27015 +maxplayers 128 +map gm_construct +host_workshop_collection 2760527539 +gamemode darkrp +r_hunkalloclightmaps 0

on steamcmd/steamcmd:ubuntu-22 docker image