Problem starting OVPM

I am not able to start scop process for HP Openview software on Solaris-10. /var/opt/perf/status.scope gives me below errors

scopeux Status File (c) Copyright 1990-2009 Hewlett-Packard Development Company, L.P.
--------------------------------------------------------------------------
**** /opt/perf/bin/scopeux : 06/20/13 14:42:04 ****
scopeux/SunOS C.04.70.000 COLLECTOR BEGIN.
ld.so.1: scopeux: fatal: relocation error: file /opt/perf/bin/scopeux: symbol __1cNtLOGICAL_FILEKLockRegion6MnJtFILEDEFSJeSEEKMODE_LLI_I_: referenced symbol not found
**** /opt/perf/bin/scopeux : 06/20/13 14:43:43 ****
scopeux/SunOS C.04.70.000 COLLECTOR BEGIN.
ld.so.1: scopeux: fatal: relocation error: file /opt/perf/bin/scopeux: symbol __1cNtLOGICAL_FILEERead6MpvLpL_I_: referenced symbol not found
**** /opt/perf/bin/scopeux : 06/20/13 14:48:08 ****
scopeux/SunOS C.04.70.000 COLLECTOR BEGIN.
ld.so.1: scopeux: fatal: relocation error: file /opt/perf/bin/scopeux: symbol __1cNtLOGICAL_FILEERead6MpvLpL_I_: referenced symbol not found

If I search then I can find this library at these location

/usr/lib/ld.so.1
/usr/lib/sparcv9/ld.so.1
/etc/lib/ld.so.1
/lib/sparcv9/ld.so.1
/lib/ld.so.1
/opt/perf/lib/ld.so.1

What am I missing to check ?

looks like this might be able to be resolved by either using symbolic links to the files in question where the program expects to find them, or through the use on an environment variable. The big question really is what changed and did this ever work?

It was working couple of months ago. When I was preparing reports today, I came to know that it is not working.
Yes, it seems it is expecting some file to be linked. But I am not sure, where to link it.

Try doing this before launching "/var/opt/perf/status.scope":

export LD_LIBRARY_PATH=/opt/perf/lib:$LD_LIBRARY_PATH

I stopped OVPA, killed process related to this application, then tried exporting your variables and thne started OVPM again. Still no luck

:/# cat /var/opt/perf/status.scope
**** /opt/perf/bin/scopeux : 08/12/13 13:17:44 ****
scopeux/SunOS C.04.70.000 COLLECTOR BEGIN.
ld.so.1: scopeux: fatal: relocation error: file /opt/perf/bin/scopeux: symbol __1cNtLOGICAL_FILEERead6MpvLpL_I_: referenced symbol not found

How are you starting OVPM?

/opt/perf/bin/ovpa stop
/opt/perf/bin/ovpa start

Please post the output of

ldd /opt/perf/bin/scopeux

and

env LD_LIBRARY_PATH=  ldd /opt/perf/bin/scopeux

Here it is -->

/# ldd /opt/perf/bin/scopeux
        libscope.so =>   /opt/perf/lib/libscope.so
        libnums.so =>    /opt/perf/lib/libnums.so
        libelf.so.1 =>   /usr/lib/libelf.so.1
        libkvm.so.1 =>   /usr/lib/libkvm.so.1
        libkstat.so.1 =>         /usr/lib/libkstat.so.1
        libarm.so =>     /usr/lib/libarm.so
        librt.so.1 =>    /usr/lib/librt.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libCstd.so.1 =>  /usr/lib/libCstd.so.1
        libCrun.so.1 =>  /usr/lib/libCrun.so.1
        libm.so.1 =>     /usr/lib/libm.so.1
        libw.so.1 =>     /usr/lib/libw.so.1
        libthread.so.1 =>        /usr/lib/libthread.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /lib/libdl.so.1
        libintl.so.1 =>  /lib/libintl.so.1
        libaio.so.1 =>   /lib/libaio.so.1
        libmd.so.1 =>    /lib/libmd.so.1
        libmp.so.2 =>    /lib/libmp.so.2
        libscf.so.1 =>   /lib/libscf.so.1
        libdoor.so.1 =>  /lib/libdoor.so.1
        libuutil.so.1 =>         /lib/libuutil.so.1
        libgen.so.1 =>   /lib/libgen.so.1
        /usr/lib/cpu/sparcv8plus/libCstd_isa.so.1
        libm.so.2 =>     /lib/libm.so.2
        /platform/SUNW,Sun-Fire-V440/lib/libc_psr.so.1
        /platform/SUNW,Sun-Fire-V440/lib/libmd_psr.so.1
