Chef-server-ctl reconfigure/ Creating Admin User on chef server

1k Views Asked by At

I am fairly new to Linux (and brand new to chef) and I have ran into an issue when setting up my chef server. I am trying to create an admin user with the command

sudo chef-server-ctl user-create admin Admin Ladmin [email protected] examplepass -f admin.pem

but after I keep getting this error:

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

I also noticed that when I ran chef-server-ctl I got this output:

[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

I read that this error is due to a prerequisite mistake but I'm uncertain as to what it means or how to fix it. So any input would be greatly appreciated.

1

There are 1 best solutions below

5
On BEST ANSWER

Your server does not have a valid FQDN (aka full host name). You'll have to fix this before installing Chef server.