TS3Tools / TS3UpdateScript

Automate all update processes for your TeamSpeak 3 server instances
GNU General Public License v3.0
189 stars 22 forks source link

Cannot update the ts3 server #92

Closed jk1z closed 5 years ago

jk1z commented 6 years ago

Here is the debuging log. Thanks for the help

RUNNING SCRIPT WITH DEBUG OPTION! PARAMETER LIST: --check --delete-old-logs --keep-backups --disable-temporary-password-backup --debug debug.log [v5.6.5]
++ date +%s
+ TIME_MEASUREMENT_SELFTESTS_START=1538197339
+ '[' 0 -eq 1 ']'
+ echo -en '\e[sPerforming self-tests as preventive measures against possible failures'
Performing self-tests as preventive measures against possible failures+ echo -e '\e[u\e[307C[ \e[0;37m.. \e[0m]\n'                                                                                                                                                                                                 [ .. ]

+ SELF_TEST_STATUS=0
+ isBashCompletionInstalled
+ '[' -f /etc/bash_completion.d/ts3updatescript ']'
++ stat --format=%U /etc/bash_completion.d/ts3updatescript
+ [[ root == \r\o\o\t ]]
++ stat --format=%G /etc/bash_completion.d/ts3updatescript
+ [[ root == \r\o\o\t ]]
+ return 0
+ [[ ! -f /opt/TS3UpdateScript-5.6.5/configs/config.all ]]
+ checkConsistency
++ cut -d ' ' -f 1
++ sha256sum
++ head -202
++ grep -v ORIGIN= ./TS3UpdateScript
+ CHKSUM=feef60e88099b7b9cf1a296395218210b697fba6694a209b66cf112cd38d8792
+ ORIGIN=feef60e88099b7b9cf1a296395218210b697fba6694a209b66cf112cd38d8792
+ [[ feef60e88099b7b9cf1a296395218210b697fba6694a209b66cf112cd38d8792 == \f\e\e\f\6\0\e\8\8\0\9\9\b\7\b\9\c\f\1\a\2\9\6\3\9\5\2\1\8\2\1\0\b\6\9\7\f\b\a\6\6\9\4\a\2\0\9\b\6\6\c\f\1\1\2\c\d\3\8\d\8\7\9\2 ]]
+ return 0
+ [[ 0 -eq 0 ]]
+ testInternetConnectivity www.ts3-tools.info
++ ping -w 1 www.ts3-tools.info
+ [[ -n '' ]]
+ return 1
+ echo 'Could not reach one or more needed remote servers for update process. Your internet connectivity or the website self is may down...'
+ SELF_TEST_STATUS=1
++ getLatestScriptVersion
+++ cut -d ' ' -f 3
+++ tr -d '[[:space:]]'
+++ head -1
+++ grep Version
+++ wget -t 1 -T 1 https://raw.githubusercontent.com/TS3Tools/TS3UpdateScript/master/docs/CHANGELOG.md --no-check-certificate -q -O -
++ LATEST_SCRIPT_VERSION=5.6.5
++ [[ -n 5.6.5 ]]
++ echo -n 5.6.5
+ LATEST_SCRIPT_VERSION=5.6.5
+ [[ 5.6.5 != 1 ]]
+ [[ 0 -eq 0 ]]
+ [[ -n 5.6.5 ]]
+ [[ 5.6.5 != \5\.\6\.\5 ]]
++ checkdeps bash which rsync wget jshon grep sed bzip2 gdb
++ CHECKDEPS_FAILED=0
++ for cmd in "$@"
+++ cut -d : -f 1
+++ echo bash
++ package_cmd=bash
+++ cut -d : -f 2
+++ echo bash
++ package=bash
++ [[ -z bash ]]
++ command -v bash
++ for cmd in "$@"
+++ cut -d : -f 1
+++ echo which
++ package_cmd=which
+++ cut -d : -f 2
+++ echo which
++ package=which
++ [[ -z which ]]
++ command -v which
++ for cmd in "$@"
+++ cut -d : -f 1
+++ echo rsync
++ package_cmd=rsync
+++ cut -d : -f 2
+++ echo rsync
++ package=rsync
++ [[ -z rsync ]]
++ command -v rsync
++ for cmd in "$@"
+++ cut -d : -f 1
+++ echo wget
++ package_cmd=wget
+++ cut -d : -f 2
+++ echo wget
++ package=wget
++ [[ -z wget ]]
++ command -v wget
++ for cmd in "$@"
+++ cut -d : -f 1
+++ echo jshon
++ package_cmd=jshon
+++ cut -d : -f 2
+++ echo jshon
++ package=jshon
++ [[ -z jshon ]]
++ command -v jshon
++ for cmd in "$@"
+++ cut -d : -f 1
+++ echo grep
++ package_cmd=grep
+++ cut -d : -f 2
+++ echo grep
++ package=grep
++ [[ -z grep ]]
++ command -v grep
++ for cmd in "$@"
+++ cut -d : -f 1
+++ echo sed
++ package_cmd=sed
+++ cut -d : -f 2
+++ echo sed
++ package=sed
++ [[ -z sed ]]
++ command -v sed                                                                                                                                                                                                                                                                                                  [ FAILED ]
++ for cmd in "$@"
+ [[ -f SELF_TEST_STATUS.txt ]]
+ cat SELF_TEST_STATUS.txt
Could not reach one or more needed remote servers for update process. Your internet connectivity or the website self is may down...
+ echo 'One or more self-tests failed. Please fix the above error(s) to continue.'
One or more self-tests failed. Please fix the above error(s) to continue.
++ date +%sbzip2
+ TIME_MEASUREMENT_CLEANUP_START=1538197364
+ echo -e '\nCleaning up...'
++ for cmd in "$@"
Cleaning up...f 1
+ '[' -f SELF_TEST_STATUS.txt ']'
+ rm SELF_TEST_STATUS.txt
+ '[' -f COLLECTING_INFORMATION_STATUS.txt ']'
+ '[' -f VALIDATION_STATUS.txt ']'
+ '[' -f TS3InstancePaths.txt ']'
+ '[' -f TS3InstanceInfos.txt ']'
+ '[' -f SERVERLIST.txt ']'
+ '[' -f CLIENTLIST.txt ']'
+ '[' -f IGNORE_CLIENTLIST.txt ']'
+ '[' -f POKELIST_UNSORTED.txt ']'
+ '[' -f POKELIST.txt ']'ion ']'
+ '[' -f SERVERTEMPPASSWORDLIST.txt ']'
+ '[' -f SERVERTEMPPASSWORDADD.txt ']'
+ '[' -f wget-log ']'
+ '[' -d /tmp/TS3Tools/TS3UpdateScript/ ']'
+ '[' -d /tmp/TS3Tools/ ']'lease
+ '[' 1 -eq 1 ']'b_release
+ sed -i 's/\+ SERVERADMIN_PASSWORD=CENSORED_PASS
root@vultr:/opt/TS3UpdateScript-5.6.5#
++ package=lsb-release
++ [[ -z lsb-release ]]
++ command -v lsb_release
++ [[ 0 -eq 1 ]]
++ return 0
+ [[ '' -eq 1 ]]
+ '[' 0 -eq 1 ']'
+ '[' 0 -eq 1 ']'
+ [[ 0 -eq 1 ]]
+ [[ 0 -eq 1 ]]
+ scriptSettingsChanged
++ cut -d ' ' -f 1
++ md5sum
++ cut -d = -f 2
++ grep ADMINISTRATOR_EMAILS /opt/TS3UpdateScript-5.6.5/configs/config.all
+ ADMIN_EMAIL_MD5SUM=f6cc217196362dbeeb77dfffc02e37e1
+ [[ f6cc217196362dbeeb77dfffc02e37e1 != \1\6\0\d\f\a\4\2\c\0\c\b\8\e\2\5\3\1\1\b\6\a\f\f\3\a\4\d\5\3\6\1 ]]
+ return 0
++ date +%s
+ TIME_MEASUREMENT_SELFTESTS_END=1538197364
+ [[ 1 -eq 1 ]]
+ '[' 0 -eq 1 ']'
+ echo -e '\e[u\e[307C[ \e[0;31mFAILED \e[0m]\n'
Sebbo94BY commented 6 years ago

Hi, Are you able to reach my licensing server from the command line of your server, where you try to execute the TS3UpdateScript?

ping -w 1 www.ts3-tools.info

Your debug report returns, that it's unreachable:

+ testInternetConnectivity www.ts3-tools.info
++ ping -w 1 www.ts3-tools.info
+ [[ -n '' ]]
+ return 1
+ echo 'Could not reach one or more needed remote servers for update process. Your internet connectivity or the website self is may down...'
+ SELF_TEST_STATUS=1

If it's not reachable, you should check, why it can't reach the server as it should be reachable.

As workaround, you can use the additional parameter --deactivate-host-alive-check, if you can't solve the connectivity issue: ./TS3UpdateScript --check --delete-old-logs --keep-backups --disable-temporary-password-backup --deactivate-host-alive-check This additional parameter will skip the test and go to the next one.

jk1z commented 6 years ago

alt text Hi, Thanks for the reply. I will try disable the server license validation on the weekend. For the meanwhile, I did do a ping test. It did suggest that it connects to the server...

Sebbo94BY commented 6 years ago

That's kinda strange. You may just try to run the update again - it may was only a temporary network issue.