freeradius init script not consistent with radiusd.conf

Bug #367769 reported by Julian
6
Affects Status Importance Assigned to Milestone
freeradius (Ubuntu)
Fix Released
High
Thierry Carrez
Intrepid
Won't Fix
Undecided
Unassigned
Jaunty
Fix Released
Medium
Mathias Gug

Bug Description

Binary package hint: freeradius

I'm running the latest stable, Ubuntu 9.04. I installed the package freeradius and freeradius-mysql, along with its dependencies.

It took me 8 hours to figure out why freeradius was not working! I kept getting following errors:

Failed binding to socket: Address already in use
/etc/freeradius/radiusd.conf[236]: Error binding to port for 0.0.0.0 port 1812

root@delta:/etc/freeradius# /etc/init.d/freeradius stop
 * Stopping FreeRADIUS daemon freeradius
 * /var/run/freeradius/freeradius.pid not found...

This made me think that freeradius was not running, and I wasn't able to start it since the port was already in use, but could not figure out where.

Eventually, I noticed that /etc/freeradius/radiusd.conf was using /var/run/radiusd/radiusd.pid, while the init script was using /var/run/freeradius/freeradius.pid

I changed the radiusd.conf file to use /var/run/freeradius/freeradius.pid, which resolved the issue.

I guess this will be an easy one to fix. Am kicking myself for not having noticed it sooner!

The package version is 2.1.0+dfsg-0ubuntu4.

Thierry Carrez (ttx)
Changed in freeradius (Ubuntu):
assignee: nobody → ttx
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Alan DeKok (aland-freeradius) wrote : Re: [Bug 367769] Re: freeradius init script not consistent with radiusd.conf

Thierry Carrez wrote:
> ** Changed in: freeradius (Ubuntu)
> Importance: Undecided => High
>
> ** Changed in: freeradius (Ubuntu)
> Status: New => Confirmed
>
> ** Changed in: freeradius (Ubuntu)
> Assignee: (unassigned) => Thierry Carrez (ttx)

  See also later versions of FreeRADIUS. This name issue was fixed in
patches in the debian/ directory.

Thierry Carrez (ttx)
Changed in freeradius (Ubuntu Jaunty):
assignee: nobody → ttx
importance: Undecided → High
status: New → In Progress
Revision history for this message
Thierry Carrez (ttx) wrote :

Debdiff for jaunty

Jaunty SRU Report

Bug impact: Prevents the default configuration to allow you to even start FreeRadius.
Versions affected: Intrepid, Jaunty
Fix in development branch: Karmic is not open yet
Minimal patch: see attached file
TEST CASE:
$ sudo apt-get install freeradius freeradius-mysql
$ pidof freeradius
Expected result: freeradius should be started (so pidof displays its PID)
Regression potential: Since the default configuration file is not working the regression potential is very low.

Changed in freeradius (Ubuntu Jaunty):
importance: High → Medium
status: In Progress → New
assignee: ttx → nobody
Revision history for this message
Thierry Carrez (ttx) wrote :

New debdiff with the right destination (jaunty-proposed)

Revision history for this message
Martin Pitt (pitti) wrote :

ACK, please get it uploaded.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package freeradius - 2.1.0+dfsg-0ubuntu5

---------------
freeradius (2.1.0+dfsg-0ubuntu5) karmic; urgency=low

  [ Thierry Carrez ]
  * raddb/radiusd.conf.in: Use the same pidfile in configuration file than in
    freeradius init script to allow freeradius to start (LP: #367769).

 -- Mathias Gug <email address hidden> Tue, 28 Apr 2009 19:45:30 -0400

Changed in freeradius (Ubuntu):
status: Confirmed → Fix Released
Mathias Gug (mathiaz)
Changed in freeradius (Ubuntu Jaunty):
assignee: nobody → mathiaz
status: New → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted freeradius into jaunty-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Revision history for this message
Thierry Carrez (ttx) wrote :

Verified fixed with jaunty-proposed version.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package freeradius - 2.1.0+dfsg-0ubuntu4.1

---------------
freeradius (2.1.0+dfsg-0ubuntu4.1) jaunty-proposed; urgency=low

  * raddb/radiusd.conf.in: Use the same pidfile in configuration file than in
    freeradius init script to allow freeradius to start (LP: #367769).

 -- Thierry Carrez <email address hidden> Mon, 27 Apr 2009 15:18:41 +0200

Changed in freeradius (Ubuntu Jaunty):
status: Fix Committed → Fix Released
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

This is still broken in Intrepid.

Revision history for this message
Chuck Short (zulcss) wrote :

Closing this SRU request based on the fact that Intrepid has reached EOL.

Changed in freeradius (Ubuntu Intrepid):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.