Skip to content

My Python Dash Application works locally but not when deployed to AWS Beanstalk

0

I need help with troubleshooting my problem. I have a python Dash application that I am trying to deploy in AWS Beanstalk. The website that is produced displays the error 502 Bad Gateway. I check the error logs, and I see that it contains errors like: "http://127.0.0.1:8000/favicon.ico", host: [error] 72269#72269: *9 connect() failed (111: Connection refused) while connecting to upstream, client: 185.254.196.173, server: , request: "GET /.env HTTP/1.1", upstream: "http://127.0.0.1:8000/.env", host: "18.221.16.107" 2024/07/22 11:56:27 [error] 72269#72269: *11 connect() failed (111: Connection refused) while connecting to upstream, client: 185.254.196.173, server: , request: "POST / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "18.221.16.107

1 Answer
0

Still troubleshooting... appears problem has to do with python versions -- I am using 3.12, but AWS Elastic Beanstalk supports only up to 3.11. Any help with overcoming the version issue is much appreciated!

answered 2 years 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.