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
feita há 2 meses154 visualizações
1 Resposta
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
respondido há 2 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas