Operating System - HP-UX
1834448 Members
2322 Online
110067 Solutions
New Discussion

Radius: aaa libraries not found

 
SOLVED
Go to solution
Keith Curran
Advisor

Radius: aaa libraries not found

I have installed Radius T1428AA version A.06.01.05 on a HP-UX 11.23 Itanium platform.
All the necessary pre-requisites are installed
and the software installation did not generate
any errors or warning.

When I run the command
/opt/aaa/remotecontrol/rmistart.sh
I get the following error
Error! Could not find AAA Server libraries
make sure they are in the shared library path

There are 3 libraries
libjniAgent.so libradlib.so librpilib.so
in the directory /opt/aaa/lib

The script points at this directory using
the option in the script
os=`uname -a | grep -i "HP"`
if [ "$os" = "" ]
then
LD_LIBRARY_PATH=/opt/aaa/lib
export LD_LIBRARY_PATH
else
SHLIB_PATH=/opt/aaa/lib
export SHLIB_PATH
fi

Anybody have any ideas?
I have already reinstalled the product and
installed in on another itanium platform with
the same result
36 REPLIES 36
RAC_1
Honored Contributor

Re: Radius: aaa libraries not found

What is the exact program that is run from this script?? run a chatr on that. That will give you details about the primary, seondary paths that it will search for shared libraries. If the executable is not set for looking SHLIB_PATH, LD_LIBRARY_PATH variable, then setting those vars will not work.

The paths embeded in an executable can be changes with chatr command. man chatr (option -s if I remember correctly.)

Also the perms on /opt/aaa/lib should be appropriate and the perms on file sunder it.

Anil
There is no substitute to HARDWORK
Keith Curran
Advisor

Re: Radius: aaa libraries not found

The program is executes is
/opt/java1.4/bin/java -Djava.rmi.server.useCodebaseOnly=true -Djava.security.policy=/opt/aaa/remotecontrol/java.policy -cp /opt/aaa/remotecontrol com.hp.aaa.rmiserver.RMIServerManagement -radius -start -port 7790 -config /opt/aaa/remotecontrol &

I tried running chatr on it but it returns
the following error
chatr(error): file /opt/java1.4/bin/java is not a valid ELF file

The permissions on /opt/aaa/lib are
dr-xr-xr-x root aaa
and for the lib files
-r-xr-x--- root aaa
and the script has permisssions
-rwxrwx--- root aaa

I am the root user
RAC_1
Honored Contributor

Re: Radius: aaa libraries not found

What does "file /opt/java1.4/bin/java" says??
Is this being run on HP-UX?? Which version??

Is there an option on java to specify the libraries to use??

Anil
There is no substitute to HARDWORK
Stephen Keane
Honored Contributor

Re: Radius: aaa libraries not found

have you done

export JAVA_HOME=/opt/java1.4

before running

/opt/aaa/remotecontrol/rmistart.sh

Keith Curran
Advisor

Re: Radius: aaa libraries not found

I tried "file /opt/java1.4/bin/java" and
I got the response
/opt/java1.4/bin/java: PA-RISC1.1 shared executable dynamically linked -not str
ipped dynamically linked

As far as I can see there is no option to
set the shared libraries path when I use
java -h to get the options

I did export JAVA_HOME=/opt/java1.4
when I ran the script and no luck with that
either
Stephen Keane
Honored Contributor

Re: Radius: aaa libraries not found

Try

# sh -x /opt/aaa/remotecontrol/rmistart.sh 2>&1 | tee foo.log

Then look in foo.log to see what part of the script is being called when you get the error "Error! Could not find AAA Server libraries" and if there are any other errors around that time. We are assuming that it is the java call that is causing the problem?

Another shot in the dark might be to create symlinks in /opt/aaa/lib

libjniAgent.sl ->libjniAgent.so
libradlib.sl -> libradlib.so
librpilib.sl ->librpilib.so

although that really is clutching at straws :)



Keith Curran
Advisor

Re: Radius: aaa libraries not found

Hi Stephen,

I tried that and I got the following. It doesn't appear to narrow down the issue.
See an extract from the file below.

Creating RMIRadiusAcctServer...
RMIRadiusAcctServer named "rmiaccountingserver" created.
Try to bind the server...
RMIRadiusAcctServer named "rmiaccountingserver" ready...

Creating RMIMaintenanceServer...
RMILogfileServer named "rmilogfileserver" created.
Try to bind the server...
RMILogfileServer named "rmilogfileserver" ready...

Error! Could not find AAA Server libraries
make sure they are in the shared library path

Shutting down all RMI servers
Caught exception while shutting down RMI servers:
java.rmi.NotBoundException: rmisessionserver

I actually have tried creating the sym
links previously and it didn't do any
good.
Stephen Keane
Honored Contributor

Re: Radius: aaa libraries not found

