Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Aws Elasticbean doesn't run my .jar application

After upload and deploy on aws, the .jar file hadn't started. So the static contents are being served, and nginx is being reconfigured (by custom configs) but the jar file (Which was in root of .zip I've uploaded) was not run after deployment so I had to run it via ssh command, and of course it shuts down after closing ssh terminal... I included procfile as defined on amazon site but no progress..

like image 297
Falcon Avatar asked Feb 25 '16 19:02

Falcon


1 Answers

Let me see if I understood: You are having problems having your java code running on AWS Elastic Beanstalk because it thinks your code is ok by probing the static index.html file for instance, right?

In this case, there are two things to look for:

  • Set a Health Check URL pointing to one of your java endpoints. In particular, it is useful if you could diagnose each and every external dependency (other AWS Services, databases)
  • Log on to the instance - ensure you can get all the logging you can: Environment Variables, System Properties - that would be a start

Hope it helps

like image 164
aldrinleal Avatar answered Oct 04 '22 00:10

aldrinleal