If you are unable to create a new account, please email support@bspsoftware.com

 

SOLVED: Linux RH 5, Cognos10, cognoscgi.conf causes cognos.cgi to fail

Started by prikala, 21 Feb 2014 03:50:37 AM

Previous topic - Next topic

prikala

The problem below is now solved. Publicly complaining seems to help, solution comes to mind immediately...
Unlike I said, contents do matter. The trick is NOT to use cognoscgi.conf.sample as a template and not to test with an empty config file.
Everything works when I create the config from scratch.

(Update about the 404 I mentioned: It is indeed returned by dispatcher: http://www-01.ibm.com/support/docview.wss?uid=swg21654200)

---------------------------------------------------


Hi all!

I was trying to debug a possible problem with cognos.cgi (intermittent HTTP status 404).
When I created the cognoscgi.conf file to enable debugging,
cognos.cgi started failing.

When I run it directly from command line to see what is the problem, it says:
  terminate called after throwing an instance of 'NoSuchElementExceptionST'

Both 10.1 and 10.2.1.1 behave like this. 8.4.1 is ok.

So the existence of config file causes cognos.cgi to crash.
Contents of the file are irrelevant.

Any ideas on how to enable gw trace without conoscgi.conf?

(Opinions about cognos.cgi itself returning HTTP 404 are also welcome)



Here is an example, first without cognoscgi.conf and then with empty file.
OS and kernel versions are also shown:
======================================================================
[cognos@RH5srv cgi-bin]$ ./cognos.cgi
connection: close
Status: 400 Bad Request      <--- Success, cgi does what it should

[cognos@RH5srv cgi-bin]$ touch cognoscgi.conf
[cognos@RH5srv cgi-bin]$ ./cognos.cgi
terminate called after throwing an instance of 'NoSuchElementExceptionST'
Aborted
[cognos@RH5srv cgi-bin]$ cat /etc/issue
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
Kernel \r on an \m

[cognos@RH5srv cgi-bin]$ uname -a
Linux RH5srv 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux

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

No problems with RH 6 (CentOS actually but close enough):
======================================================================
[cognos@RH6srv cgi-bin]$ ./cognos.cgi
connection: close
Status: 400 Bad Request

[cognos@RH6srv cgi-bin]$ touch cognoscgi.conf
[cognos@RH6srv cgi-bin]$ ./cognos.cgi
connection: close
Status: 400 Bad Request

[cognos@RH6srv cgi-bin]$ cat /etc/issue
CentOS release 6.5 (Final)
Kernel \r on an \m

[cognos@RH6srv cgi-bin]$ uname -a
Linux RH6srv 2.6.32-431.1.2.0.1.el6.x86_64 #1 SMP Fri Dec 13 13:06:13 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

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