[chef] Re: Re: open source chef client error


Chronological Thread 
  • From: Tim Dunphy < >
  • To:
  • Subject: [chef] Re: Re: open source chef client error
  • Date: Tue, 3 Dec 2013 19:14:22 -0500

how you have installed chef? may be GEM_PATH/GEM_HOME is messed up. do you have multiple ruby installation ?


Hi and thanks for your response. I did a gem install. And I actually didn't have those variable set. So I tried setting them, and I did make a little progress. 

:~] #echo $GEM_HOME
/usr/lib/ruby/vendor_ruby/1.8

:~] #echo $GEM_PATH
/usr/lib/ruby/vendor_ruby/1.8/rubygems

But now I am getting a different error, so I may not have the correct values there:

:~] #knife configure --initial
/usr/lib/ruby/vendor_ruby/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find chef (>= 0) amongst [] (Gem::LoadError)
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems/dependency.rb:256:in `to_spec'
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:1231:in `gem'
        from /usr/local/bin/knife:1

Do you think you could point me in the right direction in setting these variables? I think that might solve the problem.

Tim


On Tue, Dec 3, 2013 at 6:56 PM, Ranjib Dey < " target="_blank"> > wrote:
how you have installed chef? may be GEM_PATH/GEM_HOME is messed up. do you have multiple ruby installation ?


On Tue, Dec 3, 2013 at 3:52 PM, Tim Dunphy < " target="_blank"> > wrote:
Hey all,

I'm attempting to configure chef client on my chef server and running into an error.

:~] #knife configure --initial
/usr/lib/ruby/vendor_ruby/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find chef (>= 0) amongst [bunny-0.8.0, erubis-2.7.0, highline-1.6.15, ipaddress-0.8.0, json-1.7.5, mime-types-1.19, mixlib-authentication-1.3.0, mixlib-cli-1.3.0, mixlib-config-1.1.2, mixlib-log-1.4.1, mixlib-shellout-1.1.0, moneta-0.7.1, net-ssh-2.6.5, net-ssh-gateway-1.1.0, net-ssh-multi-1.1, ohai-6.14.0, polyglot-0.3.3, rest-client-1.6.7, systemu-2.5.2, treetop-1.4.12, uuidtools-2.1.3, yajl-ruby-1.1.0] (Gem::LoadError)
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems/dependency.rb:256:in `to_spec'
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:1231:in `gem'
        from /usr/local/bin/knife:18

I am running chef 11.8.0 under ubuntu 13.10.

Can anyone provide some insight on how to get around this error?

Thanks!
Tim

--
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B





--
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B




Archive powered by MHonArc 2.6.16.

§