My Oracle Support Banner

PatchEccFiles.pl Perl Script Failing With Errors "502 Bad Gateway" And "The request could not be processed. An invalid response was received by the proxy or gateway server" (Doc ID 2997432.1)

Last updated on JANUARY 16, 2024

Applies to:

Oracle Enterprise Command Center Framework - Version 12.2.12 and later
Information in this document applies to any platform.

Symptoms

Performed new ECC installation by following (Doc ID 2495053.1), EBS is setup with TLS. While running patchEccFiles.pl to Import Enterprise Command Center Applications, it is failing with errors.

The same errors reported while accessing ECC Developer after login to EBS application.

Errors from patchEccFiles.out:

Importing application /u01/ecc/stage/ap/12.0.0/patch/115/ecc/applications/ap_ecc.zip
ECC WEB ENTRY URL:https://EBS_MIDDLETIER_HOST_FQDN:EBSTLSPORT/ecc
ECC Application File:/u01/ecc/stage/ap/12.0.0/patch/115/ecc/applications/ap_ecc.zip
ERROR: Failed with status 502 for url https://EBS_MIDDLETIER_HOST_FQDN:EBSTLSPORT/ecc/user/import/applications?gfmString=JPDe3tk6YYI8QZSDdlcuXg..
Please check the log: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>502 Bad Gateway</title>
</head><body>
<h1>Bad Gateway</h1>
<p>The request could not be processed.  An invalid response was received by the proxy or gateway server.</p>
</body></html>
 in ECC instance for error details
java.lang.Exception: https://EBS_MIDDLETIER_HOST_FQDN:EBSTLSPORT/ecc/user/import/applications?gfmString=JPDe3tk6YYI8QZSDdlcuXg.. failed with HTTP status: 502
        at oracle.ecc.client.util.FileUploader.finish(FileUploader.java:100)

Errors from EBS OHSlog*.log file:

[2024-01-03T11:12:37.0802-06:00] [OHS] [ERROR:32] [] [core.c] [host_id: ECCHOSTNAME.domain.corp] [host_addr: 172.xx.xx.xxx] [tid: 140598619133696] [user: patchapp] [ecid: 0063WqqlI_bC8xxMwAjc6G0097jb00009x] [rid: 0] [VirtualHost: <ebshostname.xx.xx>:0] (20014)Internal error:  proxy: pass request body failed to 172.xx.xx.xxx:7776 (<ecchostname.xx.xx>)

[2024-01-03T11:12:37.0802-06:00] [OHS] [ERROR:32] [] [core.c] [host_id: ebspatch.domain.corp] [host_addr: 172.xx.xx.xxx] [tid: 140598619133696] [user: patchapp] [ecid: 0063WqqlI_bC8xxMwAjc6G0097jb00009x] [rid: 0] [VirtualHost: <ebshostname.xx.xx>:0]  proxy: pass request body failed to 172.xx.xx.xxx:7776 (<ecchostname.xx.xx>) from 172.xx.xx.xxx()

Errors from ecc-web-*.log file:

2024-01-04 15:26:55.576 [pool-7-thread-1] ERROR o.e.i.u.m.CollectionRegistration - Dataset activity-audit registration failed with error IOException occurred when talking to server at: https://<ecchostname.xx.xx>:eccTLSPort/core_ecc
org.apache.solr.client.solrj.SolrServerException: IOException occurred when talking to server at: https://<ecchostname.xx.xx>:eccTLSPort/core_ecc

The issue can be reproduced at will with the following steps:

1. Performed ECC as new installation by following (Doc ID 2495053.1)
2. Completed Create EBS JNDI and also Integrate ECC with EBS
3. When tried to run patchEccFiles.pl script in EBS system, it is failing with "502 Bad Gateway"
4. ECC Developer access also reported same errors

Changes

 This is a new ECC v10 installation

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.