<div dir="ltr">I got the problem<div><br></div><div style>Instead of using </div><div><div>BROKER_URL = "amqp://celeryuser@localhost:5672/celeryvhost"</div><div><br></div><div style>I must use</div><div style><br>
</div><div>BROKER_HOST = "localhost"</div><div>BROKER_PORT = 5672</div><div>BROKER_USER = "celeryuser"</div><div>BROKER_PASSWORD = "celery"</div><div>BROKER_VHOST = "celeryvhost"</div>
<div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 7 May 2013 08:35, Pedro Sá da Costa <span dir="ltr"><<a href="mailto:psdc1978@gmail.com" target="_blank">psdc1978@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div><span style="font-size:13px;background-color:rgb(240,247,255);font-family:Consolas,'Lucida Console',monospace">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</span> below.<span style="font-size:13px;background-color:rgb(240,247,255);font-family:Consolas,'Lucida Console',monospace"> Any help to fix this error?</span></div>
<div><div><font color="#000000" face="Consolas, Lucida Console, monospace"><br></font></div><div><font color="#000000" face="Consolas, Lucida Console, monospace"># logging</font></div><div><span style="line-height:13px;text-indent:0px;font-size:11px;white-space:pre-wrap;font-family:monospace">closing AMQP connection <0.4783.0> (<a href="http://127.0.0.1:42097" target="_blank">127.0.0.1:42097</a> -> <a href="http://127.0.0.1:5672" target="_blank">127.0.0.1:5672</a>):
{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.</span><span class="HOEnZb"><font color="#888888"><font color="#000000" face="Consolas, Lucida Console, monospace"><br></font></font></span></div><span class="HOEnZb"><font color="#888888"><div><div><br></div>-- <br>
Best regards,<br>
</div></font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Best regards,<br>
</div>