• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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