TS3Tools / TS3UpdateScript

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

New release (5.2.0) does not work #51

Closed echodreamz closed 8 years ago

echodreamz commented 8 years ago
bzip2: Compressed file ends unexpectedly;
        perhaps it is corrupted?  *Possible* reason follows.
bzip2: No such file or directory
        Input file = teamspeak3-server.tar.bz2, output file = teamspeak3-server.tar

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

bzip2: Deleting output file teamspeak3-server.tar, if it exists.
cp: cannot stat 'teamspeak3-server__/*': No such file or directory
rm: cannot remove 'teamspeak3-server.tar': No such file or directory
chmod: cannot access 'ts3server_*': No such file or directory
chown: missing operand after ‘/’
Try 'chown --help' for more information.
TeamSpeak 3 server instance was updated successful.
Could not start TeamSpeak 3 server instance.
df: /files/: No such file or directory
grep: /ts3server_startscript.sh: No such file or directory
stat: missing operand
Try 'stat --help' for more information.
ls: cannot read symbolic link '/proc/2/exe': No such file or directory
ls: cannot read symbolic link '/proc/3/exe': No such file or directory
ls: cannot read symbolic link '/proc/5/exe': No such file or directory
ls: cannot read symbolic link '/proc/7/exe': No such file or directory
ls: cannot read symbolic link '/proc/8/exe': No such file or directory
ls: cannot read symbolic link '/proc/9/exe': No such file or directory
ls: cannot read symbolic link '/proc/10/exe': No such file or directory
ls: cannot read symbolic link '/proc/11/exe': No such file or directory
ls: cannot read symbolic link '/proc/12/exe': No such file or directory
ls: cannot read symbolic link '/proc/13/exe': No such file or directory
ls: cannot read symbolic link '/proc/14/exe': No such file or directory
ls: cannot read symbolic link '/proc/15/exe': No such file or directory
ls: cannot read symbolic link '/proc/17/exe': No such file or directory
ls: cannot read symbolic link '/proc/18/exe': No such file or directory
ls: cannot read symbolic link '/proc/19/exe': No such file or directory
ls: cannot read symbolic link '/proc/20/exe': No such file or directory
ls: cannot read symbolic link '/proc/21/exe': No such file or directory
ls: cannot read symbolic link '/proc/22/exe': No such file or directory
ls: cannot read symbolic link '/proc/24/exe': No such file or directory
ls: cannot read symbolic link '/proc/25/exe': No such file or directory
ls: cannot read symbolic link '/proc/26/exe': No such file or directory
ls: cannot read symbolic link '/proc/27/exe': No such file or directory
ls: cannot read symbolic link '/proc/28/exe': No such file or directory
ls: cannot read symbolic link '/proc/29/exe': No such file or directory
ls: cannot read symbolic link '/proc/30/exe': No such file or directory
ls: cannot read symbolic link '/proc/31/exe': No such file or directory
ls: cannot read symbolic link '/proc/32/exe': No such file or directory
ls: cannot read symbolic link '/proc/33/exe': No such file or directory
ls: cannot read symbolic link '/proc/34/exe': No such file or directory
ls: cannot read symbolic link '/proc/35/exe': No such file or directory
ls: cannot read symbolic link '/proc/36/exe': No such file or directory
ls: cannot read symbolic link '/proc/37/exe': No such file or directory
ls: cannot read symbolic link '/proc/38/exe': No such file or directory
ls: cannot read symbolic link '/proc/39/exe': No such file or directory
ls: cannot read symbolic link '/proc/40/exe': No such file or directory
ls: cannot read symbolic link '/proc/41/exe': No such file or directory
ls: cannot read symbolic link '/proc/42/exe': No such file or directory
ls: cannot read symbolic link '/proc/43/exe': No such file or directory
ls: cannot read symbolic link '/proc/44/exe': No such file or directory
ls: cannot read symbolic link '/proc/45/exe': No such file or directory
ls: cannot read symbolic link '/proc/48/exe': No such file or directory
ls: cannot read symbolic link '/proc/49/exe': No such file or directory
ls: cannot read symbolic link '/proc/90/exe': No such file or directory
ls: cannot read symbolic link '/proc/92/exe': No such file or directory
ls: cannot read symbolic link '/proc/93/exe': No such file or directory
ls: cannot read symbolic link '/proc/94/exe': No such file or directory
ls: cannot read symbolic link '/proc/95/exe': No such file or directory
ls: cannot read symbolic link '/proc/96/exe': No such file or directory
ls: cannot read symbolic link '/proc/97/exe': No such file or directory
ls: cannot read symbolic link '/proc/99/exe': No such file or directory
ls: cannot read symbolic link '/proc/101/exe': No such file or directory
ls: cannot read symbolic link '/proc/102/exe': No such file or directory
ls: cannot read symbolic link '/proc/134/exe': No such file or directory
ls: cannot read symbolic link '/proc/135/exe': No such file or directory
ls: cannot read symbolic link '/proc/137/exe': No such file or directory
ls: cannot read symbolic link '/proc/138/exe': No such file or directory
ls: cannot read symbolic link '/proc/178/exe': No such file or directory
ls: cannot read symbolic link '/proc/330/exe': No such file or directory
ls: cannot read symbolic link '/proc/331/exe': No such file or directory
ls: cannot read symbolic link '/proc/338/exe': No such file or directory
ls: cannot read symbolic link '/proc/339/exe': No such file or directory
ls: cannot read symbolic link '/proc/340/exe': No such file or directory
ls: cannot read symbolic link '/proc/341/exe': No such file or directory
ls: cannot read symbolic link '/proc/342/exe': No such file or directory
ls: cannot read symbolic link '/proc/362/exe': No such file or directory
ls: cannot read symbolic link '/proc/363/exe': No such file or directory
ls: cannot read symbolic link '/proc/388/exe': No such file or directory
ls: cannot read symbolic link '/proc/389/exe': No such file or directory
ls: cannot read symbolic link '/proc/390/exe': No such file or directory
ls: cannot read symbolic link '/proc/392/exe': No such file or directory
ls: cannot read symbolic link '/proc/393/exe': No such file or directory
ls: cannot read symbolic link '/proc/395/exe': No such file or directory
ls: cannot read symbolic link '/proc/396/exe': No such file or directory
ls: cannot read symbolic link '/proc/397/exe': No such file or directory
ls: cannot read symbolic link '/proc/398/exe': No such file or directory
ls: cannot read symbolic link '/proc/399/exe': No such file or directory
ls: cannot read symbolic link '/proc/429/exe': No such file or directory
ls: cannot read symbolic link '/proc/538/exe': No such file or directory
ls: cannot read symbolic link '/proc/620/exe': No such file or directory
ls: cannot read symbolic link '/proc/621/exe': No such file or directory
ls: cannot read symbolic link '/proc/1324/exe': No such file or directory
ls: cannot read symbolic link '/proc/5482/exe': No such file or directory
ls: cannot read symbolic link '/proc/5493/exe': No such file or directory
ls: cannot read symbolic link '/proc/6372/exe': No such file or directory
ls: cannot read symbolic link '/proc/8125/exe': No such file or directory
ls: cannot read symbolic link '/proc/9694/exe': No such file or directory
ls: cannot read symbolic link '/proc/9706/exe': No such file or directory
ls: cannot read symbolic link '/proc/9751/exe': No such file or directory
ls: cannot read symbolic link '/proc/9770/exe': No such file or directory
ls: cannot read symbolic link '/proc/9779/exe': No such file or directory
ls: cannot read symbolic link '/proc/9784/exe': No such file or directory
ls: cannot read symbolic link '/proc/9912/exe': No such file or directory
ls: cannot read symbolic link '/proc/10728/exe': No such file or directory
ls: cannot access '/proc/11160': No such file or directory
ls: cannot access '/proc/11160/task': No such file or directory
ls: cannot access '/proc/11160/fd': No such file or directory
ls: cannot access '/proc/11160/fdinfo': No such file or directory
ls: cannot access '/proc/11160/ns': No such file or directory
ls: cannot access '/proc/11160/net': No such file or directory
ls: cannot access '/proc/11160/attr': No such file or directory

Then fails. Fedora Server 24. Last release worked fine.

Sebbo94BY commented 8 years ago

Thanks for reporting this. The same happens on CentOS too. Seems to be a bug.

I'll fix this as soon as possible.

echodreamz commented 8 years ago

Good thing we do not have this setup to automate updating the script or this would be a disaster :)

Sebbo94BY commented 8 years ago

Just for your information: There should be a second backup in /var/backups/TS3Tools/TS3UpdateScript/, if your instance isn't working now and the rollback failed too.

echodreamz commented 8 years ago

Right now we are just testing this script, so it was a harmless test server :)

Sebbo94BY commented 8 years ago

Test server or not: It shouldn't happen. ;)

If the script fails and/or destroys the instance, it should at least rollback to your working instance, that your instance is working again.

I will test the complete script soon.

Sebbo94BY commented 8 years ago

From which to which version did you tried to update?

echodreamz commented 8 years ago

Server had 3.0.13.1, tried to go to 3.0.13.3.

Sebbo94BY commented 8 years ago

I've fixed it in v5.2.1.

Can you please verify it on your Linux distribution?

Just update the script and try to update your test instance again: ./TS3UpdateScript --update-script

echodreamz commented 8 years ago

Sorry, was out for labor day weekend :). I will test this shortly and let you know!

