linux - Chef-server-ctl 重新配置/在 Chef 服务器上创建管理员用户

标签 linux chef-infra centos7 rhel7

我是 Linux 的新手(也是 Chef 的新手),在设置我的 Chef 服务器时遇到了问题。我正在尝试使用命令创建管理员用户

sudo chef-server-ctl user-create admin Admin Ladmin admin@example.com examplepass -f admin.pem

但在我不断收到此错误之后:

ERROR: Connection refused connecting...

ERROR: Connection refused connecting to https://127.0.0.1/users/, retry 5/5
ERROR: Network Error: Connection refused - Connection refused connecting to https://..., giving up
Check your knife configuration and network settings

我还注意到,当我运行 chef-server-ctl 时,我得到了这个输出:

[2016-12-21T13:24:59-05:00] ERROR: Running exception handlers Running handlers complete [2016-12-21T13:24:59-05:00] ERROR: Exception handlers complete Chef Client failed. 0 resources updated in 01 seconds
[2016-12-21T13:24:59-05:00] FATAL: Stacktrace dumped to /var/opt/opscode/local-mode-cache/chef-stacktrace.out
[2016-12-21T13:24:59-05:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-12-21T13:24:59-05:00] FATAL: Chef::Exceptions::CannotDetermineNodeName: Unable to determine node name: configure node_name or configure the system's hostname and fqdn

我读到此错误是由于先决条件错误造成的,但我不确定它的含义或修复方法。因此,我们将不胜感激任何意见。

最佳答案

您的服务器没有有效的 FQDN(又名完整主机名)。在安装 Chef 服务器之前,您必须解决此问题。

关于linux - Chef-server-ctl 重新配置/在 Chef 服务器上创建管理员用户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41269892/

相关文章:

linux - BEGIN 和 END 在 gawk 中导致语法错误

ssh - Terraform 无法将 Chef 供应商与 ssh 连接

java - java cookbook 可以用来安装 oracle java 的本地副本吗?

apache - 如何使用非标准端口以非 root 身份运行 apache?

linux - CentOS 7 - Apache 反向代理 - SSL 问题

c# - 通过代码注入(inject)从另一个应用程序调用方法?

linux - 如何在不使用任何外部音频文件的情况下在 linux 中创建系统生成的警报音?

linux - Shell 脚本 - 将 sed 与具有/的变量一起使用

chef-infra - 如何安装knife-ec2插件?

centos 7 mongodb无法启动