<div dir="ltr">I got the problem<div><br></div><div style>Instead of using </div><div><div>BROKER_URL = &quot;amqp://celeryuser@localhost:5672/celeryvhost&quot;</div><div><br></div><div style>I must use</div><div style><br>

</div><div>BROKER_HOST = &quot;localhost&quot;</div><div>BROKER_PORT = 5672</div><div>BROKER_USER = &quot;celeryuser&quot;</div><div>BROKER_PASSWORD = &quot;celery&quot;</div><div>BROKER_VHOST = &quot;celeryvhost&quot;</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">&lt;<a href="mailto:psdc1978@gmail.com" target="_blank">psdc1978@gmail.com</a>&gt;</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,&#39;Lucida Console&#39;,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,&#39;Lucida Console&#39;,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 &lt;0.4783.0&gt; (<a href="http://127.0.0.1:42097" target="_blank">127.0.0.1:42097</a> -&gt; <a href="http://127.0.0.1:5672" target="_blank">127.0.0.1:5672</a>):
{handshake_error,starting,0,
                 {amqp_error,access_refused,
                             &quot;AMQPLAIN login refused: user &#39;celeryuser&#39; - invalid credentials&quot;,
                             &#39;connection.start_ok&#39;}}

# set vars
$ rabbitmqctl add_user celeryuser celery
$ rabbitmqctl add_vhost celeryvhost
$ rabbitmqctl set_permissions -p celeryvhost celeryuser &quot;.*&quot; &quot;.*&quot; &quot;.*&quot;
Setting permissions for user &quot;celeryuser&quot; in vhost &quot;celeryvhost&quot; ...
...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 &quot;/&quot; ...
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>