Skip to main content

Posts

Connection failed - user: chef - (Bunny::ProtocolError)

I was trying to setup chef server on my local box using Oracle Enterprise Linux 6.4. After sucessfully installing all the required serivces chef-server was not running, so when I tried to start the service below error was displayed. Chef-server dead but pid file exists I tried to find the cause of this issue in logs but no clues in the logs as well. Then I run the chef server in foreground using the below command, to debug the issue #chef-server -C /etc/chef/server.rb -L /var/log/chef/server.log -p 4000 -e production -a thin -P /var/run/chef/server.pid -u chef -G chef Below stack trace was displayed merb : chef-server (api) : worker (port 4000) ~ Connection failed - user: chef - (Bunny::ProtocolError) This issue was becuase chef server was unable to connect to rabbitmq using bunny protocal as user chef. I had already run the below rabbitmq server configuration which is recommended in opscode site, but still it was failing to connect to rabbitmq # rab...

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

Design Patterns

Please don't say a problem is difficult, if it was not difficult then we would not call it as a problem. Design Patterns are documented, tried and tested solutions for recurring problems in a given context..... Design Pattern can be categoried into 3 type of problems 1. Creational Paterns 2. Behavioral Patterns 3. Structural Patterns