Skip To Content

CGI errors

If a CGI error appears while you are installing or using Esri Maps for IBM Cognos, try the following troubleshooting steps.

  1. In a web browser, enter the URL path to em4c.cgi using your organization's host name and path. For example:

    http://localhost/ibmcognos/em4c/cgi-bin/em4c.cgi

    If this results in a CGI error, verify that the following are true:

  2. If the CGI error persists, enter the following path into a web browser using your organization's host name and ArcGIS Online or Portal for ArcGIS URL:

    http://localhost/ibmcognos/em4c/cgi-bin/em4c.cgi?https://<arcgisUrl>/sharing/rest/accounts/self?f=json

    If the error persists, try any of the following:

    • Ensure that the web server can resolve the host name of the ArcGIS Online or Portal for ArcGIS URL, as follows:
      1. If Internet Information Services (IIS) 8 is configured as the web server, enable Anonymous Authentication on the em4c\cgi-bin virtual directory.
      2. If IIS is being used but enabling Anonymous Authentication does not resolve the problem, try changing the Impersonate User setting to true (false is the default).
      For more information, see Configure Microsoft Internet Information Services 7.x or 8.x.
    • Ensure that each EM4C Gateway in your environment has permission to access the specified ArcGIS Online or Portal for ArcGIS URL. For example, the port might be blocked by a firewall.
    • Ensure that ArcGIS for Server is running.
    • If the link in fails with an HTTP Error 403 message, there might be a missing property in the proxy.conf file on EM4C Gateway. If this file contains matchUrls=true but does not contain serverUrl=<arcgisUrl>, do one of the following:
      • Change the value for matchUrls to false (for example, matchUrls=false).
      • Add a new line with the following property specifying your organization's ArcGIS Online or Portal for ArcGIS URL: serverUrl=<arcgisUrl>.

  3. If the above suggestions do not resolve the error, try testing other URLs to ensure that the em4c.cgi proxy is working. For example:

    http://localhost/ibmcognos/em4c/cgi-bin/em4c.cgi?http://www.esri.com

    If this URL generates an error, it could mean that em4c.cgi does not have Internet access or is blocked by a firewall.

  4. If the previous steps do not resolve the CGI error, look for details in the log file. The log file (cgiError.log) is normally found in <em4c_gateway_location>\temp. If you need help reading and understanding the log file, contact Esri Support .