I've sent this a couple times until I figured out my outgoing email
address wasn't what I signed up with...
Anyway...
I'm attempting to set up redundant authorization using postgres database
back end and I'm running into a bit of a jam with it
I setup the following lines in radiusd.conf (after adding in the include
statements)
redundant {
sql1
sql2
}
I also set this, just to make it timeout faster while testing:
max_request_time = 6
And I can see the successful connect in the log and everything works as
expected... until I shutdown the 1st database.
Then when I make a request (using radclient) I see this: bash-2.05#
/usr/local/bin/radclient -f /usr/local/bin/test xxx.xxx.xxx.xxx auth
yak1234567
radclient: no response from server for ID 60
radiusd.log:
Wed Aug 18 15:46:03 2004 : Error: Discarding duplicate request from
client test:32971 - ID: 60 due to unfinished request 72 Wed Aug 18
15:46:06 2004 : Error: Discarding duplicate request from client
test:32971 - ID: 60 due to unfinished request 72 Wed Aug 18 15:46:09
2004 : Error: Discarding duplicate request from client test:32971 - ID:
60 due to unfinished request 72 Wed Aug 18 15:46:09 2004 : Error:
WARNING: Unresponsive child (id 4) for request 72 Wed Aug 18 15:46:12
2004 : Error: Discarding duplicate request from client test:32971 - ID:
60 due to unfinished request 72 Wed Aug 18 15:46:15 2004 : Error:
Discarding duplicate request from client test:32971 - ID: 60 due to
unfinished request 72
It seems that radiusd isn't marking the attempt at an sql query as a
failure and trying the 2nd sql. Now, if I restart the radius server with
the 1st database being down I see it notice that it can't connect to the
1st database and the redundancy works as expected.
Here's my version:
bash-2.05# /usr/local/sbin/radiusd -v
radiusd: FreeRADIUS Version 1.0.0-pre3, for host xxxxx, built on Aug 10
2004 at 15:27:49
If I run the server in "do not spawn child processes mode", everything
works, but I'd imagine the throughput is limited.
/usr/local/sbin/radiusd -s > /var/log/radius/radius.log 2>&1 &
Any ideas on what the problem is?
James
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html