Layer 7 Access Management

libsmerrlog.so: cannot open shared object file: No such file or directory 

01-22-2018 05:28 PM

Stating Apache shows this message:

 

Redirecting to /bin/systemctl start  httpd.service
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.

 

Further investigation

 

Run systemctl status httpd.service -l

 

You'll see the cause:

Jan 22 15:55:00 localhost.localdomain systemd[1]: Starting The Apache HTTP Server...
Jan 22 15:55:00 localhost.localdomain httpd[2760]: httpd: Syntax error on line 55 of /etc/httpd/conf/httpd.conf: Cannot load /software/webagent/bin/libmod_sm24.so into server: libsmerrlog.so: cannot open shared object file: No such file or directory
Jan 22 15:55:02 localhost.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jan 22 15:55:02 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
Jan 22 15:55:02 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.

 

Let's check our libraries:

 

 

dd /webagent path/bin/libmod_sm24.so
        linux-vdso.so.1 =>  (0x00007fff0fcea000)
        libsmerrlog.so => not found
        libsmeventlogger.so => not found
        libsmcommonutil.so => not found
        libsmi18n.so => not found
        libicudata.so.49 => not found
        libicui18n.so.49 => not found
        libicuio.so.49 => not found
        libicuuc.so.49 => not found
        libSmXlate.so => not found
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f4c67cbc000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f4c67ab7000)
        librt.so.1 => /lib64/librt.so.1 (0x00007f4c678af000)
        libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f4c675a8000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f4c672a5000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f4c6708f000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f4c66cce000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f4c6821a000)

 

We have a few things missing!

 

Now to validate source . ./ca_wa_env.sh  from the webagent install path

 

Let's check again...

 

ldd /software/webagent/bin/libmod_sm24.so
        linux-vdso.so.1 =>  (0x00007fffed3fe000)
        libsmerrlog.so => /software/webagent/bin/libsmerrlog.so (0x00007f1d1771d000)
        libsmeventlogger.so => /software/webagent/bin/libsmeventlogger.so (0x00007f1d17615000)
        libsmcommonutil.so => /software/webagent/bin/libsmcommonutil.so (0x00007f1d1748c000)
        libsmi18n.so => /software/webagent/bin/libsmi18n.so (0x00007f1d172f9000)
        libicudata.so.49 => /software/webagent/bin/libicudata.so.49 (0x00007f1d160d8000)
        libicui18n.so.49 => /software/webagent/bin/libicui18n.so.49 (0x00007f1d15dad000)
        libicuio.so.49 => /software/webagent/bin/libicuio.so.49 (0x00007f1d15ca0000)
        libicuuc.so.49 => /software/webagent/bin/libicuuc.so.49 (0x00007f1d15a19000)
        libSmXlate.so => /software/webagent/bin/libSmXlate.so (0x00007f1d158ba000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f1d15696000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f1d15491000)
        librt.so.1 => /lib64/librt.so.1 (0x00007f1d15289000)
        libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f1d14f82000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f1d14c7f000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f1d14a69000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f1d146a8000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f1d17bc3000)

Much Better :-)

 

Now we must tell apache about this.

 

use ECHO $ to display the following environment variables, copy them to your editor of choice.

 

NETE_WA_ROOT

NETE_WA_PATH

CAPKIHOME

LD_LIBRARY_PATH

PATH

 

In your editor you'll have something like this....

 

NETE_WA_ROOT=/software/webagent
NETE_WA_PATH=/software/webagent/bin
CAPKIHOME=/software/webagent/CAPKI
LD_LIBRARY_PATH=/software/webagent/bin:/software/webagent/bin/thirdparty:/software/webagent/bin:/software/webagent/bin/thirdparty:
PATH=/software/webagent/bin:/software/webagent/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
Now edit /etc/sysconfig/httpd
And add these lines, the finished product will look like this:

 

 

 

 

 

Now start apache using 

 

 

service httpd start

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Comments

07-12-2018 11:33 AM

Hi,

 

If above responses do not resolve your issue, you may like to check the SE Linux mode on your server.

SE Linux mode should be either Permissive or Disabled for libraries to load without any issue.

 

You can check it using -

getenforce 

You can change the mode using -

setenforce 0

 

Thanks,

Pankaj

07-12-2018 12:01 AM

My bad, didn't notice that you already had it run.

 

Have you checked if the platform is supported for the version you are

trying to install?

07-11-2018 11:51 PM

Have you tried running "ldd" on the file?

It may be missing some dependencies.

On Thu, 12 Jul 2018 at 13:10, HubertDennis <

07-11-2018 11:10 PM

Kodandasai

 

The reason could be 

 

A. Environmental variables for CA SSO WA is not sourced.

 

B. Bitness mismatch, i.e. 32bit vs 64bit libraries. You can see what is the bitness using 'file' command.

07-11-2018 10:15 PM

I do have the same issue but the missing libraries did not got generated after validating the source.

 

# cd /opt/CA/siteminder/webagent/bin/
# ldd /opt/CA/siteminder/webagent/bin/libmod_sm24.so
        linux-vdso.so.1 =>  (0x00007ffdf678e000)
        libsmerrlog.so => not found
        libsmeventlogger.so => not found
        libsmcommonutil.so => not found
        libsmi18n.so => not found
        libicudata.so.49 => not found
        libicui18n.so.49 => not found
        libicuio.so.49 => not found
        libicuuc.so.49 => not found
        libSmXlate.so => not found
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f044cc02000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f044c9fe000)
        librt.so.1 => /lib64/librt.so.1 (0x00007f044c7f6000)
        libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f044c4ef000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f044c1ed000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f044bfd7000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f044bc0a000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f044d10c000)
[ bin]# ../ca_wa_env.sh
[ bin]#
[ bin]# ldd /opt/CA/siteminder/webagent/bin/libmod_sm24.so
        linux-vdso.so.1 =>  (0x00007ffe287f9000)
        libsmerrlog.so => not found
        libsmeventlogger.so => not found
        libsmcommonutil.so => not found
        libsmi18n.so => not found
        libicudata.so.49 => not found
        libicui18n.so.49 => not found
        libicuio.so.49 => not found
        libicuuc.so.49 => not found
        libSmXlate.so => not found
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f8b90c1d000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f8b90a19000)
        librt.so.1 => /lib64/librt.so.1 (0x00007f8b90811000)
        libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f8b9050a000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f8b90208000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f8b8fff2000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f8b8fc25000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f8b91127000)

Related Entries and Links

No Related Resource entered.