VMware Tanzu Application Service for VMs

 View Only

 deployment of spring application with embeded tomcat is failing ?

AJAY LOHANI's profile image
AJAY LOHANI posted Feb 12, 2019 08:32 AM

I am trying to deploy a spring application with embeded tomcat. I am getting the following error. 

 

 App instance exited with guid 0f6229df-bb0c-4d8e-b045-9b5568d6e7b7 payload: {"instance"=>"81152449-a4ac-4e4a-51f3-59a0", "index"=>0, "reason"=>"CRASHED", "exit_description"=>"APP/PROC/WEB: Exited with status 3", "crash_count"=>4, "crash_timestamp"=>1549878262586327331, "version"=>"3e4a6f52-d9df-4a1f-97ef-8ddc96f99203"}

 

Can I know what does Exit Status 3 represents. 

Daniel Mikusa's profile image
Daniel Mikusa

It means the process exited with a code of 3. There's not much more you can say than that, unless you know what conditions inside the app might cause an exit code of 3, but I do not.

 

My suggestion would be to run `cf logs` and see if you can get additional information from the application. If not, review how you are deploying the application and check the output of the build pack during staging. If you do not see any logging from your application, it may be failing before it can get a chance to start up, perhaps due to a bad start up command or something that happens during staging.

 

Hope that helps!

 

-----

 

For reference, there are some standard exit codes but 3 is not one of them.

 

http://www.tldp.org/LDP/abs/html/exitcodes.html