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
질문됨 2달 전154회 조회
1개 답변
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
답변함 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