Comments (6)
I followed this #148 (comment) to create .zshenv add /usr/local/bin
into PATH in the node, then knife zero converge working! Thank you very much!
from knife-zero.
Try running it on a mac with the settings shown in this issue comment.
from knife-zero.
i added Chef::Config[:chef_client_path] = "/usr/local/bin/chef-client" in knife.rb , but not working. Chef just updated their chef version to 17.9.18. Do you know which chef infra version knife zero support? I would like to downgrade chef infra client to that version to try?
When I use chef server to mange node, I did not see this kind of issue. I guess something possible related to ChefZero when we do knife zero bootstrap
from knife-zero.
I guess I didn't explain well enough. Try putting the following path in knife.rb
according to your environment.
Chef::Config[:chef_client_path] = "/opt/chef/bin/chef-client"
from knife-zero.
I tried this, but did not work either.
after use knife zero bootstrap , knife zero converge did not work and get this error:
sudo: chef-client: command not found
and knife ssh got failed
knife ssh "name:mac-chef-test-m1" 'sudo /opt/chef/bin/chef-client'
it throw same errors as ran "chef-client" directly in the node.
When I checked client.rb
chef_server_url "chefzero://localhost:8889"
chef_zero.port 8889
I think for some reason chefzero on localhost 8889 not working, which cause failure.
from knife-zero.
@chadjiang
I'm glad to hear that it was resolved. I will pass on some additional information.
Let me explain how knife-zero works.
At runtime, knife-zero starts a chef-zero server on the local node, and the remote node gets the recipe via ssh port forward.
The chef-zero server is not started all the time, but is only running when knife-zero is running. Therefore, it is the correct behavior that chef-zero is not running on the remote node.
from knife-zero.
Related Issues (20)
- Cannot bootstrap a new node (ssh authentication fails) HOT 2
- Dependabot can't resolve your Ruby dependency files
- knife zero converge not doing anything !? HOT 9
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Using MOSH for flaky internet connection HOT 2
- Chef 16系でcincがうまく動かない HOT 15
- Chef dependency should be >= 17 for 2.4.x HOT 2
- knife zero converge "name:xxx-*" ERROR: Too many open files HOT 3
- knife zero converge - sudo: chef-client: command not found HOT 2
- Can't use with cinc
- Knife ignores ssh config file HOT 2
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-zero.