Created
June 5, 2013 13:14
-
-
Save joefitzgerald/5713753 to your computer and use it in GitHub Desktop.
Sinatra Deploy Failure
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
vagrant@precise64:/vagrant$ cd /vagrant/sinatra-test-app/ | |
vagrant@precise64:/vagrant/sinatra-test-app$ ls | |
app.rb config.ru Gemfile Gemfile.lock | |
vagrant@precise64:/vagrant/sinatra-test-app$ cf push | |
Name> | |
Name> sinatra | |
Instances> 1 | |
Custom startup command> none | |
1: 64M | |
2: 128M | |
3: 256M | |
4: 512M | |
5: 1G | |
6: 2G | |
7: 4G | |
8: 8G | |
9: 16G | |
10: 32G | |
Memory Limit> 256M | |
Creating sinatra... OK | |
1: sinatra | |
2: none | |
Subdomain> sinatra | |
1: vcap.me | |
2: none | |
Domain> vcap.me | |
Creating route sinatra.vcap.me... OK | |
Binding sinatra.vcap.me to sinatra... OK | |
Create services for application?> n | |
Save configuration?> n | |
Uploading sinatra... OK | |
Starting sinatra... FAILED | |
CFoundry::StackNotFound: 250003: The stack could not be found: The requested app stack lucid64 is not available on this system. | |
For more information, see ~/.cf/crash | |
vagrant@precise64:/vagrant/sinatra-test-app$ less ~/.cf/crash | |
Time of crash: | |
2013-06-04 21:51:11 -0700 | |
CFoundry::StackNotFound: 250003: The stack could not be found: The requested app stack lucid64 is not available on this system. | |
<<< | |
REQUEST: PUT http://127.0.0.1:8181/v2/apps/c9edaa5f-7408-45bd-9d7c-72438e114c11?stage_async=true | |
REQUEST_HEADERS: | |
Authorization : bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiI0MDZmNmE5My03NGIwLTRhM2QtOTNlMy0wNjk0MGM4MTFiZTIiLCJzdWIiOiI3NTQxZjQwNi1mNWM4LTQ3NjgtYTIzMy1hNGI3MzVjZjMxNmYiLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIiwiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSIsIm9wZW5pZCIsInBhc3N3b3JkLndyaXRlIiwic2NpbS5yZWFkIiwic2NpbS51c2VyaWRzIiwic2NpbS53cml0ZSJdLCJjbGllbnRfaWQiOiJjZiIsImNpZCI6ImNmIiwiZ3JhbnRfdHlwZSI6InBhc3N3b3JkIiwidXNlcl9pZCI6Ijc1NDFmNDA2LWY1YzgtNDc2OC1hMjMzLWE0YjczNWNmMzE2ZiIsInVzZXJfbmFtZSI6ImFkbWluIiwiZW1haWwiOiJhZG1pbiIsImlhdCI6MTM3MDQwNjY1MCwiZXhwIjoxMzcwNDQ5ODUwLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjgwODAvdWFhL29hdXRoL3Rva2VuIiwiYXVkIjpbInNjaW0iLCJvcGVuaWQiLCJjbG91ZF9jb250cm9sbGVyIiwicGFzc3dvcmQiXX0.EO54hc2EoYWbPeTbzIIAzU35U4jNgIbD7RmRfMsm4DI | |
Content-Length : 34 | |
Content-Type : application/json | |
REQUEST_BODY: {"console":true,"state":"STARTED"} | |
RESPONSE: [404] | |
RESPONSE_HEADERS: | |
connection : keep-alive | |
content-length : 127 | |
content-type : application/json;charset=utf-8 | |
server : thin 1.5.1 codename Straight Razor | |
x-frame-options : sameorigin | |
x-vcap-request-id : c2cf7125-15ff-44ce-afb2-9bf99fe90899 | |
x-xss-protection : 1; mode=block | |
RESPONSE_BODY: | |
{ | |
"code": 250003, | |
"description": "The stack could not be found: The requested app stack lucid64 is not available on this system." | |
} | |
>>> | |
cfoundry-1.5.3/lib/cfoundry/baseclient.rb:160:in `handle_error_response' | |
cfoundry-1.5.3/lib/cfoundry/baseclient.rb:139:in `handle_response' | |
cfoundry-1.5.3/lib/cfoundry/baseclient.rb:87:in `request' | |
cfoundry-1.5.3/lib/cfoundry/baseclient.rb:76:in `put' | |
cfoundry-1.5.3/lib/cfoundry/v2/base.rb:65:in `update_app' | |
cfoundry-1.5.3/lib/cfoundry/v2/app.rb:145:in `update!' | |
cfoundry-1.5.3/lib/cfoundry/v2/app.rb:135:in `start!' | |
cf-1.1.4/lib/cf/cli/app/start.rb:43:in `block in start_app' | |
interact-0.5.2/lib/interact/progress.rb:98:in `with_progress' | |
cf-1.1.4/lib/cf/cli/app/start.rb:42:in `start_app' | |
cf-1.1.4/lib/cf/cli/app/start.rb:27:in `block in start' | |
cf-1.1.4/lib/cf/spacing.rb:40:in `block in spaced' | |
cf-1.1.4/lib/cf/spacing.rb:38:in `each' | |
cf-1.1.4/lib/cf/spacing.rb:38:in `spaced' | |
cf-1.1.4/lib/cf/cli/app/start.rb:17:in `start' | |
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-1.1.4/lib/manifests/plugin.rb:38:in `call' | |
cf-1.1.4/lib/manifests/plugin.rb:38:in `wrap_with_optional_name' | |
cf-1.1.4/lib/manifests/plugin.rb:18:in `block (2 levels) 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:73:in `invoke' |
Just pushed the app in a Virtual Box managed VM and it worked
vagrant@precise64:/vagrant/sinatra-test-app$ cf push
Name> app
Instances> 1
Custom startup command> none
1: 64M
2: 128M
3: 256M
4: 512M
5: 1G
6: 2G
7: 4G
8: 8G
9: 16G
10: 32G
Memory Limit> 1
Creating app... OK
1: app
2: none
Subdomain> app
1: vcap.me
2: none
Domain> vcap.me
Creating route app.vcap.me... OK
Binding app.vcap.me to app... OK
Create services for application?> n
Save configuration?> n
Uploading app... OK
Starting app... OK
-----> Downloaded app package (4.0K)
Installing ruby.
-----> Using Ruby version: ruby-1.9.2
-----> 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.1)
Installing rack-protection (1.3.2)
Installing tilt (1.3.3)
Installing sinatra (1.3.4)
Using bundler (1.3.2)
Your bundle is complete! It was installed into ./vendor/bundle
Cleaning up the bundler cache.
-----> Uploading staged droplet (21M)
-----> Uploaded droplet
Checking app...
Staging in progress...
1/1 instances: 1 running
OK
vagrant@precise64:/vagrant/sinatra-test-app$ curl -s app.vcap.me
Hello!vagrant@precise64:/vagrant/sinatra-test-app$
I haven't configured fusion to work as a VM provisioner, I'll test it now
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From the dea log:
Check if dea is running
You can kill these processes
And check again.
Given that you had previous error running rake cf:bootstrap probably there were some configurations not completed, con can try running it again.
Let me know how it goes..