Giter Site home page Giter Site logo

Comments (4)

gyoza avatar gyoza commented on June 30, 2024

This is what i get when i try to run the embedded chef client using a knife ec2 server create bootstrap.

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.0/bin/chef-client --help
/usr/share/ruby/vendor_ruby/2.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- mixlib/shellout/exceptions (LoadError)
    from /usr/share/ruby/vendor_ruby/2.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.0/lib/chef/exceptions.rb:27:in `<class:Exceptions>'
    from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.0/lib/chef/exceptions.rb:24:in `<class:Chef>'
    from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.0/lib/chef/exceptions.rb:20:in `<top (required)>'
    from /usr/share/ruby/vendor_ruby/2.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/share/ruby/vendor_ruby/2.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.0/lib/chef.rb:22:in `<top (required)>'
    from /usr/share/ruby/vendor_ruby/2.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/share/ruby/vendor_ruby/2.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.0/bin/chef-client:23:in `<main>'

My question remains, why would a knife bootstrap allow the above command to work but the knife ec2 does not? What is going on differently?

from knife-ec2.

juliandunn avatar juliandunn commented on June 30, 2024

What OS is this? How come you're running chef-client via the long path? Is the symlink into /usr/bin/chef-client not working?

I'm also mystified by the existence of /usr/share/ruby as the omnibus Chef Client package doesn't create that. Do you already have a Ruby and Rubygems on the system? What is the full path to the gem command you are running?

from knife-ec2.

gyoza avatar gyoza commented on June 30, 2024

Hey Julian,

CentOS or Amazon Linux, I've since realized what i was doing wrong. I am still really new to this and I thought in order to run the embedded chef i had to actually execute out of the /opt/chef/embedded directory tree..

For the most part the systems are just amazon linux that gets bootstrapped by knife on the server create so it really shouldn't have any preinstalled gems.. However, noting that I should only be running /usr/bin/chef-client makes things easier.

Sorry to be a pain in the ass :)

I really don't think this is a valid issue anymore.. heh..

from knife-ec2.

juliandunn avatar juliandunn commented on June 30, 2024

Haha, ok. I'll close the issue then.

from knife-ec2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.