简体   繁体   English

Chef服务器从Chef工作站返回404以获取刀具命令

[英]Chef Server returning 404 for knife commands from Chef workstation

I am trying to set up Push jobs on existing Chef server. 我正在尝试在现有的Chef服务器上设置Push作业。

knife ssl check , knife client list and knife node list returns success, however: knife ssl checkknife client listknife node list返回成功,但是:

knife node status returns HTTP error 404: knife node status返回HTTP错误404:

ERROR: The object you are looking for could not be found ... 错误:无法找到您要查找的对象......

Checked knife.rb on workstation and it looks good. 在工作站上检查了knife.rb,它看起来不错。 if the problem is on ORGANIZATION_NAME OR CHEF_SERVER_URL then it should fail for all knife commands. 如果问题出在ORGANIZATION_NAME或CHEF_SERVER_URL上,则所有刀具命令都会失败。 but I am getting response for knife node list . 但我得到刀节点列表的响应。

Below is my knife configuration 下面是我的刀配置

   current_dir = File.dirname(__FILE__)
    log_level                :info
    log_location             STDOUT
    node_name                "NODE1"
    chef_server_url          "https://SERVER_NAME_FQDN/organizations/ORGANIZATION_NAME"
    validation_client_name   "ORGANIZATION_NAME-validator"
    client_key               "#{current_dir}/CLIENT1.pem"
    cookbook_path            ["#{current_dir}/../cookbooks"]

Are you running knife node status [<node> <node> ...] per the syntax https://docs.chef.io/push_jobs.html#node-status and getting the error? 您是否按照语法https://docs.chef.io/push_jobs.html#node-status运行knife node status [<node> <node> ...]并收到错误?

Ensure the push jobs client is installed and running on the node. 确保在节点上安装并运行推送作业客户端。

On your node, ensure ports 10000-10003 are open so the node can communicate with the chef server. 在您的节点上,确保端口10000-10003已打开,以便节点可以与Chef服务器通信。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM