News:

SMF - Just Installed!

Main Menu

Plesk system logs are not being rotated in Almalinux

Started by senthil, Jun 28, 2025, 06:08 AM

Previous topic - Next topic

senthil

    Symptoms
    • System logs are not being rotated:
      -rw-r----- 1 psaadm psaadm 1.5G Jan 25 18:18 /var/lib/plesk/task-
      manager/runtime/12982/12982/stderr.txt
      -rw-r----- 1 psaadm psaadm 1.5G Jan 25 14:18 /var/lib/plesk/task-
      manager/runtime/12954/12954/stderr.txt
      -rw-r----- 1 psaadm psaadm 1.5G Jan 26 07:19 /var/lib/plesk/task-
      manager/runtime/13111/13111/stderr.txt
      -rw-r----- 1 psaadm psaadm 1.5G Jan 26 11:19 /var/lib/plesk/task-
      manager/runtime/13141/13141/stderr.txt
      -rw------- 1 root root 178M Jan 26 13:12 /var/log/plesk-php83-fpm/error.log
      -rw-r----- 1 psaadm root 125G Jan 26 13:13 /var/log/plesk/panel.log
      -rw-r--r-- 1 root root 485M Jan 26 13:12 /var/log/plesk/httpsd_access_log
    • Logrotate system package is not installed:
      # yum list installed |grep logrotate
      psa-logrotate.x86_64 3.22.0-2.redhat.9+p18.0.64.0+t240819.0541 @PLESK_18_0_65-dist
    • Server is using Almalinux/CentOS
    Cause
    Logrotate system package is not installed

    Resolution
    Install logrotate system package:

    • Connect to the Plesk server via SSH.
    • Execute command:
      yum install logrotate
      Last metadata expiration check: 2:39:22 ago on Sun 26 Jan 2025 05:41:20 PM CET.
      Dependencies resolved.
      =======================================================================
      Package Architecture Version Repository Size
      =======================================================================
      Installing:
      logrotate x86_64 3.18.0-8.el9 baseos 74 k
      Transaction Summary
      =======================================================================
      Install 1 Package
      Total download size: 74 k
      Installed size: 153 k
      Is this ok [y/N]: y
      Downloading Packages:
      logrotate-3.18.0-8.el9.x86_64.rpm 2.6 MB/s | 74 kB 00:00
      --------------------------------------------------------------------------
      ----------------------
      Total 191 kB/s | 74 kB 00:00
      Running transaction check
      Transaction check succeeded.
      Running transaction test
      Transaction test succeeded.
      Running transaction
      Preparing : 1/1
      Running scriptlet: logrotate-3.18.0-8.el9.x86_64 1/1
      Installing : logrotate-3.18.0-8.el9.x86_64 1/1
      Running scriptlet: logrotate-3.18.0-8.el9.x86_64 1/1
      Created symlink /etc/systemd/system/timers.target.wants/logrotate.timer →
      /usr/lib/systemd/system/logrotate.timer.
      Verifying : logrotate-3.18.0-8.el9.x86_64 1/1
      Installed:
      logrotate-3.18.0-8.el9.x86_64
      Complete!