not able to connect to the flaskapi which is deployed on elastic beanstalk

0

We have deployed a flask api on elastic beanstalk and we are experiencing the below error logs:

*2024/03/18 12:55:26 [error] 651354#651354: 9 connect() failed (111: Connection refused) while connecting to upstream, client: 106.222.203.218, server: , request: "POST / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "cst-ds-env.eba-3ptisxkr.us-west-1.elasticbeanstalk.com"

we have configured Elastic Beanstalk as per the default configuration. Could any one help us to resolve the issue.

anil
gefragt vor 2 Monaten153 Aufrufe
1 Antwort
1

Hi There,

How did you deploy the application?, that error appears to be communication error to upstream from nginx based on some StackOverflow posts

But, I just deployed a Flask app by following the steps here https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-flask.html I would recommend you follow the documented steps and keep expanding/updating the application Enter image description here

If you encounter an error with werkzeug try this SO fix , also install the eb cli

HTH

AWS
jay-aws
beantwortet vor 2 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen