RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1249725 - error running non-shared postrotate script for /var/log/radius/radius.log of '/var/log/radius/radius.log '
Summary: error running non-shared postrotate script for /var/log/radius/radius.log of ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: freeradius
Version: 6.7
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Nikolai Kondrashov
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks: 1269194 1365226
TreeView+ depends on / blocked
 
Reported: 2015-08-03 16:05 UTC by Robert Scheck
Modified: 2021-12-10 14:43 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1365226 (view as bug list)
Environment:
Last Closed: 2016-08-08 16:40:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch to avoid the failure (298 bytes, patch)
2015-08-03 16:13 UTC, Robert Scheck
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FREEIPA-7505 0 None None None 2021-12-10 14:43:14 UTC

Description Robert Scheck 2015-08-03 16:05:31 UTC
Description of problem:
Since the upgrade to RHEL 6.7 we receive e-mails like this:

--- snipp ---
Date: Sat,  1 Aug 2015 03:06:34 +0200 (CEST)
From: Anacron <root.net>
To: root.net
Subject: Anacron job 'cron.daily' on gateway2.example.net

/etc/cron.daily/logrotate:

error: error running non-shared postrotate script for /var/log/radius/radius.log of '/var/log/radius/radius.log '
--- snapp ---

From my point of view this error is triggered due to a insane postrotate
script in logrotate which gets visible since the logrotate update (which
is no longer hiding any logrotate output).

Above error is triggered if radius is not running while the postrotate
script of logrotate tries to reload the daemon (leads to exit 7).

Version-Release number of selected component (if applicable):
freeradius-2.2.6-4.el6.x86_64
logrotate-3.7.8-23.el6.x86_64

How reproducible:
Everytime, see above and below.

Actual results:
error running non-shared postrotate script for /var/log/radius/radius.log of '/var/log/radius/radius.log '

Expected results:
No error message by logrotate via e-mail.

Comment 1 Robert Scheck 2015-08-03 16:13:36 UTC
Created attachment 1058796 [details]
Patch to avoid the failure

Even this patch is not really great it uses the same common style and way that 
"grep -C 2 postrotate /etc/logrotate.d/*" shows (Apache, BIND, rsyslogd, ...).

Comment 3 Robert Scheck 2015-08-03 16:53:59 UTC
Cross-filed case 01486583 on the Red Hat customer portal.

Comment 4 Robert Scheck 2015-08-04 12:19:28 UTC
Please note that this issue usually happens if freeradius is started or
stopped by a pacemaker setup where the configuration and the logs do not
reside on a shared filesystem. So if freeradius was running and gets then
stopped (e.g. due to a takeover), the log file is indeed not empty, the
issue above happens.

Comment 8 Nikolai Kondrashov 2016-08-08 16:40:24 UTC
We're going to address this issue in RHEL7 eventually.

Comment 9 David Klein 2017-08-11 13:07:18 UTC
Nikolai, did this get addressed ? If it has, I'm just curious what the fix was.. I'm having troubles finding any further information.

Comment 10 Nikolai Kondrashov 2017-08-11 13:35:39 UTC
Hi David. Unfortunately, this is only fixed in RHEL7, but systemd in RHEL7 has a bug, which prevents the fix from working. See Bug 1365226 and Bug 1191920. Sorry for the mess.

Comment 11 David Klein 2017-08-12 04:10:58 UTC
Not a problem, thanks for the links.. those and the patch above at least give me ideas for a work around!


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