• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Anacron job 'cron.daily' /etc/cron.daily/logrotate errors

danami

Silver Pleskian
Username: danami

TITLE

Anacron job 'cron.daily' /etc/cron.daily/logrotate errors

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

Product version: Plesk Obsidian 18.0.34.0
OS version: CentOS 7.9.2009 x86_64
Build date: 2021/03/05 11:00
Revision: f58e579d5ba4e92b8ff46d1ee497d895f9d2d366

PROBLEM DESCRIPTION

After upgrading to 18.0.34.0 we get this daily cron error email (we are seeing these errors on multiple servers that have been updated):

Code:
/etc/cron.daily/logrotate:
ls: cannot open directory /usr/lib64/httpd/modules: Permission denied
failed to open semaphore file /usr/local/psa/var/utilities.sem: Permission denied
System error 13: Permission denied

This is likely a bug in Plesk's SELinux policies as this is in the audit log.

Code:
grep utilities.sem /var/log/audit/audit.log
type=AVC msg=audit(1615887043.707:28126763): avc:  denied  { write } for  pid=2423 comm="packagemng" name="utilities.sem" dev="dm-0" ino=319287097 scontext=system_u:system_r:logrotate_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:var_t:s0 tclass=file permissive=0

STEPS TO REPRODUCE

Update to Plesk Obsidian 18.0.34.0

ACTUAL RESULT

After upgrading to 18.0.34.0 we get cron error email

EXPECTED RESULT

logrorate should not send any errors

ANY ADDITIONAL INFORMATION



YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Confirm bug
 
Back
Top