Home Discussions Questions & Answers ECC Application Import Fails: Connection Refused (LB Hostname Issue)

ECC Application Import Fails: Connection Refused (LB Hostname Issue)

Avatar photoCustomer April 24, 2024 at 7:56 pm

I am executing `patchEccFiles.pl` to import ECC applications, and it fails with a `java.net.ConnectException: Connection refused (Connection refused)`. This is happening during the connection to the ECC Web Entry URL, which includes our load balancer (LB) hostname. What should I check?

Viewing 6 reply threads
  • Author
    Replies
    • Support April 26, 2024 at 9:31 am  

      A ‘Connection refused’ error during the application import often indicates that the system is trying to connect to the wrong IP address or the target port is not open or being blocked. In scenarios where a Load Balancer (LB) is involved, a common issue arises if the LB entry is incorrectly defined in the local `/etc/hosts` file on the server running the import. Specifically, if the LB entry in `/etc/hosts` points to a local IP address (like 127.0.0.1) instead of the actual LB IP, the import attempt will connect to the localhost and fail, resulting in a ‘Connection refused’ error.

    • Avatar photoCustomer April 28, 2024 at 12:58 am  

      We do have an LB entry in `/etc/hosts` that points to a local IP. Are you suggesting I should remove that entry?

    • Support April 29, 2024 at 7:59 pm  

      Yes, if the LB entry in the `/etc/hosts` file on the EBS server (or whichever node is running `patchEccFiles.pl`) is incorrect, removing that entry is the correct solution. Once the LB entry is removed, the import script will correctly resolve the hostname via DNS, pointing to the actual Load Balancer IP, thus allowing the connection to the correct ECC Web Entry URL to proceed successfully. You must restart the services afterward to ensure the changes take effect.

    • Avatar photoCustomer April 30, 2024 at 7:01 am  

      We are a multi-node application tier setup. The ECC Weblogic appears to be running fine, but the import still fails. What other issues related to connectivity might exist?

    • Support April 30, 2024 at 10:12 am  

      If you are running a multi-node EBS environment and the Weblogic ECC components are running, you should also check external firewall settings. If your servers are hosted on a cloud provider like AWS, you must ensure that the security group rules explicitly allow inbound connections to the ECC managed server port (e.g., 7776) and admin server port (e.g., 7775) originating from the EBS application server IP addresses. Even if the Linux firewall is off, cloud-level security rules can still block the traffic required for the import and subsequent data loads.

    • Avatar photoCustomer May 2, 2024 at 1:15 am  

      I’m encountering an HTTP Status 500 error during import instead of ‘Connection refused’. What does this usually mean?

    • Support May 3, 2024 at 7:07 am  

      An HTTP status 500 (Internal Server Error) during the application import via `patchEccFiles.pl` suggests the connection was established, but the ECC application itself failed to process the request. This could be due to internal server issues within the ECC Weblogic environment or potentially incorrect proxy settings if an LB is heavily involved. You should check the actual ECC logs for detailed stack traces to diagnose the internal server failure. You might find a shortcut is to try importing the application directly through the ECC UI using the ECC Developer responsibility, as this bypasses the complexities of the command-line script’s network path.

Viewing 6 reply threads
  • You must be logged in to reply to this post.

Login with: