GithubHelp home page GithubHelp logo

Comments (6)

chadjiang avatar chadjiang commented on August 15, 2024 1

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.

sawanoboly avatar sawanoboly commented on August 15, 2024

@chadjiang

#148 (comment)

Try running it on a mac with the settings shown in this issue comment.

from knife-zero.

chadjiang avatar chadjiang commented on August 15, 2024

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.

sawanoboly avatar sawanoboly commented on August 15, 2024

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.

chadjiang avatar chadjiang commented on August 15, 2024

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.

sawanoboly avatar sawanoboly commented on August 15, 2024

@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)

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.