Hello Sunraj sharma,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
Sequel to your questions, I understand that when attempting to host a Dockerized Photon geocoder app on Azure Container Apps, an error occurs with the message:
"upstream connect error or disconnect/reset before headers. retried and the latest reset reason: remote connection failure, transport failure reason: delayed connect error: 111"
Most of all, this error suggests a connectivity issue between the Azure Container Apps instance and the upstream service hosting the Dockerized app. The exact cause of the connection problem needs to be identified and resolved to successfully deploy the app on Azure Container Apps.
The "delayed connect error: 111" specifically indicates that the connection to the upstream service is being delayed or refused. Error code 111 typically corresponds to a connection refused error. This could be due to various reasons such as network configuration, firewall settings, or service availability.
There three major things that came to my mind from the past experience and how I solved the similar challenges above:
- Ensure that your Azure Container Apps instance has proper network connectivity to access external resources. You will need to verify that there are no network restrictions or firewalls blocking outbound connections.
- Ensure that the service hosting the Docker image (Photon geocoder) is up and running. If it relies on any external services or resources, make sure they are also accessible and operational.
- Double-check your Dockerfile and entry point script to ensure they are configured correctly for deployment in Azure Container Apps. Specifically, verify that any URLs or dependencies referenced in the script are accessible from within the container.
Aside from any regional outage issues from Azure services that could impact connectivity. Try the above and let me know your output.
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
Please remember to "Accept Answer" if answer helped, so that others in the community facing similar issues can easily find the solution.
Best Regards,
Sina Salam