TS3Tools / TS3UpdateScript

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

Cronjob not allowed #62

Closed MarcHagen closed 7 years ago

MarcHagen commented 7 years ago

I have a license but when cronjob runs I cannot recognize my license and will not run the cron.

Cron ts@ts /home/ts/TS3UpdateScript/TS3UpdateScript --check --delete-old-logs --inform-online-clients --waiting-time-in-minutes 5 --keep-backups

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.5.1 (2017-01-08)
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...

Cronjobs are not possible under the Community license! You need to upgrade your license therefore. View README.md for more.
Sebbo94BY commented 7 years ago

Can you please show the output of the same command by executing it manually?

There, it should show you the license. If not, please run the script once with the parameter --force-license-update and try it again.

MarcHagen commented 7 years ago

So indeed not showing license... After the --force-license-update it shows me the Professional license But i have the script so i dont have to check all server every time, and if it keeps breaking the license and then not running cronjobs it very annoying... Last time i logged in everything was fine.

But sorry didn´t check the output manually,

Sebbo94BY commented 7 years ago

The script checks the license every 7 days automatically.

The other 6 days, it only checks the cached license information. So it may failed once and cached the wrong information and due of this, you just saw the Community license.

However: Just let me know, when it occurs again and then I'll figure out, how I can improve the licensing.

MarcHagen commented 7 years ago

So it happend again have the output below. Updating TS3Script cron;

Cron <root@ts> /root/TS3UpdateScript/TS3UpdateScript --update-script
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.5.1 (2017-01-08)
Script License: Professional (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...

Performing self-tests as preventive measures against possible failuresfind: `configs/': No such file or directory
[ OK ]
[ OK ]
All collected information were validated successfully as preventive measures against possible failures [ INFO ]
Script update is in progress...[ Was not updated ]

Cleaning up...

Summary of measured execution time for each step
Total script: 5s
Self-Test: 5s
Execution Mechanism: 0s
Cleanup: 0s

Thanks for using this script! Support the development of this script and donate: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7ZRXLSC2UBVWE

Ts3 update cron;

Cron <root@ts> /root/TS3UpdateScript/TS3UpdateScript --check --delete-old-logs --inform-online-clients --waiting-time-in-minutes 5 --keep-backups 
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.5.1 (2017-01-08)
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...

Cronjobs are not possible under the Community license! You need to upgrade your license therefore. View README.md for more.
Sebbo94BY commented 7 years ago

I've checked the log of the licensing server and I could see, that your license key has been changed and due of that, that your new license key doesn't match any on the licensing server, you got the Community license.

However, I believe, that it is an issue of your server and not of the script, because nobody else has this problem yet and my test server is running these cronjobs on a daily base without any problem.

There can only be a few reasons, why the license has been changed:

The licensing code wasn't changed in any way, so this can't be the reason. Please check the other possible options.

MarcHagen commented 7 years ago

Well none of those could be the case. Maybe connectivity is gone on 2:45 because of backups and sush. So i changed the cron time to test that. Just ran the cron every minute and it's running fine. I made a pull with some changes i like to see #63

Sebbo94BY commented 7 years ago

Yeah, if the connection is just too bad due of backups and such stuff, it can be the reason, why the TS3UpdateScript can't check the license.

Thank you for your PR. I've checked and merged it.