Jim
Jim

Reputation: 383

AWS Elastic Beanstalk "Impaired services on all instances."

I have a spring service that I'm trying to load load into AWS Beanstalk. When i create the environment and upload my .war file it just stays stuck on degraded. When i look through the logs for errors i cannot see any errors. Also when try and connect to my url, for example http://something.us-east-1.elasticbeanstalk.com/, i get a 502 error. I've already looked at the documentation provided by amazon that states the red degraded message means that all/most of the requests to you page are failing. Any idea how i can find the issue? See the screenshot below for the Enhanced Health Overview.

Upvotes: 3

Views: 8174

Answers (3)

Matyas Greff
Matyas Greff

Reputation: 21

I had the same problem, with "Impaired services on all instances."

As suggested above, I ssh'd into the elastic beanstalk instance and looked at /var/log/web.stdout.log. As I found there, my problem was that I was following a django tutorial and created a django config file with the WSGIPath pointing to the project name that was in the tutorial, but my actual project had a different name. I corrected the mistake, wiped the elastic beanstalk instance and set up the environment again from scratch. No problems at all this time, everything turned green immediately.

Upvotes: 2

Sjd
Sjd

Reputation: 1261

people who are finding their actual log can look up for this section in their EB log file.


/var/log/web.stdout.log

enter image description here

Upvotes: 2

Jim
Jim

Reputation: 383

So, it turned out that i was getting an error in my logs but i was not able to see them. I had to ignore all of the eb-something log files. I needed to be looking at the web-1.log. This file may be named different depending on your instance and your environment but this is where i could actually see my error.

Upvotes: 4

Related Questions