[GH-ISSUE #2342] Command monitor broken on teamspeak #1757

Closed
opened 2026-02-27 02:58:53 +03:00 by kerem · 6 comments
Owner

Originally created by @xopez on GitHub (May 6, 2019).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/2342

User Story

Ihave installed the latest LGSM version. I run the command ./ts3server monitor every two minutes via cron. The Log says that the tcp query is failing.

Basic info

  • Distro: Ubuntu 18.04.2 LTS
  • Game: Teamspeak
  • Command: Monitor

Further Information

I found the issue #2335 which might be related.

To Reproduce

Log from file:

May 07 00:14:02.210 ts3server: MONITOR: INFO: Checking session: CHECKING
May 07 00:14:02.714 ts3server: MONITOR: PASS: Checking session: OK
May 07 00:14:03.217 ts3server: MONITOR: INFO: Querying port: tcp: :10011 : 1 : QUERYING
May 07 00:14:03.722 ts3server: MONITOR: INFO: Querying port: tcp: :10011 : 1: FAIL
May 07 00:14:19.286 ts3server: MONITOR: INFO: Querying port: tcp: :10011 : 2 : QUERYING
May 07 00:14:19.791 ts3server: MONITOR: INFO: Querying port: tcp: :10011 : 2: FAIL
May 07 00:14:35.313 ts3server: MONITOR: INFO: Querying port: tcp: :10011 : 3 : QUERYING
May 07 00:14:35.819 ts3server: MONITOR: INFO: Querying port: tcp: :10011 : 3: FAIL
May 07 00:14:51.345 ts3server: MONITOR: INFO: Querying port: tcp: :10011 : 4 : QUERYING
May 07 00:14:51.851 ts3server: MONITOR: INFO: Querying port: tcp: :10011 : 4: FAIL

Log from console:

teamspeak@mightful-noobs:~$ ./ts3server monitor
[  OK  ] Monitor ts3server: Checking session: OK
[ .... ] Monitor ts3server: Querying port: tcp: :10011 : 0/1: QUERYINGbash: : Name or service not known
bash: /dev/tcp//10011: Invalid argument
[ .... ] Monitor ts3server: Querying port: tcp: :10011 : 15/2: QUERYINGbash: : Name or service not known
bash: /dev/tcp//10011: Invalid argument
[ .... ] Monitor ts3server: Querying port: tcp: :10011 : 30/3: QUERYINGbash: : Name or service not known
bash: /dev/tcp//10011: Invalid argument
[ .... ] Monitor ts3server: Querying port: tcp: :10011 : 45/4: QUERYINGbash: : Name or service not known
bash: /dev/tcp//10011: Invalid argument
[ .... ] Monitor ts3server: Querying port: tcp: :10011 : 60/5: QUERYINGbash: : Name or service not known
bash: /dev/tcp//10011: Invalid argument
[ FAIL ] Monitor ts3server: Querying port: tcp: :10011 : 74/5: WAIT

Port bindings:

teamspeak@mightful-noobs:~$ netstat -tulpn | grep ts3server
tcp        0      0 0.0.0.0:10022           0.0.0.0:*               LISTEN      9787/./ts3server
tcp        0      0 0.0.0.0:30033           0.0.0.0:*               LISTEN      9787/./ts3server
tcp        0      0 0.0.0.0:10011           0.0.0.0:*               LISTEN      9787/./ts3server
tcp6       0      0 :::10022                :::*                    LISTEN      9787/./ts3server
tcp6       0      0 :::30033                :::*                    LISTEN      9787/./ts3server
tcp6       0      0 :::10011                :::*                    LISTEN      9787/./ts3server
udp        0      0 0.0.0.0:9987            0.0.0.0:*                           9787/./ts3server
udp6       0      0 :::9987                 :::*                                9787/./ts3server

ts3server.ini:

machine_id=
default_voice_port=9987
voice_ip=
licensepath=
filetransfer_port=30033
filetransfer_ip=
query_port=10011
query_ip=0.0.0.0, ::
query_ip_whitelist=query_ip_whitelist.txt
query_ip_blacklist=query_ip_blacklist.txt
dbplugin=ts3db_sqlite3
dbpluginparameter=
dbsqlpath=sql/
dbsqlcreatepath=create_sqlite/
dbconnections=10
logpath=logs
logquerycommands=0
dbclientkeepdays=30
logappend=0
query_skipbruteforcecheck=0
query_buffer_mb=20
http_proxy=
license_accepted=1
serverquerydocs_path=serverquerydocs/
query_ssh_ip=0.0.0.0, ::
query_ssh_port=10022
query_protocols=raw,ssh
query_ssh_rsa_host_key=ssh_host_rsa_key
query_timeout=300

Steps to reproduce the behaviour:

  1. Install ts3server
  2. start the server
  3. do the monitor command an see it failing

Expected behaviour

The server should be queried successfully

Originally created by @xopez on GitHub (May 6, 2019). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/2342 ## User Story Ihave installed the latest LGSM version. I run the command `./ts3server monitor` every two minutes via cron. The Log says that the tcp query is failing. ## Basic info * Distro: Ubuntu 18.04.2 LTS * Game: Teamspeak * Command: Monitor ## Further Information I found the issue #2335 which might be related. ## To Reproduce Log from file: ``` May 07 00:14:02.210 ts3server: MONITOR: INFO: Checking session: CHECKING May 07 00:14:02.714 ts3server: MONITOR: PASS: Checking session: OK May 07 00:14:03.217 ts3server: MONITOR: INFO: Querying port: tcp: :10011 : 1 : QUERYING May 07 00:14:03.722 ts3server: MONITOR: INFO: Querying port: tcp: :10011 : 1: FAIL May 07 00:14:19.286 ts3server: MONITOR: INFO: Querying port: tcp: :10011 : 2 : QUERYING May 07 00:14:19.791 ts3server: MONITOR: INFO: Querying port: tcp: :10011 : 2: FAIL May 07 00:14:35.313 ts3server: MONITOR: INFO: Querying port: tcp: :10011 : 3 : QUERYING May 07 00:14:35.819 ts3server: MONITOR: INFO: Querying port: tcp: :10011 : 3: FAIL May 07 00:14:51.345 ts3server: MONITOR: INFO: Querying port: tcp: :10011 : 4 : QUERYING May 07 00:14:51.851 ts3server: MONITOR: INFO: Querying port: tcp: :10011 : 4: FAIL ``` Log from console: ``` teamspeak@mightful-noobs:~$ ./ts3server monitor [ OK ] Monitor ts3server: Checking session: OK [ .... ] Monitor ts3server: Querying port: tcp: :10011 : 0/1: QUERYINGbash: : Name or service not known bash: /dev/tcp//10011: Invalid argument [ .... ] Monitor ts3server: Querying port: tcp: :10011 : 15/2: QUERYINGbash: : Name or service not known bash: /dev/tcp//10011: Invalid argument [ .... ] Monitor ts3server: Querying port: tcp: :10011 : 30/3: QUERYINGbash: : Name or service not known bash: /dev/tcp//10011: Invalid argument [ .... ] Monitor ts3server: Querying port: tcp: :10011 : 45/4: QUERYINGbash: : Name or service not known bash: /dev/tcp//10011: Invalid argument [ .... ] Monitor ts3server: Querying port: tcp: :10011 : 60/5: QUERYINGbash: : Name or service not known bash: /dev/tcp//10011: Invalid argument [ FAIL ] Monitor ts3server: Querying port: tcp: :10011 : 74/5: WAIT ``` Port bindings: ``` teamspeak@mightful-noobs:~$ netstat -tulpn | grep ts3server tcp 0 0 0.0.0.0:10022 0.0.0.0:* LISTEN 9787/./ts3server tcp 0 0 0.0.0.0:30033 0.0.0.0:* LISTEN 9787/./ts3server tcp 0 0 0.0.0.0:10011 0.0.0.0:* LISTEN 9787/./ts3server tcp6 0 0 :::10022 :::* LISTEN 9787/./ts3server tcp6 0 0 :::30033 :::* LISTEN 9787/./ts3server tcp6 0 0 :::10011 :::* LISTEN 9787/./ts3server udp 0 0 0.0.0.0:9987 0.0.0.0:* 9787/./ts3server udp6 0 0 :::9987 :::* 9787/./ts3server ``` ts3server.ini: ``` machine_id= default_voice_port=9987 voice_ip= licensepath= filetransfer_port=30033 filetransfer_ip= query_port=10011 query_ip=0.0.0.0, :: query_ip_whitelist=query_ip_whitelist.txt query_ip_blacklist=query_ip_blacklist.txt dbplugin=ts3db_sqlite3 dbpluginparameter= dbsqlpath=sql/ dbsqlcreatepath=create_sqlite/ dbconnections=10 logpath=logs logquerycommands=0 dbclientkeepdays=30 logappend=0 query_skipbruteforcecheck=0 query_buffer_mb=20 http_proxy= license_accepted=1 serverquerydocs_path=serverquerydocs/ query_ssh_ip=0.0.0.0, :: query_ssh_port=10022 query_protocols=raw,ssh query_ssh_rsa_host_key=ssh_host_rsa_key query_timeout=300 ``` ## Steps to reproduce the behaviour: 1. Install ts3server 2. start the server 3. do the monitor command an see it failing ## Expected behaviour The server should be queried successfully
kerem 2026-02-27 02:58:53 +03:00
  • closed this issue
  • added the
    priority
    label
Author
Owner

@0DUDDU commented on GitHub (May 12, 2019):

After some test i saw a difference between the result of my test and yours
When i test, i get this log

[ OK ] Monitor ts3server: Querying port: tcp: 0.0.0.0:10011 : 0/1: OK

In your log the IP is missing before the port

[ .... ] Monitor ts3server: Querying port: tcp: :10011 : 0/1: QUERYING

Can you use the postdetails command and give the url

<!-- gh-comment-id:491570822 --> @0DUDDU commented on GitHub (May 12, 2019): After some test i saw a difference between the result of my test and yours When i test, i get this log > [ OK ] Monitor ts3server: Querying port: tcp: **0.0.0.0:10011** : 0/1: OK In your log the IP is missing before the port >[ .... ] Monitor ts3server: Querying port: tcp: **:10011** : 0/1: QUERYING Can you use the postdetails command and give the url
Author
Owner

@xopez commented on GitHub (May 12, 2019):

Sure: https://hastebin.com/egepihusox
I should mention that its happen with latest lgsm version too.

<!-- gh-comment-id:491576920 --> @xopez commented on GitHub (May 12, 2019): Sure: https://hastebin.com/egepihusox I should mention that its happen with latest lgsm version too. <blockquote><div><strong><a href="https://hastebin.com/egepihusox">hastebin</a></strong></div></blockquote>
Author
Owner

@0DUDDU commented on GitHub (May 12, 2019):

Your voice_ip config is void, you should set it to the same as query_ip or any other ip
for now, the script take voice_ip not query_ip for all thing related to ip

<!-- gh-comment-id:491577586 --> @0DUDDU commented on GitHub (May 12, 2019): Your `voice_ip` config is void, you should set it to the same as `query_ip` or any other ip for now, the script take `voice_ip` not `query_ip` for all thing related to ip
Author
Owner

@xopez commented on GitHub (May 12, 2019):

Ok, I don't know why I messed up.
Set voice_ip to 0.0.0.0, :: and now it works.

<!-- gh-comment-id:491580911 --> @xopez commented on GitHub (May 12, 2019): Ok, I don't know why I messed up. Set `voice_ip` to `0.0.0.0, ::` and now it works.
Author
Owner

@xopez commented on GitHub (May 12, 2019):

Closing the issue now

<!-- gh-comment-id:491580926 --> @xopez commented on GitHub (May 12, 2019): Closing the issue now
Author
Owner

@lock[bot] commented on GitHub (May 20, 2020):

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:631704436 --> @lock[bot] commented on GitHub (May 20, 2020): 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#1757
No description provided.