[GH-ISSUE #677] [ts3server] can only update servers installed a while ago #541

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

Originally created by @UltimateByte on GitHub (Feb 5, 2016).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/677

Yep... you read it right.

Freshly installed server :

serverdev@lrob:~/ts3server4$ ./ts3server update
[ FAIL ] Update ts3-server: Checking for update: teamspeak.com: Not returning version infoserverdev@lrob:~/ts3server4$

Old installation, already updated too :

serverdev@lrob:~/ts3server$ ./ts3server update
[  OK  ] Update ts3-server: Checking for update: teamspeak.com

No update available:
        Current version: 3.0.12
        Available version: 3.0.12

I'm a bit mindfucked right now.

Originally created by @UltimateByte on GitHub (Feb 5, 2016). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/677 Yep... you read it right. Freshly installed server : ``` serverdev@lrob:~/ts3server4$ ./ts3server update [ FAIL ] Update ts3-server: Checking for update: teamspeak.com: Not returning version infoserverdev@lrob:~/ts3server4$ ``` Old installation, already updated too : ``` serverdev@lrob:~/ts3server$ ./ts3server update [ OK ] Update ts3-server: Checking for update: teamspeak.com No update available: Current version: 3.0.12 Available version: 3.0.12 ``` I'm a bit mindfucked right now.
kerem 2026-02-27 02:02:13 +03:00
  • closed this issue
  • added the
    type: bug
    label
Author
Owner

@oalaro commented on GitHub (Feb 5, 2016):

Downloadable name from linux-amd64 to linux_amd64. They also changed the name of the binary

Can one of these changes be the cause?

<!-- gh-comment-id:180382110 --> @oalaro commented on GitHub (Feb 5, 2016): > Downloadable name from linux-amd64 to linux_amd64. They also changed the name of the binary Can one of these changes be the cause?
Author
Owner

@UltimateByte commented on GitHub (Feb 5, 2016):

That's exactly what we all fixed already. All "linux-" has been replaced by "linux_".

serverdev@lrob:~/ts3server4$ cd functions/
serverdev@lrob:~/ts3server4/functions$ ls
check_deps.sh  check.sh            core_functions.sh  fix_glibc.sh    install_complete.sh  install_header.sh     install_ts3db.sh
check_logs.sh  check_systemdir.sh  core_getopt.sh     fix.sh          install_config.sh    install_logs.sh       install_ts3.sh
check_root.sh  command_install.sh  core_messages.sh   info_distro.sh  install_gsquery.sh   install_serverdir.sh  update_check.sh
serverdev@lrob:~/ts3server4/functions$ grep -rH "linux-" *
serverdev@lrob:~/ts3server4/functions$ grep -rH "linux_" *
install_ts3.sh: wget --spider -q "http://dl.4players.de/ts/releases/${ts3_version_number}/teamspeak3-server_linux_${ts3arch}-${ts3_version_number}.tar.bz2"
install_ts3.sh:echo -e "downloading teamspeak3-server_linux_${ts3arch}-${ts3_version_number}.tar.bz2...\c"
install_ts3.sh:wget -N /dev/null http://dl.4players.de/ts/releases/${ts3_version_number}/teamspeak3-server_linux_${ts3arch}-${ts3_version_number}.tar.bz2 2>&1 | grep -F HTTP | cut -c45-| uniq
install_ts3.sh:echo -e "extracting teamspeak3-server_linux_${ts3arch}-${ts3_version_number}.tar.bz2...\c"
install_ts3.sh:tar -xf "teamspeak3-server_linux_${ts3arch}-${ts3_version_number}.tar.bz2" 2> ".${servicename}-tar-error.tmp"
install_ts3.sh:cp -R "${rootdir}/teamspeak3-server_linux_${ts3arch}/"* "${filesdir}" 2> ".${servicename}-cp-error.tmp"
install_ts3.sh:rm -f "teamspeak3-server_linux_${ts3arch}-${ts3_version_number}.tar.bz2"
install_ts3.sh:rm -rf "${rootdir}/teamspeak3-server_linux_${ts3arch}"
update_check.sh:        wget --spider -q "http://dl.4players.de/ts/releases/${ts3_version_number}/teamspeak3-server_linux_${ts3arch}-${ts3_version_number}.tar.bz2"
serverdev@lrob:~/ts3server4/functions$

I also inspected the update function that seems to run exactly like the install function to get the latest version number, that's why i don't get it. The issue must be somewhere else, but where ?

<!-- gh-comment-id:180383818 --> @UltimateByte commented on GitHub (Feb 5, 2016): That's exactly what we all fixed already. All "linux-" has been replaced by "linux_". ``` serverdev@lrob:~/ts3server4$ cd functions/ serverdev@lrob:~/ts3server4/functions$ ls check_deps.sh check.sh core_functions.sh fix_glibc.sh install_complete.sh install_header.sh install_ts3db.sh check_logs.sh check_systemdir.sh core_getopt.sh fix.sh install_config.sh install_logs.sh install_ts3.sh check_root.sh command_install.sh core_messages.sh info_distro.sh install_gsquery.sh install_serverdir.sh update_check.sh serverdev@lrob:~/ts3server4/functions$ grep -rH "linux-" * serverdev@lrob:~/ts3server4/functions$ grep -rH "linux_" * install_ts3.sh: wget --spider -q "http://dl.4players.de/ts/releases/${ts3_version_number}/teamspeak3-server_linux_${ts3arch}-${ts3_version_number}.tar.bz2" install_ts3.sh:echo -e "downloading teamspeak3-server_linux_${ts3arch}-${ts3_version_number}.tar.bz2...\c" install_ts3.sh:wget -N /dev/null http://dl.4players.de/ts/releases/${ts3_version_number}/teamspeak3-server_linux_${ts3arch}-${ts3_version_number}.tar.bz2 2>&1 | grep -F HTTP | cut -c45-| uniq install_ts3.sh:echo -e "extracting teamspeak3-server_linux_${ts3arch}-${ts3_version_number}.tar.bz2...\c" install_ts3.sh:tar -xf "teamspeak3-server_linux_${ts3arch}-${ts3_version_number}.tar.bz2" 2> ".${servicename}-tar-error.tmp" install_ts3.sh:cp -R "${rootdir}/teamspeak3-server_linux_${ts3arch}/"* "${filesdir}" 2> ".${servicename}-cp-error.tmp" install_ts3.sh:rm -f "teamspeak3-server_linux_${ts3arch}-${ts3_version_number}.tar.bz2" install_ts3.sh:rm -rf "${rootdir}/teamspeak3-server_linux_${ts3arch}" update_check.sh: wget --spider -q "http://dl.4players.de/ts/releases/${ts3_version_number}/teamspeak3-server_linux_${ts3arch}-${ts3_version_number}.tar.bz2" serverdev@lrob:~/ts3server4/functions$ ``` I also inspected the update function that seems to run exactly like the install function to get the latest version number, that's why i don't get it. The issue must be somewhere else, but where ?
Author
Owner

@oalaro commented on GitHub (Feb 5, 2016):

+++ '[' 8 -eq 0 ']'
+++ read ts3_version_number
+++ wget --spider -q http://dl.4players.de/ts/releases/3.0.12/teamspeak3-server_linux_-3.0.12.tar.bz2

Maybe this helps

It should be http://dl.4players.de/ts/releases/3.0.12/teamspeak3-server_linux_amd64-3.0.12.tar.bz2

EDIT: I guess changing the name of main binary file is the cause. Since on my old server I have ts3server_linux_amd64 just siting there. Cause it didn't get deleted/overwritten.

<!-- gh-comment-id:180394090 --> @oalaro commented on GitHub (Feb 5, 2016): ``` +++ '[' 8 -eq 0 ']' +++ read ts3_version_number +++ wget --spider -q http://dl.4players.de/ts/releases/3.0.12/teamspeak3-server_linux_-3.0.12.tar.bz2 ``` Maybe this helps It should be http://dl.4players.de/ts/releases/3.0.12/teamspeak3-server_linux_amd64-3.0.12.tar.bz2 EDIT: I guess changing the name of main binary file is the cause. Since on my old server I have ts3server_linux_amd64 just siting there. Cause it didn't get deleted/overwritten.
Author
Owner

@oalaro commented on GitHub (Feb 5, 2016):

After adding file named ts3server_linux_amd64 into serverfiles folder, on a fresh install ,the problem was fixed

ts3server@9752:~$ ./ts3server update
[ OK ] Update ts3-server: Checking for update: teamspeak.com

No update available:
Current version: 3.0.12
Available version: 3.0.12

[ OK ] Update ts3-server: No update available

<!-- gh-comment-id:180396117 --> @oalaro commented on GitHub (Feb 5, 2016): After adding file named ts3server_linux_amd64 into serverfiles folder, on a fresh install ,the problem was fixed ts3server@9752:~$ ./ts3server update [ OK ] Update ts3-server: Checking for update: teamspeak.com No update available: Current version: 3.0.12 Available version: 3.0.12 [ OK ] Update ts3-server: No update available
Author
Owner

@UltimateByte commented on GitHub (Feb 5, 2016):

First message doesn't help. The second one is amazing ! I can confirm that. Now let's figure out why !
ps : even an empty ts3server_linx_amd64 text file did the trick.

<!-- gh-comment-id:180401520 --> @UltimateByte commented on GitHub (Feb 5, 2016): First message doesn't help. The second one is amazing ! I can confirm that. Now let's figure out why ! ps : even an empty ts3server_linx_amd64 text file did the trick.
Author
Owner

@oalaro commented on GitHub (Feb 5, 2016):

Before adding the file ts3server_linx_amd64

++++ egrep -o '(amd64|x86)'
+++++ tail -1
+++++ sort
+++++ grep -v ts3server_minimal_runscript.sh
+++++ find /home/ts3server/serverfiles/ -name 'ts3server_*_*'
++++ ls /home/ts3server/serverfiles/logs/ts3server_2016-02-05__14_54_26.126935_1.log
+++ ts3arch=
+++ uniq
+++ egrep -o '<a href=\".*\/\">.*\/<\/a>'
+++ egrep -o '[0-9\.?]+'
+++ grep -i dir
+++ wget 'http://dl.4players.de/ts/releases/?C=M;O=D' -q -O -
+++ tr . ' '

After adding the file ts3server_linx_amd64

++++ tail -1
++++ egrep -o '(amd64|x86)'
+++++ find /home/ts3server/serverfiles/ -name 'ts3server_*_*'
+++++ tail -1
+++++ sort
+++++ grep -v ts3server_minimal_runscript.sh
++++ ls /home/ts3server/serverfiles/ts3server_linux_amd64
+++ ts3arch=amd64
+++ egrep -o '<a href=\".*\/\">.*\/<\/a>'
+++ egrep -o '[0-9\.?]+'
+++ grep -i dir
+++ uniq
+++ wget 'http://dl.4players.de/ts/releases/?C=M;O=D' -q -O -
+++ tr . ' '

I leaves ts3arch= variable empty. That's why it tries to find download
teamspeak3-server_linux_(arch should be here)-3.0.12.tar.bz2 And it fails.
Hope this helps

<!-- gh-comment-id:180406075 --> @oalaro commented on GitHub (Feb 5, 2016): Before adding the file ts3server_linx_amd64 ``` ++++ egrep -o '(amd64|x86)' +++++ tail -1 +++++ sort +++++ grep -v ts3server_minimal_runscript.sh +++++ find /home/ts3server/serverfiles/ -name 'ts3server_*_*' ++++ ls /home/ts3server/serverfiles/logs/ts3server_2016-02-05__14_54_26.126935_1.log +++ ts3arch= +++ uniq +++ egrep -o '<a href=\".*\/\">.*\/<\/a>' +++ egrep -o '[0-9\.?]+' +++ grep -i dir +++ wget 'http://dl.4players.de/ts/releases/?C=M;O=D' -q -O - +++ tr . ' ' ``` After adding the file ts3server_linx_amd64 ``` ++++ tail -1 ++++ egrep -o '(amd64|x86)' +++++ find /home/ts3server/serverfiles/ -name 'ts3server_*_*' +++++ tail -1 +++++ sort +++++ grep -v ts3server_minimal_runscript.sh ++++ ls /home/ts3server/serverfiles/ts3server_linux_amd64 +++ ts3arch=amd64 +++ egrep -o '<a href=\".*\/\">.*\/<\/a>' +++ egrep -o '[0-9\.?]+' +++ grep -i dir +++ uniq +++ wget 'http://dl.4players.de/ts/releases/?C=M;O=D' -q -O - +++ tr . ' ' ``` I leaves ts3arch= variable empty. That's why it tries to find download teamspeak3-server_linux_(arch should be here)-3.0.12.tar.bz2 And it fails. Hope this helps
Author
Owner

@UltimateByte commented on GitHub (Feb 5, 2016):

Solved, merging soon

The issue happened because "update" was using ts3server_linx_amd64 file in serverfiles to get the arch, but that file doesn't exist anymore ! I made the update process to use the same way than install does to detect arch, and to set ts3arch properly.

Thanks a lot @oalaro , you helped me a lot understanding this.

<!-- gh-comment-id:180423009 --> @UltimateByte commented on GitHub (Feb 5, 2016): Solved, merging soon The issue happened because "update" was using ts3server_linx_amd64 file in serverfiles to get the arch, but that file doesn't exist anymore ! I made the update process to use the same way than install does to detect arch, and to set ts3arch properly. Thanks a lot @oalaro , you helped me a lot understanding this.
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:406311891 --> @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#541
No description provided.