(RADIATOR) [RADIATOR] Weird 3.14 Looping Problem

Chris M chrism at peakpeak.com
Wed Mar 22 15:25:54 CST 2006




On 3/22/06 1:02 PM, "Hugh Irvine" <hugh at open.com.au> wrote:

> 
> Hello Chris -
> 
> What you show below looks normal - the debug says it is looking in
> the database for the clients, then reads the dictionary, then opens
> the UDP ports and then sits waiting for radius requests.

I agree it looks normal, except it keeps occuring/looping.  It generated a 6
Meg log file in a few hours.

First I make sure there are no processes running.

radius2:/etc/raddb # ps auwx | grep radius
root     26797  0.0  0.2   1820   604 pts/1    S+   14:23   0:00 grep radius

Then I ran it from the command line:

radius2:/etc/raddb # /usr/bin/radiusd -config_file /etc/raddb/radius.cfg
-trace 4 -foreground
Could not bind authentication socket: Address already in use at
/usr/bin/radiusd line 482.

It appears it is starting up multiple instances or something, I don't see
how that can occur.  I'm not using the restart wrapper or anything yet.  How
can something like that occur (ie would could I be doing in the cfg file
that the other server works fine and this one doesn't?).

Chris

> 
> What happens when you run radiusd from the command line:
> 
> cd /your/Radiator/distribution
> 
> perl radiusd -foreground -log_stdout -trace 4 -config_file /your/
> configuration/file
> 
> regards
> 
> Hugh
> 
> 
> On 23 Mar 2006, at 02:46, Chris M wrote:
> 
>> Hi I'm trying to get Radiator 3.14 going on a new server.  I
>> downloaded the
>> bits and the patches and did the installation, but first installing
>> the
>> following CPAN modules on the Linux system:
>> 
>> drwxr-xr-x  5    501   501    696 Mar 21 16:34 DBD-mysql-3.0002
>> drwxr-x---  6    501   307    976 Mar 21 15:49 DBI-1.50
>> drwxr-xr-x  5    500   500    480 Mar 21 15:49 Digest-MD4-1.5
>> drwxr-xr-x  5    500 users    456 Mar 21 15:50 Digest-MD5-2.36
>> 
>> My old RADIUS server runs an older version of Radiator so I've been
>> away
>> from this for awhile.
>> 
>> In the config file I have a lot, it's a larger config, but I fetch the
>> clients out of a MySQL database on startup:
>> 
>> <ClientListSQL>
>>                 DBSource   dbi:mysql:radius:thedatabase
>>                 DBUsername someuser
>>                 DBAuth     SomePasswordYeahLikeThat
>> </ClientListSQL>
>> 
>> 
>> But in the logs (Trace 4) I see weird things.  The process starts,
>> then just
>> loops, apparently reinitializing itself over and over.  These
>> messages just
>> keep repeating over and over. The radiusd process never dies, it
>> just keeps
>> looping.
>> 
>> Wed Mar 22 08:32:28 2006: DEBUG: Adding Clients from SQL database
>> Wed Mar 22 08:31:32 2006: DEBUG: Query is: 'select
>>         NASIDENTIFIER,
>>         SECRET,
>>         IGNOREACCTSIGNATURE,
>>         DUPINTERVAL,
>>         DEFAULTREALM,
>>         NASTYPE,
>>         SNMPCOMMUNITY,
>>         LIVINGSTONOFFS,
>>         LIVINGSTONHOLE,
>>         FRAMEDGROUPBASEADDRESS,
>>         FRAMEDGROUPMAXPORTSPERCLASSC,
>>         REWRITEUSERNAME,
>>         NOIGNOREDUPLICATES,
>>         PREHANDLERHOOK from RADCLIENTLIST':
>> 
>> <**** BUNCH OF LINES DELETED ******>
>> 
>> Wed Mar 22 08:30:52 2006: DEBUG: ClientListSQL adds Client localhost
>> Wed Mar 22 08:30:52 2006: DEBUG: Finished reading configuration file
>> '/etc/raddb/radius.cfg'
>> Wed Mar 22 08:30:52 2006: DEBUG: Reading dictionary file
>> '/etc/raddb/dictionary'
>> Wed Mar 22 08:30:53 2006: DEBUG: Creating authentication port
>> 0.0.0.0:1645
>> 
>> Never seen this before, can anyone offer some guidance?  At least it's
>> talking to the mysql server across the network, it just seems to be
>> wanting
>> to talk about the same thing over and over :)
>> 
>> Is there perhaps something wrong with the DBD module I have chosen?
>> 
>> Thanks,
>> Chris
>> 
>> 
>> --
>> Archive at http://www.open.com.au/archives/radiator/
>> Announcements on radiator-announce at open.com.au
>> To unsubscribe, email 'majordomo at open.com.au' with
>> 'unsubscribe radiator' in the body of the message.
> 
> 
> NB:
> 
> Have you read the reference manual ("doc/ref.html")?
> Have you searched the mailing list archive (www.open.com.au/archives/
> radiator)?
> Have you had a quick look on Google (www.google.com)?
> Have you included a copy of your configuration file (no secrets),
> together with a trace 4 debug showing what is happening?


--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list