Fail to deploy my spring boot application to asw beanwalk - spring-boot

I developed a spring boot project on Intellij, which is only backend for now. and wanna deploy it to aws.
I followed below
https://developer.okta.com/blog/2019/08/07/deploy-a-spring-boot-app-with-aws-elastic-beanstalk
Like he said ,I also get 502 error at first, then I did add server_port 5000 according to him
but I still get 502 bad gateway
http://personalprojectmanagement-env.eba-xzze9hnr.us-east-2.elasticbeanstalk.com/ is my website
anyone can help?
Thanks

Related

Deployed spring boot app on heroku successfully but getting 503

I have a CI/CD job for deploying spring boot app on heroku from gitlab.
Job ran and i got the message Job succeeded along with app URL but when i try to access endpoint i get 503
I also added java.runtime-version = 1.8 in system.properties file but same issue
anyone knows what's going on?

Unable to access Actuator when a springboot application is running via a fat jar file on an application server

I am a little out of my league on this one as I am still getting familiar with everything Springboot. Onto my problem...
I am unable to access actuator for an application that is running in a fat jar file on an application server. All works great when I run the application locally through Eclipse as I am perfectly able to access a couple of the endpoints (health, logfile) via a browser and Postman.
However, when I attempt to access those same endpoints (via curl, a browser or Postman) using the application server's url, I get a 404. I am able to access other custom written apis within the application with no issue, just not actuator apis.
I know I am missing something very obvious, but cannot figure out what that is.
Good - http://localhost:9091/actuator/health --> from a browser or Postman
Not good - http://my-app-testserver-01:9090/actuator/health or curl localhost:9090/actuator/healthand both yield the below error. NOTE that the curl is performed on the application server.
"timestamp":"2022-06-30T20:57:12.191+00:00","status":404,"error":"Not Found","path":"/actuator/health"
What else? Oh yeah, below is a snippet from my yml file pertaining to actuator and I believe that is ok.
Any insight on this is greatly appreciated. Thank you.
management:
server:
port: 9090
endpoints:
web:
exposure:
include: "health,info,logfile" ```
This is all set now. I was setting up the application on a new server and had to have the ports opened up for me. Once that was done I was able to access the Actuator apis with no issues.

Springboot actuator endpoints are not working after deploying app to pcf

I have a springboot app which has 3 actuators enabled as below out of which 3rd one is custom,
application.properties code snippet
management.endpoints.web.exposure.include=health,refresh,customEndpoint
the endpoints when hit from local are working correctly. For example:-
http://localhost:8081/MyAppName/system/health gives below expected details:-
but when we hit the same endpoint(with pcf app route mapped) which is my_route_url/MyAppName/system/health, after deploying the app to pcf, it gives below 404 error:-
404 Not Found: Requested route ('my_route_url') does not exist.
Tried redeploying the app to pcf but that did not help.
Tried looking for solutions in other questions posted here but they are not matching scenario.
it's working in a different pcf foundation though.

Tomcat started on port(s): 8080 but getting 404

I am trying to run a simple spring-boot application but every time I am getting 404. Even with the simple setting and no code.
any clue what am I missing to run this application?
That's the expected outcome. The 404 is a real HTTP response from your Tomcat server. As you are starting an empty Spring Boot project, there's nothing to serve and the "Whitelabel Error Page" is the default Spring Boot 404 page.
To understand the difference when your Spring Boot application is not running, stop the Spring Boot application and then revisit http://localhost:8080.
You can now follow this Spring Boot guide and add your own endpoints to your project.
Rieckpil is correct by saying TOMCAT is giving you the 404 reply and therefore running. However, if you stop/start tomcat then the normal page will load from there on.
Thanks!

How to access spring application deployed in openshift's tomcat?

I have created a simple spring boot application and deployed it to openshift redhat (as Tomcat 7 application) through my OpenShift explorer from my Eclipse SDE.
When I tried to access from my openshift domain url, It showing status 404 but same application is working fine in my local.
My local url:
http://localhost:8082/TestApp/testme.do
My openshift url:
http://test-{mydomain}.rhcloud.com/TestApp/testme.do
Is there any specific way to access the openshift application url?
Thanks in advance for those giving assistance, Please let me know if you need additional details.
Regards,
Dhana.

Resources