Is there a /opt/aaa/bin directory and if so, what is in it? Can you chatr the files in it (if they are binaries). I don't know the application you are using, but I can't believe that java uses shared libraries (other than the jvm itself) , which leads me to believe that the java element is using a jni call to something in the O/S written in C/C++.

Of course I could be talking total gibberish.
Keith Curran
Advisor

Re: Radius: aaa libraries not found

Yes there is a /opt/aaa/bin directory and
it contains 7 binaries and 3 shell files.

I did a chatr on all the binaries and each
contains /opt/aaa/lib as an embedded library
path along with /usr/lib, /usr/lib/hpux32.

V. Nyga
Honored Contributor

Re: Radius: aaa libraries not found

Hi,
do a:
ldd /opt/aaa/remotecontrol/rmistart.sh
and
chatr /opt/aaa/remotecontrol/rmistart.sh

Is /opt/aaa/remotecontrol also an executable?

Then do both also for it.

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Keith Curran
Advisor

Re: Radius: aaa libraries not found

Hi there,

I tried that and got the following errors

bash-2.05b# ldd /opt/aaa/remotecontrol/rmistart.sh
ldd: Invalid file type: "/opt/aaa/remotecontrol/rmistart.sh". 64-bit shared exec
utable or shared library expected.
bash-2.05b# chatr /opt/aaa/remotecontrol/rmistart.sh
chatr(error): file /opt/aaa/remotecontrol/rmistart.sh is not a valid ELF file

/opt/aaa/remotecontrol is a directory not an
executable
V. Nyga
Honored Contributor

Re: Radius: aaa libraries not found

Hi again,

you start your executable with
/opt/aaa/remotecontrol/rmistart.sh - right?


So there must be an executable file inside this script - you have to do 'ldd' and 'chatr' with this exe.

Volkmar
*** Say 'Thanks' with Kudos ***
Stephen Keane
Honored Contributor

Re: Radius: aaa libraries not found

When you run chatr on the binaries in /opt/aaa/bin, do they come up with a line such as

shared library dynamic path search:
SHLIB_PATH enabled first

or

shared library dynamic path search:
SHLIB_PATH enabled second

The important bit is the 'enabled'.

Keith Curran
Advisor

Re: Radius: aaa libraries not found

Hi there,

I tried the chatr command previously on the
java binary within the script (see the
earlier comments) and it failed. The ldd
command fails also. They fail with the same
reasons as stated previously for the shell
script.
V. Nyga
Honored Contributor

Re: Radius: aaa libraries not found

Keith - but the java binary can't be the exe you wanna run ...
*** Say 'Thanks' with Kudos ***
Keith Curran
Advisor

Re: Radius: aaa libraries not found

When I run the chatr command on the binaries
in /opt/aaa/bin, the SHLIB_PATH is enabled
third with LD_LIBRARY_PATH enabled second
and the embedded path enabled first.
Keith Curran
Advisor

Re: Radius: aaa libraries not found

This is the entire script that is supplied
with the radius install and which is to be
executed to start radius. As you can see all
it does basically is set a shared lib path
and execute the java binary which is supposed
to startup radius.

os=`uname -a | grep -i "HP"`
if [ "$os" = "" ]
then
LD_LIBRARY_PATH=/opt/aaa/lib
export LD_LIBRARY_PATH
else
SHLIB_PATH=/opt/aaa/lib
export SHLIB_PATH
fi

/opt/java1.4/bin/java -verbose -Djava.rmi.server.useCodebaseOnly=true -Djava.se
urity.policy=/opt/aaa/remotecontrol/java.policy -cp /opt/aaa/remotecontrol com.
p.aaa.rmiserver.RMIServerManagement -radius -start -port 7790 -config /opt/aaa/
emotecontrol &
V. Nyga
Honored Contributor

Re: Radius: aaa libraries not found

You have installed Radius ... java is independent from this.
So is there a executable radius?

V.
*** Say 'Thanks' with Kudos ***
V. Nyga
Honored Contributor

Re: Radius: aaa libraries not found

What does ldd to the binaries say?
V.
*** Say 'Thanks' with Kudos ***
Keith Curran
Advisor

Re: Radius: aaa libraries not found

To start radius, according to the HP manual,
you execute the script /opt/aaa/remotecontrol/rmistart.sh

This in turn executes the java binary which
is supposed to start the radius server.
Stephen Keane
Honored Contributor

Re: Radius: aaa libraries not found

What does

find /opt/aaa -exec grep -l "Could not find AAA Server libraries" {} \; -print 2> /dev/null

give you?

Keith Curran
Advisor

Re: Radius: aaa libraries not found

Hi there,

It just returns to the command line after
executing and nothing is returned.
Stephen Keane
Honored Contributor

Re: Radius: aaa libraries not found

Ok, one more try

find /opt/aaa -exec grep -l "Could not find" {} \; -print 2> /dev/null
Stephen Keane
Honored Contributor

Re: Radius: aaa libraries not found

Is it just me, or did my hat suddenly disappear!

I'm trying to find out where the error message comes from BTW (if you hadn't already guessed)/