• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

After upgrading to Version 18.0.30 the web statistics aren't updating anymore

burnley

Regular Pleskian
User name: burnley

TITLE

After upgrading to Version 18.0.30 the web statistics aren't updating anymore

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

CentOS Linux 7.8.2003 (Core) Plesk Obsidian Version 18.0.30, last updated on Sept 16, 2020 10:31 PM

PROBLEM DESCRIPTION

After updating to 18.0.30 all Linux servers stopped collecting the web statistics, regardless of whether the sites are using awstats or webalizer. Additional configuration data from one server:

# rpm -q awstats
awstats-7.7-2.centos.7+p18.0.27.0+t200424.1018.noarch
# egrep awstats /etc/psa/psa.conf
AWSTATS_ETC_D /etc/awstats
AWSTATS_BIN_D /var/www/cgi-bin/awstats
AWSTATS_TOOLS_D /usr/share/awstats
AWSTATS_DOC_D /var/www/html/awstats
# rpm -qf /var/www/cgi-bin/awstats
awstats-7.7-2.centos.7+p18.0.27.0+t200424.1018.noarch
# ls -l /var/www/cgi-bin/awstats
total 700
-rwxr-xr-x 1 root root 4924 Apr 24 13:19 awdownloadcsv.pl
-rwxr-xr-x 1 root root 8659 Apr 24 13:19 awredir.pl
-rwxr-xr-x 1 root root 686149 Apr 24 13:19 awstats.pl
drwxr-xr-x 5 root root 4096 Jul 20 22:09 lang
drwxr-xr-x 2 root root 257 Jul 20 22:09 lib
drwxr-xr-x 3 root root 4096 Jul 20 22:09 plugins

What's interesting is that, if I manually run the statistics tool for the domain, the stats are being updated. What's missing from the picture? Were there any cron changes shipped with 18.0.30? This is how daily maintenance script is looking at our end:
/usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php -f ReportProductAgreement,CheckForUpdates,UpdateKeys,PleskUsage,Sitebuilder,MailUsage,ExecuteStatistics,ProcessAutoreports,OptimizeStatistics,AnalyseDomainStatistics,AnalyseClientStatistics,LoadCustomizations,UpdateApsCache,UpdateApsApplications,UpgradeExtensions,ExecuteGlCleaner,StoreProtectedConfigs,FileSharing,ExecuteWebStatistics,UpdateModSecurityRuleSet,AutoresponderEndDate,CheckPostponedFeedback,SearchIndex,CleanupPanelNotifications,UpdatePhpCurlCertificates,BackupRestoreStats,ComposerSelfUpdate >/dev/null 2>&1

STEPS TO REPRODUCE

Can't reproduce

ACTUAL RESULT

Plesk stopped updating the web stats

EXPECTED RESULT

Plesk should update the web stats

ANY ADDITIONAL INFORMATION



YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Confirm bug
 
Sometimes web statistics are not updated, because the number of new log lines (the traffic of the website) is so low that log rotation is not triggered so that the new traffic is not recognized by statistics. In that case it will be counted, but only later once the logs are being rotated.
 
I think I might have found something, here's the output after this morning daily cron run:

[2020-09-29 03:57:44.161] ERR [panel] Task "FileSharing" was not found.:
0: /usr/local/psa/admin/plib/DailyMaintainance/Runner/Batch/Main.php:170
DailyMaintainance_Runner_Batch_Main->setFilter(array)
1: /usr/local/psa/admin/plib/DailyMaintainance/script.php:46
ERROR: PleskFatalException: Task "FileSharing" was not found. (Main.php:170)

It appears FileSharing.php file has disappeared in 18.0.30 from /usr/local/psa/admin/plib/DailyMaintainance/Task/ and /usr/local/psa/admin/plib/DailyMaintainance/script.php crashes if a task file is missing. Is this expected behaviour? We're running a selective set of tasks to avoid ExecuteSpamtrain.php resource hog.
 
Back
Top