auser / poolparty

Run a self-healing, auto-scaled and monitored cloud simply, in the clouds, on nearly any hardware, such as EC2, eucalyptus and vmware
http://www.poolpartyrb.com
MIT License
371 stars 54 forks source link

Cloud doesn't get bootstrapped #71

Open maize opened 14 years ago

maize commented 14 years ago

After "cloud start":

etc/chef/...

sent 123066 bytes received 1642 bytes 16627.73 bytes/sec total size is 118041 speedup is 0.95 Warning: Permanently added 'ec2-###-##-##-##.compute-1.amazonaws.com,111.22.33.44' (RSA) to the list of known hosts. bash: gem: command not found No packages found matching chef. bash: gem: command not found bash: chef-solo: command not found

bradphelan commented 14 years ago

Are you using chef at all in your clouds.rb?

maize commented 14 years ago

ya, sure, my clouds.rb looks like this: http://pastebin.com/amvAHtGB

bradphelan commented 14 years ago

PP should bootstrap chef by manually installing it via gems. You do seem to be getting an error with gem not being found. What version of PP are you using. I noted a problem which auser fixed with regards to the path to the gem binary a couple of releases ago.

maize commented 14 years ago

i use this one "poolparty-1.6.3"...do i have to run any other command before "cloud start".

bradphelan commented 14 years ago

Actually I'm using one a little older on my own branch and don't have any problems. Can you log into EC2 box with cloud-ssh and check if the chef gem was installed.

If you are using an Ubuntu 9.10 AMI then you have to set the user to ubuntu but i don't see you specifiying a base AMI to use.

gem list

maize commented 14 years ago

hm strange, yes, i can log in by "cloud ssh" and get this gem list by "gem list": "The program 'gem' can be found in the following packages:

bradphelan commented 14 years ago

ok so PP has really screwed up because it hasn't managed to install the rubygems package manager. You could try do the following whilst logged into your machine.

sudo apt-get install rubygems

Then go back to your home machine and run

cloud-start

again.

maize commented 14 years ago

ok, i tried out your advice:

root@domU-##-##-39-09-B5-A3:~# sudo apt-get install rubygems Reading package lists... Done Building dependency tree
Reading state information... Done E: Couldn't find package rubygems root@domU-##-##-39-09-B5-A3:~# gem list The program 'gem' can be found in the following packages:

And after cloud-start same error:

sent 5435 bytes received 2706 bytes 2326.00 bytes/sec total size is 118041 speedup is 14.50 bash: gem: command not found No packages found matching chef. bash: gem: command not found bash: chef-solo: command not found