[GH-ISSUE #1379] Ark-Server stop, stop Arma3 Server too #1070

Closed
opened 2026-02-27 02:55:09 +03:00 by kerem · 17 comments
Owner

Originally created by @Tealk on GitHub (Mar 22, 2017).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/1379

Hi,

if i stop my Ark-Server the Ark script stops the Arma3 Server too, but the Arma3 script doesn't stop the Ark Server.
Ark and Arma are both in the same folder and use both the same user

steam/_ark
     /_arma3

Postdetails:
Arma3: https://hastebin.com/ebavinapes
Ark: https://hastebin.com/iqogayejik

Arma3 console log:

5:59:55 "TERRITORY SYSTEM: _realLoopTime was 10.0156"
^C-tark-server 6:00:05 EPE manager release (94|417|0)
 6:00:05 Number of joints in scene after release: 14

Debian GNU/Linux 8.7 (jessie) (3.16.0-4-amd64)

Intel Xeon E5-1650V2; 64 GB DDR3 ECC reg.;

Originally created by @Tealk on GitHub (Mar 22, 2017). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/1379 Hi, if i stop my Ark-Server the Ark script stops the Arma3 Server too, but the Arma3 script doesn't stop the Ark Server. Ark and Arma are both in the same folder and use both the same user ``` steam/_ark /_arma3 ``` Postdetails: Arma3: https://hastebin.com/ebavinapes Ark: https://hastebin.com/iqogayejik Arma3 console log: ``` 5:59:55 "TERRITORY SYSTEM: _realLoopTime was 10.0156" ^C-tark-server 6:00:05 EPE manager release (94|417|0) 6:00:05 Number of joints in scene after release: 14 ``` Debian GNU/Linux 8.7 (jessie) (3.16.0-4-amd64) Intel Xeon E5-1650V2; 64 GB DDR3 ECC reg.;
Author
Owner

@UltimateByte commented on GitHub (Mar 22, 2017):

Hi,
postdetails output for each server is required if you want us to understand and reproduce the issue.
As per: https://github.com/GameServerManagers/LinuxGSM/wiki/Support

<!-- gh-comment-id:288372069 --> @UltimateByte commented on GitHub (Mar 22, 2017): Hi, `postdetails` output for each server is required if you want us to understand and reproduce the issue. As per: https://github.com/GameServerManagers/LinuxGSM/wiki/Support
Author
Owner

@Tealk commented on GitHub (Mar 22, 2017):

Have update my first post, but why is there my admin password in cleartext in the postdetails?
https://hastebin.com/ebavinapes

Admin d4sbraucht3hkein3r // Password to become server admin. When you're in Arma MP and connected to the server type '#login xyz'

<!-- gh-comment-id:288374962 --> @Tealk commented on GitHub (Mar 22, 2017): Have update my first post, but why is there my admin password in cleartext in the postdetails? https://hastebin.com/ebavinapes `Admin d4sbraucht3hkein3r // Password to become server admin. When you're in Arma MP and connected to the server type '#login xyz'`
Author
Owner

@UltimateByte commented on GitHub (Mar 22, 2017):

Sorry about that.
@cedarlug ?

<!-- gh-comment-id:288375744 --> @UltimateByte commented on GitHub (Mar 22, 2017): Sorry about that. @cedarlug ?
Author
Owner

@UltimateByte commented on GitHub (Mar 22, 2017):

Issue is probably here
https://github.com/GameServerManagers/LinuxGSM/blob/master/lgsm/functions/command_stop.sh#L265-L288

Awaiting for a fix, you can make separate users for these servers as advised https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers

<!-- gh-comment-id:288377800 --> @UltimateByte commented on GitHub (Mar 22, 2017): Issue is probably here https://github.com/GameServerManagers/LinuxGSM/blob/master/lgsm/functions/command_stop.sh#L265-L288 Awaiting for a fix, you can make separate users for these servers as advised https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
Author
Owner

@UltimateByte commented on GitHub (Mar 22, 2017):

Could also be due to Arma3 using 27015 port, but seems unlikely.
With both servers started, can you please try this and provide the output ?

echo "$(netstat -nap 2>/dev/null | grep ^udp[[:space:]] | grep :27015[[:space:]] | rev | awk '{print $1}' | rev | cut -d\/ -f1)"

Edit: As well as:

echo "$(netstat -nap 2>/dev/null | grep ^udp[[:space:]] | grep :27015[[:space:]])"
<!-- gh-comment-id:288378487 --> @UltimateByte commented on GitHub (Mar 22, 2017): Could also be due to Arma3 using 27015 port, but seems unlikely. With both servers started, can you please try this and provide the output ? ````bash echo "$(netstat -nap 2>/dev/null | grep ^udp[[:space:]] | grep :27015[[:space:]] | rev | awk '{print $1}' | rev | cut -d\/ -f1)" ```` Edit: As well as: ````bash echo "$(netstat -nap 2>/dev/null | grep ^udp[[:space:]] | grep :27015[[:space:]])" ````
Author
Owner

@Tealk commented on GitHub (Mar 22, 2017):

echo "$(netstat -nap 2>/dev/null | grep ^udp[[:space:]] | grep :27015[[:space:]])"`

udp 0 0 148.251.23.236:27015 0.0.0.0:* 15094/ShooterGameSe

arma3server

DESCRIPTION DIRECTION PORT PROTOCOL

Game INBOUND 2302 udp
Steam: Query INBOUND 2303 udp
Steam: Master traffic INBOUND 2304 udp
Undocumented Port INBOUND 2305 udp

ark

DESCRIPTION DIRECTION PORT PROTOCOL

Game INBOUND 7777 udp
RAW INBOUND 7778 udp
Query INBOUND 27015 udp
RCON INBOUND 27020 tcp

<!-- gh-comment-id:288379533 --> @Tealk commented on GitHub (Mar 22, 2017): ```sh echo "$(netstat -nap 2>/dev/null | grep ^udp[[:space:]] | grep :27015[[:space:]])"` ``` `udp 0 0 148.251.23.236:27015 0.0.0.0:* 15094/ShooterGameSe` arma3server DESCRIPTION DIRECTION PORT PROTOCOL > Game INBOUND 2302 udp > Steam: Query INBOUND 2303 udp > Steam: Master traffic INBOUND 2304 udp > Undocumented Port INBOUND 2305 udp ark DESCRIPTION DIRECTION PORT PROTOCOL > Game INBOUND 7777 udp > RAW INBOUND 7778 udp > Query INBOUND 27015 udp > RCON INBOUND 27020 tcp
Author
Owner

@Tealk commented on GitHub (Mar 22, 2017):

@UltimateByte
Have checked it again the server dosnt user the same port or something, only the same user^^
But the Ark server dosn't shut down clearly, it wait some time and then the script kill the server.

I have test ist with 2 Ark severs there is no problem

<!-- gh-comment-id:288415455 --> @Tealk commented on GitHub (Mar 22, 2017): @UltimateByte Have checked it again the server dosnt user the same port or something, only the same user^^ But the Ark server dosn't shut down clearly, it wait some time and then the script kill the server. I have test ist with 2 Ark severs there is no problem
Author
Owner

@Tealk commented on GitHub (Mar 24, 2017):

Have make separate users for these servers now.

<!-- gh-comment-id:288989949 --> @Tealk commented on GitHub (Mar 24, 2017): Have make separate users for these servers now.
Author
Owner

@UltimateByte commented on GitHub (Mar 24, 2017):

Allright, I'll keep this opened for record when somebody (maybe me) works on diagnosing and solving this issue.
Thanks for your report.

<!-- gh-comment-id:289012702 --> @UltimateByte commented on GitHub (Mar 24, 2017): Allright, I'll keep this opened for record when somebody (maybe me) works on diagnosing and solving this issue. Thanks for your report.
Author
Owner

@Tealk commented on GitHub (Mar 24, 2017):

If you need help i can set up test servers :)

<!-- gh-comment-id:289012919 --> @Tealk commented on GitHub (Mar 24, 2017): If you need help i can set up test servers :)
Author
Owner

@UltimateByte commented on GitHub (Mar 24, 2017):

Thanks, but we're gonna be OK ! We all have our own servers, and @cedarlug provides a work machine for dev already ! No need for a specific install to test this, I'm pretty sure we're gonna be able to reproduce the issue thanks to the info you provided :)

<!-- gh-comment-id:289013416 --> @UltimateByte commented on GitHub (Mar 24, 2017): Thanks, but we're gonna be OK ! We all have our own servers, and @cedarlug provides a work machine for dev already ! No need for a specific install to test this, I'm pretty sure we're gonna be able to reproduce the issue thanks to the info you provided :)
Author
Owner

@cedarlug commented on GitHub (Mar 26, 2017):

Looking into this further I have some answers and some questions.

First - the answer of your Admin line above -- The term "Password" in your comment on that line is being matched in lgsm/functions/info_config.sh when command_details.sh is parsing the config to dump the output to command_postdetails.sh. I suspect that if you remove the comment, this line wont' appear in the output.

The other issue (the main issue) is still elusive.

Can you push the screen output from ./arkserver stop when it's killing arma3server to transfer.sh?

script debug.dump
touch .dev-debug
./arkserver stop
exit
curl --upload-file debug.dump https://transfer.sh/debug.dump
rm .dev-debug || /bin/true
rm debug.dump || /bin/true

