Re: Facing problem while pushing Spring Boot app on PCF


John Liptak
 

I would also specify the java buildpack. If there is a structural problem
in your jar file, the java buildpack may not be detecting it as a Java
application and some other buildpack is attempting to package it.
Generally, spring boot applications and Java buildpacks should have a start
command.

John

On Wed, Sep 28, 2016 at 6:09 AM Daniel Mikusa <dmikusa(a)pivotal.io> wrote:

What is the system you are targeting? For example, a bosh lite install,
PCF-dev, PWS, Bluemix, other? If it's a system you deployed, which CF
Release & Diego release are you using?

Also, can you push *any* applications to it successfully? Maybe try a few
samples from here [1] and see if any of them work.

2016-09-28T07:05:58.000+00:00 [APP] **ERR Usage: /tmp/lifecycle/launcher
<app directory> <start command> <metadata>**

It's this output that has me concerned. You might also want to check the
cell logs to see if there's any additional output on why the launcher is
failing or what arguments it's being given (that it clearly doesn't like).

Dan

[1] - https://github.com/cloudfoundry-samples/



On Wed, Sep 28, 2016 at 3:44 AM, Mohan V <mohan221213(a)gmail.com> wrote:

I am trying to push the simple spring boot app in pcf.
I am completely new to pcf.
I was created manifest.yml file which contain following data:-

applications:
- name: PivotalPushTest
host: PivotalPushTest
memory: 512M
instances: 1
path:
/root/Desktop/PivotalPushTest/target/PivotalPustTest-0.0.1-SNAPSHOT.jar

but when I am pushing this app via cf push command I am getting following
error:-

cf push
Using manifest file /root/Desktop/PivotalPushTest/manifest.yml

Creating app PivotalPushTest in org ORGNAME / space Java-Hadoop as
username(a)domainname.com...
OK

Using route PivotalPushTest.url.com
Binding PivotalPushTest.url.com to PivotalPushTest...
OK

Uploading PivotalPushTest...
Uploading app files from: /tmp/unzipped-app911037164
Uploading 6.1K, 16 files
Done uploading
OK

Starting app PivotalPushTest in org ORGNAME / space Java-Hadoop as
username(a)domainname.com...
Downloading python_buildpack...
Downloading php_buildpack...
Downloading java_buildpack_offline...
Downloading null_buildpack...
Downloading go_buildpack_1-6...
Downloading staticfile_buildpack...
Downloading binary_buildpack...
Downloading ruby_buildpack...
Downloading nodejs_buildpack...
Downloading go_buildpack...
Downloaded python_buildpack
Downloaded nodejs_buildpack
Downloaded binary_buildpack
Downloaded php_buildpack
Downloaded go_buildpack
Downloaded go_buildpack_1-6
Downloaded ruby_buildpack
Downloaded java_buildpack_offline
Downloaded null_buildpack
Downloaded staticfile_buildpack
Creating container
Successfully created container
Downloading app package...
Downloaded app package (6.6K)
Staging...
-----> Nothing to do.
**No start command detected; command must be provided at runtime**
Exit status 0
Staging complete
Uploading droplet, build artifacts cache...
Uploading droplet...
Uploading build artifacts cache...
Uploaded build artifacts cache (109B)
Uploaded droplet (3.7K)
Uploading complete

0 of 1 instances running, 1 crashed
FAILED
Error restarting application: Start unsuccessful

TIP: use 'cf logs PivotalPushTest --recent' for more information

In Apps Manager Logs:-
OUT Exit status 1
2016-09-28T07:05:58.000+00:00 [APP] **ERR Usage: /tmp/lifecycle/launcher
<app directory> <start command> <metadata>**
2016-09-28T07:05:58.000+00:00 [CELL] OUT Exit status 2
2016-09-28T07:05:58.000+00:00 [API] OUT App instance exited with guid
637a95a7-4def-4c43-b00e-454ca6f584f8 payload:
{"instance"=>"460e1817-d616-495e-407e-49991b0026b0", "index"=>0,
"reason"=>"CRASHED", "exit_description"=>"2 error(s) occurred:\n\n* 2
error(s) occurred:\n\n* Exited with status 1\n* cancelled\n* cancelled",
"crash_count"=>1, "crash_timestamp"=>1475046358426721004,
"version"=>"e54e765b-8472-41d5-b14c-eec3f1d41401"}
2016-09-28T07:05:58.000+00:00 [CELL] OUT Creating container
2016-09-28T07:05:58.000+00:00 [CELL] OUT Successfully created container
2016-09-28T07:05:58.000+00:00 [CELL] OUT Starting health monitoring of
container
2016-09-28T07:05:58.000+00:00 [APP] OUT Exit status 1
2016-09-28T07:05:58.000+00:00 [APP] **ERR Usage: /tmp/lifecycle/launcher
<app directory> <start command> <metadata>**
2016-09-28T07:05:58.000+00:00 [CELL] OUT Exit status 2
2016-09-28T07:05:59.000+00:00 [API] OUT App instance exited with guid
637a95a7-4def-4c43-b00e-454ca6f584f8 payload:
{"instance"=>"06f0d873-0050-4e66-6bc8-11ec83ec369f", "index"=>0,
"reason"=>"CRASHED", "exit_description"=>"2 error(s) occurred:\n\n* 2
error(s) occurred:\n\n* Exited with status 1\n* cancelled\n* cancelled",
"crash_count"=>2, "crash_timestamp"=>1475046358988785723,
"version"=>"e54e765b-8472-41d5-b14c-eec3f1d41401"}
2016-09-28T07:05:59.000+00:00 [CELL] OUT Creating container
2016-09-28T07:05:59.000+00:00 [CELL] OUT Successfully created container
2016-09-28T07:05:59.000+00:00 [CELL] OUT Starting health monitoring of
container
2016-09-28T07:05:59.000+00:00 [APP] OUT Exit status 1
2016-09-28T07:05:59.000+00:00 [APP] ERR Usage: /tmp/lifecycle/launcher
<app directory> <start command> <metadata>
2016-09-28T07:05:59.000+00:00 [CELL] OUT Exit status 2

Please Help,
Mohan V.

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.