Logrotate failing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



$ systemctl status logrotate.service
× logrotate.service - Rotate log files
     Loaded: loaded (/usr/lib/systemd/system/logrotate.service; static)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf, 50-keep-warm.conf
     Active: failed (Result: exit-code) since Sun 2024-12-08 00:11:51 GMT; 22h ago
 Invocation: d616e771c77248b5ac0aa019c52e4f31
TriggeredBy: ● logrotate.timer
       Docs: man:logrotate(8)
             man:logrotate.conf(5)
   Main PID: 418079 (code=exited, status=1/FAILURE)
   Mem peak: 13.2M
        CPU: 95ms

Dec 08 00:11:51 Bree systemd[1]: Starting logrotate.service - Rotate log files...
Dec 08 00:11:51 Bree logrotate[418079]: error: unable to open /var/log/sssd/sssd_kcm.log-20241027 (read-only) for compression: Permission denied
                                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dec 08 00:11:51 Bree systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURE
Dec 08 00:11:51 Bree systemd[1]: logrotate.service: Failed with result 'exit-code'.
Dec 08 00:11:51 Bree systemd[1]: Failed to start logrotate.service - Rotate log files.

However:

$ sudo ls -lZ /var/log/sssd/sssd_kcm.log-20241027
-rw-------. 1 root root system_u:object_r:sssd_var_log_t:s0 2441 Oct 27 00:00 /var/log/sssd/sssd_kcm.log-20241027

IIRC I haven't altered anything from the default install, so why is
there a permissions problem here?

poc
-- 
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux