Elastic Beanstalk

0

Hello, I have uploaded java application on Elastic Beanstalk, i have given the port 5000 and enabled Database as well, and its showing status healthy. But when i copy paste the URL to browse the application it is giving error 502 bad Gateway nginix . Can somebody suggest what am i missing here? if i run sample application it is running fine but if i upload any application it does not work. Can somebody please share any running java source code, so that i can check, may be i am uploading wrong application.

Thank you!!

Monica
gefragt vor 3 Monaten154 Aufrufe
2 Antworten
0

Hello.

Can I connect to EC2 and check Nginx error logs?
I think that logs are probably output that can be used for troubleshooting.

/var/log/nginx/error.log

Also, check whether the listening port in the Nginx configuration file is correct.
https://shreyakupadhyay.medium.com/deployment-next-react-js-and-spring-boot-on-aws-ec2-with-nginx-d39bd57ca9

profile picture
EXPERTE
beantwortet vor 3 Monaten
0

I do have a similar issue with a nestjs app (nodejs setup) deployed on beanstalk. When i did the sample application from AWS it worked but when i deployed a local laptop working nestjs app it gives me 502 bad Gateway nginix. I have no errors on the instance setup ( shows green health) in beanstalk and have the port setup accordingly in the config file with process.env.PORT ... any ideas where to look for any further troubleshooting ? TIA

sudhir
beantwortet vor 3 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen