mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2026-04-25 14:15:59 +03:00
[GH-ISSUE #844] Ark Server Details #680
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference
starred/LinuxGSM#680
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 "< ")
@UltimateByte commented on GitHub (May 29, 2016):
Did you update your functions ?
./arkserver uf@reesey275 commented on GitHub (May 29, 2016):
Clean installation with new arkserver script.
@UltimateByte commented on GitHub (May 29, 2016):
I messaged CedarLug about this as he reworked that function recently.
@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
@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.
@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.
@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.
@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:
@cedarlug commented on GitHub (May 29, 2016):
Easy enough to verify:
root@gamerig:
# su - arkserver$ grep QueryPort serverfiles/ShooterGame/Saved/Config/LinuxServer/GameUserSettings.iniarkserver@gamerig:
QueryPort=27025
arkserver@gamerig:
$ grep QueryPort arkserver$ ./arkserver startarkserver@gamerig:
[ 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.
@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.
@reesey275 commented on GitHub (May 29, 2016):
You are correct. Just double checked to make sure.
@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.
@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@reesey275 commented on GitHub (May 29, 2016):
Sure thing.
http://pastebin.com/SkhBDLAE
@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.
@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.
@UltimateByte commented on GitHub (May 30, 2016):
@cedarlug @reesey275 So no code issue ? Can we close this ?
@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.
@UltimateByte commented on GitHub (May 30, 2016):
Let's wait for the merge then. ^^
@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.