Re: (RADIATOR) Radiusd crashes with strange error

2002-07-10 Thread Hugh Irvine


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@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 ([EMAIL PROTECTED]),
> # strftime and friends based on code by David Muir Sharnoff
> # <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 09, 2002 3:39 PM
> > To: Leon Oosterwijk; '[EMAIL PROTECTED]'
> > 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 [EMAIL PROTECTED]
> > > To unsubscribe, email '[EMAIL PROTECTED]' with 'unsubscribe
> > > radiator' in 

RE: (RADIATOR) Radiusd crashes with strange error

2002-07-09 Thread Leon Oosterwijk

Hugh, 

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

[root@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 ([EMAIL PROTECTED]), 
# strftime and friends based on code by David Muir Sharnoff 
# <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]] 
> Sent: Tuesday, July 09, 2002 3:39 PM
> To: Leon Oosterwijk; '[EMAIL PROTECTED]'
> 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 [EMAIL PROTECTED]
> > To unsubscribe, email '[EMAIL PROTECTED]' 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 [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



Re: (RADIATOR) Radiusd crashes with strange error

2002-07-09 Thread Hugh Irvine


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 [EMAIL PROTECTED]
> To unsubscribe, email '[EMAIL PROTECTED]' 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 [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



Re: (RADIATOR) Radiusd crashes with strange error

2002-07-09 Thread Hugh Irvine


Hello Tunde -

Your problem sounds like you do not have the "Foreground" parameter set. You 
have to do this with any program restartWrapper starts, because this is how 
it keeps track of the process its running. Ie. if the program exits (or 
detaches in the background) restartWrapper will start a new copy.

regards

Hugh


On Wed, 10 Jul 2002 04:43, Ayotunde Itayemi wrote:
> Hi,
>
> I had the same problem. A new notification (mail) kept popping into my
> mailbox
> almost every 2 seconds. I had to turn of the restartWrapper.
>
> I got the same problem when I tried to use the restartWrapper with BIND 9.2
> on my
> (same) RedHat 7.2 server.
> I am interested in the solution.
>
> Regards,
> Tunde I.
>
> - Original Message -
> From: "Leon Oosterwijk" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, July 09, 2002 5:58 PM
> Subject: (RADIATOR) Radiusd crashes with strange error
>
> > 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 [EMAIL PROTECTED]
> > To unsubscribe, email '[EMAIL PROTECTED]' with
> > 'unsubscribe radiator' in the body of the message.
>
> ===
> Archive at http://www.open.com.au/archives/radiator/
> Announcements on [EMAIL PROTECTED]
> To unsubscribe, email '[EMAIL PROTECTED]' 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 [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



Re: (RADIATOR) Radiusd crashes with strange error

2002-07-09 Thread Ayotunde Itayemi

Hi,

I had the same problem. A new notification (mail) kept popping into my
mailbox
almost every 2 seconds. I had to turn of the restartWrapper.

I got the same problem when I tried to use the restartWrapper with BIND 9.2
on my
(same) RedHat 7.2 server.
I am interested in the solution.

Regards,
Tunde I.

- Original Message -
From: "Leon Oosterwijk" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 09, 2002 5:58 PM
Subject: (RADIATOR) Radiusd crashes with strange error


> 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 [EMAIL PROTECTED]
> To unsubscribe, email '[EMAIL PROTECTED]' with
> 'unsubscribe radiator' in the body of the message.
>

===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



(RADIATOR) Radiusd crashes with strange error

2002-07-09 Thread Leon Oosterwijk

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 [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.