provide access to the guest user to connect from a remote host.

1,329 views
Skip to first unread message

Royal M

unread,
May 18, 2017, 9:40:26 AM5/18/17
to rabbitmq-users

I have installed the rabbitMQ on Linux remote host and trying to login into the management console.
But I am not able login with the guest/guest details. I have created the rabbitmq.config file and added the following stuff into /<server_home>/etc/rabbitMQ path..But still login is failing, please let me know any thing is missing..

[{rabbit, [{loopback_users, []}]}].

Trying to login with the following link as well, showing not authorized.

http://<host>:15672/api/users

error"not_authorised"
reason"Login failed"

Michael Klishin

unread,
May 18, 2017, 10:49:26 AM5/18/17
to rabbitm...@googlegroups.com
You need to make sure that the config file is actually loaded.
You can see paths in the logs and list effective configuration (such as the list of loopback users)
with `rabbitmqctl environment`.

Default config file locations can be found on http://www.rabbitmq.com/relocate.html. You can override
the location.

The right thing to do is often not to enable remote access for guest/guest but to create a new administrative user
with CLI tools.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ

Royal M

unread,
May 18, 2017, 11:58:49 AM5/18/17
to rabbitmq-users
Thanks for the response..

I am seeing the following error in the logs when I try to create the user..

=ERROR REPORT==== 18-May-2017::10:51:31 ===
Unable to load crypto library. Failed with error:
"load_failed, Failed to load NIF library /u01/app/erlang/lib/crypto-3.2/priv/lib/crypto: 'libcrypto.so.1.0.0: cannot open shared object file: No such file or directory'"
OpenSSL might not be installed on this system.


Following output is getting while try to create the user

Creating user "rabbitadmin" ...
Error: {undef,
           [{crypto,hash,
                [sha256,<<197,19,187,185,119,101,108,99,111,109,101>>],
                []},
            {rabbit_password,hash,2,
                [{file,"src/rabbit_password.erl"},{line,34}]},
            {rabbit_auth_backend_internal,add_user_sans_validation,2,
                [{file,"src/rabbit_auth_backend_internal.erl"},{line,191}]},
            {rpc,'-handle_call_call/6-fun-0-',5,
                [{file,"rpc.erl"},{line,205}]}]}



On Thursday, May 18, 2017 at 8:19:26 PM UTC+5:30, Michael Klishin wrote:
You need to make sure that the config file is actually loaded.
You can see paths in the logs and list effective configuration (such as the list of loopback users)
with `rabbitmqctl environment`.

Default config file locations can be found on http://www.rabbitmq.com/relocate.html. You can override
the location.

The right thing to do is often not to enable remote access for guest/guest but to create a new administrative user
with CLI tools.
On Thu, May 18, 2017 at 2:40 PM, Royal M <write2...@gmail.com> wrote:

I have installed the rabbitMQ on Linux remote host and trying to login into the management console.
But I am not able login with the guest/guest details. I have created the rabbitmq.config file and added the following stuff into /<server_home>/etc/rabbitMQ path..But still login is failing, please let me know any thing is missing..

[{rabbit, [{loopback_users, []}]}].

Trying to login with the following link as well, showing not authorized.

http://<host>:15672/api/users

error"not_authorised"
reason"Login failed"

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Michael Klishin

unread,
May 18, 2017, 12:34:45 PM5/18/17
to rabbitm...@googlegroups.com
Your Erlang installation doesn't include cryptography modules. On Ubuntu and Debian it is sliced and diced into a lot of packages.
Staff Software Engineer, Pivotal/RabbitMQ

Royal M

unread,
May 19, 2017, 3:53:01 AM5/19/17
to rabbitmq-users
Michael, I did not understand what you are saying..It seems and issue with the openssl compatibility with the Erlang and rabbitmq..

OpenSSL version - 1.0.1e-fips 11 Feb 2013
Erland version:
{erlang_version,
     "Erlang R16B03 (erts-5.10.4) [source] [64-bit] [smp:2:2] [async-threads:64] [kernel-poll:true]\n"},

RabbitMQ version:      {rabbit,"RabbitMQ","3.6.9"},

seeing the following error in logs while creating the user with rabbitmqctl add_user <user> <pass>

dfed...@pivotal.io

unread,
May 19, 2017, 10:56:46 AM5/19/17
to rabbitmq-users
Hi,

It looks like the Erlang crypto module cannot find OpenSSL library. 
This could happen if you miss some components from Erlang (on Debian based systems they are installed separately), or you have updated OpenSSL library and Erlang doesn't know where to find new library.
You can try to reinstall Erlang after checking that OpenSSL library is discoverable in the library path.
I don't think we can give more information without knowing the way you install Erlang and OpenSSL.
Reply all
Reply to author
Forward
0 new messages