Unable to load library /opt/CA/SharedComponents/ccs/lib/libcajdbc.o

book

Article ID: 4983

calendar_today

Updated On:

Products

CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - Scheduler (AutoSys) CA Workload Automation Agent CA Unicenter NSM

Issue/Introduction

After the installation of the CA-CCS 11.2 SP2 components, the Calendar and Event Management daemons are unable to start.

Error message is:

Unable to load library /opt/CA/SharedComponents/ccs/lib/libcajdbc.o 

 

Startup sequence is: 

Executed CA-cci start............................................OK 
Executed postgres start..........................................OK 
.CADR_I_DOCINIT Doc/Help server initialized on Mon Dec 19 13:39:52 2016 
Executed CA-help start...........................................OK 
Executed CA-cal start............................................OK 
.CACM_S_047 Calendar daemon initialization in progress... 
Unable to load library /opt/CA/SharedComponents/ccs/lib/libcajdbc.o

Starting cam in /opt/CA/SharedComponents/ccs/cam 
Executed CA-cam start............................................OK 
Executed CA-emsrvc start.........................................OK 
Starting CA-opr 
Unable to load library /opt/CA/SharedComponents/ccs/lib/libcajdbc.o

Executed CA-opr start............................................OK 
.STAR_S_DEASTRT Daemon started on node xxxxxxxx

Executed CA-star start............................................OK 
Executed CA-snmp start..........................................OK 
 

Cause

During the initial installation of the CA-CCS 11.2 SP2 components, there was a  file system full condition leading in a partial installation.

Consequence of this is that some symbolic links were missing in /opt/CA/CAlib directory.

A second installation attempt, without cleaning up the first partial installation, did not fix this problem.

 

Steps to find out what is missing in this particular case where library libcajdbc.o cannot be loaded. 

          ldd /opt/CA/SharedComponents/ccs/lib/libcajdbc.o


               /opt/CA/SharedComponents/ccs/lib/libcajdbc.o needs:
               /opt/CA/SharedComponents/JRE/1.5.0/bin/classic/libjvm.so
                Cannot find libetpki2.so
                Cannot find libetpki2_thread_posix.so
               /usr/lib/libs.a(shr.o)
               /usr/lib/librtl.a(shr.o)
               /usr/lib/libc_r.a(shr.o)

Environment

CA Common Services, CA-CCS 11.2 SP2 on AIX. But this problem might happen on any other Unix/Linux platform.

Resolution

1) Create the missing symbolic links in /opt/CA/CAlib with these commands:

           ln -s /opt/CA/SharedComponents/ETPKI/lib/libetpki2.so /opt/CA/CAlib/libetpki2.so

           ln -s /opt/CA/SharedComponents/ETPKI/lib/libetpki2_thread_posix.so /opt/CA/CAlib/libetpki2_thread_posix.so

 

2) Verify that the OS loader is able to load library libcajdbc.o with:

           ldd /opt/CA/SharedComponents/ccs/lib/libcajdbc.o

               /opt/CA/SharedComponents/ccs/lib/libcajdbc.o needs:
               /opt/CA/SharedComponents/JRE/1.5.0/bin/classic/libjvm.so
               /opt/CA/SharedComponents/ETPKI/../lib/libetpki2.so
               /opt/CA/SharedComponents/ETPKI/lib/libetpki2_thread_posix.so
               /usr/lib/libs.a(shr.o)
               /usr/lib/librtl.a(shr.o)
               /usr/lib/libc_r.a(shr.o)
               /opt/CA/SharedComponents/ETPKI/../lib/libetpki_openssl_crypto.so
               /opt/CA/SharedComponents/ETPKI/../lib/libetpki_openssl_ssl.so
               /usr/lib/libdl.a(shr.o)
               /usr/lib/libc.a(shr.o)

3) Then start the CA-CCS components with either 'unistart all' or 'unisrvcntr start CA-CCS'

Additional Information

This technical document gives you some details to find out problems when the OS loader cannot load an executable or library due to missing symbolic links or missing dependent libraries.

The problem can also be related to wrong setup of LD_LIBRARY_PATH or LIBPATH variables.