Windows could not start the RabbitMQ Service on local Computer

I think I had the same problem which lies in the error

The filename, directory name, or volume label syntax is incorrect.

... and that maybe when erlang was installed it for some reason is sets the HOMEDRIVE to u: or something silly.

From the command line run:

SET HOMEDRIVE=C:

Then try to run your rabbitmq-service again. You may have to stop, remove, install, start it again.

rabbitmq-service stop
rabbitmq-service remove
rabbitmq-service install
rabbitmq-service start

and please make sure that you have copied the .erlang.cookie from c:\Windows to the root of your user folder ( C:\Users\{user}\ )


Pls use below command, this worked for me

rabbitmq-service remove

rabbitmq-service install

rabbitmq-service start

Open the command prompt and run the following commands one by one:

c:\>cd\  
c:\>cd Program Files  
c:\Program Files>cd RabbitMQ Server  
c:\Program Files\RabbitMQ Server>dir  
c:\Program Files\RabbitMQ Server>cd rabbitmq_server-3.8.1  
c:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.1>dir  
c:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.1>cd sbin  
c:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.1\sbin>dir  
c:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.1\sbin>SET HOMEDRIVE=C:

c:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.1\sbin>rabbitmq-service enable

c:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.1\sbin>rabbitmq-plugins enable rabbitmq_management

and please make sure that you have copied the .erlang.cookie from c:\Windows to the root of your user folder ( C:\Users{user}\ )