Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sinatra Deploy Failure
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'
@mgarciap

This comment has been minimized.

Copy link

@mgarciap mgarciap commented Jun 5, 2013

@joefitzgerald it happened to me once. I thinks CF restarting made the trick. I don't remember exactly why because lucid64 is listed as available staging stack: https://github.com/Altoros/cf-vagrant-installer/blob/master/custom_config_files/dea_ng/dea.yml#L56

Let me know ...

@joefitzgerald

This comment has been minimized.

Copy link
Owner Author

@joefitzgerald joefitzgerald commented Jun 5, 2013

That didn't fix things for me. I restarted the machine, and it was stuck in an endless loop trying to stage the app. On deleting the app and re-pushing, I got the same error.

Warden messages:

{"timestamp":1370440299.629853,"message":"Exited with status 2 (21.172s): [[\"/mnt/hgfs/!%vagrant/warden/warden/src/closefds/closefds\", \"/mnt/hgfs/!%vagrant/warden/warden/src/closefds/closefds\"], \"/mnt/hgfs/!%vagrant/warden/warden/root/linux/setup.sh\"]","log_level":"warn","source":"Warden::Container::Linux","data":{"stdout":"","stderr":"quotaon: using //aquota.group on /dev/disk/by-uuid/fa9a6a3c-a3fb-407c-8952-d4a5d642af84 [/]: No such process\nquotaon: Quota format not supported in kernel.\nquotaon: using //aquota.user on /dev/disk/by-uuid/fa9a6a3c-a3fb-407c-8952-d4a5d642af84 [/]: No such process\nquotaon: Quota format not supported in kernel.\n"},"thread_id":19384320,"fiber_id":27918860,"process_id":45493,"file":"/mnt/hgfs/!%vagrant/warden/warden/lib/warden/container/spawn.rb","lineno":134,"method":"set_deferred_success"}
{"timestamp":1370440301.9900382,"message":"rlimit_nofile: 1024 => 32768","log_level":"debug2","source":"Warden::Server","data":{},"thread_id":5773300,"fiber_id":14308160,"process_id":46694,"file":"/mnt/hgfs/!%vagrant/warden/warden/lib/warden/server.rb","lineno":266,"method":"run!"}
{"timestamp":1370440301.9922276,"message":"Configuration","log_level":"info","source":"Warden::Server","data":{"server":{"unix_domain_path":"/tmp/warden.sock","unix_domain_permissions":511,"container_klass":"Warden::Container::Linux","container_grace_time":300,"job_output_limit":10485760,"quota":{"disk_quota_enabled":true},"container_depot_path":"/tmp/warden/containers","container_rootfs_path":"/var/warden/rootfs","container_rlimits":{"nofile":8192,"as":4294967296,"nproc":512}},"logging":{"level":"debug2","file":"/vagrant/logs/warden.log"},"network":{"pool_network":"10.254.0.0/22","deny_networks":[],"allow_networks":[]},"port":{"pool_start_port":61001,"pool_size":4000},"user":{"pool_start_uid":10000,"pool_size":256}},"thread_id":5773300,"fiber_id":14308160,"process_id":46694,"file":"/mnt/hgfs/!%vagrant/warden/warden/lib/warden/server.rb","lineno":269,"method":"run!"}

cf push error:

vagrant@precise64:/vagrant/sinatra-test-app$ cf apps
Getting applications in myspace... OK

No applications.
vagrant@precise64:/vagrant/sinatra-test-app$ cf push
Name> sinatra2

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 sinatra2... OK

1: sinatra2
2: none
Subdomain> sinatra2

1: vcap.me
2: none
Domain> vcap.me

Creating route sinatra2.vcap.me... OK
Binding sinatra2.vcap.me to sinatra2... OK

Create services for application?> n

Save configuration?> n

Uploading sinatra2... OK
Starting sinatra2... 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
@joefitzgerald

This comment has been minimized.

Copy link
Owner Author

@joefitzgerald joefitzgerald commented Jun 5, 2013

dea_ng.log seems to have these errors repeating indefinitely:

