Chef Knife Commands 404 Not Found

不打扰是莪最后的温柔 提交于 2019-12-09 16:15:57

问题


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?


回答1:


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)




回答2:


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.



来源:https://stackoverflow.com/questions/32255783/chef-knife-commands-404-not-found

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!