Chef Server安装问题 [英] Chef Server installation issues

查看:88
本文介绍了Chef Server安装问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试使用本指南在CentOS 6.5机器上安装Chef服务器(chef-server-core-12.1.0-1.el6.x86_64.rpm): http://docs.chef.io/server/install_server.html#standalone
这是一个测试环境,因此,我没有FQDN,但IP地址是可解析的。运行Chef-server-ctl重新配置后,我尝试使用以下方式创建用户:

  [root @ xxx-xxx-xxx -xxx〜]#Chef-server-ctl用户创建myusername myfirstname mylastname myemail mypassword --filename /root/myfile.pem 

我在上面的命令中填写了适当的详细信息,但我不断收到此错误:

 错误:连接被拒绝连接到https://127.0.0.1/users/,重试5/5 
错误:网络错误:连接被拒绝-连接被拒绝连接到https://127.0.0.1/users/,放弃了
检查您的刀具配置和网络设置

ngnix服务一直关闭,无法启动。经过日志后:

  tail -f / var / log / opscode / nginx / current 
2015-07 -01_10:59:00.69218 nginx:[emerg]在/var/opt/opscode/nginx/etc/chef_https_lb.conf:3


chef_https_lb.conf文件如下:

  server {
听443;
server_name;

access_log /var/log/opscode/nginx/access.log opscode;

我不知道怎么了。有人请给我一些启示吗?

解决方案

以防有人偶然发现此问题以寻找答案(就像我一样)。
问题是您需要设置本地主机以外的服务器的FQDN。



在Centos 6.6上的示例



在/ etc / hosts文件中,读取(或类似)的第一行

  127.0.0.1 localhost 

将localhost更改为为服务器设置的主机名( / etc / sysconfig / network

  127.0.0.1 servername.com 

重新启动网络服务

  $:服务网络重新启动

在服务器终端上运行以下命令

  $:主机名
$:主机名-f

它们都应输出 servername.com



运行 chef-server-ctl重新配置为厨师服务器重建ssl证书。



您应该能够添加管理用户/ ORG和opscode-manage网站脸


I have been trying to install chef server (chef-server-core-12.1.0-1.el6.x86_64.rpm), on my CentOS 6.5 machine using this guide: http://docs.chef.io/server/install_server.html#standalone This is a test environment, hence I Do not have a FQDN but the IP address is resolvable. After I run chef-server-ctl reconfigure, I try to create a user using:

[root@xxx-xxx-xxx-xxx ~]# chef-server-ctl user-create myusername myfirstname mylastname myemail mypassword --filename /root/myfile.pem

I fill appropriate details in the above command, but I keep getting this error:

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

The ngnix service is down all the time, cannot get it to start. After going though the logs:

 tail -f /var/log/opscode/nginx/current 
 2015-07-01_10:59:00.69218 nginx: [emerg] invalid number of arguments in "server_name" directive in /var/opt/opscode/nginx/etc/chef_https_lb.conf:3

The file chef_https_lb.conf is as follows:

server {
listen 443;
server_name ;

access_log /var/log/opscode/nginx/access.log opscode;

I am not sure whats going wrong. Anyone shed some light please?

解决方案

In case somebody stumbles across this searching for an answer ( Just as I did ). The problem is you need to set the FQDN of the server other than localhost.

Example on Centos 6.6

In your /etc/hosts file, the top line that reads ( or similar to )

127.0.0.1 localhost

Change localhost to the hostname you have set for your server (/etc/sysconfig/network)

127.0.0.1 servername.com

Restart your networking service

$: service network restart

When you run the following commands on the servers terminal

$: hostname
$: hostname -f

They should both output "servername.com"

Run chef-server-ctl reconfigure to rebuild the ssl certificate for the chef server.

You should be able to add your admin user / ORG and the opscode-manage web interface

这篇关于Chef Server安装问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