[rabbitmq-discuss] Python client to RabbitMQ.....error?
Dmitriy Samovskiy
dmitriy.samovskiy at cohesiveft.com
Fri Sep 28 15:54:41 BST 2007
Hi Lynton,
Grice, Lynton wrote:
>
> =INFO REPORT==== 28-Sep-2007::16:04:06 ===
> accepted TCP connection on 0.0.0.0:5672 from 127.0.0.1:3259
>
> =INFO REPORT==== 28-Sep-2007::16:04:07 ===
> VHost access refused: no mapping for User <<"guest">>, VHost
> <<"127.0.0.1">>
Looks like this is what's causing it.
You can find access control docs at
http://www.rabbitmq.com/admin-guide.html#access-control.
But in this case I don't know why it tries to connect you to '127.0.0.1'
vhost - default vhost is '/' which includes mapping for user guest.
Maybe try this:
>> import qpid
>>
>> from qpid.client import Client
>>
>> from qpid.content import Content
>>
>>
>>
>> client = Client("127.0.0.1", 5672, spec=qpid.spec.load('amqp0-8.xml'))
Replace this line with this:
client = Client("127.0.0.1", 5672, spec=qpid.spec.load('amqp0-8.xml'),
vhost='/')
And see if it works.
Also, do you have the latest qpid python libs from subversion?
>>
>> client.start({ 'LOGIN': 'guest', 'PASSWORD': 'guest'})
>>
- Dmitriy
More information about the rabbitmq-discuss
mailing list