and post the link.

<!-- gh-comment-id:289252241 --> @cedarlug commented on GitHub (Mar 26, 2017): Looking into this further I have some answers and some questions. First - the answer of your Admin line above -- The term "Password" in your comment on that line is being matched in `lgsm/functions/info_config.sh` when `command_details.sh` is parsing the config to dump the output to `command_postdetails.sh`. I suspect that if you remove the comment, this line wont' appear in the output. The other issue (the main issue) is still elusive. Can you push the screen output from `./arkserver stop` when it's killing arma3server to transfer.sh? ```bash script debug.dump touch .dev-debug ./arkserver stop exit curl --upload-file debug.dump https://transfer.sh/debug.dump rm .dev-debug || /bin/true rm debug.dump || /bin/true ``` and post the link.
Author
Owner

@vadrozh commented on GitHub (Mar 16, 2018):

It's old topic but i have the same issue. I have the same csgoservers running under one user, and then you stop the first server, it stops the second server.

<!-- gh-comment-id:373651271 --> @vadrozh commented on GitHub (Mar 16, 2018): It's old topic but i have the same issue. I have the same csgoservers running under one user, and then you stop the first server, it stops the second server.
Author
Owner

@Evolanca commented on GitHub (Apr 12, 2018):

Hello :)

I also have the same issue. I try to make a Ark Cluster setup but its way more difficult than i thought ^^ Here what i tried:

  1. One installation with multiple servers.
    -- = Not possible if u wanna have different GameUserSettings or Mods.

  2. Multiple installations with different Users.
    -- = Doesnt work bcause Ark Clusterfiles are createt with the forced permissions u=rw,g=,o= o. 077. So the other user can´t access the clusterfile even when i try to force other permissions via etc/.profile or in the specific user via ./profile or .bashrc. Nothing happens it is still 077. I also tried with running a cron to overwrite the permissions every minute that group can access and every user is in the same group but u still i have fail windows where u can lose the charakter or the upload.

  3. Multiple installations with one User
    -- = Cluster works fine but now i have the problem that i only have one tmux session and when i shutdown the first server i started the rest got killed aswell. Seems that all instances are docked to the one session and when i kill the mainsession what is shown up in the tmux it will kill the rest aswell. When i shutdown all the servers except the first and the first at last it works fine. The problem is when this first server has issues it will inflict all the other ones and i have to shut down the whole cluster instead just starting that one server new.

== One User with multiple instances is the best way but than i need for each server a own session to make it rly stand alone.

Would be greate if someone has some ideas or maybe already a solution :)

<!-- gh-comment-id:380725115 --> @Evolanca commented on GitHub (Apr 12, 2018): Hello :) I also have the same issue. I try to make a Ark Cluster setup but its way more difficult than i thought ^^ Here what i tried: 1. One installation with multiple servers. -- = Not possible if u wanna have different GameUserSettings or Mods. 2. Multiple installations with different Users. -- = Doesnt work bcause Ark Clusterfiles are createt with the forced permissions u=rw,g=,o= o. 077. So the other user can´t access the clusterfile even when i try to force other permissions via etc/.profile or in the specific user via ./profile or .bashrc. Nothing happens it is still 077. I also tried with running a cron to overwrite the permissions every minute that group can access and every user is in the same group but u still i have fail windows where u can lose the charakter or the upload. 3. Multiple installations with one User -- = Cluster works fine but now i have the problem that i only have one tmux session and when i shutdown the first server i started the rest got killed aswell. Seems that all instances are docked to the one session and when i kill the mainsession what is shown up in the tmux it will kill the rest aswell. When i shutdown all the servers except the first and the first at last it works fine. The problem is when this first server has issues it will inflict all the other ones and i have to shut down the whole cluster instead just starting that one server new. == One User with multiple instances is the best way but than i need for each server a own session to make it rly stand alone. Would be greate if someone has some ideas or maybe already a solution :)
Author
Owner

@UltimateByte commented on GitHub (Apr 16, 2018):

@Evolanca This is going to be fixed soon. :)
https://github.com/GameServerManagers/LinuxGSM/pull/1882

<!-- gh-comment-id:381758235 --> @UltimateByte commented on GitHub (Apr 16, 2018): @Evolanca This is going to be fixed soon. :) https://github.com/GameServerManagers/LinuxGSM/pull/1882
Author
Owner

@UltimateByte commented on GitHub (May 10, 2018):

This should be fixed now ;)

<!-- gh-comment-id:388027099 --> @UltimateByte commented on GitHub (May 10, 2018): This should be fixed now ;)
Author
Owner

@lock[bot] commented on GitHub (May 10, 2019):

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:491259259 --> @lock[bot] commented on GitHub (May 10, 2019): 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#1070
No description provided.