Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem connecting to the Server after reinstalling the docker #30

Open
VOGDogma opened this issue Apr 22, 2024 · 4 comments
Open

Problem connecting to the Server after reinstalling the docker #30

VOGDogma opened this issue Apr 22, 2024 · 4 comments

Comments

@VOGDogma
Copy link

VOGDogma commented Apr 22, 2024

I originally installed this docker, and it worked without any issues. However, after reinstalling it because I made a bit of a mess with multiple botched first attempts and wanted to clean everything up to have a clean install location, I can no longer connect to the server despite the docker starting and running without any real issues. I am using a ddns address for a static IP address to connect to it, which worked fine before.

Here are the container details for further information
`
Distro Details

Date: Mon Apr 22 14:06:41 CEST 2024
Distro: Debian GNU/Linux 10 (buster)
Arch: x86_64
Kernel: 5.15.0-105-generic
Hostname: 866e8de9235d
Environment:
Uptime: 0d, 23h, 12m
tmux: 2.8
glibc: 2.28

Server Resource

CPU
Model: AMD Ryzen 5 7600X 6-Core Processor
Cores: 12
Frequency: 4700.000MHz
Avg Load: 1.25, 1.38, 0.77

Memory
Mem: total used free cached available
Physical: 31GB 23GB 7.8GB 7.9GB 7.8GB
Swap: 8.0GB 104MB 7.9GB

Storage
Filesystem: overlay
Total: 98G
Used: 82G
Available: 12G

Network
IP: ***********
Internet IP: **********

Garry's Mod Resource Usage

CPU Used: 15.1%
Mem Used: 0.4% 142MB

Storage
Total: 19G
Serverfiles: 14G
Backups: 28K

Garry's Mod Server Details

Server name: Die Stube der Dummen Buben
App ID: 4020
Server IP: *********:27015
Internet IP: ************:27015
Server password: ********
RCON password: ********
Maxplayers: 16
Default map: gm_construct
Game mode: terrortown
Tick rate: 66
Master server: not listed
Status: STARTED

gmodserver Script Details

Script name: gmodserver
LinuxGSM version: v24.2.0
glibc required: 2.15
Discord alert: off
Email alert: off
Gotify alert: off
IFTTT alert: off
Pushbullet alert: off
Pushover alert: off
Rocketchat alert: off
Slack alert: off
Telegram alert: off
Update on start: off
User: steam
Location: /home/steam
Config file: /home/steam/serverfiles/garrysmod/cfg/gmodserver.cfg

Backups

No Backups created

Command-line Parameters

./srcds_run -game garrysmod -strictportbind -ip 0.0.0.0 -port 27015 -tickrate 66 +host_workshop_collection 3224891699 -authkey ******** +clientport 27005 +tv_port 27020 +gamemode terrortown +map gm_construct +sv_setsteamaccount +servercfgfile gmodserver.cfg -maxplayers 16 -disableluarefresh

Ports

Change ports by editing the parameters in:
/home/steam/lgsm/config-lgsm/gmodserver

Useful port diagnostic command:
ss -tuplwn | grep srcds_linux

DESCRIPTION PORT PROTOCOL LISTEN
Game 27015 udp 0
Query 27015 tcp 0
RCON 27015 tcp 0
SourceTV 27020 udp 0
Client 27005 udp 0

Status: STARTED
`

@jusito
Copy link
Owner

jusito commented Apr 22, 2024

Heyho, depending on the workshop collection it could take a lot of time to actually start. Did you have a look into the docker exec -it CONTAINER console to check that all mods are loaded and it is really started?
Beside that, to replicate your issue I need your (sanitized) docker-compose.yaml or the docker run ... invocation you are using to start it up.

@VOGDogma
Copy link
Author

alright found the issue was using an addon to change the map to a random one each time the server starts but it caused the server to never stop changing the map so it never started properly 😅

@VOGDogma
Copy link
Author

well now i have a different problem. Server cant load/find any of the map files that are added. The map folder is empty aswell as the addons folder. Console shows that all the addons get processed during the server start. they all show up in the ulx mapvote. The server also restarts every time a map change happens. could be a connected issue but not sure.

@jusito
Copy link
Owner

jusito commented Apr 22, 2024

If I remember correctly mods are loaded virtually, so they are not just "unpack content into garrysmod folder". So base folder, mod1 applied = virtual folder with base+mod1 visible for the server. So it could be the maps are just virtually loaded and therefore you dont see them inside the folder. Maybe the mods are applied one after each other so if your random map addon requires the maps addon it should be loaded after each map is loaded. To be absolutely sure, if you have your maps in a linked collection like I suggested I would remove the addon entirely and readd it to the end of the maps collection. But I have to admit this is just a guess by me, didn't touch this topic in years.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants