LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Chef Server/Workstation Configuration (https://www.linuxquestions.org/questions/linux-newbie-8/chef-server-workstation-configuration-4175595838/)

johnpedou 12-21-2016 12:48 AM

Chef Server/Workstation Configuration
 
Hello everyone, 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
Quote:

sudo chef-server-ctl user-create admin Admin Ladmin admin@example.com examplepass -f admin.pem
but after I keep getting this error:
Quote:

ERROR: Connection refused connecting to https://127.0.0.1/users/, retry 1/5
ERROR: Connection refused connecting to https://127.0.0.1/users/, retry 2/5
ERROR: Connection refused connecting to https://127.0.0.1/users/, retry 3/5
ERROR: Connection refused connecting to https://127.0.0.1/users/, retry 4/5
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
I also noticed that when I ran chef-server-ctl I got this output:
Quote:

[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 pre-installation mistake but I'm uncertain as to what it means or how to fix it. So any input would be greatly appreciated.

business_kid 12-22-2016 01:48 PM

Code:

[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 know little/nothing of the particular program, but will instruct you on detective work.
1. Look at that file /var/opt/opscode/local-mode-cache/chef-stacktrace.out with a pager (e.g. less) and see if you can make sense of it.
2. This bit: "CannotDetermineNodeName: Unable to determine node name: configure node_name or configure the system's hostname and fqdn" is telling you it cannot determine the identity of the pc. The hostname is in /etc/HOSTNAME usually along with fqdn (Fully Qualified Domain Name). No identity is a show stopper for a server. Check that file exists and can be read.

3. Search the bugs at the chef server site. If you can't find yours, file one & enclose the stack trace.

business_kid 12-23-2016 04:02 AM

Solved, are we? Good. Can you post the solution?

johnpedou 12-29-2016 03:42 PM

The solution was realizing that the machine I was using for the chef server didn't have 4GB of RAM and then making a new machine with that amount.


All times are GMT -5. The time now is 06:31 AM.