Issue
I had finished installing RabbitMQ (my first time dealing with it) on a CentOS 7 installation and was trying to log into the web management console but to no avail.
I had created an admin user and set administrator tags for the user since it seemed that it was highly discouraged to use the guest user for logging into the web management console remotely.
I knew the credentials were correct but the login page kept telling me "Login Failed" while the logs showed:
2020-02-19 09:56:27.069 [warning] <0.622.0> HTTP access denied: user 'rbt_admn' - invalid credentials
Googling only seemed to give results for people facing similar problems but who were mostly trying to login with guest or had incompatibility issues but I was sure none of those were the problem for me.
After a sleepless night of troubleshooting, I was able to solve it. So I'll post my solution below in case this is of use to someone in the future.
Solution
I came accross the command rabbitmqctl authenticate_user.
So I tried it with the user account:
rabbitmqctl authenticate_user rbt_admn
Entered the correct password only for it to report
Error: failed to authenticate user "rbt_admn"
I tried it a couple of more times just to be sure and then it occurred to me. My password had dollar signs. As in something like (but not) "P4$$w0rd" So I deleted the user
rabbitmqctl delete_user rbt_admn
Recreated the user again with a different password and mercifully it worked.
I'm not sure why this happened but I think the dollar signs caused bash (maybe? I am not well versed in shell scripting) to feed and have rabbitmqctl store something different from my intended password.
If someone can explain why this happened they are more than welcome to do so.
Answered By - Steve S Answer Checked By - Robin (WPSolving Admin)