[GH-ISSUE #844] Ark Server Details #680

Closed
opened 2026-02-27 02:03:06 +03:00 by kerem · 20 comments
Owner

Originally created by @reesey275 on GitHub (May 29, 2016).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/844

When running ./arkserver details script it is no longer pulling the IP/Port information from the GameUserSettings.ini file. This is also creating an issue when stopping the server
Stopping ark-server: no queryport found using info_config.sh/home/ark/lgsm/functions/command_stop.sh: line 177: ((: pidcheck < : syntax error: operand expected (error token is "< ")

Originally created by @reesey275 on GitHub (May 29, 2016). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/844 When running ./arkserver details script it is no longer pulling the IP/Port information from the GameUserSettings.ini file. This is also creating an issue when stopping the server Stopping ark-server: no queryport found using info_config.sh/home/ark/lgsm/functions/command_stop.sh: line 177: ((: pidcheck < : syntax error: operand expected (error token is "< ")
kerem closed this issue 2026-02-27 02:03:06 +03:00
Author
Owner

@UltimateByte commented on GitHub (May 29, 2016):

Did you update your functions ?
./arkserver uf

<!-- gh-comment-id:222353124 --> @UltimateByte commented on GitHub (May 29, 2016): Did you update your functions ? `./arkserver uf`
Author
Owner

@reesey275 commented on GitHub (May 29, 2016):

Clean installation with new arkserver script.

<!-- gh-comment-id:222371924 --> @reesey275 commented on GitHub (May 29, 2016): Clean installation with new arkserver script.
Author
Owner

@UltimateByte commented on GitHub (May 29, 2016):

I messaged CedarLug about this as he reworked that function recently.

<!-- gh-comment-id:222373962 --> @UltimateByte commented on GitHub (May 29, 2016): I messaged CedarLug about this as he reworked that function recently.
Author
Owner

@cedarlug commented on GitHub (May 29, 2016):

Will check - but I know the current version of the arkserver script lacks an assigned parmslocation, so ./arkserver details won't pull the IP/Port from either location (selfname or GameUserSettings.ini). See tail comments of #770

<!-- gh-comment-id:222377074 --> @cedarlug commented on GitHub (May 29, 2016): Will check - but I know the current version of the arkserver script lacks an assigned parmslocation, so ./arkserver details won't pull the IP/Port from either location (selfname or GameUserSettings.ini). See tail comments of #770
Author
Owner

@reesey275 commented on GitHub (May 29, 2016):

I had the ports showing correctly in a previous build pulling the info from the GameUserSettings.ini. HDD failed on that VM so lost quite a bit of the coding that was done to get things to work.

<!-- gh-comment-id:222377353 --> @reesey275 commented on GitHub (May 29, 2016): I had the ports showing correctly in a previous build pulling the info from the GameUserSettings.ini. HDD failed on that VM so lost quite a bit of the coding that was done to get things to work.
Author
Owner

@cedarlug commented on GitHub (May 29, 2016):

Update:
The original line 177 error in command_stop.sh was a typo that was fixed in the last pull request in the development branch. The type-o is "MADPIDITER" on line 177 should be "MAXPIDITER", in reference to the maximum number of times the loop checks for an active pid.

<!-- gh-comment-id:222377505 --> @cedarlug commented on GitHub (May 29, 2016): Update: The original line 177 error in command_stop.sh was a typo that was fixed in the last pull request in the development branch. The type-o is "MADPIDITER" on line 177 should be "MAXPIDITER", in reference to the maximum number of times the loop checks for an active pid.
Author
Owner

@cedarlug commented on GitHub (May 29, 2016):

@reesey275 Settings in GameUserSettings.ini don't affect the actual runtime assignments. For example, if you set QueryPort=20735 in GameUserSettings.ini and start the game using ./arkserver start, your service will still be running on port 27015.

I'd recommend leveraging the the startup parameters in the script (selfname) as the default location, and using GameUserSettings.ini as a backup location for pulling details in the event they are not specified in selfname (arkserver script).

I can make that happen and work up a pull request if this approach makes sense to everyone.

<!-- gh-comment-id:222377690 --> @cedarlug commented on GitHub (May 29, 2016): @reesey275 Settings in GameUserSettings.ini don't affect the actual runtime assignments. For example, if you set QueryPort=20735 in GameUserSettings.ini and start the game using ./arkserver start, your service will still be running on port 27015. I'd recommend leveraging the the startup parameters in the script (selfname) as the default location, and using GameUserSettings.ini as a backup location for pulling details in the event they are not specified in selfname (arkserver script). I can make that happen and work up a pull request if this approach makes sense to everyone.
Author
Owner

@reesey275 commented on GitHub (May 29, 2016):

I've been using the port setting in GameUserSettings.ini and it works
correctly when launching the server.
On May 29, 2016 3:19 PM, "CedarLUG" notifications@github.com wrote:

@reesey275 https://github.com/reesey275 Setting in GameUserSettings.ini
don't affect the actual runtime assignments. For example, if you set
QueryPort=20735 in GameUserSettings.ini and start the game using
./arkserver start, your service will still be running on port 27015.

I'd recommend leveraging the the startup parameters in the script
(selfname) as the default location, and using GameUserSettings.ini as a
backup location for pulling details in the event they are not specified in
selfname (arkserver script).


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dgibbs64/linuxgsm/issues/844#issuecomment-222377690,
or mute the thread
https://github.com/notifications/unsubscribe/AEd5Lh9Uo1Y9gjXshF6cSpwFOqjsHdOnks5qGebVgaJpZM4IpL_A
.

<!-- gh-comment-id:222377774 --> @reesey275 commented on GitHub (May 29, 2016): I've been using the port setting in GameUserSettings.ini and it works correctly when launching the server. On May 29, 2016 3:19 PM, "CedarLUG" notifications@github.com wrote: > @reesey275 https://github.com/reesey275 Setting in GameUserSettings.ini > don't affect the actual runtime assignments. For example, if you set > QueryPort=20735 in GameUserSettings.ini and start the game using > ./arkserver start, your service will still be running on port 27015. > > I'd recommend leveraging the the startup parameters in the script > (selfname) as the default location, and using GameUserSettings.ini as a > backup location for pulling details in the event they are not specified in > selfname (arkserver script). > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > https://github.com/dgibbs64/linuxgsm/issues/844#issuecomment-222377690, > or mute the thread > https://github.com/notifications/unsubscribe/AEd5Lh9Uo1Y9gjXshF6cSpwFOqjsHdOnks5qGebVgaJpZM4IpL_A > .
Author
Owner

@cedarlug commented on GitHub (May 29, 2016):

Easy enough to verify:
root@gamerig:# su - arkserver
arkserver@gamerig:
$ grep QueryPort serverfiles/ShooterGame/Saved/Config/LinuxServer/GameUserSettings.ini
QueryPort=27025
arkserver@gamerig:$ grep QueryPort arkserver
arkserver@gamerig:
$ ./arkserver start
[ OK ] Starting ark-server:
arkserver@gamerig:$ netstat -nap | grep Shoot
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
udp 768 0 0.0.0.0:27015 0.0.0.0:* 1638/./ShooterGameS
arkserver@gamerig:
$

Even though it's set to 27025 in GameUserSettings.ini, it's listening on 27015.

<!-- gh-comment-id:222378116 --> @cedarlug commented on GitHub (May 29, 2016): Easy enough to verify: root@gamerig:~# su - arkserver arkserver@gamerig:~$ grep QueryPort serverfiles/ShooterGame/Saved/Config/LinuxServer/GameUserSettings.ini QueryPort=27025 arkserver@gamerig:~$ grep QueryPort arkserver arkserver@gamerig:~$ ./arkserver start [ OK ] Starting ark-server: arkserver@gamerig:~$ netstat -nap | grep Shoot (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) udp 768 0 0.0.0.0:27015 0.0.0.0:\* 1638/./ShooterGameS arkserver@gamerig:~$ Even though it's set to 27025 in GameUserSettings.ini, it's listening on 27015.
Author
Owner

@cedarlug commented on GitHub (May 29, 2016):

I'd greatly appreciate someone else's confirmation of the above finding, too: Namely that setting ports in the GameUserSettings.ini are ignored.

I'd equally appreciate someone else's counter example as well.

<!-- gh-comment-id:222378477 --> @cedarlug commented on GitHub (May 29, 2016): I'd greatly appreciate someone else's confirmation of the above finding, too: Namely that setting ports in the GameUserSettings.ini are ignored. I'd equally appreciate someone else's counter example as well.
Author
Owner

@reesey275 commented on GitHub (May 29, 2016):

You are correct. Just double checked to make sure.

<!-- gh-comment-id:222378509 --> @reesey275 commented on GitHub (May 29, 2016): You are correct. Just double checked to make sure.
Author
Owner

@cedarlug commented on GitHub (May 29, 2016):

Thanks for the confirmation. I'm glad that the type-o is still active, because it led to a better conversation about the correct way to parse parameters.

<!-- gh-comment-id:222378634 --> @cedarlug commented on GitHub (May 29, 2016): Thanks for the confirmation. I'm glad that the type-o is still active, because it led to a better conversation about the correct way to parse parameters.
Author
Owner

@cedarlug commented on GitHub (May 29, 2016):

can you post (to pastebin) the output of:
awk 'NR>=162&&NR<=199' ~/lgsm/functions/command_stop.sh

<!-- gh-comment-id:222379670 --> @cedarlug commented on GitHub (May 29, 2016): can you post (to pastebin) the output of: `awk 'NR>=162&&NR<=199' ~/lgsm/functions/command_stop.sh`
Author
Owner

@reesey275 commented on GitHub (May 29, 2016):

Sure thing.

http://pastebin.com/SkhBDLAE

<!-- gh-comment-id:222379963 --> @reesey275 commented on GitHub (May 29, 2016): Sure thing. [http://pastebin.com/SkhBDLAE](http://pastebin.com/SkhBDLAE)
Author
Owner

@cedarlug commented on GitHub (May 29, 2016):

Thanks,

I see what the issue is: Your port in GameUserSettings.ini isn't the port that the server is actually listening on any more :) [Because of my request for you to verify that GameUserSettings.ini isn't setting things correctly.]

So, to fix this, make sure that the QueryPort in GameUserSettings.ini matches what you see when you type:
'netstat -nap | grep Shoot'

You'll likely see 3 sockets in-use. The QueryPort is usually in the 27000+ range and UDP.

<!-- gh-comment-id:222380335 --> @cedarlug commented on GitHub (May 29, 2016): Thanks, I see what the issue is: Your port in GameUserSettings.ini isn't the port that the server is actually listening on any more :) [Because of my request for you to verify that GameUserSettings.ini isn't setting things correctly.] So, to fix this, make sure that the QueryPort in GameUserSettings.ini matches what you see when you type: 'netstat -nap | grep Shoot' You'll likely see 3 sockets in-use. The QueryPort is usually in the 27000+ range and UDP.
Author
Owner

@reesey275 commented on GitHub (May 29, 2016):

Looks like it's good to go.

netstat -nap | grep Shoot
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:32330 0.0.0.0:* LISTEN 3594/ShooterGameSer
udp 0 0 0.0.0.0:7778 0.0.0.0:* 3594/ShooterGameSer
udp 0 0 0.0.0.0:27015 0.0.0.0:* 3594/ShooterGameSer

Thanks for the help.

<!-- gh-comment-id:222380404 --> @reesey275 commented on GitHub (May 29, 2016): Looks like it's good to go. netstat -nap | grep Shoot (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) tcp 0 0 0.0.0.0:32330 0.0.0.0:\* LISTEN 3594/ShooterGameSer udp 0 0 0.0.0.0:7778 0.0.0.0:\* 3594/ShooterGameSer udp 0 0 0.0.0.0:27015 0.0.0.0:\* 3594/ShooterGameSer Thanks for the help.
Author
Owner

@UltimateByte commented on GitHub (May 30, 2016):

@cedarlug @reesey275 So no code issue ? Can we close this ?

<!-- gh-comment-id:222471938 --> @UltimateByte commented on GitHub (May 30, 2016): @cedarlug @reesey275 So no code issue ? Can we close this ?
Author
Owner

@cedarlug commented on GitHub (May 30, 2016):

This can be closed when #834 is worked into the master branch. But yes - I believe this can be closed.

<!-- gh-comment-id:222491101 --> @cedarlug commented on GitHub (May 30, 2016): This can be closed when #834 is worked into the master branch. But yes - I believe this can be closed.
Author
Owner

@UltimateByte commented on GitHub (May 30, 2016):

Let's wait for the merge then. ^^

<!-- gh-comment-id:222492765 --> @UltimateByte commented on GitHub (May 30, 2016): Let's wait for the merge then. ^^
Author
Owner

@lock[bot] commented on GitHub (Jul 19, 2018):

This thread 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:406222066 --> @lock[bot] commented on GitHub (Jul 19, 2018): This thread 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#680
No description provided.