COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Cognos Administration => Topic started by: nagoole on 27 Aug 2013 02:23:33 AM

Title: cognos load module error
Post by: nagoole on 27 Aug 2013 02:23:33 AM
Hi All,

I try to add cognos load module but i am getting below error please help me how to resolve this in detail.

ussassdfa009:/global/site/vendor/IHS/61/bin $ sudo /global/site/vendor/IHS/61/bin/https-8443 start
Syntax error on line 45 of /global/site/vendor/IHS/61/conf/https-8443.conf:
Cannot load /global/site/vendor/cognos/c10_64/cgi-bin/mod2_2_cognos.so into server: ld.so.1: httpd: fatal: libhttpdap2_stub.so: open failed: No such file or directory
ussassdfa009:/global/site/vendor/IHS/61/bin $

I verified mod2_2_cognos.so file exist from /global/site/vendor/cognos/c10_64/cgi-bin
location



Thanks,
Naga


Title: Re: cognos load module error
Post by: nagoole on 27 Aug 2013 01:17:48 PM
Hi All,

Any one help me on this


Thanks,
Naga
Title: Re: cognos load module error
Post by: MFGF on 28 Aug 2013 07:13:24 AM
Hi,

Your question is extremely vague. From the description of the error I'm guessing you are trying to implement Apache web server access from Cognos 10? Or is it IBM HTTP server? You haven't told us, though, nor have you told us what version of Apache/HTTP Server you are trying to implement. You haven't told us what version of Cognos you are using either. Or what platform(s) it's installed on. You haven't told us how your gateway is configured either. How can you expect anyone to help you "resolve this in detail" if nobody but you knows your environment?

If I was making a wild guess based on your error and an assumption that it's Cognos 10.2 and Apache 2.2, I'd suggest you take a look at the following technote:

http://www-01.ibm.com/support/docview.wss?uid=swg21625467

Regards,

MF.
Title: Re: cognos load module error
Post by: thosas on 01 Aug 2014 06:19:58 AM
I'm getting exactly the same error with my system.  On starting the httpd service:

Starting httpd: httpd: Syntax error on line 1012 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/cognos.conf: Cannot load /opt/ibm/cognos/c10_64/cgi-bin/mod2_2_cognos.so into server: libhttpdap2_stub.so: cannot open shared object file: No such file or directory

My environment is based on CentOS 6 with Apache HTTPD.  I'm using Cognos 10.2.1 64-bit.

I can verify that the file mod2_2_cognos.so is present in the expected directory.  Permissions are set to RWXRWXR-X.  Permissions don't appear to be the issue.

Can anybody help shed any light on this?
Title: Re: cognos load module error
Post by: MFGF on 01 Aug 2014 06:58:09 AM
Quote from: thosas on 01 Aug 2014 06:19:58 AM
I'm getting exactly the same error with my system.  On starting the httpd service:

Starting httpd: httpd: Syntax error on line 1012 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/cognos.conf: Cannot load /opt/ibm/cognos/c10_64/cgi-bin/mod2_2_cognos.so into server: libhttpdap2_stub.so: cannot open shared object file: No such file or directory

My environment is based on CentOS 6 with Apache HTTPD.  I'm using Cognos 10.2.1 64-bit.

I can verify that the file mod2_2_cognos.so is present in the expected directory.  Permissions are set to RWXRWXR-X.  Permissions don't appear to be the issue.

Can anybody help shed any light on this?

Hi,

Did you check out the technote I linked to above? Have you run the copyGateMod shell script with the relevant argument?

Cheers!

MF.
Title: Re: cognos load module error
Post by: thosas on 01 Aug 2014 07:08:00 AM
Yes, sorry, I should have said.  I did do that, although the error is not the error that is mentioned in that Technote. 

Still, I run the script, restarted HTTPD and got the same error.

thanks!
Title: Re: cognos load module error
Post by: MFGF on 01 Aug 2014 07:43:35 AM
Quote from: thosas on 01 Aug 2014 07:08:00 AM
Yes, sorry, I should have said.  I did do that, although the error is not the error that is mentioned in that Technote. 

Still, I run the script, restarted HTTPD and got the same error.

thanks!

Hi,

There are some detailed steps to follow to be able to use Apache-Mod, and these are listed in the Installation and Configuration Guide. First you need to add the path of your cgi-bin directory to the end of LD_LIBRARY_PATH, then edit httpd.conf and make some detailed changes to it.

Take a look at page 97 onwards (Use compiled gateways for production systems) and work through this step-by-step:

http://public.dhe.ibm.com/software/data/cognos/documentation/docs/en/10.2.1.1/inst_cr_winux.pdf

If you're still having issues after this, post back with the relevant errors you see.

Good luck!!

MF.
Title: Re: cognos load module error
Post by: MFGF on 01 Aug 2014 07:58:27 AM
Hi,

Something else worth bearing in mind is this note from the guide above:

Important: You cannot use the Apache modules with the version of Apache Server
2.2 that is supplied with Red Hat Enterprise Linux version 5.3 and later.

I googled CentOS, and it is a distro based on Red Hat Enterprise Linux, so I'm assuming this note is also applicable to CentOS.

Cheers!

MF.
Title: Re: cognos load module error
Post by: thosas on 01 Aug 2014 08:50:39 AM
Thanks for that.  RTFM is always good advice.  I must have written the instructions I was using back with v5.3 of CentOS which would explain why it worked previously. 

I commented out the line to load the MOD now and it's loading fine with the .cgi - I'm surprised that IBM haven't got their act together to update it by now. 

I'd really like to understand the limitation though.
Title: Re: cognos load module error
Post by: MFGF on 01 Aug 2014 09:31:50 AM
Quote from: thosas on 01 Aug 2014 08:50:39 AM
Thanks for that.  RTFM is always good advice.  I must have written the instructions I was using back with v5.3 of CentOS which would explain why it worked previously. 

I commented out the line to load the MOD now and it's loading fine with the .cgi - I'm surprised that IBM haven't got their act together to update it by now. 

I'd really like to understand the limitation though.

One thing you might try is using a source-compiled version of Apache 2.2. I have a sneaky feeling you might be able to use the modules with this. I can't back this up with any concrete facts, so it's just a hunch. Might be worth a try, though?

Cheers!

MF.
Title: Re: cognos load module error
Post by: Lynn on 01 Aug 2014 12:43:28 PM
Here is a relevant blog post, but I guess you already knew about it. Might be nice to credit the muppet for assistance where appropriate :)

http://cognos-tech.blogspot.co.uk/2014/08/installing-ibm-cognos-1021-business.html
Title: Re: cognos load module error
Post by: thosas on 09 Sep 2014 04:23:45 AM
Heh heh, that's my article that I wrote after getting help within this very thread!
Title: Re: cognos load module error
Post by: Lynn on 09 Sep 2014 08:39:36 AM
Quote from: thosas on 09 Sep 2014 04:23:45 AM
Heh heh, that's my article that I wrote after getting help within this very thread!

Yes, it seemed obvious that it was your blog. My point was that crediting Cognoise and the Muppet for the assistance and inspiration provided would have been the nice thing to do.