[chef] Re: Re: Re: Re: Re: Re: Chef v11 fails on Centos 6.4


Chronological Thread 
  • From: Lunixer < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: Re: Chef v11 fails on Centos 6.4
  • Date: Mon, 6 May 2013 20:45:48 -0700

Problem fixed.

THANKS for your time and help! Much appreciated.

'chef-server-ctl tail' gave me the simple and obvious clue to solve this. It boiled down to name resolution.

My server is a VM running on a DHCP lease. Thus, the indication below that the host is not know. I edited the /etc/hosts file and added the hostname and ip as issued by the server. Then ran the reconfigure once again, solr started and I got a WebUI.
BUT, the part indicating the error on the initial post persisted.

This is what the log file said:

==> /var/log/chef-server/chef-solr/current <==
2013-05-07_03:06:02.85529 Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: chefserver: chefserver: Name or service not known


A test showed all is well.

# chef-server-ctl test
Configuring logging...
Creating platform...
Starting Pedant Run: 2013-05-07 03:33:03 UTC
setting up rspec config for #<Pedant::OpenSourcePlatform:0x0000000291ed38>
Configuring RSpec for Open-Source Tests
 _______  _______  _______  _______  _______  ______   _______
|       ||       ||       ||       ||       ||      | |       |
|   _   ||    _  ||  _____||       ||   _   ||  _    ||    ___|
|  | |  ||   |_| || |_____ |       ||  | |  || | |   ||   |___
|  |_|  ||    ___||_____  ||      _||  |_|  || |_|   ||    ___|
|       ||   |     _____| ||     |_ |       ||       ||   |___
|_______||___|    |_______||_______||_______||______| |_______|

     _______  _______  ______   _______  __    _  _______
    |       ||       ||      | |   _   ||  |  | ||       |
    |    _  ||    ___||  _    ||  |_|  ||   |_| ||_     _|
    |   |_| ||   |___ | | |   ||       ||       |  |   |
    |    ___||    ___|| |_|   ||       ||  _    |  |   |
    |   |    |   |___ |       ||   _   || | |   |  |   |
    |___|    |_______||______| |__| |__||_|  |__|  |___|

                    "Accuracy Over Tact"

                  === Testing Environment ===
                 Config File: /var/opt/chef-server/chef-pedant/etc/pedant_config.rb
       HTTP Traffic Log File: /var/log/chef-server/chef-pedant/http-traffic.log
[...big snip...]


Would you know whether the hostname is kept somewhere in the chef server configuration? I'd like to be able to keep using this config and only change the hostname. Are there certificates involved. I'm new to chef, so any hints are most helpful.

Thanks again.

-lun


On Mon, May 6, 2013 at 5:49 PM, Daniel DeLeo < " target="_blank"> > wrote:

On Monday, May 6, 2013 at 5:41 PM, Lunixer wrote:

The chef-solr service starts but status still shows down.

~]# chef-server-ctl stop chef-solr
ok: down: chef-solr: 1s, normally up, want up

~]# chef-server-ctl start chef-solr
ok: run: chef-solr: (pid 26072) 0s

~]# chef-server-ctl status
run: bookshelf: (pid 1148) 2427s; run: log: (pid 1142) 2427s
run: chef-expander: (pid 1150) 2427s; run: log: (pid 1144) 2427s
down: chef-solr: 1s, normally up, want up; run: log: (pid 1143) 2427s
run: erchef: (pid 1145) 2427s; run: log: (pid 1139) 2427s
run: postgresql: (pid 13826) 1193s; run: log: (pid 1141) 2427s
run: rabbitmq: (pid 1146) 2427s; run: log: (pid 1140) 2427s

~]# ps -ef | grep solr
root      1134  1115  0 17:00 ?        00:00:01 runsv chef-solr
root      1143  1134  0 17:00 ?        00:00:00 svlogd -tt /var/log/chef-server/chef-solr


~]# chef-server-ctl service-list
bookshelf*
chef-expander*
chef-solr*
erchef*
postgresql*
rabbitmq*

-lun

solr may be in a crash loop for some reason. Out of the blue guess is that the java min memory setting is too high for your machine. Try 'chef-server-ctl tail' or just look at  /var/log/chef-server/chef-solr

-- 
Daniel DeLeo
 




Archive powered by MHonArc 2.6.16.

§