Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: cinique on October 25, 2020, 05:43:31 PM

Title: Cron Job Bugs & Errors
Post by: cinique on October 25, 2020, 05:43:31 PM
As requested by Sandeep in another thread..
First thread/post in a series, starting with some obvious cron ones.
(The first two don't appear when run on different VPSes - in fact there's quite a variation!)

Code: [Select]
/usr/local/cwp/php71/bin/php-cgi -d max_execution_time=10000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_newbackup.phpOutput
Quote
PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/local/cwpsrv/htdocs/resources/admin/addons/class_backupmanager.php on line 0

Code: [Select]
/usr/local/cwp/php71/bin/php -d max_execution_time=18000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/alertandautorenewssl.phpOutput
Quote
[]

Code: [Select]
/usr/local/cwp/php71/bin/php -d max_execution_time=18000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_autossl_all_domains.phpOutput
Quote
CREATION FAILEDS: 0
CREATEDS: 0
RENEWAL FAILEDS: 0
RENEWEDS: 0
As pointed out before, should be failures, created and renewals <-- easy fix

Code: [Select]
/etc/cron.daily/cwpOutput
Quote
Database Backup: mysql --> /backup/mysql/weekly//mysql.sql
All backup paths have a duplicated trailing / <-- easy fix


Title: Re: Cron Job Bugs & Errors
Post by: cinique on October 26, 2020, 03:43:55 PM
RENEWEDS = short form of "Renew Wedding Vows"?  ::)  :P
Title: Re: Cron Job Bugs & Errors
Post by: mrmorales on October 29, 2020, 10:32:01 AM
RENEWEDS = short form of "Renew Wedding Vows"?  ::)  :P

Ohh may be guy DEV this need renew his weed... sorry his weddding vows
Title: Re: Cron Job Bugs & Errors
Post by: Sandeep on October 29, 2020, 04:41:12 PM
thanks it will be fixed in next few updates.
Title: Re: Cron Job Bugs & Errors
Post by: cinique on October 30, 2020, 10:23:13 AM
Not so much a bug or error but a functional/operational issue, this one..

/etc/cron.daily/cwp
Quote
###########################
Firewall Flush Daily Blocks
###########################
Why clear the blocks each day? CSF does automatic blocks rotation, which is a much more effective means handling blocked IPs.

Consider a hacking attempt that is probing ports at 23:58 (just before midnight), whereby their IP gets correctly blocked. Then your daily cron runs and allows them back on, within minutes. Not good.

Is there a specific reason to flush the blocked IPs?
Title: Re: Cron Job Bugs & Errors
Post by: cinique on November 16, 2020, 06:48:31 PM
Doesn't look as if much is happening to address the previous errors.  :-\

Another one to add to the list:
Quote
PHP Notice:  Undefined variable: [obfuscated] in /usr/local/cwpsrv/htdocs/resources/admin/include/security_advisor/security_advisor.php on line 0
Title: Re: Cron Job Bugs & Errors
Post by: NFT on March 11, 2021, 06:43:52 AM
thanks it will be fixed in next few updates.

Well still not fixed this "alertandautorenewssl" empty "[]" mail also reported here without any response
http://forum.centos-webpanel.com/index.php?topic=9205.msg32278#msg32278 (http://forum.centos-webpanel.com/index.php?topic=9205.msg32278#msg32278)