• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

plesk 12.5 log rotate issues

Dave W

Regular Pleskian
Hi all, Plesk 12.5, Centos6.6, plesk was an upgrade.

Error logs not being rotated on some domains.

Logs set to rotate at 100K on Domain template [see attached]

/usr/local/psa/etc/logrotate.d/ doesnt contain config files for all the domains, cant find an error in plesk logs in relation to setting log rotate parameters

I then run the service script manually using

#/usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php

but the logs dont rotate in
/var/www/vhosts/system/domain.com/logs
 

Attachments

  • EmV2.JPG
    EmV2.JPG
    79.2 KB · Views: 4
Just to add that I just added a log rotate conf file for a missing domain in /usr/local/psa/etc/logrotate.d/ and ran the maintainance script and the logs rotated.

Seems like plesk is failing to write the logrotate script. I can confirm that the settings for the Domain Template are for the domains that are not rotating.
 
We are having the same issue, the logrotate config files in /usr/local/psa/etc/logrotate.d are not created/updated for most of the domains. We see this on fresh installations (CentOS 7 + Plesk 12.5) and also on servers where upgraded Plesk (CentOS 6, Plesk upgrade from 11.5 to 12.5).

We applied a workaround by running a cronjob every evening that updates all domains by doing:
/usr/local/psa/bin/subdomain -u <domain>
 
Back
Top