[stage failed]An app was not successfully detected by any available buildpack

3,414 views
Skip to first unread message

wang...@163.com

unread,
Oct 8, 2014, 8:46:09 PM10/8/14
to vcap...@cloudfoundry.org
my cf version is cf-183.i install cf on openstack(icehouse). when i push an java  app (war file ), it has this problem:
 root@cf-cli:/home/samples# cf push wdk2
Creating app wdk2 in org org1 / space space1 as admin...
OK

Creating route wdk2.iae.me...
OK

Binding wdk2.iae.me to wdk2...
OK

Uploading wdk2...
Uploading app files from: /home/samples
Uploading 34.9K, 1 files
OK

Warning: error tailing logs
Error dialing loggregator server: dial tcp 50.63.202.84:80: connection timed out.
Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is ws://loggregator.iae.me:80).
Starting app wdk2 in org org1 / space space1 as admin...
OK

FAILED
Server error, status code: 400, error code: 170003, message: An app was not successfully detected by any available buildpack

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

the cf buildpacks  command has the result:

root@cf-cli:/home/samples# cf buildpacks
Getting buildpacks...

buildpack          position   enabled   locked   filename   
java_buildpack     1          true      false    java-buildpack-v2.4.zip   
ruby_buildpack     2          true      false    ruby_buildpack-offline-v1.1.0.zip   
nodejs_buildpack   3          true      false    nodejs_buildpack-offline-v1.0.1.zip   
go_buildpack       4          true      false    go_buildpack-offline-v1.0.1.zip 

Any body can give a help? thanks

wang...@163.com

unread,
Oct 8, 2014, 9:45:55 PM10/8/14
to vcap...@cloudfoundry.org, wang...@163.com
i check the dea_log,i found that  this script exceute failed:

script":"set -o pipefail; export VCAP_APPLICATION=\"{\\\"limits\\\":{\\\"mem\\\":1024,\\\"disk\\\":1024,\\\"fds\\\":16384},\\\"application_version\\\":\\\"c7e829da-d44f-49d4-83ee-d54368ae559b\\\",\\\"application_name\\\":\\\"wdk1\\\",\\\"application_uris\\\":[\\\"wdk1.iae.me\\\"],\\\"version\\\":\\\"c7e829da-d44f-49d4-83ee-d54368ae559b\\\",\\\"name\\\":\\\"wdk1\\\",\\\"space_name\\\":\\\"space1\\\",\\\"space_id\\\":\\\"6a738cda-2cd6-46ce-8fce-37f7688ecdda\\\",\\\"uris\\\":[\\\"wdk1.iae.me\\\"],\\\"users\\\":null}\";\nexport VCAP_SERVICES=\"{}\";\nexport MEMORY_LIMIT=\"1024m\";\nexport BUILDPACK_CACHE=\"/var/vcap/packages/buildpack_cache\";\nexport STAGING_TIMEOUT=\"900.0\";\nexport MEMORY_LIMIT=\"1024m\";\n /usr/bin/ruby /var/vcap/packages/dea_next/buildpacks/bin/run /var/vcap/data/dea_next/staging/d20141009-27398-70lj21/plugin_config | tee -a /tmp/staged/logs/staging_task.log"}
dea_next.log

Ben Hale

unread,
Oct 9, 2014, 5:06:28 AM10/9/14
to vcap...@cloudfoundry.org, wang...@163.com
You need to push the artifact that you expect to run.  For example, cf push wdk2 -p target/wdk2.war.  Otherwise you are pushing your entire working directory which isn't a legal application.


-Ben Hale
Cloud Foundry Java Experience

Ken Krueger

unread,
Oct 9, 2014, 9:19:57 AM10/9/14
to vcap...@cloudfoundry.org, wang...@163.com
Yes, what Ben said, unless you have specified the WAR file in a manifest.  Looks like you are uploading everything within /home/samples.

thx,
k

--
You received this message because you are subscribed to the Google Groups "Cloud Foundry Developers" group.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/30e1bb6a-9cb5-4267-8c0c-a4bd9fd8838b%40cloudfoundry.org.

To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.



--
Ken Krueger  
Manager, Global Education Delivery
407 256 9737 Mobile
kenkrueger65 Skype
Education questions?  educ...@pivotal.io

dou...@gmail.com

unread,
Oct 21, 2014, 2:55:33 PM10/21/14
to vcap...@cloudfoundry.org, wang...@163.com
I have the exact same issue on my v190 openstack installation. I do specify the path to the war:

$ cf push my-app -p xyz.war
Updating app my-app in org ORG / space dev as cfuser...
OK

Uploading my-app...
Uploading app files from: xyz.war
Uploading 110.1K, 32 files
OK

Starting app my-app in org ORG / space dev as cfuser...
OK

FAILED
Server error, status code: 400, error code: 170003, message: An app was not successfully detected by any available buildpack

TIP: use 'cf logs my-app --recent' for more information

$ cf logs my-app --recent
Connected, dumping recent logs for app my-app in org ORG / space dev as cfuser...


Any help or insight is appreciated.

Ramin

sparam...@pivotal.io

unread,
Oct 21, 2014, 3:17:27 PM10/21/14
to vcap...@cloudfoundry.org, wang...@163.com, dou...@gmail.com
Set  JBP_LOG_LEVEL to debug as an environment variable and re-push the app.

cf set-env my-app JBP_LOG_LEVEL debug

Also:
1) Check the buildpacks enabled - use cf buildpacks command.
2) Run  'jar -tvf' on the war file
3) Set CF_TRACE=true in command shell before the push

Paste the output of the cf push (with CF_TRACE=true set while running it).

-Sabha

Ken Krueger

unread,
Oct 21, 2014, 4:08:16 PM10/21/14
to vcap...@cloudfoundry.org, wang...@163.com
dousti,

Can you set "cf set-env my-app JBP_LOG_LEVEL debug" and try?  You might get some better insight on why the Java buildpack passes on your WAR.

The Java buildpack should recognize a WAR.  I think I recall having this error myself at some point where something was wrong with my WAR, but I'm afraid I can't remember what.  I believe the Java buildpack detects Java web applications based on the presence of a WEB-INF folder in the archive file.

thx,
k


To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.



--
Ken Krueger  
Manager, Global Education Delivery
407 256 9737 Mobile
kenkrueger65 Skype

Education questions?  educ...@pivotal.io

Ramin Ali Dousti

unread,
Oct 21, 2014, 4:15:45 PM10/21/14
to vcap...@cloudfoundry.org
I did that, Ken. See my previous post to Sabha.

Thanks,
Ramin

--
You received this message because you are subscribed to a topic in the Google Groups "Cloud Foundry Developers" group.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/CA%2BYXpznKC5OLZOzJXGzjOSk-2ZgCSAcZOjWrprpgNMt%2BQGnmew%40mail.gmail.com.



--
Ramin

Ben Hale

unread,
Oct 22, 2014, 6:14:26 AM10/22/14
to vcap...@cloudfoundry.org, dou...@gmail.com
The Java Buildpack documentation states that the existence of a WEB-INF folder and no Main-Class in the manifest is required for the buildpack to detect an application as a WAR file.  The output of jar tf  (which I don't see in the current thread) would help in diagnosing the problem.


-Ben Hale
Cloud Foundry Java Experience


Ramin Ali Dousti

unread,
Oct 22, 2014, 6:48:24 AM10/22/14
to Ben Hale, vcap...@cloudfoundry.org
$ cf buildpacks
Getting buildpacks...

buildpack          position   enabled   locked   filename   
java_buildpack     1          true      false    java-buildpack-v2.5.zip   
ruby_buildpack     2          true      false    ruby_buildpack-offline-v1.1.2.zip   
nodejs_buildpack   3          true      false    nodejs_buildpack-offline-v1.0.4.zip   
go_buildpack       4          true      false    go_buildpack-offline-v1.0.4.zip   


$ jar tvf xyz.war 
     0 Mon Sep 08 19:26:26 EDT 2014 META-INF/
   130 Mon Sep 08 19:26:24 EDT 2014 META-INF/MANIFEST.MF
     0 Mon Sep 08 19:26:24 EDT 2014 WEB-INF/
     0 Mon Sep 08 19:26:24 EDT 2014 WEB-INF/lib/
     0 Mon Sep 08 19:26:24 EDT 2014 WEB-INF/views/
     0 Mon Sep 08 19:26:24 EDT 2014 WEB-INF/classes/
     0 Mon Sep 08 19:26:24 EDT 2014 WEB-INF/classes/com/
     0 Mon Sep 08 19:26:24 EDT 2014 WEB-INF/classes/com/journaldev/
     0 Mon Sep 08 19:26:24 EDT 2014 WEB-INF/classes/com/journaldev/spring/
     0 Mon Sep 08 19:26:24 EDT 2014 WEB-INF/classes/com/journaldev/spring/controller/
     0 Mon Sep 08 19:26:24 EDT 2014 WEB-INF/classes/com/journaldev/spring/model/
     0 Mon Sep 08 19:26:24 EDT 2014 WEB-INF/spring/
     0 Mon Sep 08 19:26:24 EDT 2014 WEB-INF/spring/appServlet/
669267 Mon Sep 08 19:15:20 EDT 2014 WEB-INF/lib/spring-beans-4.0.0.RELEASE.jar
661567 Mon Sep 08 19:15:20 EDT 2014 WEB-INF/lib/spring-web-4.0.0.RELEASE.jar
414240 Mon Sep 08 19:15:20 EDT 2014 WEB-INF/lib/jstl-1.2.jar
660682 Mon Sep 08 19:15:20 EDT 2014 WEB-INF/lib/spring-webmvc-4.0.0.RELEASE.jar
351240 Mon Sep 08 19:15:20 EDT 2014 WEB-INF/lib/spring-aop-4.0.0.RELEASE.jar
391834 Mon Sep 08 19:15:20 EDT 2014 WEB-INF/lib/log4j-1.2.15.jar
 16517 Mon Sep 08 19:15:18 EDT 2014 WEB-INF/lib/jcl-over-slf4j-1.7.5.jar
  4467 Mon Sep 08 19:15:18 EDT 2014 WEB-INF/lib/aopalliance-1.0.jar
 26084 Mon Sep 08 19:15:18 EDT 2014 WEB-INF/lib/slf4j-api-1.7.5.jar
955328 Mon Sep 08 19:15:20 EDT 2014 WEB-INF/lib/spring-core-4.0.0.RELEASE.jar
  8869 Mon Sep 08 19:15:18 EDT 2014 WEB-INF/lib/slf4j-log4j12-1.7.5.jar
950606 Mon Sep 08 19:15:22 EDT 2014 WEB-INF/lib/spring-context-4.0.0.RELEASE.jar
119683 Mon Sep 08 19:15:20 EDT 2014 WEB-INF/lib/aspectjrt-1.7.4.jar
 33483 Mon Sep 08 19:15:18 EDT 2014 WEB-INF/lib/jackson-annotations-2.2.3.jar
192699 Mon Sep 08 19:15:20 EDT 2014 WEB-INF/lib/jackson-core-2.2.3.jar
  2497 Mon Sep 08 19:15:18 EDT 2014 WEB-INF/lib/javax.inject-1.jar
865838 Mon Sep 08 19:15:22 EDT 2014 WEB-INF/lib/jackson-databind-2.2.3.jar
206507 Mon Sep 08 19:15:20 EDT 2014 WEB-INF/lib/spring-expression-4.0.0.RELEASE.jar
   238 Mon Jun 16 07:14:00 EDT 2014 WEB-INF/views/home.jsp
  3942 Mon Sep 08 19:15:30 EDT 2014 WEB-INF/classes/com/journaldev/spring/controller/EmployeeController.class
   633 Mon Sep 08 19:15:30 EDT 2014 WEB-INF/classes/com/journaldev/spring/controller/EmpRestURIConstants.class
  1276 Mon Sep 08 19:15:30 EDT 2014 WEB-INF/classes/com/journaldev/spring/model/Employee.class
  1042 Mon Sep 08 19:15:32 EDT 2014 WEB-INF/classes/log4j.xml
  1972 Mon Jun 16 07:14:00 EDT 2014 WEB-INF/spring/appServlet/servlet-context.xml
   380 Mon Jun 16 07:14:00 EDT 2014 WEB-INF/spring/root-context.xml
  1206 Mon Jun 16 07:14:00 EDT 2014 WEB-INF/web.xml
     0 Mon Sep 08 19:26:26 EDT 2014 META-INF/maven/
     0 Mon Sep 08 19:26:26 EDT 2014 META-INF/maven/com.journaldev/
     0 Mon Sep 08 19:26:26 EDT 2014 META-INF/maven/com.journaldev/SpringRestExample/
  4808 Mon Jun 16 07:14:02 EDT 2014 META-INF/maven/com.journaldev/SpringRestExample/pom.xml
   131 Mon Sep 08 19:26:24 EDT 2014 META-INF/maven/com.journaldev/SpringRestExample/pom.properties


And the below is the output of push:


VERSION:
6.6.0-704d304


REQUEST: [2014-10-21T15:44:12-04:00]
POST /oauth/token HTTP/1.1
Host: uaa.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/x-www-form-urlencoded
User-Agent: go-cli 6.6.0-704d304 / linux

grant_type=refresh_token&refresh_token=eyJhbGciOiJSUzI1NiJ9.eyJqdGkiOiI5ZmI0YWVjZC01MjNlLTRhNTgtYWUwYy04ZmM1MzVhMGQ3YTkiLCJzdWIiOiJlMWY0ZjNjMy01N2U0LTRhNzktODE4Ny1lMGYyMTkwMjdkMmQiLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIiwib3BlbmlkIiwicGFzc3dvcmQud3JpdGUiXSwiaWF0IjoxNDEzODk0NzY3LCJleHAiOjE0MTUxMDQzNjcsImNpZCI6ImNmIiwiaXNzIjoiaHR0cDovL3VhYS4xMC4xNzUuMjQ2LjY3LnhpcC5pby9vYXV0aC90b2tlbiIsImdyYW50X3R5cGUiOiJwYXNzd29yZCIsInVzZXJfbmFtZSI6ImlvdCIsInVzZXJfaWQiOiJlMWY0ZjNjMy01N2U0LTRhNzktODE4Ny1lMGYyMTkwMjdkMmQiLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSIsIm9wZW5pZCIsInBhc3N3b3JkLndyaXRlIl19.QAhcI3iNZHFtfEYNUwICQ3f9HOXduq8FHT75TDerS3ekA6tsBlmwZbI2KBWT1aYEjzgaPxCiT8WhlcZIPA2-GhD93LX1zIU4FNbFVKhhE5z8KMIcdqvGb-kqW5V2f2esTNUedL3Ig3SNLPHrKqaY_PhCVNxFu1YhHcTG1sHc4DHC0zQYLTV85lZAo4HQB68lMffv3dySBn3Yb-YziZLQzWsAwkIV2N5DZUecelhmU6BdiD2YCUB6G8p_11qzFQx7MV8gIyaoAOjQG1udXV441pSeGj9Y7R14v574hYG8EURTeAa8p0IXzyzLL6ei6YSdf8Sa2Klf3v8P5RLkv2yI6Q&scope=

RESPONSE: [2014-10-21T15:44:12-04:00]
HTTP/1.1 200 OK
Connection: close
Transfer-Encoding: chunked
Cache-Control: no-store
Content-Type: application/json;charset=UTF-8
Date: Tue, 21 Oct 2014 19:45:05 GMT
Pragma: no-cache
Server: Apache-Coyote/1.1
X-Cf-Requestid: 339b45b7-ba02-4193-768f-2ffe740fb8ff

84b
{"access_token":"[PRIVATE DATA HIDDEN]","token_type":"bearer","refresh_token":"[PRIVATE DATA HIDDEN]","expires_in":7199,"scope":"password.write openid cloud_controller.write cloud_controller.read","jti":"01b9fa23-1a81-4fad-ab94-49eb929d616e"}
0



REQUEST: [2014-10-21T15:44:12-04:00]
GET /v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/apps?q=name%3Amy-app&inline-relations-depth=1 HTTP/1.1
Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.0-704d304 / linux



RESPONSE: [2014-10-21T15:44:12-04:00]
HTTP/1.1 200 OK
Connection: close
Content-Length: 4299
Content-Type: application/json;charset=utf-8
Date: Tue, 21 Oct 2014 19:45:05 GMT
Server: nginx
X-Cf-Requestid: 21fd9ede-6275-4bfa-6051-f24fba91deeb
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: 299b4879-6fac-4485-5474-cfc006af4c87::851ea935-7141-4cdb-ab77-120876eaa95c

{
  "total_results": 1,
  "total_pages": 1,
  "prev_url": null,
  "next_url": null,
  "resources": [
    {
      "metadata": {
        "guid": "a0219e5e-ead7-4cc2-929b-3f2ec3d8063e",
        "url": "/v2/apps/a0219e5e-ead7-4cc2-929b-3f2ec3d8063e",
        "created_at": "2014-10-21T19:41:58+00:00",
        "updated_at": "2014-10-21T19:44:48+00:00"
      },
      "entity": {
        "name": "my-app",
        "production": false,
        "space_guid": "75858613-5ad9-4d72-a685-47e74d1c4f8c",
        "stack_guid": "9ca0898e-d30c-41cb-a275-2d6e8a04aa3e",
        "buildpack": null,
        "detected_buildpack": null,
        "environment_json": {

        },
        "memory": 1024,
        "instances": 1,
        "disk_quota": 1024,
        "state": "STARTED",
        "version": "b5ded324-368b-43ed-8295-eea4c22ce27f",
        "command": null,
        "console": false,
        "debug": null,
        "staging_task_id": "c84f1f53d37c4d688ad80b8a7ea1210f",
        "package_state": "FAILED",
        "health_check_timeout": null,
        "staging_failed_reason": "NoAppDetectedError",
        "docker_image": null,
        "package_updated_at": "2014-10-21T19:44:27+00:00",
        "detected_start_command": "",
        "space_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c",
        "space": {
          "metadata": {
            "guid": "75858613-5ad9-4d72-a685-47e74d1c4f8c",
            "url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c",
            "created_at": "2014-10-20T02:28:20+00:00",
            "updated_at": null
          },
          "entity": {
            "name": "dev",
            "organization_guid": "cd9ad988-0648-486e-9163-c8c443f18236",
            "space_quota_definition_guid": null,
            "organization_url": "/v2/organizations/cd9ad988-0648-486e-9163-c8c443f18236",
            "developers_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/developers",
            "managers_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/managers",
            "auditors_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/auditors",
            "apps_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/apps",
            "routes_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/routes",
            "domains_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/domains",
            "service_instances_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/service_instances",
            "app_events_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/app_events",
            "events_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/events",
            "security_groups_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/security_groups"
          }
        },
        "stack_url": "/v2/stacks/9ca0898e-d30c-41cb-a275-2d6e8a04aa3e",
        "stack": {
          "metadata": {
            "guid": "9ca0898e-d30c-41cb-a275-2d6e8a04aa3e",
            "url": "/v2/stacks/9ca0898e-d30c-41cb-a275-2d6e8a04aa3e",
            "created_at": "2014-10-18T05:48:34+00:00",
            "updated_at": null
          },
          "entity": {
            "name": "lucid64",
            "description": "Ubuntu 10.04 on x86-64"
          }
        },
        "events_url": "/v2/apps/a0219e5e-ead7-4cc2-929b-3f2ec3d8063e/events",
        "service_bindings_url": "/v2/apps/a0219e5e-ead7-4cc2-929b-3f2ec3d8063e/service_bindings",
        "service_bindings": [

        ],
        "routes_url": "/v2/apps/a0219e5e-ead7-4cc2-929b-3f2ec3d8063e/routes",
        "routes": [
          {
            "metadata": {
              "guid": "649ac182-c0bb-45f2-badf-f791dcaaca56",
              "url": "/v2/routes/649ac182-c0bb-45f2-badf-f791dcaaca56",
              "created_at": "2014-10-20T18:57:15+00:00",
              "updated_at": null
            },
            "entity": {
              "host": "my-app",
              "domain_guid": "5f7eb777-482d-4990-a30e-b0186364511c",
              "space_guid": "75858613-5ad9-4d72-a685-47e74d1c4f8c",
              "domain_url": "/v2/domains/5f7eb777-482d-4990-a30e-b0186364511c",
              "space_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c",
              "apps_url": "/v2/routes/649ac182-c0bb-45f2-badf-f791dcaaca56/apps"
            }
          }
        ]
      }
    }
  ]

}
Updating app my-app in org ORG / space dev as cfuser...

REQUEST: [2014-10-21T15:44:12-04:00]
PUT /v2/apps/a0219e5e-ead7-4cc2-929b-3f2ec3d8063e?async=true&inline-relations-depth=1 HTTP/1.1
Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.0-704d304 / linux

{"name":"my-app"}

RESPONSE: [2014-10-21T15:44:13-04:00]
HTTP/1.1 201 Created
Connection: close
Content-Length: 3816
Content-Type: application/json;charset=utf-8
Date: Tue, 21 Oct 2014 19:45:05 GMT
Server: nginx
X-Cf-Requestid: c3e6644b-76e9-4ef0-4eaf-380f54e01b31
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: 5ebf800b-da9b-4dd5-5e71-d6e4f9195434::c54e1855-fdec-4a8a-bbba-4fbfdc8d3fa3

{
  "metadata": {
    "guid": "a0219e5e-ead7-4cc2-929b-3f2ec3d8063e",
    "url": "/v2/apps/a0219e5e-ead7-4cc2-929b-3f2ec3d8063e",
    "created_at": "2014-10-21T19:41:58+00:00",
    "updated_at": "2014-10-21T19:45:05+00:00"
  },
  "entity": {
    "name": "my-app",
    "production": false,
    "space_guid": "75858613-5ad9-4d72-a685-47e74d1c4f8c",
    "stack_guid": "9ca0898e-d30c-41cb-a275-2d6e8a04aa3e",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": {

    },
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "b5ded324-368b-43ed-8295-eea4c22ce27f",
    "command": null,
    "console": false,
    "debug": null,
    "staging_task_id": "c84f1f53d37c4d688ad80b8a7ea1210f",
    "package_state": "FAILED",
    "health_check_timeout": null,
    "staging_failed_reason": "NoAppDetectedError",
    "docker_image": null,
    "package_updated_at": "2014-10-21T19:44:27+00:00",
    "detected_start_command": "",
    "space_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c",
    "space": {
      "metadata": {
        "guid": "75858613-5ad9-4d72-a685-47e74d1c4f8c",
        "url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c",
        "created_at": "2014-10-20T02:28:20+00:00",
        "updated_at": null
      },
      "entity": {
        "name": "dev",
        "organization_guid": "cd9ad988-0648-486e-9163-c8c443f18236",
        "space_quota_definition_guid": null,
        "organization_url": "/v2/organizations/cd9ad988-0648-486e-9163-c8c443f18236",
        "developers_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/developers",
        "managers_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/managers",
        "auditors_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/auditors",
        "apps_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/apps",
        "routes_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/routes",
        "domains_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/domains",
        "service_instances_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/service_instances",
        "app_events_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/app_events",
        "events_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/events",
        "security_groups_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/security_groups"
      }
    },
    "stack_url": "/v2/stacks/9ca0898e-d30c-41cb-a275-2d6e8a04aa3e",
    "stack": {
      "metadata": {
        "guid": "9ca0898e-d30c-41cb-a275-2d6e8a04aa3e",
        "url": "/v2/stacks/9ca0898e-d30c-41cb-a275-2d6e8a04aa3e",
        "created_at": "2014-10-18T05:48:34+00:00",
        "updated_at": null
      },
      "entity": {
        "name": "lucid64",
        "description": "Ubuntu 10.04 on x86-64"
      }
    },
    "events_url": "/v2/apps/a0219e5e-ead7-4cc2-929b-3f2ec3d8063e/events",
    "service_bindings_url": "/v2/apps/a0219e5e-ead7-4cc2-929b-3f2ec3d8063e/service_bindings",
    "service_bindings": [

    ],
    "routes_url": "/v2/apps/a0219e5e-ead7-4cc2-929b-3f2ec3d8063e/routes",
    "routes": [
      {
        "metadata": {
          "guid": "649ac182-c0bb-45f2-badf-f791dcaaca56",
          "url": "/v2/routes/649ac182-c0bb-45f2-badf-f791dcaaca56",
          "created_at": "2014-10-20T18:57:15+00:00",
          "updated_at": null
        },
        "entity": {
          "host": "my-app",
          "domain_guid": "5f7eb777-482d-4990-a30e-b0186364511c",
          "space_guid": "75858613-5ad9-4d72-a685-47e74d1c4f8c",
          "domain_url": "/v2/domains/5f7eb777-482d-4990-a30e-b0186364511c",
          "space_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c",
          "apps_url": "/v2/routes/649ac182-c0bb-45f2-badf-f791dcaaca56/apps"
        }
      }
    ]
  }
}
OK


REQUEST: [2014-10-21T15:44:13-04:00]
GET /v2/organizations/cd9ad988-0648-486e-9163-c8c443f18236/private_domains HTTP/1.1
Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.0-704d304 / linux



RESPONSE: [2014-10-21T15:44:13-04:00]
HTTP/1.1 200 OK
Connection: close
Content-Length: 107
Content-Type: application/json;charset=utf-8
Date: Tue, 21 Oct 2014 19:45:05 GMT
Server: nginx
X-Cf-Requestid: 878a7e27-0605-4496-65ea-5f16612b3b84
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: f27717da-f860-4f32-7ac5-fa75a3c5294b::3cfeea66-58c7-4537-9655-d3c4e83b66cb

{
  "total_results": 0,
  "total_pages": 1,
  "prev_url": null,
  "next_url": null,
  "resources": [

  ]
}

REQUEST: [2014-10-21T15:44:13-04:00]
GET /v2/shared_domains HTTP/1.1
Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.0-704d304 / linux



RESPONSE: [2014-10-21T15:44:13-04:00]
HTTP/1.1 200 OK
Connection: close
Content-Length: 443
Content-Type: application/json;charset=utf-8
Date: Tue, 21 Oct 2014 19:45:05 GMT
Server: nginx
X-Cf-Requestid: 8dbd170c-fe99-4647-5360-c7660244e93a
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: b5cc687c-cc94-41af-7751-9a0bd8268e1f::b4ea1173-33b6-470b-b8f6-f38fd3a8874e

{
  "total_results": 1,
  "total_pages": 1,
  "prev_url": null,
  "next_url": null,
  "resources": [
    {
      "metadata": {
        "guid": "5f7eb777-482d-4990-a30e-b0186364511c",
        "url": "/v2/shared_domains/5f7eb777-482d-4990-a30e-b0186364511c",
        "created_at": "2014-10-18T05:49:12+00:00",
        "updated_at": "2014-10-21T12:19:05+00:00"
      },
      "entity": {
        "name": "10.175.246.67.xip.io"
      }
    }
  ]
}
Uploading my-app...

REQUEST: [2014-10-21T15:44:13-04:00]
PUT /v2/resource_match HTTP/1.1
Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.0-704d304 / linux

[{"fn":"META-INF","sha1":"0","size":0},{"fn":"META-INF/MANIFEST.MF","sha1":"fbe99b24f5e75a825b6457fe986fd2f4f81efcb8","size":130},{"fn":"META-INF/maven","sha1":"0","size":0},{"fn":"META-INF/maven/com.journaldev","sha1":"0","size":0},{"fn":"META-INF/maven/com.journaldev/SpringRestExample","sha1":"0","size":0},{"fn":"META-INF/maven/com.journaldev/SpringRestExample/pom.properties","sha1":"b6266ed161b8c84ad18634edab19a80bf77bc20f","size":131},{"fn":"META-INF/maven/com.journaldev/SpringRestExample/pom.xml","sha1":"d49d167ed503c3b4845d1661e4819c7041242186","size":4808},{"fn":"WEB-INF","sha1":"0","size":0},{"fn":"WEB-INF/classes","sha1":"0","size":0},{"fn":"WEB-INF/classes/com","sha1":"0","size":0},{"fn":"WEB-INF/classes/com/journaldev","sha1":"0","size":0},{"fn":"WEB-INF/classes/com/journaldev/spring","sha1":"0","size":0},{"fn":"WEB-INF/classes/com/journaldev/spring/controller","sha1":"0","size":0},{"fn":"WEB-INF/classes/com/journaldev/spring/controller/EmpRestURIConstants.class","sha1":"781e30b0bad2465fe8524c715c75ba28771678d5","size":633},{"fn":"WEB-INF/classes/com/journaldev/spring/controller/EmployeeController.class","sha1":"8b09a0f2fced24637eb6066e58bf2a7379fdfab6","size":3942},{"fn":"WEB-INF/classes/com/journaldev/spring/model","sha1":"0","size":0},{"fn":"WEB-INF/classes/com/journaldev/spring/model/Employee.class","sha1":"a71309c8e0bdc7b4b7c0a1c3b417025b86e4eb47","size":1276},{"fn":"WEB-INF/classes/log4j.xml","sha1":"98562ef14b38a7d0116ae29ecf7fd3e01e39aeba","size":1042},{"fn":"WEB-INF/lib","sha1":"0","size":0},{"fn":"WEB-INF/lib/aopalliance-1.0.jar","sha1":"0235ba8b489512805ac13a8f9ea77a1ca5ebe3e8","size":4467},{"fn":"WEB-INF/lib/aspectjrt-1.7.4.jar","sha1":"e49a5c0acee8fd66225dc1d031692d132323417f","size":119683},{"fn":"WEB-INF/lib/jackson-annotations-2.2.3.jar","sha1":"0527fece4f23a457070a36c371a26d6c0208e1c3","size":33483},{"fn":"WEB-INF/lib/jackson-core-2.2.3.jar","sha1":"1a0113da2cab5f4c216b4e5e7c1dbfaa67087e14","size":192699},{"fn":"WEB-INF/lib/jackson-databind-2.2.3.jar","sha1":"03ae380888029daefb91d3ecdca3a37d8cb92bc9","size":865838},{"fn":"WEB-INF/lib/javax.inject-1.jar","sha1":"6975da39a7040257bd51d21a231b76c915872d38","size":2497},{"fn":"WEB-INF/lib/jcl-over-slf4j-1.7.5.jar","sha1":"0cd5970bd13fa85f7bed41ca606d6daf7cbf1365","size":16517},{"fn":"WEB-INF/lib/jstl-1.2.jar","sha1":"74aca283cd4f4b4f3e425f5820cda58f44409547","size":414240},{"fn":"WEB-INF/lib/log4j-1.2.15.jar","sha1":"f0a0d2e29ed910808c33135a3a5a51bba6358f7b","size":391834},{"fn":"WEB-INF/lib/slf4j-api-1.7.5.jar","sha1":"6b262da268f8ad9eff941b25503a9198f0a0ac93","size":26084},{"fn":"WEB-INF/lib/slf4j-log4j12-1.7.5.jar","sha1":"6edffc576ce104ec769d954618764f39f0f0f10d","size":8869},{"fn":"WEB-INF/lib/spring-aop-4.0.0.RELEASE.jar","sha1":"cceb3e9510774b3f88b008a70c6a9aefb98d891f","size":351240},{"fn":"WEB-INF/lib/spring-beans-4.0.0.RELEASE.jar","sha1":"97e97a04aede419679392176ec1df175d3e9a7a0","size":669267},{"fn":"WEB-INF/lib/spring-context-4.0.0.RELEASE.jar","sha1":"57586271e775982f8961e1e7e338447d4af1864c","size":950606},{"fn":"WEB-INF/lib/spring-core-4.0.0.RELEASE.jar","sha1":"73b485e25b13a7a44b73a301fe6757c3cbad453e","size":955328},{"fn":"WEB-INF/lib/spring-expression-4.0.0.RELEASE.jar","sha1":"199be03c976524b6427dff31078227bfc703400b","size":206507},{"fn":"WEB-INF/lib/spring-web-4.0.0.RELEASE.jar","sha1":"6ce2dda16a3c1581920fc17551f3ae17d26499aa","size":661567},{"fn":"WEB-INF/lib/spring-webmvc-4.0.0.RELEASE.jar","sha1":"a82202c4d09d684a8d52ade479c0e508d904700b","size":660682},{"fn":"WEB-INF/spring","sha1":"0","size":0},{"fn":"WEB-INF/spring/appServlet","sha1":"0","size":0},{"fn":"WEB-INF/spring/appServlet/servlet-context.xml","sha1":"bd011a9ec674b6c8d4eff071290280b1cbb1bcb7","size":1972},{"fn":"WEB-INF/spring/root-context.xml","sha1":"26ce33df20a25aeddad4991b50deacd548ed0efb","size":380},{"fn":"WEB-INF/views","sha1":"0","size":0},{"fn":"WEB-INF/views/home.jsp","sha1":"8475230c4846ae0d40c96572f010d80182319869","size":238},{"fn":"WEB-INF/web.xml","sha1":"11dcb3cc3cb22e6ed1a734649b1d0b6706b12d6d","size":1206}]

RESPONSE: [2014-10-21T15:44:13-04:00]
HTTP/1.1 200 OK
Connection: close
Content-Length: 1341
Content-Type: application/json;charset=utf-8
Date: Tue, 21 Oct 2014 19:45:06 GMT
Server: nginx
X-Cf-Requestid: 31cc1991-dadf-46b5-431e-0ee1cef80cd6
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: 2193e089-a0fa-4124-6486-9091485f6818::6c1c2193-05e4-43ab-a331-8bb674ff7747

[{"fn":"WEB-INF/lib/aspectjrt-1.7.4.jar","sha1":"e49a5c0acee8fd66225dc1d031692d132323417f","size":119683},{"fn":"WEB-INF/lib/jackson-core-2.2.3.jar","sha1":"1a0113da2cab5f4c216b4e5e7c1dbfaa67087e14","size":192699},{"fn":"WEB-INF/lib/jackson-databind-2.2.3.jar","sha1":"03ae380888029daefb91d3ecdca3a37d8cb92bc9","size":865838},{"fn":"WEB-INF/lib/jstl-1.2.jar","sha1":"74aca283cd4f4b4f3e425f5820cda58f44409547","size":414240},{"fn":"WEB-INF/lib/log4j-1.2.15.jar","sha1":"f0a0d2e29ed910808c33135a3a5a51bba6358f7b","size":391834},{"fn":"WEB-INF/lib/spring-aop-4.0.0.RELEASE.jar","sha1":"cceb3e9510774b3f88b008a70c6a9aefb98d891f","size":351240},{"fn":"WEB-INF/lib/spring-beans-4.0.0.RELEASE.jar","sha1":"97e97a04aede419679392176ec1df175d3e9a7a0","size":669267},{"fn":"WEB-INF/lib/spring-context-4.0.0.RELEASE.jar","sha1":"57586271e775982f8961e1e7e338447d4af1864c","size":950606},{"fn":"WEB-INF/lib/spring-core-4.0.0.RELEASE.jar","sha1":"73b485e25b13a7a44b73a301fe6757c3cbad453e","size":955328},{"fn":"WEB-INF/lib/spring-expression-4.0.0.RELEASE.jar","sha1":"199be03c976524b6427dff31078227bfc703400b","size":206507},{"fn":"WEB-INF/lib/spring-web-4.0.0.RELEASE.jar","sha1":"6ce2dda16a3c1581920fc17551f3ae17d26499aa","size":661567},{"fn":"WEB-INF/lib/spring-webmvc-4.0.0.RELEASE.jar","sha1":"a82202c4d09d684a8d52ade479c0e508d904700b","size":660682}]
Uploading app files from: ./xyz.war
Uploading 110.1K, 32 files

REQUEST: [2014-10-21T15:44:13-04:00]
PUT /v2/apps/a0219e5e-ead7-4cc2-929b-3f2ec3d8063e/bits?async=true HTTP/1.1
Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: multipart/form-data; boundary=31c901ee8e67e6d23365cf3633d83d0d4c7558f73f1c470768e03c46507e
User-Agent: go-cli 6.6.0-704d304 / linux


[MULTIPART/FORM-DATA CONTENT HIDDEN]

RESPONSE: [2014-10-21T15:44:13-04:00]
HTTP/1.1 201 Created
Connection: close
Content-Length: 275
Content-Type: application/json;charset=utf-8
Date: Tue, 21 Oct 2014 19:45:06 GMT
Server: nginx
X-Cf-Requestid: 51451b66-39bc-4c7e-43ad-b644c177c75f
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: e7883979-7fdc-489f-6242-2308e09dcdf9::af262f8b-527d-486d-beb8-a1424dacd091

{
  "metadata": {
    "guid": "3f17eccc-75e6-40cf-9a29-f5dd8dc80df3",
    "created_at": "2014-10-21T19:45:06+00:00",
    "url": "/v2/jobs/3f17eccc-75e6-40cf-9a29-f5dd8dc80df3"
  },
  "entity": {
    "guid": "3f17eccc-75e6-40cf-9a29-f5dd8dc80df3",
    "status": "queued"
  }
}

REQUEST: [2014-10-21T15:44:13-04:00]
GET /v2/jobs/3f17eccc-75e6-40cf-9a29-f5dd8dc80df3 HTTP/1.1
Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.0-704d304 / linux



RESPONSE: [2014-10-21T15:44:13-04:00]
HTTP/1.1 200 OK
Connection: close
Content-Length: 275
Content-Type: application/json;charset=utf-8
Date: Tue, 21 Oct 2014 19:45:06 GMT
Server: nginx
X-Cf-Requestid: 15dd321d-200c-4cd8-683d-27fb57f8f778
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: db5cb0d5-cd20-4625-56ee-98e069d8bb52::e634d1bd-dab9-4998-858c-15419c72e8e0

{
  "metadata": {
    "guid": "3f17eccc-75e6-40cf-9a29-f5dd8dc80df3",
    "created_at": "2014-10-21T19:45:06+00:00",
    "url": "/v2/jobs/3f17eccc-75e6-40cf-9a29-f5dd8dc80df3"
  },
  "entity": {
    "guid": "3f17eccc-75e6-40cf-9a29-f5dd8dc80df3",
    "status": "queued"
  }
}

REQUEST: [2014-10-21T15:44:18-04:00]
GET /v2/jobs/3f17eccc-75e6-40cf-9a29-f5dd8dc80df3 HTTP/1.1
Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.0-704d304 / linux



RESPONSE: [2014-10-21T15:44:18-04:00]
HTTP/1.1 200 OK
Connection: close
Content-Length: 172
Content-Type: application/json;charset=utf-8
Date: Tue, 21 Oct 2014 19:45:11 GMT
Server: nginx
X-Cf-Requestid: 1b27a17b-ec98-47a8-4e8d-2bef20868b56
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: 02717ae3-9ac0-4e98-4b6d-04e7f6ae2900::a3bc64f4-8dcc-4798-9d12-c4baa23dc25c

{
  "metadata": {
    "guid": "0",
    "created_at": "1970-01-01T00:00:00+00:00",
    "url": "/v2/jobs/0"
  },
  "entity": {
    "guid": "0",
    "status": "finished"
  }
}
OK

Stopping app my-app in org ORG / space dev as cfuser...

REQUEST: [2014-10-21T15:44:18-04:00]
PUT /v2/apps/a0219e5e-ead7-4cc2-929b-3f2ec3d8063e?async=true&inline-relations-depth=1 HTTP/1.1
Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.0-704d304 / linux

{"state":"STOPPED"}

RESPONSE: [2014-10-21T15:44:18-04:00]
HTTP/1.1 201 Created
Connection: close
Content-Length: 3801
Content-Type: application/json;charset=utf-8
Date: Tue, 21 Oct 2014 19:45:11 GMT
Server: nginx
X-Cf-Requestid: c3db599c-f1f7-431e-73f8-2ec00af40313
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: 98394efc-b63b-4748-6330-3adb6103b288::4acc05bc-8639-4bed-99b8-40ba9a10b598

{
  "metadata": {
    "guid": "a0219e5e-ead7-4cc2-929b-3f2ec3d8063e",
    "url": "/v2/apps/a0219e5e-ead7-4cc2-929b-3f2ec3d8063e",
    "created_at": "2014-10-21T19:41:58+00:00",
    "updated_at": "2014-10-21T19:45:11+00:00"
  },
  "entity": {
    "name": "my-app",
    "production": false,
    "space_guid": "75858613-5ad9-4d72-a685-47e74d1c4f8c",
    "stack_guid": "9ca0898e-d30c-41cb-a275-2d6e8a04aa3e",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": {

    },
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "b5ded324-368b-43ed-8295-eea4c22ce27f",
    "command": null,
    "console": false,
    "debug": null,
    "staging_task_id": "c84f1f53d37c4d688ad80b8a7ea1210f",
    "package_state": "PENDING",
    "health_check_timeout": null,
    "staging_failed_reason": null,
    "docker_image": null,
    "package_updated_at": "2014-10-21T19:45:08+00:00",
    "detected_start_command": "",
    "space_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c",
    "space": {
      "metadata": {
        "guid": "75858613-5ad9-4d72-a685-47e74d1c4f8c",
        "url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c",
        "created_at": "2014-10-20T02:28:20+00:00",
        "updated_at": null
      },
      "entity": {
        "name": "dev",
        "organization_guid": "cd9ad988-0648-486e-9163-c8c443f18236",
        "space_quota_definition_guid": null,
        "organization_url": "/v2/organizations/cd9ad988-0648-486e-9163-c8c443f18236",
        "developers_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/developers",
        "managers_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/managers",
        "auditors_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/auditors",
        "apps_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/apps",
        "routes_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/routes",
        "domains_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/domains",
        "service_instances_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/service_instances",
        "app_events_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/app_events",
        "events_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/events",
        "security_groups_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/security_groups"
      }
    },
    "stack_url": "/v2/stacks/9ca0898e-d30c-41cb-a275-2d6e8a04aa3e",
    "stack": {
      "metadata": {
        "guid": "9ca0898e-d30c-41cb-a275-2d6e8a04aa3e",
        "url": "/v2/stacks/9ca0898e-d30c-41cb-a275-2d6e8a04aa3e",
        "created_at": "2014-10-18T05:48:34+00:00",
        "updated_at": null
      },
      "entity": {
        "name": "lucid64",
        "description": "Ubuntu 10.04 on x86-64"
      }
    },
    "events_url": "/v2/apps/a0219e5e-ead7-4cc2-929b-3f2ec3d8063e/events",
    "service_bindings_url": "/v2/apps/a0219e5e-ead7-4cc2-929b-3f2ec3d8063e/service_bindings",
    "service_bindings": [

    ],
    "routes_url": "/v2/apps/a0219e5e-ead7-4cc2-929b-3f2ec3d8063e/routes",
    "routes": [
      {
        "metadata": {
          "guid": "649ac182-c0bb-45f2-badf-f791dcaaca56",
          "url": "/v2/routes/649ac182-c0bb-45f2-badf-f791dcaaca56",
          "created_at": "2014-10-20T18:57:15+00:00",
          "updated_at": null
        },
        "entity": {
          "host": "my-app",
          "domain_guid": "5f7eb777-482d-4990-a30e-b0186364511c",
          "space_guid": "75858613-5ad9-4d72-a685-47e74d1c4f8c",
          "domain_url": "/v2/domains/5f7eb777-482d-4990-a30e-b0186364511c",
          "space_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c",
          "apps_url": "/v2/routes/649ac182-c0bb-45f2-badf-f791dcaaca56/apps"
        }
      }
    ]
  }
}
OK


WEBSOCKET REQUEST: [2014-10-21T15:44:18-04:00]
GET /tail/?app=a0219e5e-ead7-4cc2-929b-3f2ec3d8063e HTTP/1.1
Host: ws://loggregator.10.175.246.67.xip.io:80
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Version: 13
Sec-WebSocket-Key: [HIDDEN]
Origin: http://localhost
Authorization: [PRIVATE DATA HIDDEN]


WEBSOCKET RESPONSE: [2014-10-21T15:44:19-04:00]
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-Websocket-Accept: ryAlwpvS4eniYdgEzygUBr/zlYg=


Starting app my-app in org ORG / space dev as cfuser...

REQUEST: [2014-10-21T15:44:19-04:00]
PUT /v2/apps/a0219e5e-ead7-4cc2-929b-3f2ec3d8063e?async=true&inline-relations-depth=1 HTTP/1.1
Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.0-704d304 / linux

{"state":"STARTED"}

RESPONSE: [2014-10-21T15:44:20-04:00]
HTTP/1.1 201 Created
Connection: close
Content-Length: 3801
Content-Type: application/json;charset=utf-8
Date: Tue, 21 Oct 2014 19:45:13 GMT
Server: nginx
X-App-Staging-Log: http://e3aff9a59af14907923cc28a80b473ef.10.175.246.67.xip.io/staging_tasks/1f40da39a47e46abb74add907e74ff09/file_path?hmac=fc9f1ab51317ee0bbbc928fe756f3094fb3396e0a62a9559a9f2d49c3f8288b162087a2161303a434eb99bdc0ec5968e1e3bd283c2da9184953e5da4e3e61017&path=%2Ftmp%2Fstaged%2Flogs%2Fstaging_task.log&timestamp=1413920713
X-Cf-Requestid: e0024649-86a0-4cff-531d-3a54fff2e7dd
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: a20d95d9-291d-4b54-6184-53d0b5be41ef::ab94c036-0b61-48b5-a64f-cda8b3b5fe3e

{
  "metadata": {
    "guid": "a0219e5e-ead7-4cc2-929b-3f2ec3d8063e",
    "url": "/v2/apps/a0219e5e-ead7-4cc2-929b-3f2ec3d8063e",
    "created_at": "2014-10-21T19:41:58+00:00",
    "updated_at": "2014-10-21T19:45:12+00:00"
  },
  "entity": {
    "name": "my-app",
    "production": false,
    "space_guid": "75858613-5ad9-4d72-a685-47e74d1c4f8c",
    "stack_guid": "9ca0898e-d30c-41cb-a275-2d6e8a04aa3e",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": {

    },
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "8e6f5bc1-a6bd-496b-a094-9ee4db467bf8",
    "command": null,
    "console": false,
    "debug": null,
    "staging_task_id": "1f40da39a47e46abb74add907e74ff09",
    "package_state": "PENDING",
    "health_check_timeout": null,
    "staging_failed_reason": null,
    "docker_image": null,
    "package_updated_at": "2014-10-21T19:45:08+00:00",
    "detected_start_command": "",
    "space_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c",
    "space": {
      "metadata": {
        "guid": "75858613-5ad9-4d72-a685-47e74d1c4f8c",
        "url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c",
        "created_at": "2014-10-20T02:28:20+00:00",
        "updated_at": null
      },
      "entity": {
        "name": "dev",
        "organization_guid": "cd9ad988-0648-486e-9163-c8c443f18236",
        "space_quota_definition_guid": null,
        "organization_url": "/v2/organizations/cd9ad988-0648-486e-9163-c8c443f18236",
        "developers_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/developers",
        "managers_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/managers",
        "auditors_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/auditors",
        "apps_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/apps",
        "routes_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/routes",
        "domains_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/domains",
        "service_instances_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/service_instances",
        "app_events_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/app_events",
        "events_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/events",
        "security_groups_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/security_groups"
      }
    },
    "stack_url": "/v2/stacks/9ca0898e-d30c-41cb-a275-2d6e8a04aa3e",
    "stack": {
      "metadata": {
        "guid": "9ca0898e-d30c-41cb-a275-2d6e8a04aa3e",
        "url": "/v2/stacks/9ca0898e-d30c-41cb-a275-2d6e8a04aa3e",
        "created_at": "2014-10-18T05:48:34+00:00",
        "updated_at": null
      },
      "entity": {
        "name": "lucid64",
        "description": "Ubuntu 10.04 on x86-64"
      }
    },
    "events_url": "/v2/apps/a0219e5e-ead7-4cc2-929b-3f2ec3d8063e/events",
    "service_bindings_url": "/v2/apps/a0219e5e-ead7-4cc2-929b-3f2ec3d8063e/service_bindings",
    "service_bindings": [

    ],
    "routes_url": "/v2/apps/a0219e5e-ead7-4cc2-929b-3f2ec3d8063e/routes",
    "routes": [
      {
        "metadata": {
          "guid": "649ac182-c0bb-45f2-badf-f791dcaaca56",
          "url": "/v2/routes/649ac182-c0bb-45f2-badf-f791dcaaca56",
          "created_at": "2014-10-20T18:57:15+00:00",
          "updated_at": null
        },
        "entity": {
          "host": "my-app",
          "domain_guid": "5f7eb777-482d-4990-a30e-b0186364511c",
          "space_guid": "75858613-5ad9-4d72-a685-47e74d1c4f8c",
          "domain_url": "/v2/domains/5f7eb777-482d-4990-a30e-b0186364511c",
          "space_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c",
          "apps_url": "/v2/routes/649ac182-c0bb-45f2-badf-f791dcaaca56/apps"
        }
      }
    ]
  }
}
OK

REQUEST: [2014-10-21T15:44:20-04:00]
GET /v2/apps/a0219e5e-ead7-4cc2-929b-3f2ec3d8063e/instances HTTP/1.1
Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.0-704d304 / linux



RESPONSE: [2014-10-21T15:44:20-04:00]
HTTP/1.1 400 Bad Request
Connection: close
Content-Length: 89
Content-Type: application/json;charset=utf-8
Date: Tue, 21 Oct 2014 19:45:13 GMT
Server: nginx
X-Cf-Requestid: ebb25a8d-4510-4d68-5285-5ec6e15f136d
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: 42e3fec7-7ff1-425f-68b5-ef2c961ae8ac::2b58871c-d896-434d-9470-50dccebf86b4

{"code":170002,"description":"App has not finished staging","error_code":"CF-NotStaged"}


REQUEST: [2014-10-21T15:44:25-04:00]
GET /v2/apps/a0219e5e-ead7-4cc2-929b-3f2ec3d8063e/instances HTTP/1.1
Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.0-704d304 / linux



RESPONSE: [2014-10-21T15:44:25-04:00]
HTTP/1.1 400 Bad Request
Connection: close
Content-Length: 89
Content-Type: application/json;charset=utf-8
Date: Tue, 21 Oct 2014 19:45:18 GMT
Server: nginx
X-Cf-Requestid: 8bf59d5f-1beb-4490-76d4-e39ebcd3a526
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: 27ce4d2f-3f3e-4f16-68e0-e79f475ea441::c26bc00f-c9cd-4899-b43e-86b7a3f493f7

{"code":170002,"description":"App has not finished staging","error_code":"CF-NotStaged"}


REQUEST: [2014-10-21T15:44:30-04:00]
GET /v2/apps/a0219e5e-ead7-4cc2-929b-3f2ec3d8063e/instances HTTP/1.1
Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.0-704d304 / linux



RESPONSE: [2014-10-21T15:44:30-04:00]
HTTP/1.1 400 Bad Request
Connection: close
Content-Length: 89
Content-Type: application/json;charset=utf-8
Date: Tue, 21 Oct 2014 19:45:23 GMT
Server: nginx
X-Cf-Requestid: 4ea3cb71-5f34-4b9c-60c7-c7179fbe0134
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: 06c739bc-18d7-4bc0-62b9-551e0c14fda6::8a51b334-50a5-4349-b9b9-639eefbaacd2

{"code":170002,"description":"App has not finished staging","error_code":"CF-NotStaged"}


REQUEST: [2014-10-21T15:44:35-04:00]
GET /v2/apps/a0219e5e-ead7-4cc2-929b-3f2ec3d8063e/instances HTTP/1.1
Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.0-704d304 / linux



RESPONSE: [2014-10-21T15:44:36-04:00]
HTTP/1.1 400 Bad Request
Connection: close
Content-Length: 89
Content-Type: application/json;charset=utf-8
Date: Tue, 21 Oct 2014 19:45:28 GMT
Server: nginx
X-Cf-Requestid: b4b7a9e4-2a7c-4d3a-508b-494de7f3aacd
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: 43b5adc2-1e88-4598-5eb2-841cb5fb9e35::46358a2b-97cd-4ed5-bfbb-66e26813ce08

{"code":170002,"description":"App has not finished staging","error_code":"CF-NotStaged"}


REQUEST: [2014-10-21T15:44:41-04:00]
GET /v2/apps/a0219e5e-ead7-4cc2-929b-3f2ec3d8063e/instances HTTP/1.1
Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.0-704d304 / linux



RESPONSE: [2014-10-21T15:44:41-04:00]
HTTP/1.1 400 Bad Request
Connection: close
Content-Length: 133
Content-Type: application/json;charset=utf-8
Date: Tue, 21 Oct 2014 19:45:33 GMT
Server: nginx
X-Cf-Requestid: 1096d2fe-169d-4a74-4f6d-18613f11b5fb
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: 223aa75e-1129-45f4-78a8-193f4ee8b92a::954d87dd-0e9b-436d-b0b6-623887464874

{"code":170003,"description":"An app was not successfully detected by any available buildpack","error_code":"CF-NoAppDetectedError"}

--
Ramin

Ramin Ali Dousti

unread,
Oct 22, 2014, 6:52:19 AM10/22/14
to Ben Hale, vcap...@cloudfoundry.org
Thanks, Ben. I posted the trace information (I had not realized that I'd sent a private reply to Sabha). BTW, the same push of the jar works fine against run.pivotal.io. I seem to have this problem on my own openstack setup. 
--
Ramin

Ben Hale

unread,
Oct 22, 2014, 6:53:18 AM10/22/14
to vcap...@cloudfoundry.org, bh...@pivotal.io, dou...@gmail.com
$ jar tvf xyz.war 
     0 Mon Sep 08 19:26:26 EDT 2014 META-INF/
   130 Mon Sep 08 19:26:24 EDT 2014 META-INF/MANIFEST.MF
     0 Mon Sep 08 19:26:24 EDT 2014 WEB-INF/
... 

Well that's suitably strange.  I'd expect that to work.  Can you please post that WAR file somewhere so that I can download it and do some testing? Thanks.

Ben Hale

unread,
Oct 22, 2014, 6:56:26 AM10/22/14
to vcap...@cloudfoundry.org, bh...@pivotal.io, dou...@gmail.com
Thanks, Ben. I posted the trace information (I had not realized that I'd sent a private reply to Sabha). BTW, the same push of the jar works fine against run.pivotal.io. I seem to have this problem on my own openstack setup. 
 
That's even more interesting.  That would imply that the Java Buildpack is generally doing the right thing with your app, but it's just being called.  I see you upgraded from v2.4 to v2.5 during the course of the thread.  Which package did you use to make that upgrade?

Ramin Ali Dousti

unread,
Oct 22, 2014, 9:01:20 AM10/22/14
to Ben Hale, vcap...@cloudfoundry.org
--
Ramin

Ramin Ali Dousti

unread,
Oct 22, 2014, 9:06:52 AM10/22/14
to Ben Hale, vcap...@cloudfoundry.org
Could you explain what you mean by upgrading from v2.4 to v2.5 and how you see that in this thread. I didn't do any upgrade (or at least not intentionally).
--
Ramin

Sabha Parameswaran

unread,
Oct 22, 2014, 9:51:28 AM10/22/14
to vcap...@cloudfoundry.org, Ben Hale
Hi Ramin,

   For some unknown reason, I didn't receive your email and was in the same boat as others till I saw today's email exchange.

- Sabha

Sent from my iPhone

Sabha Parameswaran

unread,
Oct 22, 2014, 12:33:31 PM10/22/14
to vcap...@cloudfoundry.org, dou...@gmail.com, Ben Hale
Hi Ramin,

  Unsure if you are still hitting the detection failure. 

Can you try the push after setting the JBP_LOG_LEVEL to debug ? that would show at what stage things started failing.

Steps:
1) cf set-env my-app JBP_LOG_LEVEL debug
2) CF_TRACE=true cf push my-app -p <xyz.war>

You should be see some debug outputs like below:

RESPONSE: [2014-10-22T09:32:03-07:00]
HTTP/1.1 400 Bad Request
Content-Length: 89
Content-Type: application/json;charset=utf-8
Date: Mon, 20 Oct 2014 07:04:54 GMT
Server: nginx
X-Cf-Requestid: b7a48f49-b13e-4733-452d-9d9da6c72153
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: a28a7e23-1166-43c5-40d2-2915f2cdeacf::07464ad0-46ff-4197-aba9-b1e7d2ff4dc4

{"code":170002,"description":"App has not finished staging","error_code":"CF-NotStaged"}

-----> Downloaded app package (5.6M)
-----> Downloaded app buildpack cache (47M)
[ConfigurationUtils]             DEBUG Configuration from /var/vcap/data/dea_next/admin_buildpacks/5e2f9c28-53b7-433b-9f3f-a921e780c116_b4aded469588305be65c64550ccf01159342494e/config/version.yml: {"hash"=>"840500e", "remote"=>"https://github.com/cloudfoundry/java-buildpack.git", "version"=>"v2.5"}
[BuildpackVersion]               DEBUG v2.5 | https://github.com/cloudfoundry/java-buildpack.git#840500e
[Buildpack]                      DEBUG Environment Variables: {"USER"=>"vcap", "JBP_LOG_LEVEL"=>"debug", "VCAP_APPLICATION"=>"{\"limits\":{\"mem\":256,\"disk\":1024,\"fds\":16384},\"application_version\":\"02b7f832-82d5-4180-930c-649b4998be30\",\"application_name\":\"test-xyz\",\"application_uris\":[\"test-xyz.10.244.0.34.xip.io\"],\"version\":\"02b7f832-82d5-4180-930c-649b4998be30\",\"name\":\"test-xyz\",\"space_name\":\"sabha\",\"space_id\":\"573985ee-5adf-47d2-8c58-14b5e9673a38\",\"uris\":[\"test-xyz.10.244.0.34.xip.io\"],\"users\":null}", "STAGING_TIMEOUT"=>"900.0", "PATH"=>"/bin:/usr/bin", "PWD"=>"/home/vcap", "LANG"=>"en_US.UTF-8", "VCAP_SERVICES"=>"{}", "SHLVL"=>"1", "HOME"=>"/home/vcap", "BUILDPACK_CACHE"=>"/var/vcap/packages/buildpack_cache", "MEMORY_LIMIT"=>"256m", "_"=>"/usr/bin/ruby"}
[ConfigurationUtils]             DEBUG Configuration from /var/vcap/data/dea_next/admin_buildpacks/5e2f9c28-53b7-433b-9f3f-a921e780c116_b4aded469588305be65c64550ccf01159342494e/config/components.yml: {"containers"=>["JavaBuildpack::Container::DistZip", "JavaBuildpack::Container::Groovy", "JavaBuildpack::Container::JavaMain", "JavaBuildpack::Container::PlayFramework", "JavaBuildpack::Container::Ratpack", "JavaBuildpack::Container::SpringBoot", "JavaBuildpack::Container::SpringBootCLI", "JavaBuildpack::Container::Tomcat"], "jres"=>["JavaBuildpack::Jre::OpenJdkJRE"], "frameworks"=>["JavaBuildpack::Framework::AppDynamicsAgent", "JavaBuildpack::Framework::JavaOpts", "JavaBuildpack::Framework::MariaDbJDBC", "JavaBuildpack::Framework::NewRelicAgent", "JavaBuildpack::Framework::PlayFrameworkAutoReconfiguration", "JavaBuildpack::Framework::PlayFrameworkJPAPlugin", "JavaBuildpack::Framework::PostgresqlJDBC", "JavaBuildpack::Framework::SpringAutoReconfiguration", "JavaBuildpack::Framework::SpringInsight"]}
[Buildpack]                      DEBUG Instantiating JavaBuildpack::Jre::OpenJdkJRE
[Buildpack]                      DEBUG Successfully required JavaBuildpack::Jre::OpenJdkJRE
[ConfigurationUtils]             DEBUG Configuration from /var/vcap/data/dea_next/admin_buildpacks/5e2f9c28-53b7-433b-9f3f-a921e780c116_b4aded469588305be65c64550ccf01159342494e/config/open_jdk_jre.yml: {"repository_root"=>"{default.repository.root}/openjdk/{platform}/{architecture}", "version"=>"1.8.0_+", "memory_sizes"=>{"metaspace"=>"64m.."}, "memory_heuristics"=>{"heap"=>75, "metaspace"=>10, "stack"=>5, "native"=>10}}
[Buildpack]                      DEBUG Instantiating JavaBuildpack::Framework::AppDynamicsAgent
[Buildpack]                      DEBUG Successfully required JavaBuildpack::Framework::AppDynamicsAgent
[ConfigurationUtils]             DEBUG Configuration from /var/vcap/data/dea_next/admin_buildpacks/5e2f9c28-53b7-433b-9f3f-a921e780c116_b4aded469588305be65c64550ccf01159342494e/config/app_dynamics_agent.yml: {"version"=>"3.9.+", "repository_root"=>"{default.repository.root}/app-dynamics", "default_tier_name"=>"CloudFoundry"}
[Buildpack]                      DEBUG Instantiating JavaBuildpack::Framework::JavaOpts
[Buildpack]                      DEBUG Successfully required JavaBuildpack::Framework::JavaOpts

Send us the complete output of the push.

-Sabha

Ramin Ali Dousti

unread,
Oct 22, 2014, 1:10:46 PM10/22/14
to Sabha Parameswaran, vcap...@cloudfoundry.org, Ben Hale
Hi Sobha,

This is the output you asked for:


VERSION:
6.6.0-704d304


REQUEST: [2014-10-22T13:04:35-04:00]

POST /oauth/token HTTP/1.1
Host: uaa.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/x-www-form-urlencoded
User-Agent: go-cli 6.6.0-704d304 / linux

grant_type=refresh_token&refresh_token=eyJhbGciOiJSUzI1NiJ9.eyJqdGkiOiI5ZmI0YWVjZC01MjNlLTRhNTgtYWUwYy04ZmM1MzVhMGQ3YTkiLCJzdWIiOiJlMWY0ZjNjMy01N2U0LTRhNzktODE4Ny1lMGYyMTkwMjdkMmQiLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIiwib3BlbmlkIiwicGFzc3dvcmQud3JpdGUiXSwiaWF0IjoxNDEzODk0NzY3LCJleHAiOjE0MTUxMDQzNjcsImNpZCI6ImNmIiwiaXNzIjoiaHR0cDovL3VhYS4xMC4xNzUuMjQ2LjY3LnhpcC5pby9vYXV0aC90b2tlbiIsImdyYW50X3R5cGUiOiJwYXNzd29yZCIsInVzZXJfbmFtZSI6ImlvdCIsInVzZXJfaWQiOiJlMWY0ZjNjMy01N2U0LTRhNzktODE4Ny1lMGYyMTkwMjdkMmQiLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSIsIm9wZW5pZCIsInBhc3N3b3JkLndyaXRlIl19.QAhcI3iNZHFtfEYNUwICQ3f9HOXduq8FHT75TDerS3ekA6tsBlmwZbI2KBWT1aYEjzgaPxCiT8WhlcZIPA2-GhD93LX1zIU4FNbFVKhhE5z8KMIcdqvGb-kqW5V2f2esTNUedL3Ig3SNLPHrKqaY_PhCVNxFu1YhHcTG1sHc4DHC0zQYLTV85lZAo4HQB68lMffv3dySBn3Yb-YziZLQzWsAwkIV2N5DZUecelhmU6BdiD2YCUB6G8p_11qzFQx7MV8gIyaoAOjQG1udXV441pSeGj9Y7R14v574hYG8EURTeAa8p0IXzyzLL6ei6YSdf8Sa2Klf3v8P5RLkv2yI6Q&scope=

RESPONSE: [2014-10-22T13:04:35-04:00]

HTTP/1.1 200 OK
Connection: close
Transfer-Encoding: chunked
Cache-Control: no-store
Content-Type: application/json;charset=UTF-8
Date: Wed, 22 Oct 2014 17:06:15 GMT
Pragma: no-cache
Server: Apache-Coyote/1.1
X-Cf-Requestid: f460fbba-16de-4a62-74b5-6acd344bdee9

84b
{"access_token":"[PRIVATE DATA HIDDEN]","token_type":"bearer","refresh_token":"[PRIVATE DATA HIDDEN]","expires_in":7199,"scope":"password.write openid cloud_controller.write cloud_controller.read","jti":"cc15ba7c-f7b2-4777-b84b-6e73d26de16c"}
0



REQUEST: [2014-10-22T13:04:35-04:00]

GET /v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c/apps?q=name%3Amy-app&inline-relations-depth=1 HTTP/1.1
Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.0-704d304 / linux



RESPONSE: [2014-10-22T13:04:36-04:00]

HTTP/1.1 200 OK
Connection: close
Content-Length: 4329
Content-Type: application/json;charset=utf-8
Date: Wed, 22 Oct 2014 17:06:16 GMT
Server: nginx
X-Cf-Requestid: 8a9adacf-b20a-41da-5991-e99d280b0d72
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: 2296ab40-b9e7-4a01-6b3b-ecd08bd9c50d::486c1620-5d84-4801-9993-e35a5213da16


{
  "total_results": 1,
  "total_pages": 1,
  "prev_url": null,
  "next_url": null,
  "resources": [
    {
      "metadata": {
        "guid": "fd1eca0c-9720-48d6-9d3c-e729834da315",
        "url": "/v2/apps/fd1eca0c-9720-48d6-9d3c-e729834da315",
        "created_at": "2014-10-22T17:04:13+00:00",
        "updated_at": "2014-10-22T17:05:22+00:00"

      },
      "entity": {
        "name": "my-app",
        "production": false,
        "space_guid": "75858613-5ad9-4d72-a685-47e74d1c4f8c",
        "stack_guid": "9ca0898e-d30c-41cb-a275-2d6e8a04aa3e",
        "buildpack": null,
        "detected_buildpack": null,
        "environment_json": {
          "JBP_LOG_LEVEL": "debug"

        },
        "memory": 1024,
        "instances": 1,
        "disk_quota": 1024,
        "state": "STARTED",
        "version": "9f00144a-d458-48ce-abcc-1c3a4c04eb40",

        "command": null,
        "console": false,
        "debug": null,
        "staging_task_id": "7e6017dd08a94bee902f756a3b5c63ba",

        "package_state": "FAILED",
        "health_check_timeout": null,
        "staging_failed_reason": "NoAppDetectedError",
        "docker_image": null,
        "package_updated_at": "2014-10-22T17:04:19+00:00",
        "events_url": "/v2/apps/fd1eca0c-9720-48d6-9d3c-e729834da315/events",
        "service_bindings_url": "/v2/apps/fd1eca0c-9720-48d6-9d3c-e729834da315/service_bindings",
        "service_bindings": [

        ],
        "routes_url": "/v2/apps/fd1eca0c-9720-48d6-9d3c-e729834da315/routes",
        "routes": [
          {
            "metadata": {
              "guid": "4bb2e5bf-fa49-4184-bda9-096270743ecb",
              "url": "/v2/routes/4bb2e5bf-fa49-4184-bda9-096270743ecb",
              "created_at": "2014-10-22T17:04:14+00:00",

              "updated_at": null
            },
            "entity": {
              "host": "my-app",
              "domain_guid": "5f7eb777-482d-4990-a30e-b0186364511c",
              "space_guid": "75858613-5ad9-4d72-a685-47e74d1c4f8c",
              "domain_url": "/v2/domains/5f7eb777-482d-4990-a30e-b0186364511c",
              "space_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c",
              "apps_url": "/v2/routes/4bb2e5bf-fa49-4184-bda9-096270743ecb/apps"
            }
          }
        ]
      }
    }
  ]
}
Updating app my-app in org IOT / space dev as iot...

REQUEST: [2014-10-22T13:04:36-04:00]
PUT /v2/apps/fd1eca0c-9720-48d6-9d3c-e729834da315?async=true&inline-relations-depth=1 HTTP/1.1

Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.0-704d304 / linux

{"name":"my-app"}

RESPONSE: [2014-10-22T13:04:36-04:00]

HTTP/1.1 201 Created
Connection: close
Content-Length: 3842
Content-Type: application/json;charset=utf-8
Date: Wed, 22 Oct 2014 17:06:16 GMT
Server: nginx
X-Cf-Requestid: 5c5fbc50-347c-497a-5971-632fb6dca862
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: e574ac9c-a509-4356-4571-e7efe1522df0::3a15928a-f420-489d-bb53-c74c7f998790

{
  "metadata": {
    "guid": "fd1eca0c-9720-48d6-9d3c-e729834da315",
    "url": "/v2/apps/fd1eca0c-9720-48d6-9d3c-e729834da315",
    "created_at": "2014-10-22T17:04:13+00:00",
    "updated_at": "2014-10-22T17:06:16+00:00"

  },
  "entity": {
    "name": "my-app",
    "production": false,
    "space_guid": "75858613-5ad9-4d72-a685-47e74d1c4f8c",
    "stack_guid": "9ca0898e-d30c-41cb-a275-2d6e8a04aa3e",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": {
      "JBP_LOG_LEVEL": "debug"

    },
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "9f00144a-d458-48ce-abcc-1c3a4c04eb40",

    "command": null,
    "console": false,
    "debug": null,
    "staging_task_id": "7e6017dd08a94bee902f756a3b5c63ba",

    "package_state": "FAILED",
    "health_check_timeout": null,
    "staging_failed_reason": "NoAppDetectedError",
    "docker_image": null,
    "package_updated_at": "2014-10-22T17:04:19+00:00",
    "events_url": "/v2/apps/fd1eca0c-9720-48d6-9d3c-e729834da315/events",
    "service_bindings_url": "/v2/apps/fd1eca0c-9720-48d6-9d3c-e729834da315/service_bindings",
    "service_bindings": [

    ],
    "routes_url": "/v2/apps/fd1eca0c-9720-48d6-9d3c-e729834da315/routes",
    "routes": [
      {
        "metadata": {
          "guid": "4bb2e5bf-fa49-4184-bda9-096270743ecb",
          "url": "/v2/routes/4bb2e5bf-fa49-4184-bda9-096270743ecb",
          "created_at": "2014-10-22T17:04:14+00:00",

          "updated_at": null
        },
        "entity": {
          "host": "my-app",
          "domain_guid": "5f7eb777-482d-4990-a30e-b0186364511c",
          "space_guid": "75858613-5ad9-4d72-a685-47e74d1c4f8c",
          "domain_url": "/v2/domains/5f7eb777-482d-4990-a30e-b0186364511c",
          "space_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c",
          "apps_url": "/v2/routes/4bb2e5bf-fa49-4184-bda9-096270743ecb/apps"
        }
      }
    ]
  }
}
OK


REQUEST: [2014-10-22T13:04:36-04:00]

GET /v2/organizations/cd9ad988-0648-486e-9163-c8c443f18236/private_domains HTTP/1.1
Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.0-704d304 / linux



RESPONSE: [2014-10-22T13:04:36-04:00]

HTTP/1.1 200 OK
Connection: close
Content-Length: 107
Content-Type: application/json;charset=utf-8
Date: Wed, 22 Oct 2014 17:06:16 GMT
Server: nginx
X-Cf-Requestid: 79bbf33c-fd57-42b0-72b1-d2e88513b781
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: 4fbff8ea-1798-4edf-7c4f-91cd5aa1491d::e44b2f52-ad56-457b-b184-4ba91daae1bb


{
  "total_results": 0,
  "total_pages": 1,
  "prev_url": null,
  "next_url": null,
  "resources": [

  ]
}

REQUEST: [2014-10-22T13:04:36-04:00]

GET /v2/shared_domains HTTP/1.1
Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.0-704d304 / linux



RESPONSE: [2014-10-22T13:04:36-04:00]

HTTP/1.1 200 OK
Connection: close
Content-Length: 443
Content-Type: application/json;charset=utf-8
Date: Wed, 22 Oct 2014 17:06:16 GMT
Server: nginx
X-Cf-Requestid: 4af23b57-2404-46f9-408b-fec89b2de3a9
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: 0967eebc-4daa-49a3-5852-e6ad52de7e31::9f21096d-ecd0-4410-a611-cd2a60be4222


{
  "total_results": 1,
  "total_pages": 1,
  "prev_url": null,
  "next_url": null,
  "resources": [
    {
      "metadata": {
        "guid": "5f7eb777-482d-4990-a30e-b0186364511c",
        "url": "/v2/shared_domains/5f7eb777-482d-4990-a30e-b0186364511c",
        "created_at": "2014-10-18T05:49:12+00:00",
        "updated_at": "2014-10-22T11:02:03+00:00"

      },
      "entity": {
        "name": "10.175.246.67.xip.io"
      }
    }
  ]
}
Uploading my-app...

REQUEST: [2014-10-22T13:04:36-04:00]

PUT /v2/resource_match HTTP/1.1
Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.0-704d304 / linux

[{"fn":"META-INF","sha1":"0","size":0},{"fn":"META-INF/MANIFEST.MF","sha1":"fbe99b24f5e75a825b6457fe986fd2f4f81efcb8","size":130},{"fn":"META-INF/maven","sha1":"0","size":0},{"fn":"META-INF/maven/com.journaldev","sha1":"0","size":0},{"fn":"META-INF/maven/com.journaldev/SpringRestExample","sha1":"0","size":0},{"fn":"META-INF/maven/com.journaldev/SpringRestExample/pom.properties","sha1":"b6266ed161b8c84ad18634edab19a80bf77bc20f","size":131},{"fn":"META-INF/maven/com.journaldev/SpringRestExample/pom.xml","sha1":"d49d167ed503c3b4845d1661e4819c7041242186","size":4808},{"fn":"WEB-INF","sha1":"0","size":0},{"fn":"WEB-INF/classes","sha1":"0","size":0},{"fn":"WEB-INF/classes/com","sha1":"0","size":0},{"fn":"WEB-INF/classes/com/journaldev","sha1":"0","size":0},{"fn":"WEB-INF/classes/com/journaldev/spring","sha1":"0","size":0},{"fn":"WEB-INF/classes/com/journaldev/spring/controller","sha1":"0","size":0},{"fn":"WEB-INF/classes/com/journaldev/spring/controller/EmpRestURIConstants.class","sha1":"781e30b0bad2465fe8524c715c75ba28771678d5","size":633},{"fn":"WEB-INF/classes/com/journaldev/spring/controller/EmployeeController.class","sha1":"8b09a0f2fced24637eb6066e58bf2a7379fdfab6","size":3942},{"fn":"WEB-INF/classes/com/journaldev/spring/model","sha1":"0","size":0},{"fn":"WEB-INF/classes/com/journaldev/spring/model/Employee.class","sha1":"a71309c8e0bdc7b4b7c0a1c3b417025b86e4eb47","size":1276},{"fn":"WEB-INF/classes/log4j.xml","sha1":"98562ef14b38a7d0116ae29ecf7fd3e01e39aeba","size":1042},{"fn":"WEB-INF/lib","sha1":"0","size":0},{"fn":"WEB-INF/lib/aopalliance-1.0.jar","sha1":"0235ba8b489512805ac13a8f9ea77a1ca5ebe3e8","size":4467},{"fn":"WEB-INF/lib/aspectjrt-1.7.4.jar","sha1":"e49a5c0acee8fd66225dc1d031692d132323417f","size":119683},{"fn":"WEB-INF/lib/jackson-annotations-2.2.3.jar","sha1":"0527fece4f23a457070a36c371a26d6c0208e1c3","size":33483},{"fn":"WEB-INF/lib/jackson-core-2.2.3.jar","sha1":"1a0113da2cab5f4c216b4e5e7c1dbfaa67087e14","size":192699},{"fn":"WEB-INF/lib/jackson-databind-2.2.3.jar","sha1":"03ae380888029daefb91d3ecdca3a37d8cb92bc9","size":865838},{"fn":"WEB-INF/lib/javax.inject-1.jar","sha1":"6975da39a7040257bd51d21a231b76c915872d38","size":2497},{"fn":"WEB-INF/lib/jcl-over-slf4j-1.7.5.jar","sha1":"0cd5970bd13fa85f7bed41ca606d6daf7cbf1365","size":16517},{"fn":"WEB-INF/lib/jstl-1.2.jar","sha1":"74aca283cd4f4b4f3e425f5820cda58f44409547","size":414240},{"fn":"WEB-INF/lib/log4j-1.2.15.jar","sha1":"f0a0d2e29ed910808c33135a3a5a51bba6358f7b","size":391834},{"fn":"WEB-INF/lib/slf4j-api-1.7.5.jar","sha1":"6b262da268f8ad9eff941b25503a9198f0a0ac93","size":26084},{"fn":"WEB-INF/lib/slf4j-log4j12-1.7.5.jar","sha1":"6edffc576ce104ec769d954618764f39f0f0f10d","size":8869},{"fn":"WEB-INF/lib/spring-aop-4.0.0.RELEASE.jar","sha1":"cceb3e9510774b3f88b008a70c6a9aefb98d891f","size":351240},{"fn":"WEB-INF/lib/spring-beans-4.0.0.RELEASE.jar","sha1":"97e97a04aede419679392176ec1df175d3e9a7a0","size":669267},{"fn":"WEB-INF/lib/spring-context-4.0.0.RELEASE.jar","sha1":"57586271e775982f8961e1e7e338447d4af1864c","size":950606},{"fn":"WEB-INF/lib/spring-core-4.0.0.RELEASE.jar","sha1":"73b485e25b13a7a44b73a301fe6757c3cbad453e","size":955328},{"fn":"WEB-INF/lib/spring-expression-4.0.0.RELEASE.jar","sha1":"199be03c976524b6427dff31078227bfc703400b","size":206507},{"fn":"WEB-INF/lib/spring-web-4.0.0.RELEASE.jar","sha1":"6ce2dda16a3c1581920fc17551f3ae17d26499aa","size":661567},{"fn":"WEB-INF/lib/spring-webmvc-4.0.0.RELEASE.jar","sha1":"a82202c4d09d684a8d52ade479c0e508d904700b","size":660682},{"fn":"WEB-INF/spring","sha1":"0","size":0},{"fn":"WEB-INF/spring/appServlet","sha1":"0","size":0},{"fn":"WEB-INF/spring/appServlet/servlet-context.xml","sha1":"bd011a9ec674b6c8d4eff071290280b1cbb1bcb7","size":1972},{"fn":"WEB-INF/spring/root-context.xml","sha1":"26ce33df20a25aeddad4991b50deacd548ed0efb","size":380},{"fn":"WEB-INF/views","sha1":"0","size":0},{"fn":"WEB-INF/views/home.jsp","sha1":"8475230c4846ae0d40c96572f010d80182319869","size":238},{"fn":"WEB-INF/web.xml","sha1":"11dcb3cc3cb22e6ed1a734649b1d0b6706b12d6d","size":1206}]

RESPONSE: [2014-10-22T13:04:37-04:00]

HTTP/1.1 200 OK
Connection: close
Content-Length: 1341
Content-Type: application/json;charset=utf-8
Date: Wed, 22 Oct 2014 17:06:16 GMT
Server: nginx
X-Cf-Requestid: bb296148-f5f6-4be6-50bb-081efc21bf4b
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: 1a348360-3d41-466d-7ae1-58a90860dbee::f9ecc62b-8299-490e-bb27-284161edee53


[{"fn":"WEB-INF/lib/aspectjrt-1.7.4.jar","sha1":"e49a5c0acee8fd66225dc1d031692d132323417f","size":119683},{"fn":"WEB-INF/lib/jackson-core-2.2.3.jar","sha1":"1a0113da2cab5f4c216b4e5e7c1dbfaa67087e14","size":192699},{"fn":"WEB-INF/lib/jackson-databind-2.2.3.jar","sha1":"03ae380888029daefb91d3ecdca3a37d8cb92bc9","size":865838},{"fn":"WEB-INF/lib/jstl-1.2.jar","sha1":"74aca283cd4f4b4f3e425f5820cda58f44409547","size":414240},{"fn":"WEB-INF/lib/log4j-1.2.15.jar","sha1":"f0a0d2e29ed910808c33135a3a5a51bba6358f7b","size":391834},{"fn":"WEB-INF/lib/spring-aop-4.0.0.RELEASE.jar","sha1":"cceb3e9510774b3f88b008a70c6a9aefb98d891f","size":351240},{"fn":"WEB-INF/lib/spring-beans-4.0.0.RELEASE.jar","sha1":"97e97a04aede419679392176ec1df175d3e9a7a0","size":669267},{"fn":"WEB-INF/lib/spring-context-4.0.0.RELEASE.jar","sha1":"57586271e775982f8961e1e7e338447d4af1864c","size":950606},{"fn":"WEB-INF/lib/spring-core-4.0.0.RELEASE.jar","sha1":"73b485e25b13a7a44b73a301fe6757c3cbad453e","size":955328},{"fn":"WEB-INF/lib/spring-expression-4.0.0.RELEASE.jar","sha1":"199be03c976524b6427dff31078227bfc703400b","size":206507},{"fn":"WEB-INF/lib/spring-web-4.0.0.RELEASE.jar","sha1":"6ce2dda16a3c1581920fc17551f3ae17d26499aa","size":661567},{"fn":"WEB-INF/lib/spring-webmvc-4.0.0.RELEASE.jar","sha1":"a82202c4d09d684a8d52ade479c0e508d904700b","size":660682}]
Uploading app files from: ./xyz.war
Uploading 110.1K, 32 files

REQUEST: [2014-10-22T13:04:37-04:00]
PUT /v2/apps/fd1eca0c-9720-48d6-9d3c-e729834da315/bits?async=true HTTP/1.1

Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: multipart/form-data; boundary=375ee276b676c135045e857758507d3956bc979f34a7ebcf4a08d72a30fa

User-Agent: go-cli 6.6.0-704d304 / linux


[MULTIPART/FORM-DATA CONTENT HIDDEN]

RESPONSE: [2014-10-22T13:04:37-04:00]

HTTP/1.1 201 Created
Connection: close
Content-Length: 275
Content-Type: application/json;charset=utf-8
Date: Wed, 22 Oct 2014 17:06:17 GMT
Server: nginx
X-Cf-Requestid: f2df2f49-d14f-4314-6074-d14d224d7a1a
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: e81fe218-5b23-4eba-7f8d-7372c48e7342::c6e72b06-fa74-42cb-b769-fb5d0ec3ab8c

{
  "metadata": {
    "guid": "123a0840-13d1-4883-8e88-edb5533f1dcc",
    "created_at": "2014-10-22T17:06:17+00:00",
    "url": "/v2/jobs/123a0840-13d1-4883-8e88-edb5533f1dcc"
  },
  "entity": {
    "guid": "123a0840-13d1-4883-8e88-edb5533f1dcc",
    "status": "queued"
  }
}

REQUEST: [2014-10-22T13:04:37-04:00]
GET /v2/jobs/123a0840-13d1-4883-8e88-edb5533f1dcc HTTP/1.1

Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.0-704d304 / linux



RESPONSE: [2014-10-22T13:04:38-04:00]

HTTP/1.1 200 OK
Connection: close
Content-Length: 275
Content-Type: application/json;charset=utf-8
Date: Wed, 22 Oct 2014 17:06:18 GMT
Server: nginx
X-Cf-Requestid: 67891928-26b8-4ef7-63c2-06661e981126
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: 320ef550-6491-4bcf-40a4-89e0dfe95835::4d8edd7a-09cf-4eb4-8cf0-bba3d85dcbaf

{
  "metadata": {
    "guid": "123a0840-13d1-4883-8e88-edb5533f1dcc",
    "created_at": "2014-10-22T17:06:17+00:00",
    "url": "/v2/jobs/123a0840-13d1-4883-8e88-edb5533f1dcc"
  },
  "entity": {
    "guid": "123a0840-13d1-4883-8e88-edb5533f1dcc",
    "status": "queued"
  }
}

REQUEST: [2014-10-22T13:04:43-04:00]
GET /v2/jobs/123a0840-13d1-4883-8e88-edb5533f1dcc HTTP/1.1

Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.0-704d304 / linux



RESPONSE: [2014-10-22T13:04:43-04:00]

HTTP/1.1 200 OK
Connection: close
Content-Length: 172
Content-Type: application/json;charset=utf-8
Date: Wed, 22 Oct 2014 17:06:23 GMT
Server: nginx
X-Cf-Requestid: c5656dc2-e7df-40e7-7aab-809675fc6691
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: 4aef8747-0f32-4615-6448-5c0deefb717d::a2b8021d-f941-4ea5-807b-e3307a4ef90f


{
  "metadata": {
    "guid": "0",
    "created_at": "1970-01-01T00:00:00+00:00",
    "url": "/v2/jobs/0"
  },
  "entity": {
    "guid": "0",
    "status": "finished"
  }
}
OK

Stopping app my-app in org IOT / space dev as iot...

REQUEST: [2014-10-22T13:04:43-04:00]
PUT /v2/apps/fd1eca0c-9720-48d6-9d3c-e729834da315?async=true&inline-relations-depth=1 HTTP/1.1

Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.0-704d304 / linux

{"state":"STOPPED"}

RESPONSE: [2014-10-22T13:04:43-04:00]

HTTP/1.1 201 Created
Connection: close
Content-Length: 3827
Content-Type: application/json;charset=utf-8
Date: Wed, 22 Oct 2014 17:06:23 GMT
Server: nginx
X-Cf-Requestid: b16390f9-32d2-4f0d-7bcc-74d7a92828cc
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: 1bc4cc3c-550d-4fb3-6142-9e83c4198d04::39f8a401-b142-4e5f-8a40-b51d3d50630a

{
  "metadata": {
    "guid": "fd1eca0c-9720-48d6-9d3c-e729834da315",
    "url": "/v2/apps/fd1eca0c-9720-48d6-9d3c-e729834da315",
    "created_at": "2014-10-22T17:04:13+00:00",
    "updated_at": "2014-10-22T17:06:23+00:00"

  },
  "entity": {
    "name": "my-app",
    "production": false,
    "space_guid": "75858613-5ad9-4d72-a685-47e74d1c4f8c",
    "stack_guid": "9ca0898e-d30c-41cb-a275-2d6e8a04aa3e",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": {
      "JBP_LOG_LEVEL": "debug"

    },
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "9f00144a-d458-48ce-abcc-1c3a4c04eb40",

    "command": null,
    "console": false,
    "debug": null,
    "staging_task_id": "7e6017dd08a94bee902f756a3b5c63ba",

    "package_state": "PENDING",
    "health_check_timeout": null,
    "staging_failed_reason": null,
    "docker_image": null,
    "package_updated_at": "2014-10-22T17:06:19+00:00",
    "events_url": "/v2/apps/fd1eca0c-9720-48d6-9d3c-e729834da315/events",
    "service_bindings_url": "/v2/apps/fd1eca0c-9720-48d6-9d3c-e729834da315/service_bindings",
    "service_bindings": [

    ],
    "routes_url": "/v2/apps/fd1eca0c-9720-48d6-9d3c-e729834da315/routes",
    "routes": [
      {
        "metadata": {
          "guid": "4bb2e5bf-fa49-4184-bda9-096270743ecb",
          "url": "/v2/routes/4bb2e5bf-fa49-4184-bda9-096270743ecb",
          "created_at": "2014-10-22T17:04:14+00:00",

          "updated_at": null
        },
        "entity": {
          "host": "my-app",
          "domain_guid": "5f7eb777-482d-4990-a30e-b0186364511c",
          "space_guid": "75858613-5ad9-4d72-a685-47e74d1c4f8c",
          "domain_url": "/v2/domains/5f7eb777-482d-4990-a30e-b0186364511c",
          "space_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c",
          "apps_url": "/v2/routes/4bb2e5bf-fa49-4184-bda9-096270743ecb/apps"
        }
      }
    ]
  }
}
OK


WEBSOCKET REQUEST: [2014-10-22T13:04:43-04:00]
GET /tail/?app=fd1eca0c-9720-48d6-9d3c-e729834da315 HTTP/1.1

Host: ws://loggregator.10.175.246.67.xip.io:80
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Version: 13
Sec-WebSocket-Key: [HIDDEN]
Origin: http://localhost
Authorization: [PRIVATE DATA HIDDEN]


WEBSOCKET RESPONSE: [2014-10-22T13:04:43-04:00]

HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-Websocket-Accept: gSlNNi51svK87EiMaXyvouhhys0=

Starting app my-app in org IOT / space dev as iot...

REQUEST: [2014-10-22T13:04:43-04:00]
PUT /v2/apps/fd1eca0c-9720-48d6-9d3c-e729834da315?async=true&inline-relations-depth=1 HTTP/1.1

Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.0-704d304 / linux

{"state":"STARTED"}

RESPONSE: [2014-10-22T13:04:44-04:00]

HTTP/1.1 201 Created
Connection: close
Content-Length: 3827
Content-Type: application/json;charset=utf-8
Date: Wed, 22 Oct 2014 17:06:25 GMT
Server: nginx
X-App-Staging-Log: http://e3aff9a59af14907923cc28a80b473ef.10.175.246.67.xip.io/staging_tasks/6863b969b280446c8ca8ff431356f3f9/file_path?hmac=d7fdbf1e709d6aa5a2cab06f09241c938ec9b75a91135bef3af6f3abd09e4c52a3d9c956637c995bea6496fa56cc334f5a26ca59aa9acb7157e94bcc43129d0a&path=%2Ftmp%2Fstaged%2Flogs%2Fstaging_task.log&timestamp=1413997584
X-Cf-Requestid: 04ef6295-9bda-4361-46e0-7c776c9a5f93
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: dcddbc39-439f-4a7d-6312-5d8181a98413::1951de3f-3bc1-4d85-a168-80ca9f171ee4

{
  "metadata": {
    "guid": "fd1eca0c-9720-48d6-9d3c-e729834da315",
    "url": "/v2/apps/fd1eca0c-9720-48d6-9d3c-e729834da315",
    "created_at": "2014-10-22T17:04:13+00:00",
    "updated_at": "2014-10-22T17:06:23+00:00"

  },
  "entity": {
    "name": "my-app",
    "production": false,
    "space_guid": "75858613-5ad9-4d72-a685-47e74d1c4f8c",
    "stack_guid": "9ca0898e-d30c-41cb-a275-2d6e8a04aa3e",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": {
      "JBP_LOG_LEVEL": "debug"

    },
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "8be03f8c-4316-480d-a2af-fe687d73900d",

    "command": null,
    "console": false,
    "debug": null,
    "staging_task_id": "6863b969b280446c8ca8ff431356f3f9",

    "package_state": "PENDING",
    "health_check_timeout": null,
    "staging_failed_reason": null,
    "docker_image": null,
    "package_updated_at": "2014-10-22T17:06:19+00:00",
    "events_url": "/v2/apps/fd1eca0c-9720-48d6-9d3c-e729834da315/events",
    "service_bindings_url": "/v2/apps/fd1eca0c-9720-48d6-9d3c-e729834da315/service_bindings",
    "service_bindings": [

    ],
    "routes_url": "/v2/apps/fd1eca0c-9720-48d6-9d3c-e729834da315/routes",
    "routes": [
      {
        "metadata": {
          "guid": "4bb2e5bf-fa49-4184-bda9-096270743ecb",
          "url": "/v2/routes/4bb2e5bf-fa49-4184-bda9-096270743ecb",
          "created_at": "2014-10-22T17:04:14+00:00",

          "updated_at": null
        },
        "entity": {
          "host": "my-app",
          "domain_guid": "5f7eb777-482d-4990-a30e-b0186364511c",
          "space_guid": "75858613-5ad9-4d72-a685-47e74d1c4f8c",
          "domain_url": "/v2/domains/5f7eb777-482d-4990-a30e-b0186364511c",
          "space_url": "/v2/spaces/75858613-5ad9-4d72-a685-47e74d1c4f8c",
          "apps_url": "/v2/routes/4bb2e5bf-fa49-4184-bda9-096270743ecb/apps"
        }
      }
    ]
  }
}
OK

REQUEST: [2014-10-22T13:04:44-04:00]
GET /v2/apps/fd1eca0c-9720-48d6-9d3c-e729834da315/instances HTTP/1.1

Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.0-704d304 / linux



RESPONSE: [2014-10-22T13:04:45-04:00]
HTTP/1.1 400 Bad Request
Connection: close

Content-Length: 89
Content-Type: application/json;charset=utf-8
Date: Wed, 22 Oct 2014 17:06:25 GMT
Server: nginx
X-Cf-Requestid: a105c052-909f-424e-5cb7-1940a2748e70
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: d95dddc7-8a84-4d46-7f10-ebbbc7a698f7::b3957647-53d1-4fe2-8683-c39955867edb


{"code":170002,"description":"App has not finished staging","error_code":"CF-NotStaged"}


REQUEST: [2014-10-22T13:04:50-04:00]
GET /v2/apps/fd1eca0c-9720-48d6-9d3c-e729834da315/instances HTTP/1.1

Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.0-704d304 / linux



RESPONSE: [2014-10-22T13:04:50-04:00]
HTTP/1.1 400 Bad Request
Connection: close

Content-Length: 89
Content-Type: application/json;charset=utf-8
Date: Wed, 22 Oct 2014 17:06:33 GMT
Server: nginx
X-Cf-Requestid: 5e85973b-fa64-4085-5368-dad136ea53e1
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: 422da502-54a0-4b93-55ce-531c0bbef041::c8a0dbbf-1b34-4455-bdea-60e5e2e26e9a


{"code":170002,"description":"App has not finished staging","error_code":"CF-NotStaged"}


REQUEST: [2014-10-22T13:04:55-04:00]
GET /v2/apps/fd1eca0c-9720-48d6-9d3c-e729834da315/instances HTTP/1.1

Host: api.10.175.246.67.xip.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.0-704d304 / linux



RESPONSE: [2014-10-22T13:04:55-04:00]
HTTP/1.1 400 Bad Request

Connection: close
Content-Length: 133
Content-Type: application/json;charset=utf-8
Date: Wed, 22 Oct 2014 17:06:41 GMT
Server: nginx
X-Cf-Requestid: c5f46342-fab2-4d66-788f-21c51c1c939c
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: 4099c9d8-84c2-4959-7917-80cfde0151bb::ef89f00c-90ee-4468-b15f-ebcde9ad4b55

{"code":170003,"description":"An app was not successfully detected by any available buildpack","error_code":"CF-NoAppDetectedError"}



FAILED
Server error, status code: 400, error code: 170003, message: An app was not successfully detected by any available buildpack

TIP: use 'cf logs my-app --recent' for more information
FAILED
Server error, status code: 400, error code: 170003, message: An app was not successfully detected by any available buildpack

TIP: use 'cf logs my-app --recent' for more information
--
Ramin

sparam...@pivotal.io

unread,
Oct 22, 2014, 1:30:20 PM10/22/14
to vcap...@cloudfoundry.org, sab...@pivotal.io, bh...@pivotal.io, dou...@gmail.com
Seems the staging request never hits the (atleast the java) buildpack and fails ahead. Possible something is broken between the Cloud Controller and DEA instances.

If you have only a few instances of DEA (under 3), you can try to do a tail on /var/vcap/sys/log/dea_next/dea_next*log as well as tail on the cloud controller log using bosh ssh to login into each of the VMs.

bosh ssh api_z1 0 -> will take you to the cloud controller. Tail on the cloud controller logs (/var/vcap/sys/log/cloud_controller_ng/cloud_controller*log as well as /var/vcap/sys/log/cloud_controller*.log)
bosh ssh runner_z1 0  (use 0..N for N instances) -> will take you to the DEA InstanceN. Tail on the DEA logs (/var/vcap/sys/log/dea_next/dea*log)

Before starting the app push, try to check the status of the various job instances using monit summary or monit status (need to run as root) on the DEA & CC instances.

Check for 'Error' while tailing to see if there are any errors in communication or downloads/uploads etc between the DEA and CC.

Capture the logs from both DEA and CC and share the link.

-Sabha
...

sparam...@pivotal.io

unread,
Oct 22, 2014, 1:44:58 PM10/22/14
to vcap...@cloudfoundry.org, sab...@pivotal.io, bh...@pivotal.io, dou...@gmail.com, sparam...@pivotal.io
One thing that could have blocked the app deployment might be the app security groups. 
Try to add the default staging security groups (public_networks and dns) to your space.

Command to test security group related to a space : cf space SPACE_NAME

Example output:
Getting info for space sabha in org sabha as admin...
OK

sabha:

   Org:               sabha
   Apps:              wls-test, test-xyz
   Domains:           10.244.0.34.xip.io
   Services:
   Security Groups:   public_networks, dns
hammerkop:tools sparameswaran$



-Sabha

Ramin Ali Dousti

unread,
Oct 22, 2014, 3:09:52 PM10/22/14
to sparameswaran, vcap...@cloudfoundry.org, Sabha Parameswaran, Ben Hale
Sobha, thank you. You nailed it. It was related to the security group or rather the lack thereof. BTW, I was following the OpenStack installation and I don't believe I missed any instruction about the security-group setup (but I might have).

Once again, thank you for the help. 
--
Ramin

wang...@163.com

unread,
Oct 22, 2014, 9:01:23 PM10/22/14
to vcap...@cloudfoundry.org, sparam...@pivotal.io, sab...@pivotal.io, bh...@pivotal.io, dou...@gmail.com
hi, i relsolved this problem by upload another java buildpack. the default java buildpack i install isn't offline. i complied an offline  java buildpack,an upload it , then i push app succeed. 
Reply all
Reply to author
Forward
0 new messages