- From: Hedge Hog <
>
- To:
- Subject: [chef] Re: Re: Re: Chef 0.10 RC with Vagrant (0.7.3)
- Date: Sat, 30 Apr 2011 18:24:52 +1000
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=xgiDcie4iRiCevtJ0Os2DOFSmsdh4q1LGD3COPbGc7m8QhWiKQtGiWvKEMDuXrOS+y Z/RyBZ0urYgNuO1DmjV/2G01OugBUhJnzMsBnc84o7TJYhQb9OrWhrShOrIIIR7Duw7j n90r+8ztmrNwKKB6/tpp4JR3DcczAMvtOo8QY=
On Thu, Apr 28, 2011 at 11:11 PM, Hedge Hog
<
>
wrote:
>
On Thu, Apr 28, 2011 at 5:50 PM, Hedge Hog
>
<
>
>
wrote:
>
> On Thu, Apr 28, 2011 at 3:22 PM, Daniel DeLeo
>
> <
>
>
> wrote:
>
>> On Sunday, April 24, 2011 at 3:14 AM, Hedge Hog wrote:
>
>>
>
>> On Sun, Apr 24, 2011 at 12:42 PM, Hedge Hog
>
>> <
>
>
>> wrote:
>
>>
>
>> On Fri, Apr 22, 2011 at 4:45 PM, Hedge Hog
>
>> <
>
>
>> wrote:
>
>>
>
>> On Fri, Apr 22, 2011 at 3:26 PM, Hedge Hog
>
>> <
>
>
>> wrote:
>
>>
>
>> Hi,
>
>> I'm running into issues with Chef 0.10.0rc.0
>
>>
>
>> I use this vagrant file:
>
>> https://gist.github.com/936071
>
>>
>
>> I repackage my Vagrant base box after updating it with:
>
>> sudo gem install chef --pre --no-ri --no-rdoc
>
>>
>
>> On running `vagrant up chef` I get the error shown in the gist:
>
>> https://gist.github.com/936071
>
>>
>
>> Furthermore, neither of these folders are present on the VM:
>
>> /tmp/vagrant-chef/cookbooks-0
>
>> /tmp/vagrant-chef/cookbooks-1
>
>>
>
>> If instead I ssh to the VM and run:
>
>> cd /tmp/vagrant-chef
>
>> sudo chef-solo -j dna.json -c solo.rb -r
>
>> https://s3.amazonaws.com/chef-solo/bootstrap-0.10.0.rc.0.tar.gz
>
>>
>
>> I get this error:
>
>> https://gist.github.com/936088
>
>>
>
>> This is caused by either:
>
>> 1. Your cookbook_path config setting is empty
>
>> or
>
>> 2. Your cookbook_path doesn't have a directory named `cookbooks` in it.
>
>> #2 Seems designed to install the remote cookbooks into your "cookbooks"
>
>> directory if you have both "cookbooks" and "site-cookbooks" configured in
>
>> your cookbook_path but obviously both the implementation and the error
>
>> messaging could be improved.
>
>
>
> The Chef Error messaging I think was fine in this case, I think the
>
> issue with the cookbooks-{0,1} is Vagrants - however this all ran OK
>
> under Chef 0.9.12.
>
> But when I get vagrant to mount the /tmp/vagrant-chef/cookbooks-* all
>
> porceeds to the next error I reported, I'm about to check if that is
>
> caused by the opscode/cokkbooks 0.10.rc.0 snafu discussed and fixed on
>
> IRC earlier today.... will report back
>
>
>
>
with chef 0.10.0.rc.1 and the fixed opscode/cookbooks repo the same
>
error persists:
>
>
[chef] [Thu, 28 Apr 2011 04:52:33 -0700] DEBUG: Re-raising exception:
>
Errno::EISDIR - link[/etc/chef/webui.rb]
>
(chef-server::rubygems-install line 119) had an error: Is a directory
>
- /etc/chef/webui.rb
>
>
Does any one have a recommended workaround?
>
Still failing but with some progress with the 0.10.rc.2 release and
Virtualbox 4.0.6:
$ less /var/log/chef/server-webui.log
merb : chef-server-webui : worker (port 4040) ~ Starting Thin at port 4040
merb : chef-server-webui : worker (port 4040) ~ Using Thin adapter on
host 0.0.0.0 and port 4040.
merb : chef-server-webui : worker (port 4040) ~ Successfully bound to port
4040
merb : chef-server-webui : worker (port 4040) ~ Changing privileges to
chef:chef
merb : chef-server-webui : worker (port 4040) ~ Started request
handling: Sat Apr 30 01:09:06 -0700 2011
merb : chef-server-webui : worker (port 4040) ~ Params:
{"action"=>"index", "controller"=>"nodes"}
merb : chef-server-webui : worker (port 4040) ~ I cannot read
/etc/chef/webui.pem, which you told me to use to sign requests! -
(Chef::Exceptions::PrivateKeyMissing)
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/lib/chef/rest/auth_credentials.rb:62:in
`load_signing_key'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/lib/chef/rest/auth_credentials.rb:33:in
`initialize'
The permissions are (600):
$ ls -la /etc/chef/webui.pem
-rw------- 1 vagrant vagrant 1679 2011-04-30 00:17 /etc/chef/webui.pem
I've tried chown chef:chef, and in case this was not a SSH style
permissions issue, I tried various chmod's to no avail.
Any suggestions?
>
>
>
>
>> --
>
>> Dan DeLeo
>
>>
>
>>
>
>
>
>
>
>
>
> --
>
> πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα
>
> [The fox knows many things, but the hedgehog knows one big thing.]
>
> Archilochus, Greek poet (c. 680 BC – c. 645 BC)
>
> http://wiki.hedgehogshiatus.com
>
>
>
>
>
>
--
>
πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα
>
[The fox knows many things, but the hedgehog knows one big thing.]
>
Archilochus, Greek poet (c. 680 BC – c. 645 BC)
>
http://wiki.hedgehogshiatus.com
>
--
πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα
[The fox knows many things, but the hedgehog knows one big thing.]
Archilochus, Greek poet (c. 680 BC – c. 645 BC)
http://wiki.hedgehogshiatus.com
Archive powered by MHonArc 2.6.16.