Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chef Knife Commands 404 Not Found

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

I've run the following commands from the workstation

knife SSL check

Output

Connecting to host my_server: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 could not be found

What is going on?

like image 658
André De La O Campos Avatar asked Aug 27 '15 17:08

André De La O Campos


2 Answers

I found what is the root cause of my error, the chef_server_url must has the organization's name at the end of the URL.

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

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

like image 97
André De La O Campos Avatar answered Nov 03 '22 21:11

André De La O Campos


You haven't shared your knife.rb file in order to be more specific (in knife.rb you have to indicate your client_key,validation_client_name, validation_key etc), in general you don't have any registered chef-clients neither bootstrapped machines nor even local one. Here is the document about how to create your client. Here you might have an answer as well.

like image 1
Dmitry S Avatar answered Nov 03 '22 22:11

Dmitry S