Skip to main content

Chef Server, rabbitMQ Error: {cannot_connect_to_epmd,"herman-desktop",address}

I had my Chef server running fine until I changed the static IP address of my virtual machine. 
 When I tried to upload by data bag from my workstation it was failing with the below error

ERROR: internal server error
Response: Connection failed - user: chef

 While investigating I found that rabbitMQ service was not started and when I tried to restart the service I got the below error.

Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_log, _err
rabbitmq-server. 
...further investigation  I found that in /etc/hosts file there was an entry of my old 
static ip address against chef server




 So I changed it to localhost i.e 127.0.0.1 
 
...then i was able to restart rabbitMQ service and also was able to upload data bags into 
chef server

Comments

Popular posts from this blog

Check your knife configuration and network settings, unable to upload cookbooks

While uploading cookbook to chef 11 server (OEL), I was getting the below errors C:\Users\Administrator>knife cookbook upload testcookbook Uploading testcookbook [0.1.0] ERROR: Network Error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2) Check your knife configuration and network settings C:\Users\Administrator>knife cookbook upload testcookbook Uploading testcookbook1 [0.1.0] ERROR: Network Error: getaddrinfo: No such host is known. Check your knife configuration and network settings To find what is causing this issue, I ran knife cookbook upload in debug mode C:\Users\Administrator>knife cookbook upload testcookbook -s https://192.168.56.11 -V Uploading testcookbook [0.1.0] INFO: Validating ruby files INFO: Validating templates INFO: Syntax OK INFO: Saving testcookbook INFO: Uploading files I...

Setup little kitchen using Chef 11 server on CentOS 6

To setup little kitchen (development environment), I created 2 win2k8 R2 VMs one for workstation and another for node. For chef server I downloaded the CentOS 6.4 and installed on my box using virtualbox. To configure network between CentOS VM and the 2 windows VMs; I selected adapter 1 as Host-only Adapter and Adapter 2 as NAT for each of VMs network settings in VirtualBox. Steps I followed to install Chef 11 server 1. Download the relevant platform package from the opscode site; you can use curl/wget. If you don't have wget then you can install by running #yum install -y wget" #wget https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-server-11.0.4-1.el6.x86_64.rpm 2. Install the downloaded package using rpm or yum #rpm -Uvh chef-server-11.0.4-1.el6.x86_64.rpm 3. Please add the hostname and the ip address of your chef server to the /etc/hosts file, to know your hostname run the #hostname. 4. After installation configure the...

RabbitMQ does not start on Oracle Enterprise Linux, ruby_block[supervise_rabbitmq_sleep] action run hungs up/stops configuration

After installation of chef 11 server on oracle enterprise linux, while configuring using below command hangs up/stops at this line ruby_block[supervise_rabbitmq_sleep] action run #chef-server-ctl reconfigure Solution:   I had to modify the below file, added oracle. So that recipe "runint::upstart" is include and not "runint::sysvinit", then the configuration started executing next steps...  /opt/chef-server/embedded/cookbooks/runit/recipes/default.rb  Changed file looks like this