TS3Tools / TS3UpdateScript

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

Error: keine Berechtigung #95

Closed mfnalex closed 5 years ago

mfnalex commented 6 years ago

root@krapfen:~/TS3UpdateScript# LANG=C ./TS3UpdateScript --check

About: This is the most widely used and fastest shell script to update all your TeamSpeak 3 server instances. Author: Sebastian Kraetzig info@ts3-tools.info | Website: www.ts3-tools.info | facebook: www.facebook.com/TS3Tools License: GNU GPLv3


| / | / | |_ | | ()_ / | | | _ \ | \ ____| / \ / | / | | | ' | | / _ \ | | ) |) || || () | () | _ _| | | | | | () | || |// __/ \/|_|()|| ||| _/

Script Version: 5.6.6 (2018-10-03) Script License: Community (No support bought) Support License: Community (No support plan bought)

Donate and support this script: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7ZRXLSC2UBVWE


Please wait... Script is working...

Fuehre Selbst-Tests als Preventivmassnahme gegen moegliche Fehler durch [ OK ]

Sammel notwendige Informationen fuer weitere Aufgaben [ OK ]

Alle gesammelten Informationen wurden erfolgreich als Praeventivmassnahme gegen moegliche Fehler validiert. [ INFO ] -su: Zeile 0: cd: /home/ts3: Keine Berechtigung 1 TeamSpeak 3 Server Instanz gefunden...htigung -su: Zeile 0: cd: /home/ts3: Keine Berechtigung Sammel so viele wie moegliche Informationen fuer folgende TeamSpeak 3 Server Instanz: /home/ts3 1 Instanz fuer den Update Prozess... -su: Zeile 0: cd: /home/ts3: Keine Berechtigung

Folgende Instanz benoetigt ein Update, ist jedoch gestoppt und wird nicht vom Skript angefasst: /home/ts3 (Installierte Version: 3.3.1)

Raeume auf...

Zusammenfassung von gemessenen Zeiten fuer einzelne Schritte Skript insgesamt: 6s Selbst-Tests: 4s Informationen sammeln: 2s Validierung: 0s Ausfuehrungsmechanismus: 0s Aufraeumen: 0s

Vielen Dank fuer die Nutzung dieses Skripts! Unterstuetze die Weiterentwicklung dieses Skripts durch eine kleine Spende: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7ZR XLSC2UBVWE

Sebbo94BY commented 5 years ago

Ich kann das Problem leider nicht reproduzieren.

Kannst du mir bitte einen Debug Report zukommen lassen? LANG=C ./TS3UpdateScript --check --debug debug.txt

mfnalex commented 5 years ago

Natürlich, ich werde ihn gleich posten.

mfnalex commented 5 years ago

