Hi Guys

I have hit a VERY annoying bug in FreeRadius today which took out both of
my accouting servers (the 3rd one is already down, in the process of being
rebuilt)
The error in question seems to be when a file reaches > 2GB in size,
freeradius just quits without logging any error message!
I am purposely running different versions of freeradius with different
backends in the hope that I will not get hit by bugs simultaneously, but in
this case, one server hit 2GB worth of data in a detail file (yes I am
rotating the files each day) and the other one hit 2GB of data in its
sqltrace.log (which I had turned on a couple of days before to debug a sql
problem)

The only way to find this problem was to run both servers under debugging
mode (as there was no log of the problem) and then try and find WHICH file
was so big that freeradius couldn't write to it. (The error message does
not state which file) Surely the inability to write to a debugging file
(sqltrace.log) or a detail file should not bring the whole server crashing
down!?! Is it possible to have the server rotate the files itself in this
instance?? Or at least stop logging to that file but continue logging
everything else (and inserting in the DB)

My C skills are really not up to writing a patch for this, so some help on
this issuse would be great.

Now I am off to change my rotation to hourly and begin the painfull task of
writing a parser to convert my syslog files into a format that can be
inserted into my db. I feel a VERY long night comming on :-(

-- 

Peter Nixon
http://www.peternixon.net/
PGP Key: http://www.peternixon.net/public.asc

Beware the leader who bangs the drums of war in order to whip the
citizenry into a patriotic fervor, for patriotism is indeed a
double-edged sword. It both emboldens the blood, just as it narrows
the mind. And when the drums of war have reached a fevered pitch
and the blood boils with hate and the mind has closed, the leader
will have no need in seizing the rights of the citizenry. Rather,
the citizenry, infused with fear and blinded by patriotism, will
offer up all of their rights unto the leader and gladly so. How do
I know? For this is what I have done. And I am Caesar.
                - Julius Caesar

Attachment: msg09591/pgp00000.pgp
Description: PGP signature

Reply via email to