sql.conf failover readclients=yes

leopold vladimir.belinkis at gs.com
Fri Apr 17 23:50:35 CEST 2009


Just adding debugging messages:

1) When readclients=no radiusd starts even if sql2 is down
rlm_sql_unixodbc: Connection failed
rlm_sql (sql2): Failed to connect DB handle #0
rlm_sql (sql2): starting 1
rlm_sql (sql2): starting 2
rlm_sql (sql2): starting 3
rlm_sql (sql2): starting 4
rlm_sql (sql2): starting 5
rlm_sql (sql2): starting 6
rlm_sql (sql2): starting 7
rlm_sql (sql2): starting 8
rlm_sql (sql2): starting 9
rlm_sql (sql2): starting 10
rlm_sql (sql2): starting 11
rlm_sql (sql2): starting 12
rlm_sql (sql2): starting 13
rlm_sql (sql2): starting 14
rlm_sql (sql2): starting 15
rlm_sql (sql2): Failed to connect to any SQL server.
 Module: Instantiating sql1
  sql sql1 {

2) When readclients=yes radiusd cannot start when sql2 is down since it
calls generate_sql_clients even after connection returned "fail"
rlm_sql_unixodbc: Connection failed
rlm_sql (sql2): Failed to connect DB handle #0
rlm_sql (sql2): starting 1
rlm_sql (sql2): starting 2
rlm_sql (sql2): starting 3
rlm_sql (sql2): starting 4
rlm_sql (sql2): starting 5
rlm_sql (sql2): starting 6
rlm_sql (sql2): starting 7
rlm_sql (sql2): starting 8
rlm_sql (sql2): starting 9
rlm_sql (sql2): starting 10
rlm_sql (sql2): starting 11
rlm_sql (sql2): starting 12
rlm_sql (sql2): starting 13
rlm_sql (sql2): starting 14
rlm_sql (sql2): starting 15
rlm_sql (sql2): Failed to connect to any SQL server.
rlm_sql (sql2): Processing generate_sql_clients
-- 
View this message in context: http://www.nabble.com/sql.conf-failover-readclients%3Dyes-tp23103617p23106630.html
Sent from the FreeRadius - User mailing list archive at Nabble.com.




More information about the Freeradius-Users mailing list