Radrelay Locking Issues

Brian De Wolf bldewolf at csupomona.edu
Sat Nov 17 02:47:52 CET 2007


Hello, I'm using freeradius 1.1.7 on a RHEL4 (built by pkgsrc, though) amd64 box
as a logger/relay for accounting packets.  Unfortunately, it looks like it's not
relaying all the accounting packets it receives, since lines such as these
appear in its logs:

Fri Nov 16 17:12:31 2007 : Error: rlm_detail: Failed to aquire filelock for
/var/log/radiusd/replicate1.log, giving up
Fri Nov 16 17:12:44 2007 : Error: rlm_detail: Failed to aquire filelock for
/var/log/radiusd/replicate1.log, giving up
Fri Nov 16 17:12:47 2007 : Error: rlm_detail: Failed to aquire filelock for
/var/log/radiusd/replicate1.log, giving up
Fri Nov 16 17:12:56 2007 : Error: rlm_detail: Failed to aquire filelock for
/var/log/radiusd/replicate1.log, giving up
Fri Nov 16 17:13:01 2007 : Error: rlm_detail: Failed to aquire filelock for
/var/log/radiusd/replicate1.log, giving up
Fri Nov 16 17:13:27 2007 : Error: rlm_detail: Failed to aquire filelock for
/var/log/radiusd/replicate1.log, giving up
Fri Nov 16 17:13:45 2007 : Error: rlm_detail: Failed to aquire filelock for
/var/log/radiusd/replicate2.log, giving up
Fri Nov 16 17:15:00 2007 : Error: rlm_detail: Failed to aquire filelock for
/var/log/radiusd/replicate2.log, giving up
Fri Nov 16 17:15:00 2007 : Error: rlm_detail: Failed to aquire filelock for
/var/log/radiusd/replicate1.log, giving up
Fri Nov 16 17:15:03 2007 : Error: rlm_detail: Failed to aquire filelock for
/var/log/radiusd/replicate1.log, giving up

Currently I'm trying to replicate the accounting logs to two separate servers
using two separate files and two separate instances of radrelay, but as you can
see, I appear to be losing some packets.  While a majority of the accounting is
passing, I'd much prefer all of it to pass.  It's logged on the box, but other
devices need to use the accounting packets as well.

Are there any obvious fixes to resolve the locking contention that appears
between radrelay and rlm_detail that causes rlm_detail to give up on logging?  I
may have missed something, finding radrelay itself was a journey (it's not in
the wiki or on the site anywhere and the source distribution's doc/radrelay is
pretty old).  /var on the box is an ext3 partition, if that makes any difference.

Thanks!
Brian De Wolf




More information about the Freeradius-Users mailing list