• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Statistics process deletes statistics of the previous month

Marco Cristofanilli

Basic Pleskian
When statistics process runs, it deletes the statistics data of the previous month.

Through strace I saw the following commands:

lstat("/var/www/vhosts/domain.com/statistics/webstat/2009-03"
open("/var/www/vhosts/domain.com/statistics/webstat/2009-03"
chdir("/var/www/vhosts/domain.com/statistics/webstat/2009-03") = 0
lstat("awstats.domain.com-http.html"
unlink("awstats.domain.com-http.html")
lstat("index.html"
unlink("index.html")
rmdir("/var/www/vhosts/domain.com/statistics/webstat/2009-03")
lstat("/var/www/vhosts/domain.com/statistics/webstat/2009-04"
unlink("/var/www/vhosts/domain.com/statistics/webstat/current")
symlink("2009-04", "/var/www/vhosts/domain.com/statistics/webstat/current")


The previous data directory is deleted in:
rmdir("/var/www/vhosts/domain.com/statistics/webstat/2009-03") = 0


Why?
 
Back
Top