I was receiving this error when accessing http://localhost:15672 with user guest and password guest (default credentials)
undefined: There is no template at js/tmpl/login.ejs undefined
So I restarted the rabbitmq service from services.msc then by mistake started also the Radio Management Service. After doing this, http://localhost:15672/ wouldn't even open. It says:
localhost refused to connect. Search Google for localhost 15672 ERR_CONNECTION_REFUSED
So I stopped "Radio Management Service", tried to open rabbitmq again, same thing: ERR_CONNECTION_REFUSED.
So I uninstalled both Rabbit MQ Server and erlang.
Then downloaded them from the official site and reinstalled them, first the "Erlang for Windows installer 64-bit" and then the "rabbitmq-server-3.6.12.exe".
However, I still get ERR_CONNECTION_REFUSED (when trying to access http://localhost:15672/).
I didn't know what exactly I should allow through firewall so I added all exe files found in C:\Program Files\erl9.0\bin
Restarted RabbitMq from services.msc. Still ERR_CONNECTION_REFUSED.
Am I missing any plugins or something?
Next, I ran the command rabbitmq-plugins enable rabbitmq_management
from the RabbitMQ Command Prompt found in C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.12\sbin, however I got:
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.12\sbin>rabbitmq-plugins enable rabbitmq_management Plugin configuration unchanged.
Applying plugin configuration to rabbit@MYPCNAME... failed. * Could not contact node rabbit@MYPCNAME. Changes will take effect at broker restart. * Options: --online - fail if broker cannot be contacted. --offline - do not try to contact broker.
I am at a loss. What else should I try?
*** Later edit:
I also removed and readded the rabbitmq service in case that was related to the core issue at hand:
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.12\sbin>rabbitmq-service remove C:\Program Files\erl9.0\erts-9.0\bin\erlsrv: Service RabbitMQ removed from system.
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.12\sbin>rabbitmq-service install C:\Program Files\erl9.0\erts-9.0\bin\erlsrv: Service RabbitMQ added to system.
and then reattempted to:
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.12\sbin>rabbitmq-plugins enable rabbitmq_management
...with the same error as above. (could not contact node etc)