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?