title: Error : rabbitmq failed to start
body: <p>I am getting this error while starting rabbitmq server. I did following steps,</p>
  
  <p>1) Installed rabbitmq sever on server1 and server2</p>
  
  <p>2) It started successfully</p>
  
  <p>3) Stopped it on server 2 using, </p>
  
  <p>sudo service rabbitmq-server stop</p>
  
  <p>4) copied /var/lib/rabbitmq/.erlang.cookie from server1 to server2.</p>
  
  <p>5) Trying to start rabbitmq on server2 but getting error using</p>
  
  <p>sudo service rabbitmq-server start </p>
  
  <p>"rabbitmq failed to start"</p>
  
  <p>6) I tried to reset it using but getting error</p>
  
  <pre><code>sudo rabbitmqctl force_reset
  
  Forcefully resetting node 'rabbit@IS-21892' ...
  Error: unable to connect to node 'rabbit@IS-21892': nodedown
  diagnostics:
  - nodes and their ports on IS-21892: [{rabbit,54812},{rabbitmqctl11166,34944}]
  - current node: 'rabbitmqctl11166@IS-21892'
  - current node home dir: /var/lib/rabbitmq
  - current node cookie hash: C2ak7NeiCEFHGEZb8SL7+w==
  </code></pre>
  
  <p>According to documentation </p>
  
  <p><a href="http://www.rabbitmq.com/troubleshooting.html" rel="nofollow">http://www.rabbitmq.com/troubleshooting.html</a></p>
  
  <p>Cookie mismatch is due to different users, rabbitmq and root. </p>
  
  <p>Whats the solution ?</p>
  
  <p>I tried reinstalling as well. </p>