{"timestamp":1370440429.0818899,"message":"Cannot create pid file at /tmp/dea_ng.pid (Process already running (pid=12110).)","log_level":"error","source":"Dea::Bootstrap","data":{},"thread_id":16629760,"fiber_id":17740460,"process_id":53331,"file":"/mnt/hgfs/!%vagrant/dea_ng/lib/dea/bootstrap.rb","lineno":218,"method":"rescue in setup_pid_file"}
{"timestamp":1370440430.7466474,"message":"Cannot create pid file at /tmp/dea_ng.pid (Process already running (pid=12110).)","log_level":"error","source":"Dea::Bootstrap","data":{},"thread_id":4765680,"fiber_id":6399200,"process_id":53409,"file":"/mnt/hgfs/!%vagrant/dea_ng/lib/dea/bootstrap.rb","lineno":218,"method":"rescue in setup_pid_file"}
{"timestamp":1370440432.3209178,"message":"Cannot create pid file at /tmp/dea_ng.pid (Process already running (pid=12110).)","log_level":"error","source":"Dea::Bootstrap","data":{},"thread_id":19996660,"fiber_id":21112900,"process_id":53487,"file":"/mnt/hgfs/!%vagrant/dea_ng/lib/dea/bootstrap.rb","lineno":218,"method":"rescue in setup_pid_file"}
{"timestamp":1370440434.718272,"message":"Cannot create pid file at /tmp/dea_ng.pid (Process already running (pid=12110).)","log_level":"error","source":"Dea::Bootstrap","data":{},"thread_id":5947380,"fiber_id":7063460,"process_id":53603,"file":"/mnt/hgfs/!%vagrant/dea_ng/lib/dea/bootstrap.rb","lineno":218,"method":"rescue in setup_pid_file"}
{"timestamp":1370440436.6555889,"message":"Cannot create pid file at /tmp/dea_ng.pid (Process already running (pid=12110).)","log_level":"error","source":"Dea::Bootstrap","data":{},"thread_id":10186740,"fiber_id":11302520,"process_id":53829,"file":"/mnt/hgfs/!%vagrant/dea_ng/lib/dea/bootstrap.rb","lineno":218,"method":"rescue in setup_pid_file"}
{"timestamp":1370440438.6213849,"message":"Cannot create pid file at /tmp/dea_ng.pid (Process already running (pid=12110).)","log_level":"error","source":"Dea::Bootstrap","data":{},"thread_id":5623800,"fiber_id":7227600,"process_id":53908,"file":"/mnt/hgfs/!%vagrant/dea_ng/lib/dea/bootstrap.rb","lineno":218,"method":"rescue in setup_pid_file"}
{"timestamp":1370440438.9642258,"message":"Reaping orphaned crashes","log_level":"debug2","source":"Dea::InstanceRegistry","data":{},"thread_id":9242620,"fiber_id":10875960,"process_id":12110,"file":"/mnt/hgfs/!%vagrant/dea_ng/lib/dea/instance_registry.rb","lineno":87,"method":"reap_orphaned_crashes"}
{"timestamp":1370440438.9673936,"message":"Reaping crashes","log_level":"debug2","source":"Dea::InstanceRegistry","data":{},"thread_id":9242620,"fiber_id":10875960,"process_id":12110,"file":"/mnt/hgfs/!%vagrant/dea_ng/lib/dea/instance_registry.rb","lineno":106,"method":"reap_crashes"}
{"timestamp":1370440438.9733005,"message":"Reaping crashes under disk pressure","log_level":"debug2","source":"Dea::InstanceRegistry","data":{},"thread_id":9242620,"fiber_id":10875960,"process_id":12110,"file":"/mnt/hgfs/!%vagrant/dea_ng/lib/dea/instance_registry.rb","lineno":130,"method":"reap_crashes_under_disk_pressure"}
{"timestamp":1370440440.5778704,"message":"Cannot create pid file at /tmp/dea_ng.pid (Process already running (pid=12110).)","log_level":"error","source":"Dea::Bootstrap","data":{},"thread_id":13164540,"fiber_id":14798440,"process_id":53986,"file":"/mnt/hgfs/!%vagrant/dea_ng/lib/dea/bootstrap.rb","lineno":218,"method":"rescue in setup_pid_file"}
{"timestamp":1370440442.3319364,"message":"Cannot create pid file at /tmp/dea_ng.pid (Process already running (pid=12110).)","log_level":"error","source":"Dea::Bootstrap","data":{},"thread_id":17600500,"fiber_id":18716420,"process_id":54064,"file":"/mnt/hgfs/!%vagrant/dea_ng/lib/dea/bootstrap.rb","lineno":218,"method":"rescue in setup_pid_file"}
{"timestamp":1370440443.9659517,"message":"Cannot create pid file at /tmp/dea_ng.pid (Process already running (pid=12110).)","log_level":"error","source":"Dea::Bootstrap","data":{},"thread_id":12066800,"fiber_id":13700720,"process_id":54142,"file":"/mnt/hgfs/!%vagrant/dea_ng/lib/dea/bootstrap.rb","lineno":218,"method":"rescue in setup_pid_file"}
{"timestamp":1370440445.6915846,"message":"Cannot create pid file at /tmp/dea_ng.pid (Process already running (pid=12110).)","log_level":"error","source":"Dea::Bootstrap","data":{},"thread_id":12443640,"fiber_id":14047640,"process_id":54220,"file":"/mnt/hgfs/!%vagrant/dea_ng/lib/dea/bootstrap.rb","lineno":218,"method":"rescue in setup_pid_file"}
{"timestamp":1370440447.3516777,"message":"Cannot create pid file at /tmp/dea_ng.pid (Process already running (pid=12110).)","log_level":"error","source":"Dea::Bootstrap","data":{},"thread_id":9615360,"fiber_id":10725460,"process_id":54298,"file":"/mnt/hgfs/!%vagrant/dea_ng/lib/dea/bootstrap.rb","lineno":218,"method":"rescue in setup_pid_file"}
{"timestamp":1370440448.8870835,"message":"Cannot create pid file at /tmp/dea_ng.pid (Process already running (pid=12110).)","log_level":"error","source":"Dea::Bootstrap","data":{},"thread_id":7122940,"fiber_id":8238740,"process_id":54376,"file":"/mnt/hgfs/!%vagrant/dea_ng/lib/dea/bootstrap.rb","lineno":218,"method":"rescue in setup_pid_file"}
{"timestamp":1370440449.0583065,"message":"Reaping orphaned crashes","log_level":"debug2","source":"Dea::InstanceRegistry","data":{},"thread_id":9242620,"fiber_id":10875960,"process_id":12110,"file":"/mnt/hgfs/!%vagrant/dea_ng/lib/dea/instance_registry.rb","lineno":87,"method":"reap_orphaned_crashes"}
{"timestamp":1370440449.0600233,"message":"Reaping crashes","log_level":"debug2","source":"Dea::InstanceRegistry","data":{},"thread_id":9242620,"fiber_id":10875960,"process_id":12110,"file":"/mnt/hgfs/!%vagrant/dea_ng/lib/dea/instance_registry.rb","lineno":106,"method":"reap_crashes"}
{"timestamp":1370440449.0633419,"message":"Reaping crashes under disk pressure","log_level":"debug2","source":"Dea::InstanceRegistry","data":{},"thread_id":9242620,"fiber_id":10875960,"process_id":12110,"file":"/mnt/hgfs/!%vagrant/dea_ng/lib/dea/instance_registry.rb","lineno":130,"method":"reap_crashes_under_disk_pressure"}
@joefitzgerald

