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
asked a month ago128 views
1 Answer
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
answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions