If SQL not available during startup, then it not available all the time

Ruslan A Dautkhanov rusland at scn.ru
Fri May 19 13:14:04 CEST 2006


Hello !


>  > Sun Apr 23 10:08:22 2006 : Error: rlm_sql (pgsql-voip): Failed to connect DB handle #0
>  > Sun Apr 23 10:08:22 2006 : Debug: rlm_sql (pgsql-voip): starting 1
>  > Sun Apr 23 10:08:22 2006 : Debug: rlm_sql (pgsql-voip): starting 2
>  > Sun Apr 23 10:08:22 2006 : Debug: rlm_sql (pgsql-voip): starting 3
>  > Sun Apr 23 10:08:22 2006 : Debug: rlm_sql (pgsql-voip): starting 4
>  > Sun Apr 23 10:08:22 2006 : Debug: rlm_sql (pgsql-voip): Failed to
>
> connect to any SQL server.
>
>  > Sun Apr 23 10:08:22 2006 : Debug: Module: Instantiated sql (pgsql-voip)
>
> then it will not available all the time until we reload FreeRADIUS daemon -
>
> it not ever try to reconnect:
>  > Sun Apr 23 10:17:51 2006 : Debug: radius_xlat:  'INSERT into
>
> radoriginate     (RadiusServerName, UserName, NASIPAddress,
> AcctStartTime, AcctStopTime,      Cal
>
>  > Sun Apr 23 10:17:51 2006 : Debug: rlm_sql (pgsql-voip): Ignoring unconnected handle 4..
>  > Sun Apr 23 10:17:51 2006 : Debug: rlm_sql (pgsql-voip): Ignoring unconnected handle 3..
>  > Sun Apr 23 10:17:51 2006 : Debug: rlm_sql (pgsql-voip): Ignoring unconnected handle 2..
>  > Sun Apr 23 10:17:51 2006 : Debug: rlm_sql (pgsql-voip): Ignoring unconnected handle 1..
>  > Sun Apr 23 10:17:51 2006 : Debug: rlm_sql (pgsql-voip): Ignoring unconnected handle 0..
>  > Sun Apr 23 10:17:51 2006 : Info: rlm_sql (pgsql-voip): There are no DB handles to use! skipped 5, tried to connect 0
>
> Why FreeRADIUS do not try to reconnect during sql command must be
> proceeded ?
> Is it possible to fix via configuration parameter or its hard-coded bug ?
>
> P.S.  I had maid perl-script to recover radius cdrs into DB from
> standard FreeRADIUS detail-* files.
>     If any interesting in it, I'll public it on the web.

Please help to resolve this bug...

> I would be interested, however there is already a perl script that does 
> exactly that called h323detail2db.pl in src/billing/
> It is specific to Cisco h323 VSA records and my pqsl-voip schema but it can be 
> trivially changed to work with "standard" records.
> If you give me a look at your script, maybe we can combine our work.

http://www.onlinebilling.ru/freeradius/rad-details/radvoiplogs2db.pl

I think this is much pretty script - it's easy to configure to different 
scheme.

It's only have no any preparations for open Cisco-AVPair since my
FR parse all needed attributes self, but it can be easily done...


--
Ruslan A Dautkhanov

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20060519/afcf126f/attachment.html>


More information about the Freeradius-Devel mailing list