• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue [17.5.3] Plesk for Linux logrotate issue: error_log not rotated

burnley

Regular Pleskian
Happy New Year :)

CentOS 7.4 with Plesk Version 17.5.3 Update #34, last updated on Dec 19, 2017 01:10 PM
Just created a new subscription in the panel on a hosting plan which has log rotation enabled in the Logs & Statistics tab with the following settings:
Log rotation condition: by size, 10240KB
Maximum number of log files: 10
Compress log files is checked

After creation I went and checked /usr/local/psa/etc/logrotate.d/ for the existence of the rotation file, it's missing. We've seen this problem on all our Plesk 17.5.3 servers. Bug?

There are already several articles published on this which refer to versions 10 to 12.5, nothing for 17.5.3:
Logs are no longer rotated properly on some subscriptions
error_log occupied too much space and was not rotated

/usr/local/psa/bin/domain --info adilogrotatetest1.local

General
=============================
Domain name: adilogrotatetest1.local
Owner's contact name: Tech Support (admin)
Domain status: OK
Creation date: Jan 12, 2018
Expiration date: Unlimited
Domain administrator: No
Disk space limit: 10.0 GB
Size: 0 B
Total size of backup files in local storage:0 B
Traffic limit: 100 GB
Traffic: 0 B/Month
Description:
Description for the administrator:
External ID:

Hosting
=============================
Hosting type: Physical hosting
IP address: 192.168.1.240
FTP Login: adilogrotate1
FTP Password: ************
SSH access to the server shell under the subscription's system user:/bin/false
Hard disk quota: Unlimited (not supported)
Disk space used by httpdocs: 0 B
Disk space used by Log files and statistical reports:0 B
SSL/TLS support: On
Permanent SEO-safe 301 redirect from HTTP to HTTPS:Off
SSI support: Yes
PHP support: Yes
CGI support: No
Perl support: No
Python support: No
Apache ASP support: No
FastCGI support: Yes
Custom error documents: No
Web statistics: AWStats
Anonymous FTP: No
Disk space used by Anonymous FTP: 0 B

Web Users
=============================
Total : 0
SSI support: 0
PHP support: 0
CGI support: 0
Perl support: 0
Python support: 0
Apache ASP support: 0
FastCGI support: 0
Total size: 0 B

Mail Accounts
=============================
Mail service: On
Total : 0
Access to Plesk: 0
Mailboxes: 0
Mail forwarders: 0
Mail groups: 0
Auto-replies: 0
Total size: 0 B

Mailing Lists
=============================
Mailing list service: Off
Total : 0
Total size: 0 B

Databases
=============================
Total : 0
Total size: 0 B

Java Applications
=============================
Tomcat Java service: Off
Total : 0
Total size: 0 B

Web Applications
=============================
Total : 0


Logrotation info
==============================

Log rotation condition: 10240KB (by size)
Maximum number of log files: 1
Compress log files: true
Send processed log files to email:


--WWW-Root--: /var/www/vhosts/adilogrotatetest1.local/httpdocs


Subscription Information
==============================
The domain is subscribed to the service plan "Plan3" of DDNS Tech Support.
The subscription is not locked for syncing.


SUCCESS: Gathering information for 'adilogrotatetest1.local' completed.
 
The following command fixes the issue, as per one of your KB articles:
/usr/local/psa/bin/domain --update adilogrotatetest1.local -log-rotate true
Why isn't the logrotate file created when creating the subscription?
 
Back
Top