gpt4 book ai didi

chef-infra - 引导时 Chef 错误。授权错误 : (HTTP 403)

转载 作者:行者123 更新时间:2023-12-04 11:13:21 30 4
gpt4 key购买 nike

我重新创建了一个同名的节点。我在设置节点并引导它时遇到了这个错误:

 Starting Chef Client, version 11.16.4
[2014-11-24T18:51:13+00:00] INFO: *** Chef 11.16.4 ***
[2014-11-24T18:51:13+00:00] INFO: Chef-client pid: 4540
Creating a new client identity for node1 using the validator key.
[2014-11-24T18:51:15+00:00] INFO: Client key /etc/chef/client.pem is not present - registering
[2014-11-24T18:51:16+00:00] INFO: HTTP Request Returned 409 Conflict: Client already exists
[2014-11-24T18:51:16+00:00] INFO: HTTP Request Returned 403 Forbidden: error

================================================================================
Chef encountered an error attempting to create the client "node1"
================================================================================


Authorization Error:
--------------------
Your validation client is not authorized to create the client for this node (HTTP 403).



Possible Causes:
----------------
* There may already be a client named "node1"

* Your validation client (chef-validator) may have misconfigured authorization permissions.

最佳答案

在这种情况下,我没有删除客户端。该节点以相同的名称重新创建,因此节点和客户端都需要删除。以下是执行此操作的命令。

knife node delete <node-name>
knife client delete <node-name>

在上述情况下,它必须是:
knife node delete node1
knife client delete node1

关于chef-infra - 引导时 Chef 错误。授权错误 : (HTTP 403),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27112179/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com