[GH-ISSUE #830] Monitor arma3-server Fail #667

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

Originally created by @igeighty on GitHub (May 23, 2016).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/830

arma3server@droid118:~$ ./arma3server start
[  OK  ] Starting arma3-server: “[AUS]droid118.halawanlabs.local“
arma3server@droid118:~$ ./arma3server monitor
    fetching command_monitor.sh...OK
[  OK  ] Monitor arma3-server: Checking session: OK
    fetching monitor_gsquery.sh...OK
    fetching gsquery.py...OK
[ FAIL ] Monitor arma3-server: Querying port: 192.168.1.118:2302 : 60/5 : FAIL
    fetching alert.sh...OK
[  OK  ] Stopping arma3-server: “[AUS]droid118.halawanlabs.local“
[  OK  ] Starting arma3-server: “[AUS]droid118.halawanlabs.local“
arma3server@droid118:~$ 

G'day,
On a fresh installation of arma3server on Debian 8.4 (hosted here at home), I am unable to get the monitor to query my server.

Is there something in the scripts that needs to be edited in order for it to function ?
Is the fact it is reading a local network address the problem and it should be querying the public address.

i have had a bit of a look through the scripts however i will admit it is a bit beyond me.
I can live without the feature, as i usually run ./arma3server console to visually catch the servers progress.

using your script i also notice i can't see the server listed the server browser in LAN, only Internet.

when i use the server using the default linux setup here.https://community.bistudio.com/wiki/Arma_3_Dedicated_Server#Installation_2
i am able to see it locally and internet, is anything to do with the -ip= in the start line ?

i have not adjusted anything in arma3server in these lines.

`# Start Variables
ip="0.0.0.0"
port="2302"
updateonstart="off"

fn_parms(){
parms="-netlog -ip=${ip} -port=${port}.............`

i am using what i think is the latest version of your arma3server script (fresh install tonight just to be sure)

Thanks of the scripts, i am learning a lot from this setup.

Originally created by @igeighty on GitHub (May 23, 2016). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/830 ``` arma3server@droid118:~$ ./arma3server start [ OK ] Starting arma3-server: “[AUS]droid118.halawanlabs.local“ arma3server@droid118:~$ ./arma3server monitor fetching command_monitor.sh...OK [ OK ] Monitor arma3-server: Checking session: OK fetching monitor_gsquery.sh...OK fetching gsquery.py...OK [ FAIL ] Monitor arma3-server: Querying port: 192.168.1.118:2302 : 60/5 : FAIL fetching alert.sh...OK [ OK ] Stopping arma3-server: “[AUS]droid118.halawanlabs.local“ [ OK ] Starting arma3-server: “[AUS]droid118.halawanlabs.local“ arma3server@droid118:~$ ``` G'day, On a fresh installation of arma3server on Debian 8.4 (hosted here at home), I am unable to get the monitor to query my server. Is there something in the scripts that needs to be edited in order for it to function ? Is the fact it is reading a local network address the problem and it should be querying the public address. i have had a bit of a look through the scripts however i will admit it is a bit beyond me. I can live without the feature, as i usually run `./arma3server console` to visually catch the servers progress. using your script i also notice i can't see the server listed the server browser in LAN, only Internet. when i use the server using the default linux setup here.https://community.bistudio.com/wiki/Arma_3_Dedicated_Server#Installation_2 i am able to see it locally and internet, is anything to do with the `-ip=` in the start line ? i have not adjusted anything in arma3server in these lines. `# Start Variables ip="0.0.0.0" port="2302" updateonstart="off" fn_parms(){ parms="-netlog -ip=${ip} -port=${port}.............` i am using what i think is the latest version of your arma3server script (fresh install tonight just to be sure) Thanks of the scripts, i am learning a lot from this setup.
kerem 2026-02-27 02:03:02 +03:00
Author
Owner

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

I'm no Arma3 expert, but there might be something for us to fix in order for it to work.
See that https://github.com/dgibbs64/linuxgsm/issues/815

<!-- gh-comment-id:221020133 --> @UltimateByte commented on GitHub (May 23, 2016): I'm no Arma3 expert, but there might be something for us to fix in order for it to work. See that https://github.com/dgibbs64/linuxgsm/issues/815
Author
Owner

@igeighty commented on GitHub (May 26, 2016):

Something i have noticed, related or no..

when running ./arma3server details the port is being reported as port 0

http://pastebin.com/7mnxacBf

yet when running ./arma3server debug the port is being loaded correctly 2302

http://pastebin.com/fussnnTq

I have done another fresh install without changing any of the scripts on a different machine to check, with the same results, (just different LAN IP) the only exception from default install was to change steam username and pass in arma3server.sh

This occurs whether i have uncommented or not port = 2302 in the arma3-server.server.cfg
Ports are no longer handled by a server.cfg file, they are specified in the servers command line -port=

at the end of the day the server is running and users are able to join both on LAN and from outside the LAN via the internet server browser, so ports are working, and being forwarded through my router ok,
I was curios as to why they are not being shown correctly in the details with of arma3server script.

any other logs you need sing out :)