/# env LD_LIBRARY_PATH=  ldd /opt/perf/bin/scopeux
        libscope.so =>   /opt/perf/lib/libscope.so
        libnums.so =>    /opt/perf/lib/libnums.so
        libelf.so.1 =>   /usr/lib/libelf.so.1
        libkvm.so.1 =>   /usr/lib/libkvm.so.1
        libkstat.so.1 =>         /usr/lib/libkstat.so.1
        libarm.so =>     /usr/lib/libarm.so
        librt.so.1 =>    /usr/lib/librt.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libCstd.so.1 =>  /usr/lib/libCstd.so.1
        libCrun.so.1 =>  /usr/lib/libCrun.so.1
        libm.so.1 =>     /usr/lib/libm.so.1
        libw.so.1 =>     /usr/lib/libw.so.1
        libthread.so.1 =>        /usr/lib/libthread.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /lib/libdl.so.1
        libintl.so.1 =>  /lib/libintl.so.1
        libaio.so.1 =>   /lib/libaio.so.1
        libmd.so.1 =>    /lib/libmd.so.1
        libmp.so.2 =>    /lib/libmp.so.2
        libscf.so.1 =>   /lib/libscf.so.1
        libdoor.so.1 =>  /lib/libdoor.so.1
        libuutil.so.1 =>         /lib/libuutil.so.1
        libgen.so.1 =>   /lib/libgen.so.1
        /usr/lib/cpu/sparcv8plus/libCstd_isa.so.1
        libm.so.2 =>     /lib/libm.so.2
        /platform/SUNW,Sun-Fire-V440/lib/libc_psr.so.1
        /platform/SUNW,Sun-Fire-V440/lib/libmd_psr.so.1
/#

That looks okay - all libraries found.
I think that /opt/perf/lib/ld.so.1 should not be there.
Could you please rename it to /opt/perf/lib/ld.so.1-renamed ?

It is still throwing same error

:/# /etc/init.d/ovpa stop
Shutting down coda daemon
         Shutting down coda, pid(s) 20840
:/# ps -ef | egrep -i "perf|ov|perf|coda|scop"
    root 20800     1   0 13:33:11 ?           0:00 /opt/perf/bin/midaemon
    root 20833     1   0 13:33:12 ?           0:01 /opt/OV/bin/ovcd
    root 20839 20833   0 13:33:12 ?           0:00 /opt/OV/bin/ovbbccb -nodaemon
    root 21784 20373   0 13:36:06 pts/2       0:00 egrep -i perf|ov|perf|coda|scop
    root 20788     1   0 13:33:11 ?           0:00 /opt/perf/bin/ttd
:/# kill -9 20800 20833 20839 20788
:/# >/var/opt/perf/status.scope
:/# /etc/init.d/ovpa start
The Perf Agent scope collector is being started.
         The ARM registration daemon
         /opt/perf/bin/ttd has been started.
         The Performance collection daemon
         /opt/perf/bin/scopeux has been started.
         The coda daemon /opt/OV/lbin/perf/coda has been started.
         It will be fully operational in a few minutes.
The Perf Agent alarm generator is being started.
         The alarm generator /opt/perf/bin/perfalarm
         has been started.
:/# cat /var/opt/perf/status.scope
**** /opt/perf/bin/scopeux : 08/14/13 13:36:47 ****
scopeux/SunOS C.04.70.000 COLLECTOR BEGIN.
ld.so.1: scopeux: fatal: relocation error: file /opt/perf/bin/scopeux: symbol __1cNtLOGICAL_FILEERead6MpvLpL_I_: referenced symbol not found
:/#

Try this:

find /opt/perf/lib/ -type f | while read lib; do /usr/ccs/bin/nm $lib 2>/dev/null | grep 1cNtLOGICAL_FILEERead6MpvLpL && echo $lib; done

bartus, your code says

grep 1cNtLOGICAL_FILEERead6MpvLpL && echo $lib

Is this grep correct or something junk came up with post ?

This is part of the symbol name that your "referenced symbol not found" is printing :wink:

Oh..ok :slight_smile:
It did not returned anything, just came back on prompt

Well, you can try running that find on root (/):

find / -type f | while read lib; do /usr/ccs/bin/nm $lib 2>/dev/null | grep 1cNtLOGICAL_FILEERead6MpvLpL && echo $lib; done

But it will take quite some time to finish.

Whole day this command was running and finally dropped ssh timeout connection. If this command can help in finding issue, shall I run in console ? What can I do to redirect its output to a file ?

Hi,

If you are trying to install the agent in Solaris zone. HP has reported some bug for containers.

Or you can share the filesystem from global zone to containers.

Running it in console is a good idea.

find / -type f | while read lib; do /usr/ccs/bin/nm $lib 2>/dev/null | grep 1cNtLOGICAL_FILEERead6MpvLpL && echo $lib; done >> /var/tmp/ovpm.out

How will I redirect its output to a file. Should it be like this ?