++ date +%s
+ TIME_MEASUREMENT_SELFTESTS_START=1541409070
+ '[' 0 -eq 1 ']'
+ echo -en '\e[sFuehre Selbst-Tests als Preventivmassnahme gegen moegliche Fehler durch'
Fuehre Selbst-Tests als Preventivmassnahme gegen moegliche Fehler durch+ echo -e '\e[u\e[110C[ \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 /root/TS3UpdateScript/configs/config.all ]]
+ checkConsistency
++ grep -v ORIGIN= ./TS3UpdateScript
++ head -202
++ cut -d ' ' -f 1
++ sha256sum
+ CHKSUM=591c201dc73df393416937025fc8d33444df07411a127d76759f5850d316db98
+ ORIGIN=591c201dc73df393416937025fc8d33444df07411a127d76759f5850d316db98
+ [[ 591c201dc73df393416937025fc8d33444df07411a127d76759f5850d316db98 == \5\9\1\c\2\0\1\d\c\7\3\d\f\3\9\3\4\1\6\9\3\7\0\2\5\f\c\8\d\3\3\4\4\4\d\f\0\7\4\1\1\a\1\2\7\d\7\6\7\5\9\f\5\8\5\0\d\3\1\6\d\b\9\8 ]]
+ return 0
+ [[ 0 -eq 0 ]]
+ testInternetConnectivity www.ts3-tools.info
++ ping -w 1 www.ts3-tools.info
+ [[ -n PING www.ts3-tools.info (94.199.215.251) 56(84) bytes of data.
64 bytes from ipdc-vs00017.4g-server.eu (94.199.215.251): icmp_seq=1 ttl=61 time=3.96 ms

--- www.ts3-tools.info ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 3.961/3.961/3.961/0.000 ms ]]
+ return 0
+ testInternetConnectivity dl.4players.de
++ ping -w 1 dl.4players.de
+ [[ -n PING dl.dl1.4players.de (85.25.26.25) 56(84) bytes of data.
64 bytes from ma23707.blast.4players.de (85.25.26.25): icmp_seq=1 ttl=61 time=6.67 ms

--- dl.dl1.4players.de ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 6.677/6.677/6.677/0.000 ms ]]
+ return 0
+ testInternetConnectivity github.com
++ ping -w 1 github.com
+ [[ -n PING github.com (140.82.118.4) 56(84) bytes of data.
64 bytes from 140.82.118.4: icmp_seq=1 ttl=53 time=16.7 ms

--- github.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 16.757/16.757/16.757/0.000 ms ]]
+ return 0
+ testInternetConnectivity raw.githubusercontent.com
++ ping -w 1 raw.githubusercontent.com
+ [[ -n PING github.map.fastly.net (151.101.112.133) 56(84) bytes of data.
64 bytes from 151.101.112.133 (151.101.112.133): icmp_seq=1 ttl=60 time=3.73 ms

--- github.map.fastly.net ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 3.734/3.734/3.734/0.000 ms ]]
+ return 0
++ getLatestScriptVersion
+++ wget -t 1 -T 1 https://raw.githubusercontent.com/TS3Tools/TS3UpdateScript/master/docs/CHANGELOG.md --no-check-certificate -q -O -
+++ grep Version
+++ cut -d ' ' -f 3
+++ tr -d '[[:space:]]'
+++ head -1
++ LATEST_SCRIPT_VERSION=5.6.6
++ [[ -n 5.6.6 ]]
++ echo -n 5.6.6
+ LATEST_SCRIPT_VERSION=5.6.6
+ [[ 5.6.6 != 1 ]]
+ [[ 0 -eq 0 ]]
+ [[ -n 5.6.6 ]]
+ [[ 5.6.6 != \5\.\6\.\6 ]]
++ checkdeps bash which rsync wget grep sed bzip2 gdb
++ CHECKDEPS_FAILED=0
++ for cmd in "$@"
+++ echo bash
+++ cut -d : -f 1
++ package_cmd=bash
+++ echo bash
+++ cut -d : -f 2
++ package=bash
++ [[ -z bash ]]
++ command -v bash
++ for cmd in "$@"
+++ echo which
+++ cut -d : -f 1
++ package_cmd=which
+++ echo which
+++ cut -d : -f 2
++ package=which
++ [[ -z which ]]
++ command -v which
++ for cmd in "$@"
+++ echo rsync
+++ cut -d : -f 1
++ package_cmd=rsync
+++ echo rsync
+++ cut -d : -f 2
++ package=rsync
++ [[ -z rsync ]]
++ command -v rsync
++ for cmd in "$@"
+++ echo wget
+++ cut -d : -f 1
++ package_cmd=wget
+++ echo wget
+++ cut -d : -f 2
++ package=wget
++ [[ -z wget ]]
++ command -v wget
++ for cmd in "$@"
+++ echo grep
+++ cut -d : -f 1
++ package_cmd=grep
+++ echo grep
+++ cut -d : -f 2
++ package=grep
++ [[ -z grep ]]
++ command -v grep
++ for cmd in "$@"
+++ echo sed
+++ cut -d : -f 1
++ package_cmd=sed
+++ echo sed
+++ cut -d : -f 2
++ package=sed
++ [[ -z sed ]]
++ command -v sed
++ for cmd in "$@"
+++ echo bzip2
+++ cut -d : -f 1
++ package_cmd=bzip2
+++ echo bzip2
+++ cut -d : -f 2
++ package=bzip2
++ [[ -z bzip2 ]]
++ command -v bzip2
++ for cmd in "$@"
+++ echo gdb
+++ cut -d : -f 1
++ package_cmd=gdb
+++ echo gdb
+++ cut -d : -f 2
++ package=gdb
++ [[ -z gdb ]]
++ command -v gdb
++ [[ 0 -eq 1 ]]
++ return 0
+ [[ '' -eq 1 ]]
+ '[' -f /etc/debian_version ']'
++ checkdeps lsb_release:lsb-release
++ CHECKDEPS_FAILED=0
++ for cmd in "$@"
+++ echo lsb_release:lsb-release
+++ cut -d : -f 1
++ package_cmd=lsb_release
+++ echo lsb_release:lsb-release
+++ cut -d : -f 2
++ 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
++ grep ADMINISTRATOR_EMAILS /root/TS3UpdateScript/configs/config.all
++ cut -d = -f 2
++ md5sum
++ cut -d ' ' -f 1
+ ADMIN_EMAIL_MD5SUM=98364081e6c222b98a1f4d2515780540
+ [[ 98364081e6c222b98a1f4d2515780540 != \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=1541409074
+ [[ 0 -eq 1 ]]
+ '[' 0 -eq 1 ']'
+ echo -e '\e[u\e[110C[ \e[0;32mOK \e[0m]\n'
[ OK ]

+ [[ -f SELF_TEST_STATUS.txt ]]
+ [[ 0 -eq 0 ]]
+ [[ 0 -eq 0 ]]
++ date +%s
+ TIME_MEASUREMENT_COLLECTING_INFORMATION_START=1541409074
+ COLLECTING_INFORMATION_STATUS=0
+ '[' 0 -eq 1 ']'
+ echo -en '\e[sSammel notwendige Informationen fuer weitere Aufgaben'
Sammel notwendige Informationen fuer weitere Aufgaben+ echo -e '\e[u\e[110C[ \e[0;37m.. \e[0m]\n'
[ .. ]

+ findTS3ServerInstances
+ [[ 0 == \2 ]]
+ find / -name ts3server_startscript.sh
+ grep -Eiv '/tmp/TS3Tools/TS3UpdateScript|/var/backups/TS3Tools/TS3UpdateScript'
+ sort
+ head -1
+ [[ -s TS3InstancePaths.txt ]]
+ return 0
++ getLatestTSServerVersion
++ TS3_SERVER_VERSION=0
++ [[ 0 -eq 1 ]]
++ [[ 0 -eq 1 ]]
+++ getLatestStableTS3ServerVersion
+++ TS3_SERVER_VERSION=
++++ checkdeps jshon
++++ CHECKDEPS_FAILED=0
++++ for cmd in "$@"
+++++ echo jshon
+++++ cut -d : -f 1
++++ package_cmd=jshon
+++++ echo jshon
+++++ cut -d : -f 2
++++ package=jshon
++++ [[ -z jshon ]]
++++ command -v jshon
++++ [[ 0 -eq 1 ]]
++++ return 0
+++ [[ '' -eq 0 ]]
+++ wget -t 1 -T 1 --spider -q https://www.teamspeak.com/versions/server.json
+++ [[ 0 == 0 ]]
++++ wget -t 1 -T 3 https://www.teamspeak.com/versions/server.json -q -O -
++++ jshon -e linux -e x86_64 -e version
++++ tr -d '"'
+++ TS3_SERVER_VERSION=3.5.0
++++ checkdeps jshon
++++ CHECKDEPS_FAILED=0
++++ for cmd in "$@"
+++++ echo jshon
+++++ cut -d : -f 1
++++ package_cmd=jshon
+++++ echo jshon
+++++ cut -d : -f 2
++++ package=jshon
++++ [[ -z jshon ]]
++++ command -v jshon
++++ [[ 0 -eq 1 ]]
++++ return 0
+++ [[ '' -eq 1 ]]
+++ [[ -z 3.5.0 ]]
+++ [[ -n 3.5.0 ]]
+++ echo -n 3.5.0
++ TS3_SERVER_VERSION=3.5.0
++ [[ -n 3.5.0 ]]
++ [[ 3.5.0 != \0 ]]
++ echo -n 3.5.0
+ LATEST_TS3_SERVER_VERSION=3.5.0
+ [[ 3.5.0 != \1 ]]
+ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ wc -l
+ INSTANCE_COUNT=1
+ '[' 1 -eq 0 ']'
+ '[' 1 -eq 1 ']'
+ echo '1 TeamSpeak 3 Server Instanz gefunden...'
+ read instancePath
++ dirname /home/ts3/ts3server_startscript.sh
+ INSTANCE_PATH=/home/ts3
+ echo -e '\nSammel so viele wie moegliche Informationen fuer folgende TeamSpeak 3 Server Instanz: /home/ts3'
++ getDatabaseType /home/ts3
+++ getTS3ServerInstanceLogPath /home/ts3
+++ INSTANCE_LOG_PATH=
+++ INIFileExists /home/ts3
+++ [[ -f /home/ts3/ts3server.ini ]]
+++ return 1
++++ findRealTS3RootDirectory /home/ts3
++++ [[ -d /opt/exagear/ ]]
++++ TEAMSPEAK_ROOT_DIRECTORY=/home/ts3/
++++ echo -n /home/ts3/
+++ INSTANCE_LOG_PATH_TEMP=/home/ts3/logs/
+++ [[ /home/ts3/logs/ = /* ]]
+++ INSTANCE_LOG_PATH=/home/ts3/logs/
+++ [[ -n /home/ts3/logs/ ]]
+++ echo -n /home/ts3/logs/
++ INSTANCE_LOG_PATH=/home/ts3/logs/
+++ tr -d ' '
+++ cut -d : -f 2
+++ grep -Eo 'SQLite|MySQL|MariaDB'
++++ find /home/ts3/logs/ -name 'ts3server*_0.log'
++++ sort
++++ tail -1
+++ grep -Eo 'dbPlugin name:.*plugin' /home/ts3/logs/ts3server_2018-10-26__00_37_05.081284_0.log
++ DATABASE_TYPE=SQLite
++ [[ -n SQLite ]]
++ echo -n SQLite
+ DATABASE_TYPE=SQLite
+ [[ SQLite == \1 ]]
+ [[ 0 -eq 1 ]]
++ checkdeps telnet expect
++ CHECKDEPS_FAILED=0
++ for cmd in "$@"
+++ echo telnet
+++ cut -d : -f 1
++ package_cmd=telnet
+++ echo telnet
+++ cut -d : -f 2
++ package=telnet
++ [[ -z telnet ]]
++ command -v telnet
++ for cmd in "$@"
+++ echo expect
+++ cut -d : -f 1
++ package_cmd=expect
+++ echo expect
+++ cut -d : -f 2
++ package=expect
++ [[ -z expect ]]
++ command -v expect
++ [[ 0 -eq 1 ]]
++ return 0
+ [[ '' -eq 0 ]]
++ getServerQueryIP /home/ts3
++ INIFileExists /home/ts3
++ [[ -f /home/ts3/ts3server.ini ]]
++ return 1
+++ getDatabaseType /home/ts3
++++ getTS3ServerInstanceLogPath /home/ts3
++++ INSTANCE_LOG_PATH=
++++ INIFileExists /home/ts3
++++ [[ -f /home/ts3/ts3server.ini ]]
++++ return 1
+++++ findRealTS3RootDirectory /home/ts3
+++++ [[ -d /opt/exagear/ ]]
+++++ TEAMSPEAK_ROOT_DIRECTORY=/home/ts3/
+++++ echo -n /home/ts3/
++++ INSTANCE_LOG_PATH_TEMP=/home/ts3/logs/
++++ [[ /home/ts3/logs/ = /* ]]
++++ INSTANCE_LOG_PATH=/home/ts3/logs/
++++ [[ -n /home/ts3/logs/ ]]
++++ echo -n /home/ts3/logs/
+++ INSTANCE_LOG_PATH=/home/ts3/logs/
++++ tr -d ' '
++++ cut -d : -f 2
+++++ find /home/ts3/logs/ -name 'ts3server*_0.log'
++++ grep -Eo 'SQLite|MySQL|MariaDB'
+++++ tail -1
+++++ sort
++++ grep -Eo 'dbPlugin name:.*plugin' /home/ts3/logs/ts3server_2018-10-26__00_37_05.081284_0.log
+++ DATABASE_TYPE=SQLite
+++ [[ -n SQLite ]]
+++ echo -n SQLite
++ DATABASE_TYPE=SQLite
++ [[ SQLite == \S\Q\L\i\t\e ]]
+++ checkdeps sqlite3
+++ CHECKDEPS_FAILED=0
+++ for cmd in "$@"
++++ echo sqlite3
++++ cut -d : -f 1
+++ package_cmd=sqlite3
++++ echo sqlite3
++++ cut -d : -f 2
+++ package=sqlite3
+++ [[ -z sqlite3 ]]
+++ command -v sqlite3
+++ printf 'sqlite3 is not found. Please install this package\n'
+++ CHECKDEPS_FAILED=1
+++ [[ 1 -eq 1 ]]
+++ echo -n 1
+++ return 0
++ [[ 1 -eq 0 ]]
++ [[ SQLite == \M\y\S\Q\L ]]
++ [[ SQLite == \M\a\r\i\a\D\B ]]
++ [[ -n '' ]]
++ echo -n 127.0.0.1
+ SERVER_QUERY_IP=127.0.0.1
+ [[ -z 127.0.0.1 ]]
++ getServerQueryPort /home/ts3
++ INIFileExists /home/ts3
++ [[ -f /home/ts3/ts3server.ini ]]
++ return 1
++ echo -n 10011
+ SERVER_QUERY_PORT=10011
+ [[ -z 10011 ]]
+ ts3server /home/ts3 status
+ case $2 in
+++ which bash
+++ getOwnerOfTS3ServerFiles /home/ts3
+++++ find /home/ts3 -name ts3server_startscript.sh
+++++ sort
+++++ tail -1
++++ stat --format=%U /home/ts3/ts3server_startscript.sh
+++ OWNER=jeff
+++ [[ -n jeff ]]
+++ echo -n jeff
++ su -s /bin/bash -c 'cd /home/ts3 && ./ts3server_startscript.sh status && cd - > /dev/null' - jeff
-su: Zeile 0: cd: /home/ts3: Keine Berechtigung
+ RESULT=
+ [[ '' =~ Server is running ]]
+ return 1
++ getVersionOfInstalledTS3Server /home/ts3
+++ echo /home/ts3
+++ wc -w
++ PAR_COUNTER=1
++ [[ 1 -eq 2 ]]
++ [[ 1 -eq 1 ]]
+++ sort -nr
+++ head -1
++++ getTS3ServerInstanceLogPath /home/ts3
++++ INSTANCE_LOG_PATH=
++++ INIFileExists /home/ts3
++++ [[ -f /home/ts3/ts3server.ini ]]
++++ return 1
+++++ findRealTS3RootDirectory /home/ts3
+++++ [[ -d /opt/exagear/ ]]
+++++ TEAMSPEAK_ROOT_DIRECTORY=/home/ts3/
+++++ echo -n /home/ts3/
++++ INSTANCE_LOG_PATH_TEMP=/home/ts3/logs/
++++ [[ /home/ts3/logs/ = /* ]]
++++ INSTANCE_LOG_PATH=/home/ts3/logs/
++++ [[ -n /home/ts3/logs/ ]]
++++ echo -n /home/ts3/logs/
+++ find /home/ts3/logs/ -name '*_0.log'
++ INSTANCE_LOG_FILE=/home/ts3/logs/ts3server_2018-10-26__00_37_05.081284_0.log
+++ grep -Eo 'TeamSpeak\s3\sServer\s[0-9\.?]+' /home/ts3/logs/ts3server_2018-10-26__00_37_05.081284_0.log
+++ cut -d ' ' -f 4
++ VERSION=3.3.1
++ [[ -n 3.3.1 ]]
++ echo -n 3.3.1
+ INSTALLED_TS3_SERVER_VERSION=3.3.1
+ [[ 3.3.1 == \1 ]]
+ ts3server /home/ts3 status
+ case $2 in
+++ which bash
+++ getOwnerOfTS3ServerFiles /home/ts3
+++++ find /home/ts3 -name ts3server_startscript.sh
+++++ sort
+++++ tail -1
++++ stat --format=%U /home/ts3/ts3server_startscript.sh
+++ OWNER=jeff
+++ [[ -n jeff ]]
+++ echo -n jeff
++ su -s /bin/bash -c 'cd /home/ts3 && ./ts3server_startscript.sh status && cd - > /dev/null' - jeff
-su: Zeile 0: cd: /home/ts3: Keine Berechtigung
+ RESULT=
+ [[ '' =~ Server is running ]]
+ return 1
++ getBuildOfInstalledTS3Server
+++ echo ''
+++ wc -w
++ PAR_COUNTER=0
++ [[ 0 -eq 2 ]]
++ [[ 0 -eq 0 ]]
++ echo -n Unknown
+ INSTALLED_TS3_SERVER_BUILD=Unknown
+ [[ Unknown == \1 ]]
+ ts3server /home/ts3 status
+ case $2 in
+++ which bash
+++ getOwnerOfTS3ServerFiles /home/ts3
+++++ find /home/ts3 -name ts3server_startscript.sh
+++++ sort
+++++ tail -1
++++ stat --format=%U /home/ts3/ts3server_startscript.sh
+++ OWNER=jeff
+++ [[ -n jeff ]]
+++ echo -n jeff
++ su -s /bin/bash -c 'cd /home/ts3 && ./ts3server_startscript.sh status && cd - > /dev/null' - jeff
-su: Zeile 0: cd: /home/ts3: Keine Berechtigung
+ RESULT=
+ [[ '' =~ Server is running ]]
+ return 1
++ getPlatformOfInstalledTS3Server /home/ts3
+++ echo /home/ts3
+++ wc -w
++ PAR_COUNTER=1
++ [[ 1 -eq 2 ]]
++ [[ 1 -eq 1 ]]
+++ sort -nr
+++ head -1
++++ getTS3ServerInstanceLogPath /home/ts3
++++ INSTANCE_LOG_PATH=
++++ INIFileExists /home/ts3
++++ [[ -f /home/ts3/ts3server.ini ]]
++++ return 1
+++++ findRealTS3RootDirectory /home/ts3
+++++ [[ -d /opt/exagear/ ]]
+++++ TEAMSPEAK_ROOT_DIRECTORY=/home/ts3/
+++++ echo -n /home/ts3/
++++ INSTANCE_LOG_PATH_TEMP=/home/ts3/logs/
++++ [[ /home/ts3/logs/ = /* ]]
++++ INSTANCE_LOG_PATH=/home/ts3/logs/
++++ [[ -n /home/ts3/logs/ ]]
++++ echo -n /home/ts3/logs/
+++ find /home/ts3/logs/ -name '*_0.log'
++ INSTANCE_LOG_FILE=/home/ts3/logs/ts3server_2018-10-26__00_37_05.081284_0.log
+++ grep -Eo '(Linux|FreeBSD)' /home/ts3/logs/ts3server_2018-10-26__00_37_05.081284_0.log
++ PLATFORM=Linux
++ [[ -n Linux ]]
++ echo -n Linux
+ INSTALLED_TS3_SERVER_PLATFORM=Linux
+ [[ Linux == \1 ]]
++ getTS3ServerInstanceLogPath /home/ts3
++ INSTANCE_LOG_PATH=
++ INIFileExists /home/ts3
++ [[ -f /home/ts3/ts3server.ini ]]
++ return 1
+++ findRealTS3RootDirectory /home/ts3
+++ [[ -d /opt/exagear/ ]]
+++ TEAMSPEAK_ROOT_DIRECTORY=/home/ts3/
+++ echo -n /home/ts3/
++ INSTANCE_LOG_PATH_TEMP=/home/ts3/logs/
++ [[ /home/ts3/logs/ = /* ]]
++ INSTANCE_LOG_PATH=/home/ts3/logs/
++ [[ -n /home/ts3/logs/ ]]
++ echo -n /home/ts3/logs/
+ TS3_SERVER_INSTANCE_LOG_PATH=/home/ts3/logs/
+ [[ /home/ts3/logs/ == \1 ]]
+ [[ 0 == \1 ]]
+ [[ 0 == \2 ]]
++ getArchitectureOfInstalledTS3Server /home/ts3
+++ sort -nr
+++ head -1
++++ getTS3ServerInstanceLogPath /home/ts3
++++ INSTANCE_LOG_PATH=
++++ INIFileExists /home/ts3
++++ [[ -f /home/ts3/ts3server.ini ]]
++++ return 1
+++++ findRealTS3RootDirectory /home/ts3
+++++ [[ -d /opt/exagear/ ]]
+++++ TEAMSPEAK_ROOT_DIRECTORY=/home/ts3/
+++++ echo -n /home/ts3/
++++ INSTANCE_LOG_PATH_TEMP=/home/ts3/logs/
++++ [[ /home/ts3/logs/ = /* ]]
++++ INSTANCE_LOG_PATH=/home/ts3/logs/
++++ [[ -n /home/ts3/logs/ ]]
++++ echo -n /home/ts3/logs/
+++ find /home/ts3/logs/ -name '*_0.log'
++ INSTANCE_LOG_FILE=/home/ts3/logs/ts3server_2018-10-26__00_37_05.081284_0.log
+++ grep -Eo 'Binary: (64bit|32bit)' /home/ts3/logs/ts3server_2018-10-26__00_37_05.081284_0.log
+++ cut -d ' ' -f 2
++ SYSTEM_TYPE=64bit
++ [[ 64bit == \6\4\b\i\t ]]
++ ARCHITECTURE=amd64
++ [[ -n amd64 ]]
++ echo -n amd64
+ TS3_SERVER_ARCHITECTURE=amd64
+ [[ amd64 == \1 ]]
++ getOwnerOfTS3ServerFiles /home/ts3
++++ find /home/ts3 -name ts3server_startscript.sh
++++ sort
++++ tail -1
+++ stat --format=%U /home/ts3/ts3server_startscript.sh
++ OWNER=jeff
++ [[ -n jeff ]]
++ echo -n jeff
+ OWNER=jeff
+ [[ jeff != \1 ]]
+ [[ 0 -eq 0 ]]
+ [[ jeff == \U\N\K\N\O\W\N ]]
+ [[ 0 == \1 ]]
+ [[ 0 == \2 ]]
++ getOwnerID /home/ts3
+++ cut -d : -f 3
++++ getOwnerOfTS3ServerFiles /home/ts3
++++++ find /home/ts3 -name ts3server_startscript.sh
++++++ sort
++++++ tail -1
+++++ stat --format=%U /home/ts3/ts3server_startscript.sh
++++ OWNER=jeff
++++ [[ -n jeff ]]
++++ echo -n jeff
+++ grep -E '^jeff\:' /etc/passwd
++ OWNER_ID=1000
++ [[ -n 1000 ]]
++ echo -n 1000
+ OWNER_ID=1000
+ [[ 1000 == \1 ]]
+ [[ 0 == \1 ]]
+ [[ 0 == \2 ]]
++ getGroupOfTS3ServerFiles /home/ts3
++++ find /home/ts3 -name ts3server_startscript.sh
++++ tail -1
++++ sort
+++ stat --format=%G /home/ts3/ts3server_startscript.sh
++ GROUP=jeff
++ [[ -n jeff ]]
++ echo -n jeff
+ GROUP=jeff
+ [[ jeff != \1 ]]
+ [[ 0 -eq 0 ]]
+ [[ jeff == \U\N\K\N\O\W\N ]]
+ [[ 0 == \1 ]]
+ [[ 0 == \2 ]]
++ getGroupID /home/ts3
+++ cut -d : -f 4
++++ getGroupOfTS3ServerFiles /home/ts3
++++++ find /home/ts3 -name ts3server_startscript.sh
++++++ sort
++++++ tail -1
+++++ stat --format=%G /home/ts3/ts3server_startscript.sh
++++ GROUP=jeff
++++ [[ -n jeff ]]
++++ echo -n jeff
+++ grep -E '^jeff\:' /etc/passwd
++ GROUP_ID=1000
++ [[ -n 1000 ]]
++ echo -n 1000
+ GROUP_ID=1000
+ [[ 1000 == \1 ]]
+ [[ 0 == \1 ]]
+ [[ 0 == \2 ]]
+ [[ 0 -eq 1 ]]
+ STATUS=OK
+ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
+ read instancePath
+ [[ 0 -eq 1 ]]
+ [[ 0 -eq 1 ]]
+ [[ 0 -eq 1 ]]
++ date +%s
+ TIME_MEASUREMENT_COLLECTING_INFORMATION_END=1541409075
++ date +%s
+ TIME_MEASUREMENT_VALIDATION_START=1541409075
+ VALIDATION_STATUS=0
+ echo 'Validiere gesammelte Informationen als Praeventivmassnahme gegen moegliche Fehler'
+ [[ 0 -eq 0 ]]
+ [[ 0 -eq 0 ]]
+ read instanceInfo
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ grep -Ev '^#'
++ cut -d '|' -f 1
+ STATUS_FLAG=
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ grep -Ev '^#'
++ cut -d '|' -f 2
+ INSTANCE_PATH=
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ grep -Ev '^#'
++ cut -d '|' -f 3
+ INSTALLED_TS3_SERVER_VERSION=
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ grep -Ev '^#'
++ cut -d '|' -f 4
+ INSTALLED_TS3_SERVER_BUILD=
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ cut -d '|' -f 5
++ grep -Ev '^#'
+ INSTALLED_TS3_SERVER_PLATFORM=
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ grep -Ev '^#'
++ cut -d '|' -f 6
+ TS3SERVER_INSTANCE_LOG_PATH=
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ grep -Ev '^#'
++ cut -d '|' -f 7
+ TS3SERVER_ARCHITECTURE=
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ grep -Ev '^#'
++ cut -d '|' -f 8
+ OWNER=
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ grep -Ev '^#'
++ cut -d '|' -f 9
+ OWNER_ID=
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ grep -Ev '^#'
++ cut -d '|' -f 10
+ GROUP=
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ grep -Ev '^#'
++ cut -d '|' -f 11
+ GROUP_ID=
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ grep -Ev '^#'
++ cut -d '|' -f 12
+ SERVERQUERY_IP=
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ grep -Ev '^#'
++ cut -d '|' -f 13
+ SERVERQUERY_PORT=
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ grep -Ev '^#'
++ cut -d '|' -f 14
+ DATABASE_TYPE=
+ '[' -n '' ']'
+ read instanceInfo
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ grep -Ev '^#'
++ cut -d '|' -f 1
+ STATUS_FLAG=OK
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ grep -Ev '^#'
++ cut -d '|' -f 2
+ INSTANCE_PATH=/home/ts3
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ grep -Ev '^#'
++ cut -d '|' -f 3
+ INSTALLED_TS3_SERVER_VERSION=3.3.1
++ grep -Ev '^#'
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ cut -d '|' -f 4
+ INSTALLED_TS3_SERVER_BUILD=Unknown
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ grep -Ev '^#'
++ cut -d '|' -f 5
+ INSTALLED_TS3_SERVER_PLATFORM=Linux
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ grep -Ev '^#'
++ cut -d '|' -f 6
+ TS3SERVER_INSTANCE_LOG_PATH=/home/ts3/logs/
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ grep -Ev '^#'
++ cut -d '|' -f 7
+ TS3SERVER_ARCHITECTURE=amd64
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ grep -Ev '^#'
++ cut -d '|' -f 8
+ OWNER=jeff
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ grep -Ev '^#'
++ cut -d '|' -f 9
+ OWNER_ID=1000
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ grep -Ev '^#'
++ cut -d '|' -f 10
+ GROUP=jeff
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ grep -Ev '^#'
++ cut -d '|' -f 11
+ GROUP_ID=1000
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ grep -Ev '^#'
++ cut -d '|' -f 12
+ SERVERQUERY_IP=127.0.0.1
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ grep -Ev '^#'
++ cut -d '|' -f 13
+ SERVERQUERY_PORT=10011
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ grep -Ev '^#'
++ cut -d '|' -f 14
+ DATABASE_TYPE=SQLite
+ '[' -n OK ']'
+ '[' OK == FAILED ']'
+ [[ 0 -eq 1 ]]
++ checkdeps telnet expect
++ CHECKDEPS_FAILED=0
++ for cmd in "$@"
+++ echo telnet
+++ cut -d : -f 1
++ package_cmd=telnet
+++ echo telnet
+++ cut -d : -f 2
++ package=telnet
++ [[ -z telnet ]]
++ command -v telnet
++ for cmd in "$@"
+++ echo expect
+++ cut -d : -f 1
++ package_cmd=expect
+++ echo expect
+++ cut -d : -f 2
++ package=expect
++ [[ -z expect ]]
++ command -v expect
++ [[ 0 -eq 1 ]]
++ return 0
+ [[ '' -eq 0 ]]
+ ts3server /home/ts3 status
+ case $2 in
+++ which bash
+++ getOwnerOfTS3ServerFiles /home/ts3
+++++ find /home/ts3 -name ts3server_startscript.sh
+++++ sort
+++++ tail -1
++++ stat --format=%U /home/ts3/ts3server_startscript.sh
+++ OWNER=jeff
+++ [[ -n jeff ]]
+++ echo -n jeff
++ su -s /bin/bash -c 'cd /home/ts3 && ./ts3server_startscript.sh status && cd - > /dev/null' - jeff
-su: Zeile 0: cd: /home/ts3: Keine Berechtigung
+ RESULT=
+ [[ '' =~ Server is running ]]
+ return 1
+ echo '/home/ts3: Diese TeamSpeak 3 Server Instanz ist offline. Das serveradmin Passwort kann nicht geprueft werden.'
+ read instanceInfo
++ date +%s
+ TIME_MEASUREMENT_VALIDATION_END=1541409075
+ [[ 0 -eq 1 ]]
+ [[ 0 -eq 1 ]]
+ '[' 0 -eq 1 ']'
+ echo -e '\e[u\e[110C[ \e[0;32mOK \e[0m]\n'
[ OK ]

+ echo -en '\e[sAlle gesammelten Informationen wurden erfolgreich als Praeventivmassnahme gegen moegliche Fehler validiert.'
Alle gesammelten Informationen wurden erfolgreich als Praeventivmassnahme gegen moegliche Fehler validiert.+ echo -e '\e[u\e[110C[ \e[0;36mINFO \e[0m]\n'
[ INFO ]

+ [[ -f COLLECTING_INFORMATION_STATUS.txt ]]
+ cat COLLECTING_INFORMATION_STATUS.txt
1 TeamSpeak 3 Server Instanz gefunden...

Sammel so viele wie moegliche Informationen fuer folgende TeamSpeak 3 Server Instanz: /home/ts3
++ date +%s
+ TIME_MEASUREMENT_EXECUTION_MECHANISM_START=1541409075
+ EXECUTION_MECHANISM_STATUS=0
+ [[ 0 -eq 1 ]]
+ [[ 0 -eq 1 ]]
+ [[ 0 -eq 1 ]]
+ [[ 0 -eq 1 ]]
+ [[ 0 -eq 1 ]]
++ grep -Ev '^# Status' TS3InstanceInfos.txt
++ wc -l
+ INSTANCE_COUNT=1
+ [[ 1 -eq 1 ]]
+ echo '1 Instanz fuer den Update Prozess...'
1 Instanz fuer den Update Prozess...
+ read instanceInfo
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ grep -Ev '^#'
++ cut -d '|' -f 2
+ INSTANCE_PATH=
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ grep -Ev '^#'
++ cut -d '|' -f 3
+ INSTALLED_TS3_SERVER_VERSION=
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ grep -Ev '^#'
++ cut -d '|' -f 4
+ INSTALLED_TS3_SERVER_BUILD=
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ grep -Ev '^#'
++ cut -d '|' -f 5
+ INSTALLED_TS3_SERVER_PLATFORM=
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ grep -Ev '^#'
++ cut -d '|' -f 6
+ TS3SERVER_INSTANCE_LOG_PATH=
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ grep -Ev '^#'
++ cut -d '|' -f 7
+ TS3SERVER_ARCHITECTURE=
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ grep -Ev '^#'
++ cut -d '|' -f 8
+ OWNER=
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ grep -Ev '^#'
++ cut -d '|' -f 9
+ OWNER_ID=
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ grep -Ev '^#'
++ cut -d '|' -f 10
+ GROUP=
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ grep -Ev '^#'
++ cut -d '|' -f 11
+ GROUP_ID=
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ grep -Ev '^#'
++ cut -d '|' -f 12
+ SERVERQUERY_IP=
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ grep -Ev '^#'
++ cut -d '|' -f 13
+ SERVERQUERY_PORT=
++ echo '# Status|InstancePath|InstalledTS3ServerVersion|InstalledTS3ServerBuild|InstalledTS3ServerPlatform|TS3ServerInstanceLogPath|TS3ServerArchitecture|Owner|OwnerID|Group|GroupID|ServerQueryIP|ServerQueryPort|DatabaseType'
++ grep -Ev '^#'
++ cut -d '|' -f 14
+ DATABASE_TYPE=
++ getVersionOfInstalledTS3Server
+++ echo ''
+++ wc -w
++ PAR_COUNTER=0
++ [[ 0 -eq 2 ]]
++ [[ 0 -eq 1 ]]
+ [[ '' =~ ^[3-9]+\.[0-9]+\.1[2-9]+\.?[0-9]*$ ]]
++ getVersionOfInstalledTS3Server
+++ echo ''
+++ wc -w
++ PAR_COUNTER=0
++ [[ 0 -eq 2 ]]
++ [[ 0 -eq 1 ]]
+ [[ '' =~ ^[3-9]+\.1[2-9]*\.[0-9]+\.?[0-9]*$ ]]
++ echo tsdnsserver__
++ tr '[:upper:]' '[:lower:]'
+ TSDNS_BINARY=tsdnsserver__
+ [[ -n '' ]]
+ read instanceInfo
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ grep -Ev '^#'
++ cut -d '|' -f 2
+ INSTANCE_PATH=/home/ts3
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ grep -Ev '^#'
++ cut -d '|' -f 3
+ INSTALLED_TS3_SERVER_VERSION=3.3.1
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ grep -Ev '^#'
++ cut -d '|' -f 4
+ INSTALLED_TS3_SERVER_BUILD=Unknown
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ grep -Ev '^#'
++ cut -d '|' -f 5
+ INSTALLED_TS3_SERVER_PLATFORM=Linux
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ grep -Ev '^#'
++ cut -d '|' -f 6
+ TS3SERVER_INSTANCE_LOG_PATH=/home/ts3/logs/
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ grep -Ev '^#'
++ cut -d '|' -f 7
+ TS3SERVER_ARCHITECTURE=amd64
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ grep -Ev '^#'
++ cut -d '|' -f 8
+ OWNER=jeff
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ grep -Ev '^#'
++ cut -d '|' -f 9
+ OWNER_ID=1000
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ grep -Ev '^#'
++ cut -d '|' -f 10
+ GROUP=jeff
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ grep -Ev '^#'
++ cut -d '|' -f 11
+ GROUP_ID=1000
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ grep -Ev '^#'
++ cut -d '|' -f 12
+ SERVERQUERY_IP=127.0.0.1
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ grep -Ev '^#'
++ cut -d '|' -f 13
+ SERVERQUERY_PORT=10011
++ echo 'OK|/home/ts3|3.3.1|Unknown|Linux|/home/ts3/logs/|amd64|jeff|1000|jeff|1000|127.0.0.1|10011|SQLite'
++ grep -Ev '^#'
++ cut -d '|' -f 14
+ DATABASE_TYPE=SQLite
++ getVersionOfInstalledTS3Server /home/ts3
+++ echo /home/ts3
+++ wc -w
++ PAR_COUNTER=1
++ [[ 1 -eq 2 ]]
++ [[ 1 -eq 1 ]]
+++ sort -nr
+++ head -1
++++ getTS3ServerInstanceLogPath /home/ts3
++++ INSTANCE_LOG_PATH=
++++ INIFileExists /home/ts3
++++ [[ -f /home/ts3/ts3server.ini ]]
++++ return 1
+++++ findRealTS3RootDirectory /home/ts3
+++++ [[ -d /opt/exagear/ ]]
+++++ TEAMSPEAK_ROOT_DIRECTORY=/home/ts3/
+++++ echo -n /home/ts3/
++++ INSTANCE_LOG_PATH_TEMP=/home/ts3/logs/
++++ [[ /home/ts3/logs/ = /* ]]
++++ INSTANCE_LOG_PATH=/home/ts3/logs/
++++ [[ -n /home/ts3/logs/ ]]
++++ echo -n /home/ts3/logs/
+++ find /home/ts3/logs/ -name '*_0.log'
++ INSTANCE_LOG_FILE=/home/ts3/logs/ts3server_2018-10-26__00_37_05.081284_0.log
+++ grep -Eo 'TeamSpeak\s3\sServer\s[0-9\.?]+' /home/ts3/logs/ts3server_2018-10-26__00_37_05.081284_0.log
+++ cut -d ' ' -f 4
++ VERSION=3.3.1
++ [[ -n 3.3.1 ]]
++ echo -n 3.3.1
+ [[ 3.3.1 =~ ^[3-9]+\.[0-9]+\.1[2-9]+\.?[0-9]*$ ]]
++ getVersionOfInstalledTS3Server /home/ts3
+++ echo /home/ts3
+++ wc -w
++ PAR_COUNTER=1
++ [[ 1 -eq 2 ]]
++ [[ 1 -eq 1 ]]
+++ sort -nr
+++ head -1
++++ getTS3ServerInstanceLogPath /home/ts3
++++ INSTANCE_LOG_PATH=
++++ INIFileExists /home/ts3
++++ [[ -f /home/ts3/ts3server.ini ]]
++++ return 1
+++++ findRealTS3RootDirectory /home/ts3
+++++ [[ -d /opt/exagear/ ]]
+++++ TEAMSPEAK_ROOT_DIRECTORY=/home/ts3/
+++++ echo -n /home/ts3/
++++ INSTANCE_LOG_PATH_TEMP=/home/ts3/logs/
++++ [[ /home/ts3/logs/ = /* ]]
++++ INSTANCE_LOG_PATH=/home/ts3/logs/
++++ [[ -n /home/ts3/logs/ ]]
++++ echo -n /home/ts3/logs/
+++ find /home/ts3/logs/ -name '*_0.log'
++ INSTANCE_LOG_FILE=/home/ts3/logs/ts3server_2018-10-26__00_37_05.081284_0.log
+++ grep -Eo 'TeamSpeak\s3\sServer\s[0-9\.?]+' /home/ts3/logs/ts3server_2018-10-26__00_37_05.081284_0.log
+++ cut -d ' ' -f 4
++ VERSION=3.3.1
++ [[ -n 3.3.1 ]]
++ echo -n 3.3.1
+ [[ 3.3.1 =~ ^[3-9]+\.1[2-9]*\.[0-9]+\.?[0-9]*$ ]]
++ echo tsdnsserver_Linux_amd64
++ tr '[:upper:]' '[:lower:]'
+ TSDNS_BINARY=tsdnsserver_linux_amd64
+ [[ -n /home/ts3 ]]
+ [[ 3.3.1 != \3\.\5\.\0 ]]
+ ts3server /home/ts3 status
+ case $2 in
+++ which bash
+++ getOwnerOfTS3ServerFiles /home/ts3
+++++ find /home/ts3 -name ts3server_startscript.sh
+++++ sort
+++++ tail -1
++++ stat --format=%U /home/ts3/ts3server_startscript.sh
+++ OWNER=jeff
+++ [[ -n jeff ]]
+++ echo -n jeff
++ su -s /bin/bash -c 'cd /home/ts3 && ./ts3server_startscript.sh status && cd - > /dev/null' - jeff
-su: Zeile 0: cd: /home/ts3: Keine Berechtigung
+ RESULT=
+ [[ '' =~ Server is running ]]
+ return 1
+ echo -e '\nFolgende Instanz benoetigt ein Update, ist jedoch gestoppt und wird nicht vom Skript angefasst: /home/ts3 (Installierte Version: 3.3.1)'

Folgende Instanz benoetigt ein Update, ist jedoch gestoppt und wird nicht vom Skript angefasst: /home/ts3 (Installierte Version: 3.3.1)
+ read instanceInfo
++ date +%s
+ TIME_MEASUREMENT_EXECUTION_MECHANISM_END=1541409075
++ date +%s
+ TIME_MEASUREMENT_CLEANUP_START=1541409075
+ echo -e '\nRaeume auf...'

Raeume auf...
+ '[' -f SELF_TEST_STATUS.txt ']'
+ rm SELF_TEST_STATUS.txt
+ '[' -f COLLECTING_INFORMATION_STATUS.txt ']'
+ rm COLLECTING_INFORMATION_STATUS.txt
+ '[' -f VALIDATION_STATUS.txt ']'
+ rm VALIDATION_STATUS.txt
+ '[' -f TS3InstancePaths.txt ']'
+ rm TS3InstancePaths.txt
+ '[' -f TS3InstanceInfos.txt ']'
+ rm TS3InstanceInfos.txt
+ '[' -f SERVERLIST.txt ']'
+ '[' -f CLIENTLIST.txt ']'
+ '[' -f IGNORE_CLIENTLIST.txt ']'
+ '[' -f POKELIST_UNSORTED.txt ']'
+ '[' -f POKELIST.txt ']'
+ '[' -f SERVERTEMPPASSWORDLIST.txt ']'
+ '[' -f SERVERTEMPPASSWORDADD.txt ']'
+ '[' -f wget-log ']'
+ '[' -d /tmp/TS3Tools/TS3UpdateScript/ ']'
+ '[' -d /tmp/TS3Tools/ ']'
+ '[' 1 -eq 1 ']'
+ sed -i 's/\+ SERVERADMIN_PASSWORD=CENSORED_PASS```
Sebbo94BY commented 5 years ago

Die Datei ts3server_startscript.sh - und vermutlich alle anderen auch - gehört dem Benutzer jeff. Das Skript versucht daher mit diesem Benutzer das Skript auszuführen, in das entsprechende Verzeichnis zu wechseln und und und.

Leider scheint es so, als ob der Benutzer jeff keine Rechte hat, in das Verzeichnis /home/ts3/ überhaupt reinzuwechseln:

++ su -s /bin/bash -c 'cd /home/ts3 && ./ts3server_startscript.sh status && cd - > /dev/null' - jeff
-su: Zeile 0: cd: /home/ts3: Keine Berechtigung

Stelle daher bitte sicher, dass die Rechte korrekt gesetzt sind und der Benutzer, dem die oben genannte Datei gehört, den Server gestartet hat - ansonsten wird es erneut Rechte Probleme geben.

mfnalex commented 5 years ago

Danke, das war's. Der TS wird über systemd als User ts3 gestartet, daher hatte ich die Berechtigung für das normale Startskript nicht geändert. Vielen dank.

Sebbo94BY commented 5 years ago

Kein Problem! :)