• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Issue Logrotate not working for some files

uniauto

Basic Pleskian
Server operating system version
Debian 12.6
Plesk version and microupdate number
Plesk Obsidian 18.0.62
Hi.

I noticed some log files are not rotating.
Example:
/var/log/daemon.log
/var/log/fail2ban.log
/var/log/syslog
/var/log/plesk/httpsd_access_log

After checking config file, /opt/psa/etc/logrotate.conf
Code:
allowhardlink

include /opt/psa/etc/logrotate.d


/var/log/plesk/xferlog.processed {
        missingok
        rotate 24
        monthly
        maxsize    200M
        compress
        nocreate
}

/var/log/maillog.processed {
        missingok
        rotate 24
        monthly
        maxsize    200M
        compress
        nocreate
}

/opt/psa/var/webalizer.cache {
    missingok
    rotate  0
    size    512M
    nocreate
}

I think it missing "include /etc/logrotate.d", because /etc/logrotate.d contains settings for logs that are not rotating
Code:
# ls /etc/logrotate.d/
alternatives  apt   drweb-update  fail2ban         mariadb       nginx      plesk        plesk-php83  sw-cp-server  syslog-ng
apache2       dpkg  drwebd        httpd-prerotate  mod_security  passenger  plesk-php82  ppp          sw-engine     unattended-upgrades
 
Hello, @uniauto. The log files listed in /etc/logrotate.d are processed by the system logrotate. Generally, if logs are not used in statistics generation, they are rotated via ‘system’ logrotate rather than the Plesk's logrorate utility. /opt/psa/etc/logrotate.conf (DEB-based) is where log files handled by Plesk's logrorate utility are defined.
Debian 12 use journalctl and logrotate are not installed by default.
Since /etc/logrotate.d constains plesk related log, maybe plesk should install logrotage or manage it using psa-logrotate, because system default arent doing anything and some logs became big.
 
Debian 12 use journalctl and logrotate are not installed by default.
Since /etc/logrotate.d constains plesk related log, maybe plesk should install logrotage or manage it using psa-logrotate, because system default arent doing anything and some logs became big.
The best solution in this particular case will be to consider installing the logrotate package:

apt install logrotate
 
Back
Top