LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-21-2016, 01:48 AM   #1
johnpedou
LQ Newbie
 
Registered: Dec 2016
Posts: 17

Rep: Reputation: Disabled
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.

Last edited by johnpedou; 12-21-2016 at 01:28 PM.
 
Old 12-22-2016, 02:48 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,200

Rep: Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811
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.
 
Old 12-23-2016, 05:02 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,200

Rep: Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811
Solved, are we? Good. Can you post the solution?
 
Old 12-29-2016, 04:42 PM   #4
johnpedou
LQ Newbie
 
Registered: Dec 2016
Posts: 17

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
red hat 6.3 workstation network configuration phon_ca Linux - Networking 11 06-19-2013 11:11 AM
OpenFiler configuration in vmware workstation 8.0 rohmdk Linux - Newbie 1 04-24-2012 07:43 AM
configuration of vmware 5.0 workstation for linux fails randomx Linux - Software 5 05-23-2005 04:16 PM
Configuration of a Computer Workstation with Network san_lss Linux - General 4 03-11-2004 12:26 PM
Configuration of home directory from another workstation using Samba linuxeagle Linux - Networking 0 01-31-2004 04:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration