Created
May 5, 2014 13:54
-
-
Save michaljemala/3c511d57b094964cf7d1 to your computer and use it in GitHub Desktop.
Pushing created offline java buildpack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cf buildpacks | |
Getting buildpacks... | |
buildpack position enabled locked filename | |
java_buildpack 1 true false buildpack_java_v2.1.zip | |
ruby_buildpack 2 true false buildpack_ruby_v46-245-g2fc4ad8.zip | |
nodejs_buildpack 3 true false buildpack_nodejs_v8-177-g2b0a5cf.zip | |
$ cd ~/Temp/spring-music/ | |
$ cf push | |
Using manifest file /Users/misiak/Temp/spring-music/manifest.yml | |
Creating app spring-music in org org / space dev as admin... | |
OK | |
Creating route spring-music-uncomplaisant-zamindar.10.244.0.34.xip.io... | |
OK | |
Binding spring-music-uncomplaisant-zamindar.10.244.0.34.xip.io to spring-music... | |
OK | |
Uploading spring-music... | |
Uploading app files from: /Users/misiak/Temp/spring-music/build/libs/spring-music.war | |
Uploading 23M, 131 files | |
OK | |
Starting app spring-music in org org / space dev as admin... | |
OK | |
-----> Downloaded app package (21M) | |
FAILED | |
Server error, status code: 400, error code: 170001, message: Staging error: cannot get instances since staging failed | |
TIP: use 'cf logs spring-music --recent' for more information | |
$ cf logs spring-music --recent | |
Connected, dumping recent logs for app spring-music in org org / space dev as admin... | |
2014-05-05T13:36:00.46+0100 [API] OUT Created app with guid e447334c-14ba-4b0b-b216-b4456476a8a1 | |
2014-05-05T13:36:00.55+0100 [API] OUT Updated app with guid e447334c-14ba-4b0b-b216-b4456476a8a1 ({"route"=>"f3755ee9-cac0-4c31-b21f-1fc48dadd05c"}) | |
2014-05-05T13:36:13.64+0100 [DEA] OUT Got staging request for app with id e447334c-14ba-4b0b-b216-b4456476a8a1 | |
2014-05-05T13:36:14.28+0100 [API] OUT Updated app with guid e447334c-14ba-4b0b-b216-b4456476a8a1 ({"state"=>"STARTED"}) | |
2014-05-05T13:36:14.51+0100 [STG] OUT -----> Downloaded app package (21M) | |
2014-05-05T13:36:24.73+0100 [STG] ERR [DownloadCache] WARN Unable to download http://download.run.pivotal.io/auto-reconfiguration/index.yml into cache /tmp: execution expired | |
2014-05-05T13:36:24.74+0100 [STG] ERR [Buildpack] ERROR Detect failed with exception #<RuntimeError: Spring Auto Reconfiguration error: Read-only file system - /var/vcap/data/dea_next/admin_buildpacks/0589f80a-c76a-4439-93bf-72acb3d7323d_8f015d300874340955ef5537611cd73d714df008/resources/cache> | |
2014-05-05T13:36:24.74+0100 [STG] ERR Spring Auto Reconfiguration error: Read-only file system - /var/vcap/data/dea_next/admin_buildpacks/0589f80a-c76a-4439-93bf-72acb3d7323d_8f015d300874340955ef5537611cd73d714df008/resources/cache | |
2014-05-05T13:36:24.80+0100 [STG] ERR /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:101:in `build_pack': Unable to detect a supported application type (RuntimeError) | |
2014-05-05T13:36:24.80+0100 [STG] ERR from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:74:in `block in compile_with_timeout' | |
2014-05-05T13:36:24.80+0100 [STG] ERR from /usr/lib/ruby/1.9.1/timeout.rb:68:in `timeout' | |
2014-05-05T13:36:24.80+0100 [STG] ERR from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:73:in `compile_with_timeout' | |
2014-05-05T13:36:24.80+0100 [STG] ERR from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:54:in `block in stage_application' | |
2014-05-05T13:36:24.80+0100 [STG] ERR from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:50:in `chdir' | |
2014-05-05T13:36:24.80+0100 [STG] ERR from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:50:in `stage_application' | |
2014-05-05T13:36:24.80+0100 [STG] ERR from /var/vcap/packages/dea_next/buildpacks/bin/run:10:in `<main>' | |
2014-05-05T13:36:24.88+0100 [API] ERR Encountered error: Staging error: failed to stage application: | |
2014-05-05T13:36:24.88+0100 [API] ERR Script exited with status 1 | |
$ cd ~/Temp/java-buildpack | |
$ cf create-buildpack java_buildpack-a95ef91 build/java-buildpack-offline-a95ef91.zip 1 --enable | |
Creating buildpack java_buildpack-a95ef91... | |
OK | |
Uploading buildpack java_buildpack-a95ef91... | |
OK | |
$ cf buildpacks | |
Getting buildpacks... | |
buildpack position enabled locked filename | |
java_buildpack 2 true false buildpack_java_v2.1.zip | |
ruby_buildpack 3 true false buildpack_ruby_v46-245-g2fc4ad8.zip | |
nodejs_buildpack 4 true false buildpack_nodejs_v8-177-g2b0a5cf.zip | |
java_buildpack-a95ef91 1 true false java-buildpack-offline-a95ef91.zip | |
$ cd ~/Temp/spring-music/ | |
$ cf push | |
Using manifest file /Users/misiak/Temp/spring-music/manifest.yml | |
Updating app spring-music in org org / space dev as admin... | |
OK | |
Uploading spring-music... | |
Uploading app files from: /Users/misiak/Temp/spring-music/build/libs/spring-music.war | |
Uploading 572.6K, 91 files | |
OK | |
Stopping app spring-music in org org / space dev as admin... | |
OK | |
Starting app spring-music in org org / space dev as admin... | |
OK | |
-----> Downloaded app package (21M) | |
-----> Java Buildpack Version: a95ef91 (offline) | https://github.com/cloudfoundry/java-buildpack.git#a95ef91 | |
-----> Downloading Open Jdk JRE 1.7.0_55 from http://download.run.pivotal.io/openjdk/lucid/x86_64/openjdk-1.7.0_55.tar.gz (found in cache) | |
Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (0.7s) | |
-----> Downloading Spring Auto Reconfiguration 0.8.9 from http://download.run.pivotal.io/auto-reconfiguration/auto-reconfiguration-0.8.9.jar (found in cache) | |
-----> Downloading Tomcat Instance 7.0.53 from http://download.run.pivotal.io/tomcat/tomcat-7.0.53.tar.gz (found in cache) | |
Expanding Tomcat to .java-buildpack/tomcat (0.1s) | |
-----> Downloading Tomcat Lifecycle Support 2.1.0_RELEASE from http://download.run.pivotal.io/tomcat-lifecycle-support/tomcat-lifecycle-support-2.1.0_RELEASE.jar (found in cache) | |
-----> Downloading Tomcat Logging Support 2.1.0_RELEASE from http://download.run.pivotal.io/tomcat-logging-support/tomcat-logging-support-2.1.0_RELEASE.jar (found in cache) | |
0 of 1 instances running, 1 starting | |
0 of 1 instances running, 1 starting | |
0 of 1 instances running, 1 starting | |
0 of 1 instances running, 1 starting | |
0 of 1 instances running, 1 starting | |
0 of 1 instances running, 1 starting | |
1 of 1 instances running | |
App started | |
Showing health and status for app spring-music in org org / space dev as admin... | |
OK | |
requested state: started | |
instances: 1/1 | |
usage: 512M x 1 instances | |
urls: spring-music-uncomplaisant-zamindar.10.244.0.34.xip.io | |
state since cpu memory disk | |
#0 running 2014-05-05 01:38:22 PM 0.0% 420.7M of 512M 0 of 1G | |
$ curl -I http://spring-music-uncomplaisant-zamindar.10.244.0.34.xip.io | |
HTTP/1.1 200 OK | |
Accept-Ranges: bytes | |
Content-Language: en-US | |
Content-Length: 2090 | |
Content-Type: text/html;charset=ISO-8859-1 | |
Date: Mon, 05 May 2014 12:39:58 GMT | |
Etag: W/"2090-1399293468000" | |
Last-Modified: Mon, 05 May 2014 12:37:48 GMT | |
Server: Apache-Coyote/1.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I experienced this issue with the online java buildpack today. Thanks for the googleable public gist. Switched to installing offline java buildpack via bosh and all is good in the world.