Smarts SAM: RabbitMQ service fails to start; Error:SMS-N-LOG_OUTPUT-OUTPUT service rabbitmq-NPR: Too short cookie string
book
Article ID: 331870
calendar_today
Updated On:
Products
VMware Smart Assurance
Issue/Introduction
Symptoms:
RabbitMQ service fails to start
RabbitMQ service fails to start with the error "Too short cookie string" seen in the sm_serviced log file, for example:
SMS-N-LOG_OUTPUT-OUTPUT service rabbitmq-NPR: {error_logger,{{2015,3,17},{7,58,24}},"Too short cookie string",[]}^M
Environment
VMware Smart Assurance - SMARTS
Cause
The cookie string is stored in file .erlang.cookie and read by RabbitMQ service on startup and if this file is empty then the service will fail to start.
Resolution
Locate the file .erlang.cookie in either the users home directory, often /root, or the SMHOME as specified in /etc/init.d/ic-serviced:
grep "SMHOME=" /etc/init.d/ic-serviced
Once located check the file size and if it is zero length delete the file and restart RabbitMQ. This will result in RabbitMQ regenerating the cookie string and writing a new copy of the file .erlang.cookie.