Closed gOOvER closed 8 years ago
hmmmmm. I may have to look at this
I just tested without issue. ./ts3server update-functions and test again please. It shoudl restart your server automatically and not loop
update-functions is the first thing i do, after new commits for ts3 are aviable. :)
normally i fo not use it. i remove the whole functions Dir :)
ts3@v37360:~$ ./ts3server update-functions loading update_functions.sh...OK [ .... ] Updating functions removed '/home/ts3/functions/check.sh' removed '/home/ts3/functions/check_config.sh' removed '/home/ts3/functions/check_deps.sh' removed '/home/ts3/functions/check_ip.sh' removed '/home/ts3/functions/check_logs.sh' removed '/home/ts3/functions/check_root.sh' removed '/home/ts3/functions/check_systemdir.sh' removed '/home/ts3/functions/check_tmux.sh' removed '/home/ts3/functions/command_start.sh' removed '/home/ts3/functions/command_stop.sh' removed '/home/ts3/functions/core_functions.sh' removed '/home/ts3/functions/core_getopt.sh' removed '/home/ts3/functions/core_messages.sh' removed '/home/ts3/functions/fn_functions' removed '/home/ts3/functions/fn_getopt' removed '/home/ts3/functions/info_config.sh' removed '/home/ts3/functions/info_distro.sh' removed '/home/ts3/functions/info_ts3status.sh' removed '/home/ts3/functions/update_check.sh' removed '/home/ts3/functions/update_dl.sh' removed '/home/ts3/functions/update_functions.sh' [ OK ] Updating functions ts3@v37360:~$ ./ts3server update loading fn_functions...OK loading core_functions.sh...OK loading core_messages.sh...OK loading fn_getopt...OK loading core_getopt.sh...OK loading update_check.sh...OK loading check.sh...OK loading check_root.sh...OK loading check_systemdir.sh...OK loading check_logs.sh...OK [ .... ] Update ts3-server: Checking for update: teamspeak.com loading info_distro.sh...OK [ OK ] Update ts3-server: Checking for update: teamspeak.com
Update available: Current build: 3.0.11.4 Available build: 3.0.12
Applying update... loading info_ts3status.sh...OK loading update_dl.sh...OK loading info_config.sh...OK [ OK ] Update ts3-server: Updating Teamspeak 3 Server downloading teamspeak3-server_linux_amd64-3.0.12.tar.bz2...OK extracting teamspeak3-server_linux_amd64-3.0.12.tar.bz2...OK copying to /home/ts3/serverfiles...OK loading command_start.sh...OK loading check_deps.sh...OK loading check_ip.sh...OK loading check_tmux.sh...OK loading check_config.sh...OK [ OK ] Update ts3-server: Checking for update: teamspeak.com
Update available: Current build: 3.0.11.4 Available build: 3.0.12
Applying update... [ OK ] Update ts3-server: Updating Teamspeak 3 Server downloading teamspeak3-server_linux_amd64-3.0.12.tar.bz2...OK extracting teamspeak3-server_linux_amd64-3.0.12.tar.bz2...OK copying to /home/ts3/serverfiles...OK [ OK ] Update ts3-server: Checking for update: teamspeak.com
Update available: Current build: 3.0.11.4 Available build: 3.0.12
Applying update... [ OK ] Update ts3-server: Updating Teamspeak 3 Server downloading teamspeak3-server_linux_amd64-3.0.12.tar.bz2...OK extracting teamspeak3-server_linux_amd64-3.0.12.tar.bz2...OK copying to /home/ts3/serverfiles...OK [ OK ] Update ts3-server: Checking for update: teamspeak.com
Update available: Current build: 3.0.11.4 Available build: 3.0.12
Applying update... [ .... ] Update ts3-server: Updating Teamspeak 3 Server^C ts3@v37360:~$
Maybe it helps. I have 2 0Byte tmp files in log:
ts3@v37360:~/log/script$ ls -a . .ts3-server-cp-error.tmp ts3-server-script-06-01-2016-14-12-24.log .. .ts3-server-tar-error.tmp ts3-server-script.log ts3@v37360:~/log/script$
hmmm. Not sure about this. I will have a play around see if I can figure it out
./ts3server dev-debug and run the updater again. it will create a log in the main directory called dev-debug.log please send me that, I reccomend using pastebin
Hi,
If the bug isn't occuring anymore for you :
What distro are you using, and is "updateonstart" on ?
Was the server on or off when you were running the update command ?
Also, can you ls
your main script dir please ?
May help looking at the right things.
@dgibbs64 Another issue detected with all logs removed and updateonstart="on" :
serverdev@lrob:~/ts3server$ ./ts3server update
[ FAIL ] Update ts3-server: Checking for update: teamspeak.com: No logs with server version found
[ INFO ] Update ts3-server: Checking for update: teamspeak.com: Forcing server restart
[ FAIL ] Stopping ts3-server: Teamspeak 3 Server is already stopped
fetching functions/command_start.sh...OK
[ FAIL ] Update ts3-server: Checking for update: teamspeak.com: No logs with server version found
[ INFO ] Update ts3-server: Checking for update: teamspeak.com: Forcing server restart
[ FAIL ] Stopping ts3-server: Teamspeak 3 Server is already stopped
[ .... ] Update ts3-server: Checking for update: teamspeak.com^C
I've also been able to reproduce the users's bug, virtually changing the version of the ts in the logs.
In my case, it only occured with updateonstart="on" because start function seems to check for updates before starting the server, so logfiles with the new version aren't created yet. My previous bug is also due to that same thing.
So @gOOvER : Is your updateonstart="on" ? I guess it is. Just turn it off, easy fast fix.
Concerning us, we will fix that soon.
@dgibbs64 Easy fix : Add a variable when checking for update, which will be used to bypass updateonstart update.
No wonder I couldn't spot the issue. I can resolve this. Will sort it out later :-)
Yes, autoupdate is on
it works with autoupdate="off" thanks for the info :)
Should be fixed now. Please test and let me know. https://github.com/dgibbs64/linuxgsm/commit/e05a42daae1ae0b4af1fe351a7224b061bac4918
Tested : Perfect :)
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.
After latest Fixes TS3 Update ends in a loop
ts3@v37360:~$ ./ts3server update [ OK ] Update ts3-server: Checking for update: teamspeak.com
Update available: Current build: 3.0.11.4 Available build: 3.0.12
Applying update... [ OK ] Update ts3-server: Updating Teamspeak 3 Server downloading teamspeak3-server_linux_amd64-3.0.12.tar.bz2...OK extracting teamspeak3-server_linux_amd64-3.0.12.tar.bz2...OK copying to /home/ts3/serverfiles...OK [ OK ] Update ts3-server: Checking for update: teamspeak.com
Update available: Current build: 3.0.11.4 Available build: 3.0.12
Applying update... [ OK ] Update ts3-server: Updating Teamspeak 3 Server downloading teamspeak3-server_linux_amd64-3.0.12.tar.bz2...OK extracting teamspeak3-server_linux_amd64-3.0.12.tar.bz2...OK copying to /home/ts3/serverfiles...OK [ .... ] Update ts3-server: Checking for update: teamspeak.com
.... and so on,....