(RADIATOR) Radiusd crashes with strange error
Hugh Irvine
hugh at open.com.au
Wed Jul 10 04:18:02 CDT 2002
Hello Leon -
I can only conclude that either you are running a different version of Perl,
or that the current directory when you run radiusd is somewhere other than
the Perl directory you show below.
BTW - this is why I always recommend using the source tarball and installing
the different versions in different directories - then only do this:
perl Makefile.PL; make; make test
** do not install **
Then when you run radiusd, you do this:
cd ..../Radiator-3.1; ./radiusd ......
regards
Hugh
On Wed, 10 Jul 2002 07:16, Leon Oosterwijk wrote:
> 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.
--
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