<!-- gh-comment-id:221848368 --> @igeighty commented on GitHub (May 26, 2016): Something i have noticed, related or no.. when running `./arma3server details` the port is being reported as port 0 http://pastebin.com/7mnxacBf yet when running `./arma3server debug` the port is being loaded correctly 2302 http://pastebin.com/fussnnTq I have done another fresh install without changing any of the scripts on a different machine to check, with the same results, (just different LAN IP) the only exception from default install was to change steam username and pass in `arma3server.sh` This occurs whether i have uncommented or not `port = 2302` in the `arma3-server.server.cfg` Ports are no longer handled by a server.cfg file, they are specified in the servers command line `-port=` at the end of the day the server is running and users are able to join both on LAN and from outside the LAN via the internet server browser, so ports are working, and being forwarded through my router ok, I was curios as to why they are not being shown correctly in the details with of arma3server script. any other logs you need sing out :)
Author
Owner

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

So in the end, the details function doesn't report the correct port, is that it ?
That's something i could fix easilly. :)

<!-- gh-comment-id:221852621 --> @UltimateByte commented on GitHub (May 26, 2016): So in the end, the details function doesn't report the correct port, is that it ? That's something i could fix easilly. :)
Author
Owner

@igeighty commented on GitHub (May 26, 2016):

I think so, i tried to trace it through but got lost.

it was just a theory as to why the monitor function fails, its not a show stopper though, as the server functions as it should :)

happy to test any theories :)

<!-- gh-comment-id:221859827 --> @igeighty commented on GitHub (May 26, 2016): I think so, i tried to trace it through but got lost. it was just a theory as to why the monitor function fails, its not a show stopper though, as the server functions as it should :) happy to test any theories :)
Author
Owner

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

Well, we'd need to investigate the code in the first place, got no time right now, but i'll try to get back to it at some point if somebody else doesn't do it before me :o))

<!-- gh-comment-id:221915246 --> @UltimateByte commented on GitHub (May 26, 2016): Well, we'd need to investigate the code in the first place, got no time right now, but i'll try to get back to it at some point if somebody else doesn't do it before me :o))
Author
Owner

@FliesWithWind commented on GitHub (Jun 8, 2016):

Hey guys,

I had the same problem and found the solution. Basically Arma 3 needs to be scanned on +1 port, at least in my case.

I solved it by changing this in file lgsm/functions/monitor_gsquery.sh
if [ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then
port=$((port + 1))
elif [ "${engine}" == "spark" ]; then
port=$((port + 1))
fi

to

if [ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then
port=$((port + 1))
if [ "${engine}" == "virtualreality" ]; then
port=$((port + 1))
elif [ "${engine}" == "spark" ]; then
port=$((port + 1))
fi

<!-- gh-comment-id:224689037 --> @FliesWithWind commented on GitHub (Jun 8, 2016): Hey guys, I had the same problem and found the solution. Basically Arma 3 needs to be scanned on +1 port, at least in my case. I solved it by changing this in file lgsm/functions/monitor_gsquery.sh if [ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then port=$((port + 1)) elif [ "${engine}" == "spark" ]; then port=$((port + 1)) fi to if [ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then port=$((port + 1)) if [ "${engine}" == "virtualreality" ]; then port=$((port + 1)) elif [ "${engine}" == "spark" ]; then port=$((port + 1)) fi
Author
Owner

@igeighty commented on GitHub (Jun 14, 2016):

G'Day @FliesWithWind ,
would you please be able to paste the monitor_gsquery.sh file to pastebin ?
when i make the change you propose above, i end up with error from the script.

arma3server@droid118:~$ ./arma3server m
[ OK ] Monitor arma3-server: Checking session: OK
/home/arma3server/lgsm/functions/monitor_gsquery.sh: line 92: syntax error: unexpected end of file

sorry i haven't been able to test this sooner.
i am obviously not doing it right :)

regards.
Doug

<!-- gh-comment-id:225827989 --> @igeighty commented on GitHub (Jun 14, 2016): G'Day @FliesWithWind , would you please be able to paste the monitor_gsquery.sh file to pastebin ? when i make the change you propose above, i end up with error from the script. `arma3server@droid118:~$ ./arma3server m` `[ OK ] Monitor arma3-server: Checking session: OK` `/home/arma3server/lgsm/functions/monitor_gsquery.sh: line 92: syntax error: unexpected end of file` sorry i haven't been able to test this sooner. i am obviously not doing it right :) regards. Doug
Author
Owner

@igeighty commented on GitHub (Jun 14, 2016):

hold that, it was my bad,
i had 'if' not 'elif'

monitor now works as you suggested.

http://pastebin.com/W2MEg0xe

arma3server@droid118:~$ ./arma3server m
[ OK ] Monitor arma3-server: Checking session: OK
[ OK ] Monitor arma3-server: Querying port: 192.168.1.118:2303 : 1 : OK

<!-- gh-comment-id:225831348 --> @igeighty commented on GitHub (Jun 14, 2016): hold that, it was my bad, i had 'if' not 'elif' monitor now works as you suggested. http://pastebin.com/W2MEg0xe `arma3server@droid118:~$ ./arma3server m` `[ OK ] Monitor arma3-server: Checking session: OK` `[ OK ] Monitor arma3-server: Querying port: 192.168.1.118:2303 : 1 : OK`
Author
Owner

@FliesWithWind commented on GitHub (Jun 14, 2016):

Glad it works ;)

However if someone specifies different steam query port in server config file, this might no longer work.

<!-- gh-comment-id:225846594 --> @FliesWithWind commented on GitHub (Jun 14, 2016): Glad it works ;) However if someone specifies different steam query port in server config file, this might no longer work.
Author
Owner

