Skip to content

Instantly share code, notes, and snippets.

@windhamdavid
Created May 16, 2011 13:45
Show Gist options
  • Save windhamdavid/974462 to your computer and use it in GitHub Desktop.
Save windhamdavid/974462 to your computer and use it in GitHub Desktop.
david@code:~/cloudfoundry/vcap/services/mysql/config$ vi mysql_node.yml
david@code:~/cloudfoundry/vcap/services/mysql/config$ cd ~/cloudfoundry/vcap
david@code:~/cloudfoundry/vcap$ sudo cp setup/simple.nginx.conf /etc/nginx/nginx.conf
david@code:~/cloudfoundry/vcap$ sudo /etc/init.d/nginx restart
Restarting nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
configuration file /etc/nginx/nginx.conf test is successful
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: still could not bind()
nginx.
david@code:~/cloudfoundry/vcap$ vi /etc/nginx/nginx.conf
david@code:~/cloudfoundry/vcap$ sudo vi /etc/nginx/nginx.conf
david@code:~/cloudfoundry/vcap$ sudo /etc/init.d/nginx restart
Restarting nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
configuration file /etc/nginx/nginx.conf test is successful
nginx.
david@code:~/cloudfoundry/vcap$ cd ~/cloudfoundry/vcap
david@code:~/cloudfoundry/vcap$ gem install bundler --no-rdoc --no-ri
Successfully installed bundler-1.0.13
1 gem installed
david@code:~/cloudfoundry/vcap$ rake bundler:install
(in /home/david/cloudfoundry/vcap)
bundle install successful for cloud_controller
bundle install successful for dea
bundle install successful for router
bundle install successful for redis
bundle install successful for mysql
bundle install successful for mongodb
david@code:~/cloudfoundry/vcap$ bin/vcap start
router : RUNNING
cloud_controller : RUNNING
dea : RUNNING
health_manager : RUNNING
redis_gateway : RUNNING
redis_node : RUNNING
mysql_gateway : STOPPED
LOG:
I, [2011-05-16T09:44:10.402333 #12215] INFO -- : Starting Mysql-Service Provisioner..
/home/david/cloudfoundry/vcap/common/lib/vcap/common.rb:51:in ``': Cannot allocate memory - cat /proc/cpuinfo | grep processor | wc -l (Errno::ENOMEM)
from /home/david/cloudfoundry/vcap/common/lib/vcap/common.rb:51:in `num_cores'
from /home/david/cloudfoundry/vcap/common/lib/vcap/component.rb:96:in `register'
from /home/david/cloudfoundry/vcap/services/mysql/lib/mysql_service/provisioner.rb:43:in `start'
from /home/david/cloudfoundry/vcap/services/mysql/bin/mysql_gateway:70:in `block in <main>'
from /home/david/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `call'
from /home/david/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
from /home/david/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
from /home/david/cloudfoundry/vcap/services/mysql/bin/mysql_gateway:69:in `<main>'
mysql_node : STOPPED
LOG:
I, [2011-05-16T09:44:20.281912 #12231] INFO -- : Starting Mysql-Service-Node..
F, [2011-05-16T09:44:20.373617 #12231] FATAL -- : Cannot allocate memory - cat /proc/cpuinfo | grep processor | wc -l
/home/david/cloudfoundry/vcap/common/lib/vcap/common.rb:51:in ``'
/home/david/cloudfoundry/vcap/common/lib/vcap/common.rb:51:in `num_cores'
/home/david/cloudfoundry/vcap/common/lib/vcap/component.rb:96:in `register'
/home/david/cloudfoundry/vcap/services/mysql/lib/mysql_service/node.rb:75:in `initialize'
/home/david/cloudfoundry/vcap/services/mysql/bin/mysql_node:79:in `new'
/home/david/cloudfoundry/vcap/services/mysql/bin/mysql_node:79:in `block in <main>'
/home/david/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `call'
/home/david/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
/home/david/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
/home/david/cloudfoundry/vcap/services/mysql/bin/mysql_node:78:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment