Start a Conversation

Unsolved

This post is more than 5 years old

7510

February 19th, 2016 02:00

Can not start nsrexecd instance after clean installation

Hi All,

Recently i tried to install networker clnt package on one of our linux server box (ubuntu 14.04). I have installed the needed dependencies (ksh, pdksh, libstdc++5) and then tried to install lgtoclnt_8.2.2 version package. There we no errors and everything went clean. However, when tried to start a networker instance using

$ sudo nsrexecd

  nsrexecd: "error while loading shared libraries: libosysrtxml.so : can not open shared object file: no such file or directory". Any ideas what can possibly be wrong ?

2.4K Posts

February 19th, 2016 14:00

I am not a UNIX/Linux specialist. However, searching for the file on my Centos 7 system, I found it in

   /usr/lib/nsr/lib64/cst/libosysrtxml.so

This looks as it is a NW file. Consequently, one might assume that the software has not been completely installed.

Please verify.

2 Intern

 • 

14.3K Posts

February 22nd, 2016 16:00

Check if libosysrtxml.so is present and if yes then make sure that destination folder is part of OS lib path variable.

4 Posts

March 16th, 2016 09:00

Not to steal the thunder here. However I too am having the same issue with a fresh install of the 8.2.2 client on a CentOS 7 & RHEL 7. Thanks to bingo I was able to find the libosysrtxml.so inside /usr/lib/nsr/lib64/cst/. However i'm not sure why it still does not detect the library when trying to run nsrexecd.

Thanks.

4 Operator

 • 

1.3K Posts

March 17th, 2016 00:00

Hi,

Can you check if the location of the library is update in the shared library env variable LD_LIBRARY_PATH ?

type in the command echo $LD_LIBRARY_PATH to check.

226 Posts

March 17th, 2016 02:00

Hi All,

      You can try the below steps to resolve the Issue.

1) Start the NW processes thru the startup script /etc/init.d/networker.

The startup script has the definition for the required libraries and path to the executable, in order for the NW daemons to run.

# networkerrc defines environment variables, such as LD_LIBRARY_PATH, required
# to run NetWorker daemons.
NETWORKERRC=/opt/nsr/admin/networkerrc

Looking at networkerrc --
# pwd
/opt/nsr/admin/networkerrc

# Define environment variables required to run NetWorker daemons.
# End-users should not modify this file to add user environment variables.
# This file will be removed automatically upon package removal.
#

# cst path is required to locate dynamic libraries of cst (also loads internal bsafe crypto libraries).
# It must be the first entry of LD_LIBRARY_PATH otherwise it fails to load libraries.
# cst comes with own bsafe library. cst bsafe library version may or may not be the same
# version of bsafe library used by other components in the product.

## this is where the library path are defined ###

linux86w)
NSR_LIBS=/usr/lib/nsr/lib64/cst:/usr/lib/nsr/lib64
;;


2) If the startup script won't be used, it is required to export the library locations via LD_LIBRARY_PATH prior to starting nsrexecd.

# export LD_LIBRARY_PATH=/usr/lib/nsr/lib64/cst:/usr/lib/nsr/lib64

2.1) Run ldd. It should find all the dependent libraries.

# ldd /usr/sbin/nsrexecd
linux-vdso.so.1 => (0x00007ffd2fc72000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f41e8660000)
libosysrtxml.so => /usr/lib/nsr/lib64/cst/libosysrtxml.so (0x00007f41e84ab000)
libCSP-LDAP.so => /usr/lib/nsr/lib64/cst/libCSP-LDAP.so (0x00007f41e832d000)
libCSP-LDAPClient.so => /usr/lib/nsr/lib64/cst/libCSP-LDAPClient.so (0x00007f41e8100000)
libCSP-lb.so => /usr/lib/nsr/lib64/cst/libCSP-lb.so (0x00007f41e7fd9000)
libCSP-C.so => /usr/lib/nsr/lib64/cst/libCSP-C.so (0x00007f41e7e26000)
libCSP-XML.so => /usr/lib/nsr/lib64/cst/libCSP-XML.so (0x00007f41e7bfe000)
libCSP-RT.so => /usr/lib/nsr/lib64/cst/libCSP-RT.so (0x00007f41e7a8f000)
libCSP.so => /usr/lib/nsr/lib64/cst/libCSP.so (0x00007f41e78fe000)
libCSPI.so => /usr/lib/nsr/lib64/cst/libCSPI.so (0x00007f41e779c000)
libCST-Admin.so => /usr/lib/nsr/lib64/cst/libCST-Admin.so (0x00007f41e765c000)
librt.so.1 => /lib64/librt.so.1 (0x00007f41e7453000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f41e7236000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f41e6f2d000)
libm.so.6 => /lib64/libm.so.6 (0x00007f41e6cb4000)
libc.so.6 => /lib64/libc.so.6 (0x00007f41e6938000)
/lib64/ld-linux-x86-64.so.2 (0x00007f41e889a000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f41e6720000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f41e6509000)


2.2) Now start nsrexecd.

# /usr/sbin/nsrexecd
# ps -fe | grep nsr

root 46630 1 0 23:43 ? 00:00:00 /usr/sbin/nsrexecd
root 46640 45042 0 23:43 pts/0 00:00:00 grep nsr

4 Posts

March 17th, 2016 08:00

Thank you this was exactly what I needed. What I did was set the LD_LIBRARY_PATH in /etc/environments and all of the libraries picked up. Thank you!

226 Posts

March 20th, 2016 23:00

Hi jmangino

                 I am glad that the issue is resolved, please mark my answer as the solution or helpful.

Thanks !

5 Practitioner

 • 

274.2K Posts

May 24th, 2016 06:00

Thanks so much. It worked perfectly.

No Events found!

Top