Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

My custom beanstalk keeps restarting

I am trying to customize the default AMI of beanstalk, but everytime I get server restarts after some random time. I went so far as not to change anything, but nothing works.

I have tried the following:

  • find the instance of running beanstalk, create AMI, modify the AMI of beanstalk-crashing
  • create new instance with same AMI as on beanstalk, create AMI, modify configuration-crashing

I have tried both stopping the instance before creating AMI, and creating AMI of running instance.

Edit: I found the answer here: Can't generate a working customized EC2 AMI from Amazon Beanstalk sample appl

like image 676
Tomas Avatar asked Nov 05 '22 19:11

Tomas


1 Answers

From personal experience, place the health status page to point to a dummy, static .html file. Although not recommended, this will prevent the health checks from restarting the machine and you could make more inside inspection.

AWS captures into the S3 logs only the ones output via java.util.logging. It means all console logging is not transferred.

That said, make sure you define an private key in your environment config, so you could ssh to it easily and see its output (it changes - for Tomcat 7, it is at /opt/tomcat7. For tomcat6, it is under /usr/share/tomcat6)

like image 88
aldrinleal Avatar answered Nov 17 '22 11:11

aldrinleal