Comments (4)
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.
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.
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.
Haha, ok. I'll close the issue then.
from knife-ec2.
Related Issues (20)
- Train SSH Connection Error HOT 9
- Pushing 1.0.29 to Rubygems HOT 1
- Regression in AWS profile support
- EC2 Classic provision is broken
- Knife EC2 Connect Not Using private_ip_address HOT 3
- Knife bootstrap error for windows node in aws HOT 1
- ec2 server create command is failing while bootstrap HOT 1
- Cannot create any VM's with ST1 (HDD Optimized) types of HD/EBS
- --server-connect-attribute private_ip_address no longer works HOT 1
- knife ec2 server create attempting to connect to SSH too early, intermittently failing to bootstrap new nodes HOT 2
- --ephemeral option now creates EBS volumes and attaches instead of attaching ephemeral volumes
- Knife-ec2 server list doesn't show instance name, show tags[0] value
- EC2 server create failing on validation when no WinRM password specified instead of fetching from AWS (fetch_password_data)
- `knife ec2 server create` should terminate the EC2 instance if the command fails
- Knife-ec2 prematurely fails before SSH is even available. HOT 1
- Could not configure S3 bucket region. S3 bucket is expected to be in the same region where an ec2 instance is getting created.
- gp3 not yet supported although being out for almost a year HOT 4
- Knife ec2 didn't work. Download error with 503
- Support the metadata-options setting
- iops parameter error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from knife-ec2.