[GH-ISSUE #246] [ts3server] Monitor fails if incorrect architecture version is installed #210

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

Originally created by @npd1124 on GitHub (Dec 17, 2014).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/246

I have set it in crontab so that it will run the monitor but for some reason it detects taht the server is offline when it is not and restarts it. Is there a way to fix this?

Originally created by @npd1124 on GitHub (Dec 17, 2014). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/246 I have set it in crontab so that it will run the monitor but for some reason it detects taht the server is offline when it is not and restarts it. Is there a way to fix this?
kerem 2026-02-27 02:00:08 +03:00
Author
Owner

@Scarsz commented on GitHub (Dec 17, 2014):

We need error logs to be able to fix this, try running the command manually and seeing if it does anything.

<!-- gh-comment-id:67279153 --> @Scarsz commented on GitHub (Dec 17, 2014): We need error logs to be able to fix this, try running the command manually and seeing if it does anything.
Author
Owner

@npd1124 commented on GitHub (Dec 17, 2014):

ts3server@vps33182:$ ./ts3server monitor
[ WARN ] ts3-server: Monitor detected FuZion Gaming Teamspeak had stopped!
[ INFO ] ts3-server: FuZion Gaming Teamspeak Unknown error
[ INFO ] Sent email notification to
[ OK ] Stopping ts3-server: FuZion Gaming Teamspeak
[ OK ] Starting ts3-server: FuZion Gaming Teamspeak
ts3server@vps33182:
$

this is all I get when I run the monitor

<!-- gh-comment-id:67397257 --> @npd1124 commented on GitHub (Dec 17, 2014): ts3server@vps33182:~$ ./ts3server monitor [ WARN ] ts3-server: Monitor detected FuZion Gaming Teamspeak had stopped! [ INFO ] ts3-server: FuZion Gaming Teamspeak Unknown error [ INFO ] Sent email notification to [ OK ] Stopping ts3-server: FuZion Gaming Teamspeak [ OK ] Starting ts3-server: FuZion Gaming Teamspeak ts3server@vps33182:~$ this is all I get when I run the monitor
Author
Owner

@dgibbs64 commented on GitHub (Dec 17, 2014):

Thats looks like a pain.

Here is the code that s returning the error

if [ "$ts3status" = "Server seems to have died" ];then
    echo -en "[\e[0;36m INFO \e[0;39m] ${servicename}: ${servername} Server seems to have died"
    echo -e "$(date '+%b %d %H:%M:%S') ${servicename}: ${servername} Server seems to have died" >> ${scriptlog}

    failurereason="Server seems to have died"
    echo -en "[\e[0;36m INFO \e[0;39m] ${servicename}: ${servername} No server running (ts3server.pid is missing)"
    echo -e "$(date '+%b %d %H:%M:%S') ${servicename}: ${servername} No server running (ts3server.pid is missing)" >> ${scriptlog}
    failurereason="No server running (ts3server.pid is missing)"
else
    echo -en "[\e[0;36m INFO \e[0;39m] ${servicename}: ${servername} Unknown error"
    echo -e "$(date '+%b %d %H:%M:%S') ${servicename}: ${servername} Unknown error" >> ${scriptlog}
    failurereason="Unknown error"
fi

fn_status(){
    ts3status=$(${filesdir}/ts3server_startscript.sh status inifile=${ini})
}

Please can you run the following command.

serverfiles/ts3server_startscript.sh status inifile=(your ini file)

and tell me what it returns as it must be something other than "Server seems to have died".

I may have to look in to this further

<!-- gh-comment-id:67411843 --> @dgibbs64 commented on GitHub (Dec 17, 2014): Thats looks like a pain. Here is the code that s returning the error ``` if [ "$ts3status" = "Server seems to have died" ];then echo -en "[\e[0;36m INFO \e[0;39m] ${servicename}: ${servername} Server seems to have died" echo -e "$(date '+%b %d %H:%M:%S') ${servicename}: ${servername} Server seems to have died" >> ${scriptlog} failurereason="Server seems to have died" echo -en "[\e[0;36m INFO \e[0;39m] ${servicename}: ${servername} No server running (ts3server.pid is missing)" echo -e "$(date '+%b %d %H:%M:%S') ${servicename}: ${servername} No server running (ts3server.pid is missing)" >> ${scriptlog} failurereason="No server running (ts3server.pid is missing)" else echo -en "[\e[0;36m INFO \e[0;39m] ${servicename}: ${servername} Unknown error" echo -e "$(date '+%b %d %H:%M:%S') ${servicename}: ${servername} Unknown error" >> ${scriptlog} failurereason="Unknown error" fi fn_status(){ ts3status=$(${filesdir}/ts3server_startscript.sh status inifile=${ini}) } ``` Please can you run the following command. serverfiles/ts3server_startscript.sh status inifile=(your ini file) and tell me what it returns as it must be something other than "Server seems to have died". I may have to look in to this further
Author
Owner

@npd1124 commented on GitHub (Dec 17, 2014):

This is what it returned

-bash: syntax error near unexpected token `('

<!-- gh-comment-id:67412585 --> @npd1124 commented on GitHub (Dec 17, 2014): This is what it returned -bash: syntax error near unexpected token `('
Author
Owner

@Scarsz commented on GitHub (Dec 17, 2014):

Replace (your ini file) with the path to your teamspeak servers ini

<!-- gh-comment-id:67412857 --> @Scarsz commented on GitHub (Dec 17, 2014): Replace `(your ini file)` with the path to your teamspeak servers ini
Author
Owner

@npd1124 commented on GitHub (Dec 17, 2014):

so would it be like this
serverfiles/ts3server_startscript.sh status inifile=(/home/ts3server/serverfiles/ts3-server.ini)

<!-- gh-comment-id:67413354 --> @npd1124 commented on GitHub (Dec 17, 2014): so would it be like this serverfiles/ts3server_startscript.sh status inifile=(/home/ts3server/serverfiles/ts3-server.ini)
Author
Owner

@dgibbs64 commented on GitHub (Dec 17, 2014):

serverfiles/ts3server_startscript.sh status inifile=/home/ts3server/serverfiles/ts3-server.ini
<!-- gh-comment-id:67413630 --> @dgibbs64 commented on GitHub (Dec 17, 2014): ``` serverfiles/ts3server_startscript.sh status inifile=/home/ts3server/serverfiles/ts3-server.ini ```
Author
Owner

@npd1124 commented on GitHub (Dec 17, 2014):

Would it be because I have the x86 teamspeak server?

<!-- gh-comment-id:67413766 --> @npd1124 commented on GitHub (Dec 17, 2014): Would it be because I have the x86 teamspeak server?
Author
Owner

@npd1124 commented on GitHub (Dec 17, 2014):

It returned this
Do you have the right TS3 Server package for your system? You have: Linux x86_64, not Linux i386.
Server is running

<!-- gh-comment-id:67413837 --> @npd1124 commented on GitHub (Dec 17, 2014): It returned this Do you have the right TS3 Server package for your system? You have: Linux x86_64, not Linux i386. Server is running
Author
Owner

@dgibbs64 commented on GitHub (Dec 17, 2014):

If you are running a 64-bit distro you should run the 64-bit version :)

<!-- gh-comment-id:67414190 --> @dgibbs64 commented on GitHub (Dec 17, 2014): If you are running a 64-bit distro you should run the 64-bit version :)
Author
Owner

@npd1124 commented on GitHub (Dec 17, 2014):

I am running Ubuntu 12.04 64 bit with the Linux x86_64, does that have anything to do with why the monitor keeps restarting the server ?

<!-- gh-comment-id:67414324 --> @npd1124 commented on GitHub (Dec 17, 2014): I am running Ubuntu 12.04 64 bit with the Linux x86_64, does that have anything to do with why the monitor keeps restarting the server ?
Author
Owner

@dgibbs64 commented on GitHub (Dec 17, 2014):

Yeah I think thats probably the issue. You are running the wrong version of teamspeak for your server. Looks like the x86 version still runs.

The problem is that the script is looking for either the following to be returned:

Server is running

or

Server seems to have died

Instead the teamspeak server returns.

Do you have the right TS3 Server package for your system? You have: Linux x86_64, not Linux i386. Server is running

This is an "Unknown error" to the script as it does not match any of the other messages.

The only way to resolve this currently is for you to re install with the correct x64 bit version. I will however look at making a change to the script to take this problem in to account. For example the server would advise you are running the wrong version on start so you know right away and correct on first install.

<!-- gh-comment-id:67415207 --> @dgibbs64 commented on GitHub (Dec 17, 2014): Yeah I think thats probably the issue. You are running the wrong version of teamspeak for your server. Looks like the x86 version still runs. The problem is that the script is looking for either the following to be returned: ``` Server is running ``` or ``` Server seems to have died ``` Instead the teamspeak server returns. ``` Do you have the right TS3 Server package for your system? You have: Linux x86_64, not Linux i386. Server is running ``` This is an "Unknown error" to the script as it does not match any of the other messages. The only way to resolve this currently is for you to re install with the correct x64 bit version. I will however look at making a change to the script to take this problem in to account. For example the server would advise you are running the wrong version on start so you know right away and correct on first install.
Author
Owner

@npd1124 commented on GitHub (Dec 17, 2014):

Then which server would be the right one?

<!-- gh-comment-id:67415378 --> @npd1124 commented on GitHub (Dec 17, 2014): Then which server would be the right one?
Author
Owner
<!-- gh-comment-id:67415543 --> @dgibbs64 commented on GitHub (Dec 17, 2014): http://dl.4players.de/ts/releases/3.0.11.2/teamspeak3-server_linux-amd64-3.0.11.2.tar.gz
Author
Owner

@npd1124 commented on GitHub (Dec 17, 2014):

Alright ill try that version and see if it fixes it.

<!-- gh-comment-id:67415788 --> @npd1124 commented on GitHub (Dec 17, 2014): Alright ill try that version and see if it fixes it.
Author
Owner

@lock[bot] commented on GitHub (Jul 20, 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:406454732 --> @lock[bot] commented on GitHub (Jul 20, 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#210
No description provided.