Friday, May 16, 2008

adapcctl.sh: exiting with status 3

One of the issue reported after 11.5.10.2 upgrade. Whenever we try to start Apache it is exiting with status code 3.

$ adapcctl.sh start
adapcctl.sh version 115.54
Apache Web Server Listener is not running.
Starting Apache Web Server Listener (dedicated HTTP in SSL mode) ...
Apache Web Server Listener (PLSQL) is not running.
Starting Apache Web Server Listener (dedicated PLSQL) ...

adapcctl.sh: exiting with status 3

Here is what adapcctl.txt says:

================================================================================

Apache Web Server Listener is not running.

Starting Apache Web Server Listener (dedicated HTTP in SSL mode) ...

/oracle/EDEV/oradev/iAS/Apache/Apache/bin/apachectl startssl: httpd started

Apache Web Server Listener (PLSQL) is not running.

Starting Apache Web Server Listener (dedicated PLSQL) ...

Syntax error on line 17 of /oracle/EDEV/oradev/iAS/Apache/modplsql/cfg/plsql_pls.conf:

Cannot load /oracle/EDEV/oradev/iAS/Apache/modplsql/bin/modplsql.so into server: ld.so.1: httpd: fatal: libclntsh.so.8.0: open failed: No such file or directory

/oracle/EDEV/oradev/iAS/Apache/Apache/bin/apachectl start: httpd could not be started
========================================================================

Metalink says modplsql.so might be corrupted or you might not be having libclntsh.so.8 etc etc. We tried all options but no results. It was erroring out like that only with status code 3. After digging more I realize LD_LIBRARY_PATH which was coming from adovars.env having link to old java 1.1.8. I have to remove those entries and source the env again. After that we were able to resolve this issue. But it was a nice experience which I would like to share with you all.

Happy Troubleshooting !!!

1 comment:

Vikram Das said...

Hi Sundeep,

It was good diagnosis on your part. For all such errors in future, you may also use this command to find out what ias being called by a unix binary from which directory:

ldd filename

For example:

cd $IAS_ORACLE_HOME/Apache/modplsql/bin

ldd modplsql.so
libpthread.so.1 => /usr/lib/libpthread.so.1
libclntsh.so.8.0 => (file not found)
libnsl.so.1 => /usr/lib/libnsl.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libsched.so.1 => /usr/lib/libsched.so.1
libc.so.1 => /usr/lib/libc.so.1
libaio.so.1 => /usr/lib/libaio.so.1
libm.so.1 => /usr/lib/libm.so.1
libmp.so.2 => /usr/lib/libmp.so.2
libthread.so.1 => /usr/lib/libthread.so.1
/usr/platform/SUNW,Sun-Fire-V240/lib/libc_psr.so.1