[GH-ISSUE #4462] [Bug]: Very Slow Script Executing #2792

Closed
opened 2026-02-27 03:05:27 +03:00 by kerem · 8 comments
Owner

Originally created by @Kyoukazaki on GitHub (Jan 24, 2024).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/4462

User story

Very slow script execution

Game

palworld/minecraft

Linux distro

Ubuntu 22.04

Command

command: start, command: stop, command: restart, command: monitor, command: details

Further information

Freshly installed ubuntu server without anything extra running
I only tried it with palworld and minecraft
but ANY command i execute is lagging/hanging/processes slow
./pwserver start/stop/restart takes about 6-10 minutes to execute
i was checking resources if the script actually doing anything but no, CPU was idle, drive was idle..
i dont know how to check what is wrong with the script

Before anyone asks
Yes i am a linux Novice

Relevant log output

Jan 24 15:28:33.758 pwserver: START: PASS: Started LinuxGSM
Jan 24 15:28:33.861 pwserver: START: PASS: Started LinuxGSM
Jan 24 15:28:33.868 pwserver: START: INFO: LinuxGSM version: v24.1.1
Jan 24 15:28:33.869 pwserver: START: PASS: core_exit.sh exiting with code: 0
Jan 24 15:42:01.048 pwserver: STOP: WARN: Unable to get public IP address
Jan 24 15:44:12.124 pwserver: STOP: WARN: Unable to get public IP address
Jan 24 15:44:12.631 pwserver: STOP: INFO: Graceful: CTRL+c
Jan 24 15:44:15.870 pwserver: STOP: PASS: Graceful: CTRL+c: OK: 3 seconds
Jan 24 15:44:15.896 pwserver: STOP: INFO: LinuxGSM version: v24.1.1
Jan 24 15:44:15.898 pwserver: STOP: PASS: core_exit.sh exiting with code: 0

Steps to reproduce

No response

Originally created by @Kyoukazaki on GitHub (Jan 24, 2024). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/4462 ### User story Very slow script execution ### Game palworld/minecraft ### Linux distro Ubuntu 22.04 ### Command command: start, command: stop, command: restart, command: monitor, command: details ### Further information Freshly installed ubuntu server without anything extra running I only tried it with palworld and minecraft but ANY command i execute is lagging/hanging/processes slow ./pwserver start/stop/restart takes about 6-10 minutes to execute i was checking resources if the script actually doing anything but no, CPU was idle, drive was idle.. i dont know how to check what is wrong with the script Before anyone asks Yes i am a linux Novice ### Relevant log output ```shell Jan 24 15:28:33.758 pwserver: START: PASS: Started LinuxGSM Jan 24 15:28:33.861 pwserver: START: PASS: Started LinuxGSM Jan 24 15:28:33.868 pwserver: START: INFO: LinuxGSM version: v24.1.1 Jan 24 15:28:33.869 pwserver: START: PASS: core_exit.sh exiting with code: 0 Jan 24 15:42:01.048 pwserver: STOP: WARN: Unable to get public IP address Jan 24 15:44:12.124 pwserver: STOP: WARN: Unable to get public IP address Jan 24 15:44:12.631 pwserver: STOP: INFO: Graceful: CTRL+c Jan 24 15:44:15.870 pwserver: STOP: PASS: Graceful: CTRL+c: OK: 3 seconds Jan 24 15:44:15.896 pwserver: STOP: INFO: LinuxGSM version: v24.1.1 Jan 24 15:44:15.898 pwserver: STOP: PASS: core_exit.sh exiting with code: 0 ``` ### Steps to reproduce _No response_
Author
Owner

@Kyoukazaki commented on GitHub (Jan 24, 2024):

Issue was that my ISP cant/wont connect to ip-api.com

Temporary Solution was Discovered by Dan

as a temporary work around remove this bit of code from lgsm/modules/info_game.sh
image

And Now everything works and Very fast

Thanks again Dan

<!-- gh-comment-id:1908732165 --> @Kyoukazaki commented on GitHub (Jan 24, 2024): Issue was that my ISP cant/wont connect to ip-api.com Temporary Solution was Discovered by Dan > as a temporary work around remove this bit of code from lgsm/modules/info_game.sh ![image](https://github.com/GameServerManagers/LinuxGSM/assets/88952814/7f2bdbe5-14a3-4685-9820-ae7f0d806dec) And Now everything works and Very fast Thanks again Dan
Author
Owner

@MicLieg commented on GitHub (Feb 7, 2024):

Apparently more users are experiencing this bug: https://discord.com/channels/127498813903601664/219535041468956673/1204753801899413524

<!-- gh-comment-id:1931873351 --> @MicLieg commented on GitHub (Feb 7, 2024): Apparently more users are experiencing this bug: https://discord.com/channels/127498813903601664/219535041468956673/1204753801899413524
Author
Owner

@rxm96 commented on GitHub (Feb 7, 2024):

I'm experiencing issues with LinuxGSM script executing very slowly. Here's a summary of the troubleshooting steps @MicLieg and I taken:

Connection Tests:

The server is a dedicated machine rented from Hetzner. It was initially working fine until it started experiencing issues after a few restarts and backups.

Ping Test: A ping test to ip-api.com was successful, indicating that there isn't a DNS issue blocking the connection.
PING ip-api.com (208.95.112.1) 56(84) bytes of data. 64 bytes from ip-api.com (208.95.112.1): icmp_seq=1 ttl=251 time=12.7 ms ... 14 packets transmitted, 14 received, 0% packet loss, time 13024ms

Curl Command Test: A test using curl -s http://ip-api.com/json got stuck, suggesting the request to ip-api.com was not completing as expected. A verbose curl (curl -v http://ip-api.com/json) showed that the connection to ip-api.com timed out, indicating a potential network issue or block.
* Trying 208.95.112.1:80... ... connect to 208.95.112.1 port 80 failed: Connection timed out

Tracepath Test: Running tracepath ip-api.com showed that the request left the Hetzner network but received no replies afterward, suggesting that ip-api.com might be blocking my server's IP address.
1?: [LOCALHOST] pmtu 1500 ... 7: ae-3.a02.londen14.uk.bb.gin.ntt.net 16.335ms 8: no reply ... 23: no reply

Conclusion: The troubleshooting indicates that the problem likely lies with ip-api.com blocking my server's IP address, not with DNS or local network issues. It was suggested that I might resolve the issue by requesting a new IP address from Hetzner.

<!-- gh-comment-id:1931945810 --> @rxm96 commented on GitHub (Feb 7, 2024): I'm experiencing issues with LinuxGSM script executing very slowly. Here's a summary of the troubleshooting steps @MicLieg and I taken: ### Connection Tests: The server is a dedicated machine rented from Hetzner. It was initially working fine until it started experiencing issues after a few restarts and backups. **Ping Test**: A ping test to ip-api.com was successful, indicating that there isn't a DNS issue blocking the connection. `PING ip-api.com (208.95.112.1) 56(84) bytes of data. 64 bytes from ip-api.com (208.95.112.1): icmp_seq=1 ttl=251 time=12.7 ms ... 14 packets transmitted, 14 received, 0% packet loss, time 13024ms` **Curl Command Test**: A test using curl -s http://ip-api.com/json got stuck, suggesting the request to ip-api.com was not completing as expected. A verbose curl (curl -v http://ip-api.com/json) showed that the connection to ip-api.com timed out, indicating a potential network issue or block. `* Trying 208.95.112.1:80... ... connect to 208.95.112.1 port 80 failed: Connection timed out` **Tracepath Test**: Running tracepath ip-api.com showed that the request left the Hetzner network but received no replies afterward, suggesting that ip-api.com might be blocking my server's IP address. `1?: [LOCALHOST] pmtu 1500 ... 7: ae-3.a02.londen14.uk.bb.gin.ntt.net 16.335ms 8: no reply ... 23: no reply` **Conclusion**: The troubleshooting indicates that the problem likely lies with ip-api.com blocking my server's IP address, not with DNS or local network issues. It was suggested that I might resolve the issue by requesting a new IP address from Hetzner.
Author
Owner

@irobot73 commented on GitHub (Feb 16, 2024):

Can confirm the same:

  1. Ping == OK
  2. Verbose CURL == FAILURE [curl -v http://ip-api.com/json]
*   Trying 0.0.0.0:80...
* connect to 0.0.0.0 port 80 failed: Connection refused
*   Trying :::80...
* connect to :: port 80 failed: Connection refused
* Failed to connect to ip-api.com port 80 after 3 ms: Connection refused
* Closing connection 0
curl: (7) Failed to connect to ip-api.com port 80 after 3 ms: Connection refused
  1. Verbose CURL (using VPN) == OK [curl -v http://ip-api.com/json]
*   Trying 208.95.112.1:80...
* Connected to ip-api.com (208.95.112.1) port 80 (#0)
> GET /json HTTP/1.1
> Host: ip-api.com
> User-Agent: curl/7.81.0
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Date: Fri, 16 Feb 2024 20:13:00 GMT
< Content-Type: application/json; charset=utf-8
< Content-Length: 290
< Access-Control-Allow-Origin: *
< X-Ttl: 60
< X-Rl: 44
< 
* Connection #0 to host ip-api.com left intact
{"status":"success","country":"United States","countryCode":"US","region":"GA","regionName":"Georgia","city":"Atlanta","zip":"30303","lat":33.7557,"lon":-84.3884,"timezone":"America/New_York","isp":"M247 Europe","org":"M247 Ltd Atlanta",...
<!-- gh-comment-id:1949272360 --> @irobot73 commented on GitHub (Feb 16, 2024): Can confirm the same: 1) Ping == OK 2) Verbose CURL == **FAILURE** [_curl -v http://ip-api.com/json_] ``` * Trying 0.0.0.0:80... * connect to 0.0.0.0 port 80 failed: Connection refused * Trying :::80... * connect to :: port 80 failed: Connection refused * Failed to connect to ip-api.com port 80 after 3 ms: Connection refused * Closing connection 0 curl: (7) Failed to connect to ip-api.com port 80 after 3 ms: Connection refused ``` 3) Verbose CURL (using VPN) == **OK** [_curl -v http://ip-api.com/json_] ``` * Trying 208.95.112.1:80... * Connected to ip-api.com (208.95.112.1) port 80 (#0) > GET /json HTTP/1.1 > Host: ip-api.com > User-Agent: curl/7.81.0 > Accept: */* > * Mark bundle as not supporting multiuse < HTTP/1.1 200 OK < Date: Fri, 16 Feb 2024 20:13:00 GMT < Content-Type: application/json; charset=utf-8 < Content-Length: 290 < Access-Control-Allow-Origin: * < X-Ttl: 60 < X-Rl: 44 < * Connection #0 to host ip-api.com left intact {"status":"success","country":"United States","countryCode":"US","region":"GA","regionName":"Georgia","city":"Atlanta","zip":"30303","lat":33.7557,"lon":-84.3884,"timezone":"America/New_York","isp":"M247 Europe","org":"M247 Ltd Atlanta",... ```
Author
Owner

@MicLieg commented on GitHub (Feb 16, 2024):

Can you verify If you or your host hast some sort of firewall enabled? The last case was solved by disabling some firewall rules.

<!-- gh-comment-id:1949305765 --> @MicLieg commented on GitHub (Feb 16, 2024): Can you verify If you or your host hast some sort of firewall enabled? The last case was solved by disabling some firewall rules.
Author
Owner

@irobot73 commented on GitHub (Feb 16, 2024):

Can you verify If you or your host hast some sort of firewall enabled? The last case was solved by disabling some firewall rules.

Good call. Yes, I'm running PiHole (looks like quite a few RULES links I use get 'hit').

It did/was catching the URL & blocking....now whitelisted. Hope it's as easy a 'fix' for others

<!-- gh-comment-id:1949417283 --> @irobot73 commented on GitHub (Feb 16, 2024): > Can you verify If you or your host hast some sort of firewall enabled? The last case was solved by disabling some firewall rules. Good call. Yes, I'm running PiHole (looks like quite a few RULES links I use get 'hit'). It did/was catching the URL & blocking....now whitelisted. Hope it's as easy a 'fix' for others
Author
Owner

@kaueraal commented on GitHub (Mar 3, 2024):

I have the same issue. They seem to block my residential IP block, I cannot even ping them. I have no DNS filter or similar and I verified that the correct ip is resolved via comparing it to several large public resolvers. From my VPS I can successfully use curl, which uses the same resolved IP address for the query.

I resolved the issue for me via overwriting the resolved ip in my dns server, setting it to 127.0.0.1 which refuses the connection. Other users with the same issue can edit their host file or similar.

Either way, the curl command should use a relatively short timeout.

<!-- gh-comment-id:1975123548 --> @kaueraal commented on GitHub (Mar 3, 2024): I have the same issue. They seem to block my residential IP block, I cannot even ping them. I have no DNS filter or similar and I verified that the correct ip is resolved via comparing it to several large public resolvers. From my VPS I can successfully use curl, which uses the same resolved IP address for the query. I resolved the issue for me via overwriting the resolved ip in my dns server, setting it to 127.0.0.1 which refuses the connection. Other users with the same issue can edit their host file or similar. Either way, the curl command should use a relatively short timeout.
Author
Owner

@github-actions[bot] commented on GitHub (Sep 29, 2025):

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:3344427397 --> @github-actions[bot] commented on GitHub (Sep 29, 2025): This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#2792
No description provided.