This comment has been minimized.

Copy link
Owner Author

@joefitzgerald joefitzgerald commented Jun 5, 2013

cloud controller log:

vagrant@precise64:~$ tail -f /vagrant/logs/cloud_controller.log 
{"timestamp":1370440043.4175203,"message":"(0.000098s) SELECT COUNT(*) AS 'count' FROM `apps` WHERE ((`space_id` = 1) AND (`name` = 'sinatra2') AND (`id` != 1)) LIMIT 1","log_level":"debug2","source":"cc.db","data":{"request_guid":"77bfae26-a13c-4672-8afd-b1e6330bd154"},"thread_id":36312340,"fiber_id":26038560,"process_id":26700,"file":"/home/vagrant/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sequel-3.45.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
{"timestamp":1370440043.4184818,"message":"(0.000570s) SELECT * FROM `organizations` WHERE (`organizations`.`id` = 2) LIMIT 1","log_level":"debug2","source":"cc.db","data":{"request_guid":"77bfae26-a13c-4672-8afd-b1e6330bd154"},"thread_id":36312340,"fiber_id":26038560,"process_id":26700,"file":"/home/vagrant/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sequel-3.45.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
{"timestamp":1370440043.4208572,"message":"(0.001956s) SELECT * FROM `spaces` WHERE (`spaces`.`organization_id` = 2)","log_level":"debug2","source":"cc.db","data":{"request_guid":"77bfae26-a13c-4672-8afd-b1e6330bd154"},"thread_id":36312340,"fiber_id":26038560,"process_id":26700,"file":"/home/vagrant/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sequel-3.45.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
{"timestamp":1370440043.4233077,"message":"(0.000196s) SELECT sum((`memory` * `instances`)) FROM `apps` WHERE (`apps`.`space_id` IN (1)) LIMIT 1","log_level":"debug2","source":"cc.db","data":{"request_guid":"77bfae26-a13c-4672-8afd-b1e6330bd154"},"thread_id":36312340,"fiber_id":26038560,"process_id":26700,"file":"/home/vagrant/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sequel-3.45.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
{"timestamp":1370440043.42629,"message":"(0.002526s) SELECT * FROM `quota_definitions` WHERE (`quota_definitions`.`id` = 1) LIMIT 1","log_level":"debug2","source":"cc.db","data":{"request_guid":"77bfae26-a13c-4672-8afd-b1e6330bd154"},"thread_id":36312340,"fiber_id":26038560,"process_id":26700,"file":"/home/vagrant/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sequel-3.45.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
{"timestamp":1370440043.4272172,"message":"(0.000518s) SELECT * FROM `apps` WHERE (`guid` = '2469d3b0-ac7b-4a94-9cd6-02c10fddec1c') LIMIT 1","log_level":"debug2","source":"cc.db","data":{"request_guid":"77bfae26-a13c-4672-8afd-b1e6330bd154"},"thread_id":36312340,"fiber_id":26038560,"process_id":26700,"file":"/home/vagrant/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sequel-3.45.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
{"timestamp":1370440043.4279501,"message":"(0.000268s) SELECT * FROM `stacks` WHERE (`stacks`.`id` = 1) LIMIT 1","log_level":"debug2","source":"cc.db","data":{"request_guid":"77bfae26-a13c-4672-8afd-b1e6330bd154"},"thread_id":36312340,"fiber_id":26038560,"process_id":26700,"file":"/home/vagrant/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sequel-3.45.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
{"timestamp":1370440043.4355323,"message":"(0.006786s) UPDATE `apps` SET `guid` = '2469d3b0-ac7b-4a94-9cd6-02c10fddec1c', `created_at` = '2013-06-05 06:47:16.475417-0700', `updated_at` = '2013-06-05 06:47:23.428156-0700', `name` = 'sinatra2', `production` = 'f', `environment_json` = '{}', `memory` = 256, `instances` = 1, `file_descriptors` = 16384, `disk_quota` = 1024, `state` = 'STARTED', `package_state` = 'PENDING', `package_hash` = 'bfc818ff62b297cb37a19686181de19ceb4a54b0', `droplet_hash` = NULL, `version` = '33cc005f-a813-402d-9da0-5dd10801855a', `metadata` = '{\"console\":true}', `buildpack` = NULL, `space_id` = 1, `stack_id` = 1, `detected_buildpack` = NULL, `staging_task_id` = NULL WHERE (`id` = 1)","log_level":"debug2","source":"cc.db","data":{"request_guid":"77bfae26-a13c-4672-8afd-b1e6330bd154"},"thread_id":36312340,"fiber_id":26038560,"process_id":26700,"file":"/home/vagrant/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sequel-3.45.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
{"timestamp":1370440043.4420364,"message":"(0.006191s) COMMIT","log_level":"debug2","source":"cc.db","data":{"request_guid":"77bfae26-a13c-4672-8afd-b1e6330bd154"},"thread_id":36312340,"fiber_id":26038560,"process_id":26700,"file":"/home/vagrant/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sequel-3.45.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
{"timestamp":1370440043.443123,"message":"Request failed with response code: 404 error code: 250003 error: The stack could not be found: The requested app stack lucid64 is not available on this system.","log_level":"debug","source":"cc.api","data":{"request_guid":"77bfae26-a13c-4672-8afd-b1e6330bd154"},"thread_id":36312340,"fiber_id":26038560,"process_id":26700,"file":"/mnt/hgfs/!%vagrant/cloud_controller_ng/lib/sinatra/vcap.rb","lineno":63,"method":"block in registered"}
@mgarciap

This comment has been minimized.

Copy link

@mgarciap mgarciap commented Jun 5, 2013

From the dea log:

"message":"Cannot create pid file at /tmp/dea_ng.pid (Process already running (pid=12110)

Check if dea is running

vagrant@precise64:/vagrant$ ps ax | grep ruby
 7748 ?        Sl     0:00 ruby /home/vagrant/.rbenv/versions/1.9.3-p392/bin/nats-server
 7753 ?        Sl     0:00 ruby ./bin/health_manager
 7754 ?        Sl     0:00 ruby spec/bin/file_server.rb
 7755 ?        Sl     0:01 ruby bin/dea config/dea.yml
 7757 ?        Sl     0:00 ruby /home/vagrant/.rbenv/versions/1.9.3-p392/bin/rake dir_server:run
 7912 ?        Sl     0:00 ruby /home/vagrant/.rbenv/versions/1.9.3/bin/rake warden:start[config/test_vm.yml]
 7970 ?        Sl     0:02 ruby bin/cloud_controller -m
 8130 pts/0    R+     0:00 grep --color=auto ruby

You can kill these processes

cd /vagrant
./stop.sh

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..

@mgarciap

This comment has been minimized.

Copy link

@mgarciap mgarciap commented Jun 5, 2013

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