echodreamz commented 8 years ago
TeamSpeak 3 server instance was started successful.
send: spawn id exp4 not open
    while executing
"send "login serveradmin REMOVED\r""
Temporary server passwords were restored successful.

However, no passwords were restored.

echodreamz commented 8 years ago

The original issue seems to have been fixed, however, this is a new one above.

echodreamz commented 8 years ago

So I think I have found the issue...

When updating from say 3.0.13.2 to 3.0.13.3, when TS starts, it pauses to do some "database maintenance" on SQLite. During this time, it seems TS is not accepting any DB commands.

If I upgrade from 3.0.13.3 to the latest beta release (which does not perform any DB maintenance on startup). All temporary passwords are added as they should be.

Sebbo94BY commented 8 years ago

Oh, you're right. I need to improve the script, that it has to wait for a useable instance (ServerQuery UI).

Sebbo94BY commented 8 years ago

Done. :)

1 TeamSpeak 3 server instance found...

Collecting as much as possible information for following TeamSpeak 3 server instance: /home/teamspeak
1 instance for update process...
############################################################################
        Do you want to update this instance to the following version? 3.0.13.4

        Installation Directory: /home/teamspeak
        Installed Version: 3.0.13 (Build: 1468930010)
        Installed Platform: Linux
        Installed Architecture: amd64

        Instance Log Files: /home/teamspeak/logs
        Instance TSDNS Binary: /home/teamspeak/tsdns/tsdnsserver
        TSDNS Status: Inactive

        Owner: teamspeak (UID: 1002)
        Group: teamspeak (GID: 1002)

        ServerQuery IP: 127.0.0.1
        ServerQuery Port: 10011

        Database Type: SQLite
############################################################################
Please answer: ([y]es/[n]o) y
Trying to backup temporary server passwords. Please wait...
Temporary server passwords were backuped successful.
TeamSpeak 3 server instance stopped for update process.
Deleting old log files.
Backup created successful.
TeamSpeak 3 server instance was updated successful.
TeamSpeak 3 server instance was started successful.
Temporary server passwords were restored successful.
Waiting 15 seconds to execute TeamSpeak 3 server and TSDNS health check...
TeamSpeak 3 server instance is still running.
Backup was deleted successful.

Cleaning up...