@igeighty commented on GitHub (Jun 14, 2016):

the base port is specified in line 35 of arma3server, and without uncommenting any lines in the arma3-server.server.cfg it works a treat.
as i think that the value for port is taken from arma3server and not the server.cfg. (bohemia recommends not using port in server config anymore) thats where i was going wrong :)

<!-- gh-comment-id:225847410 --> @igeighty commented on GitHub (Jun 14, 2016): the base port is specified in line 35 of arma3server, and without uncommenting any lines in the arma3-server.server.cfg it works a treat. as i think that the value for port is taken from arma3server and not the server.cfg. (bohemia recommends not using port in server config anymore) thats where i was going wrong :)
Author
Owner

@JHulsmans commented on GitHub (Jun 14, 2016):

Great to hear you got it resolved @igeighty. If you want you can have this issue closed now.

<!-- gh-comment-id:225848267 --> @JHulsmans commented on GitHub (Jun 14, 2016): Great to hear you got it resolved @igeighty. If you want you can have this issue closed now.
Author
Owner

@UltimateByte commented on GitHub (Jun 14, 2016):

Well, it should be closed once we're sure that it's fixed into LGSM's code :)

<!-- gh-comment-id:225848383 --> @UltimateByte commented on GitHub (Jun 14, 2016): Well, it should be closed once we're sure that it's fixed into LGSM's code :)
Author
Owner

@igeighty commented on GitHub (Jun 14, 2016):

no worries guys, ill keep my eyes out for the LGSM master.
i have a few days to play around with the server again. and to learn how to use gut hub desktop :)
cheers.

<!-- gh-comment-id:225848642 --> @igeighty commented on GitHub (Jun 14, 2016): no worries guys, ill keep my eyes out for the LGSM master. i have a few days to play around with the server again. and to learn how to use gut hub desktop :) cheers.
Author
Owner

@JHulsmans commented on GitHub (Jun 14, 2016):

@UltimateByte True that, I may have jumped the gun here. 😄

<!-- gh-comment-id:225848808 --> @JHulsmans commented on GitHub (Jun 14, 2016): @UltimateByte True that, I may have jumped the gun here. :smile:
Author
Owner

@UltimateByte commented on GitHub (Jun 14, 2016):

@igeighty Github desktop is kind of a pain, but it's useful when you start doing some more complicated stuff, so that's a good thing to get used to it. ^^

I've re-read the issue, there was already a fix to report the right port in the details function, from Cedar github.com/dgibbs64/linuxgsm@2d2d8941c3

So @JHulsmans Hehe Actually, you're right, because now the only issue that remains is the monitor function, and igeighty already made a pull request for that, and there's an issue for the fix !
https://github.com/dgibbs64/linuxgsm/issues/865

I'll close this one, but as always, feel free to re-open if needed, otherwise, let's discuss on #865 !

<!-- gh-comment-id:225850560 --> @UltimateByte commented on GitHub (Jun 14, 2016): @igeighty Github desktop is kind of a pain, but it's useful when you start doing some more complicated stuff, so that's a good thing to get used to it. ^^ I've re-read the issue, there was already a fix to report the right port in the details function, from Cedar https://github.com/dgibbs64/linuxgsm/commit/2d2d8941c33f872994ad29631ae865a772494584 So @JHulsmans Hehe Actually, you're right, because now the only issue that remains is the monitor function, and igeighty already made a pull request for that, and there's an issue for the fix ! https://github.com/dgibbs64/linuxgsm/issues/865 I'll close this one, but as always, feel free to re-open if needed, otherwise, let's discuss on #865 !
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:406236949 --> @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#667
No description provided.