IBM Support

'HTTP Error 502.2 - Bad Gateway - The specified CGI application misbehaved...' when launching Controller from Windows 2008 website

Troubleshooting


Problem

User launches Controller via website (typically via http://servername/ibmcognos/controllerbin/ccr.exe if using Controller 10.x). User receives error message inside Internet Explorer.

Symptom

Server Error in Application "DEFAULT WEB SITE"Internet Information Services 7.5
Error Summary
HTTP Error 502.2 - Bad Gateway
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are "".
Detailed Error Information
Module CgiModule
Notification ExecuteRequestHandler
Handler CGI-exe
Error Code 0x00000000
Requested URL http://servername:80/ibmcognos/controllerbin/ccr.exe
Physical Path C:\Program Files (x86)\ibm\cognos\c10\webcontent\ccr\ccr.exe
Logon Method Anonymous
Logon User Anonymous
Most likely causes:
•The CGI process was shut down or terminated unexpectedly before it finished processing the request.
•The CGI process has a flaw and does not return a complete set of HTTP headers.
Things you can try:
•Check the event logs on the system to see whether the CGI process is shutting down unexpectedly.
•Troubleshoot the CGI application to determine why it is not sending a complete set of HTTP headers.
Links and More InformationThis error occurs when the CGI process handling the request exits before it finishes sending the response to IIS.

Cause

TIP: The message "The specified CGI application misbehaved" is generic - there are multiple possible causes for this error.

  • For more examples, see separate IBM Technote #1345245.

This Technote specifically relates to the scenario where the cause is that the IIS Handler "CGI-exe" is enabled (for the virtual directory 'controllerbin')

Environment

Controller application server based on Windows 2008 Server.

Resolving The Problem

Disable the IIS handler "CGI-exe" for the virtual directory 'controllerbin'.

Steps:

  1. Logon to the Controller application server as an administrator
  2. Launch "Internet Information Services (IIS) Manager"
  3. Select/highlight the virtual directory "controllerbin"
  4. On the right-hand side, double-click on "Handler Mappings"
  5. Right-click on "CGI-exe" and choose "Remove"

[{"Product":{"code":"SS9S6B","label":"IBM Cognos Controller"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Controller","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.5.1;8.5;10.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
15 June 2018

UID

swg21506702