java app push failed in Nisebosh CF 170

59 views
Skip to first unread message

lvyun

unread,
May 21, 2014, 12:10:25 AM5/21/14
to vcap...@cloudfoundry.org
I pushed a java app successfully in cf 166, but it failed in cf 170
what is the change?

root@:~/apps/java# cf push java-test -p do_test.war



[Buildpack]                      ERROR Detect failed with exception #<RuntimeError: Tomcat Instance error: Read-only file system - /var/vcap/data/dea_next/admin_buildpacks/648bde48-9826-4109-9e21-067da96100a9_0eac241dcc6b8def5066447ae62411bfa70572e0/resources/cache>
Tomcat Instance error: Read-only file system - /var/vcap/data/dea_next/admin_buildpacks/648bde48-9826-4109-9e21-067da96100a9_0eac241dcc6b8def5066447ae62411bfa70572e0/resources/cache
/var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:101:in `build_pack': Unable to detect a supported application type (RuntimeError)

Iwasaki Yudai

unread,
May 21, 2014, 12:32:38 AM5/21/14
to vcap...@cloudfoundry.org
Hi,

It seems like a file system related error. Could you push the ruby test app included in cf_nise_installer?

lvyun

unread,
May 21, 2014, 1:41:46 AM5/21/14
to vcap...@cloudfoundry.org
I pushed the sinatra app successfully.

What could I be doing wrong with the java app?

Using manifest file /root/apps/ruby-sinatra-app/manifest.yml

Creating app sinatra in org org-lvyun / space dev as admin...
OK

Creating route sinatra.5.5.6.5.xip.io...
OK

Binding sinatra.5.5.6.5.xip.io to sinatra...
OK

Uploading sinatra...
Uploading from: /root/apps/ruby-sinatra-app
264.4K, 11 files
OK

Starting app sinatra in org org-lvyun / space dev as admin...
OK
-----> Downloaded app package (264K)
-----> Using Ruby version: ruby-1.9.3
-----> Installing dependencies using Bundler version 1.3.2
       Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
       Fetching gem metadata from http://rubygems.org/..........
       Fetching gem metadata from http://rubygems.org/..
       Installing rack (1.5.2)
       Installing rack-protection (1.3.2)
       Installing tilt (1.3.3)
       Installing sinatra (1.3.4)
       Using bundler (1.3.2)
       Cannot write a changed lockfile while frozen.
       Your bundle is complete! It was installed into ./vendor/bundle
       Cleaning up the bundler cache.
-----> WARNINGS:
       You have not declared a Ruby version in your Gemfile.
       To set your Ruby version add this line to your Gemfile:"
       ruby '1.9.3'"
       # See https://devcenter.heroku.com/articles/ruby-versions for more information."
-----> Uploading droplet (23M)

0 of 1 instances running, 1 starting
1 of 1 instances running

App started

Showing health and status for app sinatra in org org-lvyun / space dev as admin...
OK

requested state: started
instances: 1/1
usage: 1G x 1 instances

     state     since                    cpu    memory        disk          
#0   running   2014-05-21 01:15:37 PM   0.0%   70.6M of 1G   52.5M of 1G 


在 2014年5月21日星期三UTC+8下午12时32分38秒,Iwasaki Yudai写道:

Iwasaki Yudai

unread,
May 21, 2014, 4:06:16 AM5/21/14
to vcap...@cloudfoundry.org
Then the problem you got was caused by the java buildpack or your code.

Could you try to push a simpler java app?
Reply all
Reply to author
Forward
0 new messages