Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

knife zero converge - sudo: chef-client: command not found #165

Closed
joshedney opened this issue Jan 11, 2022 · 2 comments
Closed

knife zero converge - sudo: chef-client: command not found #165

joshedney opened this issue Jan 11, 2022 · 2 comments
Labels

Comments

@joshedney
Copy link

joshedney commented Jan 11, 2022

Hey,

I've got an issue where after bootstrapping a node, I am unable to run knife zero converge

On the remote node, if I run which chef-client I get back /usr/local/bin/chef-client

However if I run it via knife ssh "name:*" "which chef-client" I get chef-client not found

Running knife ssh "name:*" "cat /etc/paths" it is showing up as including the above path.
/usr/local/bin /usr/bin /bin /usr/sbin /sbin /usr/loca/bin

Any ideas?

Workstation Versions:
MacOs 11.0.1
Chef Workstation version: 22.1.745
Chef Infra Client version: 17.9.26
Chef InSpec version: 4.52.9
Chef CLI version: 5.5.0
Chef Habitat version: 1.6.420
Test Kitchen version: 3.2.2
Cookstyle version: 7.26.1

Node Versions:
Chef Infra Client: 17.9.26

@sawanoboly
Copy link
Member

When the remote node defaults to zsh, you may need to add a few settings.
Please refer to the comments below and try again.

#148 (comment)

@stale
Copy link

stale bot commented Apr 17, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants