Bug 745334 - freeradius doesn't start in fc15
Summary: freeradius doesn't start in fc15
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: freeradius
Version: 15
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: John Dennis
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-12 03:26 UTC by Ian Donaldson
Modified: 2011-11-25 02:05 UTC (History)
4 users (show)

Fixed In Version: freeradius-2.1.12-2.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-25 02:05:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ian Donaldson 2011-10-12 03:26:33 UTC
Description of problem:

freeradius doesn't start in fc15 due to /var/run being a tmpfs,
as /var/run/radiusd as installed by the rpm doesn't exist after reboot.


Version-Release number of selected component (if applicable):

freeradius-2.1.11-2.fc15.x86_64

How reproducible:

100%

Steps to Reproduce:
1. chkconfig radiusd on; reboot
2.
3.
  
Actual results:

ps -ef|grep radiusd     shows it isn't running

/var/log/radius/radius.log has this:

Mon Oct 10 03:29:57 2011 : Info: Loaded virtual server <default>
Mon Oct 10 03:29:57 2011 : Info: Loaded virtual server inner-tunnel
Mon Oct 10 03:29:57 2011 : Error: Failed binding to /var/run/radiusd/radiusd.sock: No such file or directory



Expected results:

radiusd running


Additional info:

My workaround is to modify /etc/init.d/radiusd ...


diff -c -r1.1 radiusd
*** radiusd     2011/10/11 03:56:05     1.1
--- radiusd     2011/10/11 03:58:44
***************
*** 30,35 ****
--- 30,40 ----
  pidfile=${pidfile:=/var/run/$prog/$prog.pid}
  lockfile=${lockfile:=/var/lock/subsys/radiusd}
  
+ # added for fc15
+ mkdir -p /var/run/$prog
+ chown radiusd:radiusd /var/run/$prog
+ # end add
+ 
  start() {
      [ -x $exec ] || exit 5
      [ -f $config ] || exit 6

Comment 1 Ian Donaldson 2011-10-12 23:08:42 UTC
Alerted by comments in a related report (amavisd-new, report 745337)
it seems the common practice for fixing this type of issue is to add an entry 
to /etc/tmpfiles.d to the package, to cause creation of the necessary
directories with the appropriate permissions.

So, undoing my changes above, and adding the below as /etc/tmpfiles.d/freeradius.conf, solves the issue

--
d /var/run/radiusd   755 radiusd radiusd
--

Can somebody please update the freeradius package accordingly.

Comment 2 Peter Lemenkov 2011-10-18 09:19:09 UTC
Please, try this package:

https://admin.fedoraproject.org/updates/FEDORA-2011-13797

Comment 3 Ian Donaldson 2011-10-19 04:53:51 UTC
That package seems to have been released on Oct 3, before my report,
and has no tmpfiles.d entries or changes to /etc/rc.d/init.d/radiusd
in it.

Or is the fix implemented somewhere else?

Comment 4 Jean-Eudes ONFRAY 2011-10-28 10:08:45 UTC
I just tested freeradius-2.1.12-1.fc15 from:

https://admin.fedoraproject.org/updates/FEDORA-2011-13797

Same error:

Error: Failed binding to /var/run/radiusd/radiusd.sock: No such file or directory

/var/run is tmpfs so /var/run/radiusd should be created at boot (or startup)

Solution from #1 works. Dunno if it's the right way to solve this.

Thanks.

Comment 5 Jean-Eudes ONFRAY 2011-10-28 15:18:33 UTC
According to http://0pointer.de/public/systemd-man/tmpfiles.d.html

Configuration file should be in /usr/lib/tmpfiles.d/*.conf (if I understand correctly, /etc is reserved for local admin conf changes)

Packaging with spec is described here:
http://fedoraproject.org/wiki/Packaging:Tmpfiles.d

Comment 6 John Dennis 2011-10-31 22:39:35 UTC
F15 mounted /var/run as tmpfs which is wiped clean on a reboot
thus /var/run/radiusd which is created by the RPM install is absent.
Add /etc/tmpfiles.d/radiusd.conf to recreate directory on boot.

fixed in freeradius-2.1.12-2.fc15

Comment 7 Fedora Update System 2011-10-31 22:42:05 UTC
freeradius-2.1.12-2.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/freeradius-2.1.12-2.fc15

Comment 8 Fedora Update System 2011-11-02 06:58:54 UTC
Package freeradius-2.1.12-2.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing freeradius-2.1.12-2.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-15252
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2011-11-25 02:05:51 UTC
freeradius-2.1.12-2.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, 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.