Aws Elasticbean doesn't run my .jar application
Asked Answered
C

1

6

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..

Cathead answered 25/2, 2016 at 19:44 Comment(4)
If there is an error with the deployment process you should be able to find something in the server logs indicating what the issue is.Soubriquet
There's no issue on deployment, it all passes green, plus no logs are indicating any errors.. Is there any more documentation about Procfile?Cathead
If you want an example of an Java App using Procfile, the latest version of beanstalker ships with one. Use $ mvn archetype:generate -Dfilter=elasticbeanstalk-javase-archetype to find itAdis
How is it going? I also got your problem today. Not only there's nothing in /var/log/web-1.log and /var/log/web-1.error.log, but also nothing in /var/log/supervisord.log ! :(Alixaliza
A
2

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

Adis answered 1/3, 2016 at 10:3 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.