Closed samnang closed 10 years ago
Try pushing the app without manifest.
Still having a problem for pushing without using manifest file:
$ cf push
Name> styx
Instances> 1
1: 128M
2: 256M
3: 512M
4: 1G
Memory Limit> 3
Creating styx... OK
1: styx
2: none
Subdomain> none
1: aws.eplexity.com
2: none
Domain> none
Create services for application?> n
Save configuration?> n
Uploading styx... FAILED
Upload failed. Try again with 'cf push'.
CFoundry::ServerError: 10001: Server error
cat ~/.cf/crash # for more details
styx/ (master *%=) 2.0.0-p247
$ cat ~/.cf/crash
Time of crash:
2013-09-02 18:13:34 +0700
CFoundry::ServerError: 10001: Server error
<<<
REQUEST: PUT https://api.aws.eplexity.com/v2/apps/db45edb8-c313-4cac-b23a-ae29f744cac9/bits
REQUEST_HEADERS:
Authorization : [PRIVATE DATA HIDDEN]
REQUEST_BODY: {:resources=>"[{\"size\":97339,\"sha1\":\"cde1a9a9098238450afb8fccfce94c22fa2743e3\",\"fn\":\"src/main/webapp/web-resources/css/bootstrap.min.css\"},{\"size\":573664,\"sha1\":\"05cee280ef24e06bab409abff694750de0ed6b95\",\"fn\":\"src/main/webapp/web-resources/js/angular.js\"},{\"size\":91325,\"sha1\":\"9fd8c093eb8d3e5ad839687f2a3db7ac92344bac\",\"fn\":\"src/main/webapp/web-resources/js/chucknorris.json\"},{\"size\":242142,\"sha1\":\"ad73590c92b4c3f08d02a0751ba4e4aef658daa0\",\"fn\":\"src/main/webapp/web-resources/js/jquery-2.0.3.js\"},{\"size\":232771,\"sha1\":\"b7f0fc8f61ecadeb3695f0b9464755eee44374d4\",\"fn\":\"target/styx-0.0.1-SNAPSHOT/WEB-INF/lib/commons-codec-1.6.jar\"},{\"size\":284220,\"sha1\":\"0ce1edb914c94ebc388f086c6827e8bdeec71ac2\",\"fn\":\"target/styx-0.0.1-SNAPSHOT/WEB-INF/lib/commons-lang-2.6.jar\"},{\"size\":2189111,\"sha1\":\"67b7be4ee7ba48e4828a42d6d5069761186d4a53\",\"fn\":\"target/styx-0.0.1-SNAPSHOT/WEB-INF/lib/guava-14.0.jar\"},{\"size\":432413,\"sha1\":\"30a6fa2fe88cbfbce6f77b13fc2f82f92d1746b4\",\"fn\":\"target/styx-0.0.1-SNAPSHOT/WEB-INF/lib/httpclient-4.2.4.jar\"},{\"size\":227275,\"sha1\":\"3b7f38df6de5dd8b500e602ae8c2dd5ee446f883\",\"fn\":\"target/styx-0.0.1-SNAPSHOT/WEB-INF/lib/httpcore-4.2.4.jar\"},{\"size\":289773,\"sha1\":\"78afeee7048b6f541f0b2290a926b2af5768410f\",\"fn\":\"target/styx-0.0.1-SNAPSHOT/WEB-INF/lib/httpcore-nio-4.2.4.jar\"},{\"size\":191738,\"sha1\":\"d20be6a5ddd6f8cfd36ebf6dea329873a1c41f1b\",\"fn\":\"target/styx-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-core-2.2.2.jar\"},{\"size\":866104,\"sha1\":\"3c8f6018eaa72d43b261181e801e6f8676c16ef6\",\"fn\":\"target/styx-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-databind-2.2.2.jar\"},{\"size\":255445,\"sha1\":\"b0c8c7e444528ca41a95cfa53a15602a19fb8528\",\"fn\":\"target/styx-0.0.1-SNAPSHOT/WEB-INF/lib/logback-classic-1.0.10.jar\"},{\"size\":366854,\"sha1\":\"842a711f90ad216ea46669a45a34cce09d2d90b1\",\"fn\":\"target/styx-0.0.1-SNAPSHOT/WEB-INF/lib/logback-core-1.0.10.jar\"},{\"size\":1500011,\"sha1\":\"c3264abeea62c4d2f367e21484fbb40c7e256393\",\"fn\":\"target/styx-0.0.1-SNAPSHOT/WEB-INF/lib/mockito-core-1.9.5.jar\"},{\"size\":746615,\"sha1\":\"009cc5466491b0885952705382f2842d2325e2be\",\"fn\":\"target/styx-0.0.1-SNAPSHOT/WEB-INF/lib/mvel2-2.1.6.Final.jar\"},{\"size\":335362,\"sha1\":\"543a5442a0344af3885d4b3e457cfcab4183cec9\",\"fn\":\"target/styx-0.0.1-SNAPSHOT/WEB-INF/lib/spring-aop-3.2.2.RELEASE.jar\"},{\"size\":607448,\"sha1\":\"bbe3f76d14e9471e339bd8afec07b6fc5c916cd4\",\"fn\":\"target/styx-0.0.1-SNAPSHOT/WEB-INF/lib/spring-beans-3.2.2.RELEASE.jar\"},{\"size\":861905,\"sha1\":\"a5bdbcd5fa58680b6fe1f0143f370003747584db\",\"fn\":\"target/styx-0.0.1-SNAPSHOT/WEB-INF/lib/spring-context-3.2.2.RELEASE.jar\"},{\"size\":866788,\"sha1\":\"302bd922c30a4d4bfb15b76a5939117b425eb480\",\"fn\":\"target/styx-0.0.1-SNAPSHOT/WEB-INF/lib/spring-core-3.2.2.RELEASE.jar\"},{\"size\":195456,\"sha1\":\"565213c52cbbcd57a64ce9e4f18823c964cb2481\",\"fn\":\"target/styx-0.0.1-SNAPSHOT/WEB-INF/lib/spring-expression-3.2.2.RELEASE.jar\"},{\"size\":626187,\"sha1\":\"ebde82aa745966f34a8ae1273e363f0a2366eb33\",\"fn\":\"target/styx-0.0.1-SNAPSHOT/WEB-INF/lib/spring-web-3.2.2.RELEASE.jar\"},{\"size\":636334,\"sha1\":\"dd962b49d731a69c4ca0c4ec67b71076742657cc\",\"fn\":\"target/styx-0.0.1-SNAPSHOT/WEB-INF/lib/spring-webmvc-3.2.2.RELEASE.jar\"},{\"size\":97339,\"sha1\":\"cde1a9a9098238450afb8fccfce94c22fa2743e3\",\"fn\":\"target/styx-0.0.1-SNAPSHOT/web-resources/css/bootstrap.min.css\"},{\"size\":573664,\"sha1\":\"05cee280ef24e06bab409abff694750de0ed6b95\",\"fn\":\"target/styx-0.0.1-SNAPSHOT/web-resources/js/angular.js\"},{\"size\":91325,\"sha1\":\"9fd8c093eb8d3e5ad839687f2a3db7ac92344bac\",\"fn\":\"target/styx-0.0.1-SNAPSHOT/web-resources/js/chucknorris.json\"},{\"size\":242142,\"sha1\":\"ad73590c92b4c3f08d02a0751ba4e4aef658daa0\",\"fn\":\"target/styx-0.0.1-SNAPSHOT/web-resources/js/jquery-2.0.3.js\"}]", :application=>#<UploadIO:0x007ff7d2c77b90 @content_type="application/zip", @original_filename="db45edb8-c313-4cac-b23a-ae29f744cac9.zip", @local_path="/var/folders/gg/w3pn8pz53bx468qqqttnv3tm0000gn/T/db45edb8-c313-4cac-b23a-ae29f744cac9.zip", @io=#<File:/var/folders/gg/w3pn8pz53bx468qqqttnv3tm0000gn/T/db45edb8-c313-4cac-b23a-ae29f744cac9.zip>, @opts={}>}
RESPONSE: [500]
RESPONSE_HEADERS:
connection : keep-alive
content-length : 44
content-type : application/json;charset=utf-8
date : Mon, 02 Sep 2013 11:13:34 GMT
server : nginx
x-content-type-options : nosniff
x-vcap-request-id : 2aa87516-e8a8-4344-8ae6-d11d3fec8aee
RESPONSE_BODY:
{
"code": 10001,
"description": "Server error"
}
>>>
cfoundry-4.3.6/lib/cfoundry/baseclient.rb:169:in `handle_error_response'
cfoundry-4.3.6/lib/cfoundry/baseclient.rb:148:in `handle_response'
cfoundry-4.3.6/lib/cfoundry/baseclient.rb:89:in `request'
cfoundry-4.3.6/lib/cfoundry/baseclient.rb:78:in `put'
cfoundry-4.3.6/lib/cfoundry/v2/base.rb:31:in `upload_app'
cfoundry-4.3.6/lib/cfoundry/upload_helpers.rb:48:in `upload'
cf-5.2.0/lib/cf/cli/app/push.rb:84:in `block in upload_app'
interact-0.5.2/lib/interact/progress.rb:98:in `with_progress'
cf-5.2.0/lib/cf/cli/app/push.rb:83:in `upload_app'
cf-5.2.0/lib/cf/cli/app/push.rb:67:in `setup_new_app'
cf-5.2.0/lib/cf/cli/app/push.rb:48:in `push'
mothership-0.5.1/lib/mothership/base.rb:66:in `run'
mothership-0.5.1/lib/mothership/command.rb:72:in `block in invoke'
cf-5.2.0/lib/manifests/plugin.rb:137:in `call'
cf-5.2.0/lib/manifests/plugin.rb:137:in `block in create_and_save_manifest'
mothership-0.5.1/lib/mothership/callbacks.rb:74:in `with_filters'
cf-5.2.0/lib/manifests/plugin.rb:135:in `create_and_save_manifest'
cf-5.2.0/lib/manifests/plugin.rb:73:in `wrap_push'
cf-5.2.0/lib/manifests/plugin.rb:25:in `block in <class:ManifestsPlugin>'
mothership-0.5.1/lib/mothership/command.rb:82:in `instance_exec'
mothership-0.5.1/lib/mothership/command.rb:82:in `block (2 levels) in invoke'
mothership-0.5.1/lib/mothership/command.rb:86:in `instance_exec'
mothership-0.5.1/lib/mothership/command.rb:86:in `invoke'
mothership-0.5.1/lib/mothership/base.rb:55:in `execute'
cf-5.2.0/lib/cf/cli.rb:187:in `block (2 levels) in execute'
cf-5.2.0/lib/cf/cli.rb:198:in `save_token_if_it_changes'
cf-5.2.0/lib/cf/cli.rb:186:in `block in execute'
cf-5.2.0/lib/cf/cli.rb:122:in `wrap_errors'
cf-5.2.0/lib/cf/cli.rb:182:in `execute'
mothership-0.5.1/lib/mothership.rb:45:in `start'
cf-5.2.0/bin/cf:16:in `<top (required)>'
/Users/samnang/.rbenv/versions/2.0.0-p247/bin/cf:23:in `load'
/Users/samnang/.rbenv/versions/2.0.0-p247/bin/cf:23:in `<main>'
The error above doesn't give us much information to determine what is going wrong. Can you give us some more information on what you have done? Did you for example perform mvn clean package?
I did all of those steps on read me:
$ cat src/main/resources/styx.properties
base.api.url=http://api.aws.mydomain.com
base.uaa.url=http://uaa.aws.mydomain.com
clientId=cf
clientSecret=
$ ls target/
classes generated-test-sources styx-0.0.1-SNAPSHOT surefire-reports tomcat
generated-sources maven-archiver styx-0.0.1-SNAPSHOT.war test-classes
That all looks ok. Have you tried looking in the logs of the Cloud Controller? Maybe there you can find the reason why the app cannot be uploaded.
Please also post the output of 'cf push styx -t'
@ravanrijn Yes, that's what I concern as well because based on deployment workflow diagram. I thought it crushed either on step 4 or 5 because when I run cf files
I see nothing there. How do I check log of Cloud Controller? It was setup via bosh.
@soudmaijer here is the trace log: https://gist.github.com/samnang/0c504e3e4f413f076e6e
Did you setup a syslog aggregator in CF?
Otherwise, login to your controller node (via inception vm): bosh ssh controller (=job name)
Check out the logs in: /var/vcap/data/sys/log
Btw, do you have any Java apps running on your CF setup?
@samnang here is a blog post how you get in to your cloudonctroller https://github.com/drnic/bosh-getting-started/blob/master/troubleshooting/ssh.md
I have probably same problem on own Openstack. I have freshly deployed Cloud Foundry and I am not able to deploy first app.
I tried:
git clone https://github.com/cloudfoundry-samples/fib-cpu.git
cd fib-cpu/
cf push -t
Here is output of "cf push -t": http://pastebin.com/raw.php?i=562E7mrR Here is log from a cloud controller (tail -n0 -f /var/vcap/data/sys/log//): http://pastebin.com/raw.php?i=a8xqQFXZ
Thanks for help
I solved my problem following:
bosh ssh cloud_controller/0
sudo su -
chmod 777 /var/vcap/
then I runned "cf push", what created one more folder and then:
chmod 777 /var/vcap/nfs/
That's it.
Interesting log on cloud_controller: /var/vcap/data/sys/log/cloud_controller_ng/cloud_controller_ng.log
NOTE: I did some trial-and-error with permission and cloud_controller stop working, so I had to reboot it.
I get error every time I push application to my cloud foundry:
Here is crash log: https://gist.github.com/samnang/8b884581a10598be79ae
But I can push ruby app to my cloud foundry just fine.