404 Chef Knife Commands Not Found

I'm trying to use a chef, I followed all the steps provided by them to "install and configure the Chef server using your equipment"

I ran the following commands from a workstation

knife SSL check 

Exit

Connecting to my_server host: 443
Successfully verified certificates from `my_server '

However, when I use the following command

 knife client list 

Output:

ERROR: The object you are looking for was not found.

What's happening?

+7
chef knife
source share
2 answers

I found that the main reason for my error is that chef_server_url should have the name of the organization at the end of the URL.

chef_server_url ' https: // my_server: 443 / organizations / my_organization_name '

I added the name org and solved my problem (404 not found)

+20
source share

You have not shared your knife.rb file to be more specific (in knife.rb you must specify your client_key , validation_client_name , validation_key , etc.), in the general case you do not have any registered chef clients or boot machines nor even local ones. Here is a document on how to create your client . It may also be here.

+1
source share

All Articles