[rabbitmq-discuss] "AMQPLAIN login refused: user 'celeryuser' - invalid credentials"

Pedro Sá da Costa psdc1978 at gmail.com
Tue May 7 08:02:02 BST 2013


I got the problem

Instead of using
BROKER_URL = "amqp://[email protected]:5672/celeryvhost"

I must use

BROKER_HOST = "localhost"
BROKER_PORT = 5672
BROKER_USER = "celeryuser"
BROKER_PASSWORD = "celery"
BROKER_VHOST = "celeryvhost"



On 7 May 2013 08:35, Pedro Sá da Costa <psdc1978 at gmail.com> wrote:

> Hi all,
>
> I am trying to run the my example with celery, but I get problems with the
> configuration of rabbitmq. I added user, vhost and permissions, but I have
> invalid credentials. The error is below. Any help to fix this error?
>
> # logging
> closing AMQP connection <0.4783.0> (127.0.0.1:42097 -> 127.0.0.1:5672):
> {handshake_error,starting,0, {amqp_error,access_refused, "AMQPLAIN login
> refused: user 'celeryuser' - invalid credentials", 'connection.start_ok'}}
> # set vars $ rabbitmqctl add_user celeryuser celery $ rabbitmqctl add_vhost
> celeryvhost $ rabbitmqctl set_permissions -p celeryvhost celeryuser ".*"
> ".*" ".*" Setting permissions for user "celeryuser" in vhost "celeryvhost"
> ... ...done. # list vars $ rabbitmqctl list_users Listing users ...
> celeryuser [] guest [administrator] $ rabbitmqctl list_vhosts Listing
> vhosts ... / celeryvhost ...done. $ rabbitmqctl list_permissions Listing
> permissions in vhost "/" ... guest .* .* .* ...done.
>
> --
> Best regards,
>



-- 
Best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130507/b9306d0f/attachment.htm>


More information about the rabbitmq-discuss mailing list