Bug 2336049 - sssd still writes to old log files after rotation due to incorrect PID file location
Summary: sssd still writes to old log files after rotation due to incorrect PID file l...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: sssd
Version: 41
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Alexey Tikhonov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-01-06 23:08 UTC by Orion Poplawski
Modified: 2025-02-01 05:41 UTC (History)
7 users (show)

Fixed In Version: sssd-2.10.2-1.fc41
Clone Of:
Environment:
Last Closed: 2025-02-01 05:41:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Orion Poplawski 2025-01-06 23:08:07 UTC
sssd logs are not being rotated properly.  This is due to:

    postrotate
        /bin/kill -HUP `cat /var/run/sssd.pid 2>/dev/null` 2> /dev/null || true
        /bin/pkill -HUP sssd_kcm 2> /dev/null || true
    endscript

# cat /var/run/sssd.pid
cat: /var/run/sssd.pid: No such file or directory

# find /run -name sssd.pid
/run/sssd/sssd.pid

sssd-2.10.1-1.fc41.x86_64

Reproducible: Always

Comment 1 Alexey Tikhonov 2025-01-07 13:16:19 UTC
Upstream PR: https://github.com/SSSD/sssd/pull/7787

Comment 2 Alexey Tikhonov 2025-01-08 18:15:17 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/7787

* `master`
    * 6bd231cda3dec7daf4dce01b8c35613bd197fbd0 - LOGROTATE: fix path to pid file
* `sssd-2-10`
    * 12bd58515a1d52b4d0e5851e25a709c4df9e3805 - LOGROTATE: fix path to pid file

Comment 3 Fedora Update System 2025-01-29 16:40:39 UTC
FEDORA-2025-49004d4e5e (sssd-2.10.2-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-49004d4e5e

Comment 4 Fedora Update System 2025-01-31 04:33:20 UTC
FEDORA-2025-49004d4e5e has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-49004d4e5e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-49004d4e5e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2025-02-01 05:41:58 UTC
FEDORA-2025-49004d4e5e (sssd-2.10.2-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.