(RADIATOR) Radiusd crashes with strange error

Leon Oosterwijk leon at isdn.net
Tue Jul 9 16:16:01 CDT 2002


Hugh, 

I understand the problem with the ports. However I do believe I have the
correct install of Radius. Concider:

[root at nashrad01 log]# tail -n 30
/usr/lib/perl5/site_perl/5.6.0/Radius/Util.pm
        }
        $s =~ s/^\s*//; # Strip leading white space
    }
    return @ret;
}

#####################################################################
# Convert a numeric or symbolic UDP port into a port number
sub get_port
{
    my ($p) = @_;

    $p = &Radius::Util::format_special($p);
    if ($p =~ /^\d+$/)
    {
        # Completely numeric, 0 is permitted
        return $p;
    }
    else
    {
        my $ret = getservbyname($p, 'udp');
        &main::log($main::LOG_WARNING, "Unknown service name $p")
            unless $ret;
        return $ret;
    }
}


1;

It clearly shows the get_port routine . And:

# Util.pm
#
# Utility routines required by Radiator
# Author: Mike McCauley (mikem at open.com.au), 
# strftime and friends based on code by David Muir Sharnoff 
# <muir at idiom.com> in CTime.pm. Source code provided on request.
# $Id: Util.pm,v 1.25 2002/03/24 23:07:49 mikem Exp $

package Radius::Util;
use Digest::MD5;
use Socket;
use File::Path;
use File::Basename;
use strict;

# This is the official Radiator version number:
$main::VERSION = '3.0';


It is also of the correct version. 



Sincerely, 

Leon Oosterwijk
ISDN-NET Inc. 
(615) 221-4200
http://www.isdn.net
 

> -----Original Message-----
> From: Hugh Irvine [mailto:hugh at open.com.au] 
> Sent: Tuesday, July 09, 2002 3:39 PM
> To: Leon Oosterwijk; 'radiator at open.com.au'
> Subject: Re: (RADIATOR) Radiusd crashes with strange error
> 
> 
> 
> Hello Leon -
> 
> There are two problems here - 
> 
> the first is that the port number that radiusd is trying to 
> open is already in 
> use by another program or another instance of radiusd
> 
> the second is that you have not installed the new version of Radiator 
> correctly and the "get_port" subroutine is not present in the 
> "Radius/Util" 
> module that you are running
> 
> BTW - the current version is Radiator 3.1 (plus patches).
> 
> regards
> 
> Hugh
> 
> 
> On Wed, 10 Jul 2002 02:58, Leon Oosterwijk wrote:
> > I've recently upgraded two machines to 3.0. I'm now getting the 
> > following error sporadically:
> >
> > our program
> >
> >    /usr/bin/radiusd -config_file /etc/radiator/radius.cfg 
> > -dictionary_file /etc/radiator/dictionary
> >
> > exited unexpectedly with exit status 0,
> > signal number 0 and dump indication 0.
> >
> > The STDERR output was Error:
> >   creating socket: Address already in use
> > Undefined subroutine &Radius::Util::get_port called at 
> > /usr/bin/radiusd line 328. .
> >
> > The program will be restarted again by 
> /usr/local/sbin/restartWrapper 
> > in 600 seconds.
> >
> > ==================================================================
> > This mail message was automatically generated by 
> restartWrapper, part 
> > of the OSC Radiator package. 
> > ==================================================================
> >
> > What could be causing this? The Util.pm under the Radius 
> dir have the 
> > routine called get_port all the way at the bottom of the file.
> >
> > ===
> > 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.
> 
> -- 
> Radiator: the most portable, flexible and configurable RADIUS 
> server anywhere. Available on *NIX, *BSD, Windows 95/98/2000, 
> NT, MacOS X.
> -
> Nets: internetwork inventory and management - graphical, 
> extensible, flexible with hardware, software, platform and 
> database independence.
> 
> 
===
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