Chef server rabbitmq trouble with Ubuntu 12.04.1 (Bunny::ProtocolError)
It seems there's a few steps missing from the Chef server packaging on Ubuntu 12.04.1. The user for RabbitMQ is not created etc.
Error:
merb : chef-server (api) : worker (port 4000) ~ Connection failed - user: chef - (Bunny::ProtocolError)
Jonathan Polansky to the rescue with the following:
# rabbitmqctl add_vhost /chef # rabbitmqctl add_user chef # rabbitmqctl set_permissions -p /chef chef ".*" ".*" ".*"
Thanks! :)
EDIT: I believe this is actually due to changes in hostname between restarts on EC2. Ubuntu requests host-name (and domain-name) from DHCP and EC2 provides changing values at least for hostname. RabbitMQ in turn stores configuration in a directory named after the hostname. So after a restart and a hostname change, RabbitMQ configuration gets reset.
To make the settings stick, I edited the request statement in /etc/dhcp/dhclient.conf:
# REMOVED domain-name and host-name from the request list!
request subnet-mask, broadcast-address, time-offset, routers,
domain-name-servers, domain-search,
netbios-name-servers, netbios-scope, interface-mtu,
rfc3442-classless-static-routes, ntp-servers,
dhcp6.domain-search, dhcp6.fqdn,
dhcp6.name-servers, dhcp6.sntp-servers;













