无法通过 EasyNetQ 连接 RabbitMQ,拒绝用户访客访问 [英] Failing to connect RabbitMQ through a EasyNetQ, getting access refused for user guest

查看:40
本文介绍了无法通过 EasyNetQ 连接 RabbitMQ,拒绝用户访客访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

收到一个对我来说没有意义的奇怪错误.

Getting a strange error that doesn't make sense to me.

RabbitMQ 拒绝允许从在特定机器上使用 EasyNetQ 的 .Net 应用程序访问,但它在另一台机器上运行良好.

RabbitMQ is refusing to allow access from a .Net application using EasyNetQ on a particular machine, when it works fine on another machine.

客户端应用清楚地解析了 DNS,权限是完全开放的,并且可以在另一种情况下使用.

The client app clearly resolves DNS, permissions are wide open, and it works in another situation.

这是一个开箱即用的rabbitmq安装.

This is an out of the box rabbitmq installation.

RabbitMQ 在 Linux Amazon 实例上运行,而客户端在 Windows Server 2008 Amazon 实例上运行,并且它在 Windows 8 桌面上运行.

RabbitMQ is running on a Linux Amazon Instance, while the client is running on a Windows Server 2008 Amazon instance, and it works from a Windows 8 desktop.

我得到:

=错误报告==== 2-Jul-2013::11:54:04 ===关闭 AMQP 连接 <0.1145.22> (107.23.30.43:62815 -> 10.125.160.196:5672):{handshake_error,opening,0,{amqp_error,access_refused,"用户 'guest' 拒绝访问 vhost '/\r\n '",'connection.open'}}

=ERROR REPORT==== 2-Jul-2013::11:54:04 === closing AMQP connection <0.1145.22> (107.23.30.43:62815 -> 10.125.160.196:5672): {handshake_error,opening,0, {amqp_error,access_refused, "access to vhost '/\r\n ' refused for user 'guest'", 'connection.open'}}

有什么想法吗?

谢谢,

  • 丹尼尔

推荐答案

可能,'/\r\n' 应该只是 '/',除非你明确在名称中使用特殊符号创建这样的虚拟主机.检查您的连接参数.

Probably, '/\r\n' should be just '/', unless you explicitly create such vhost with special symbols in name. Check your connection params.

这篇关于无法通过 EasyNetQ 连接 RabbitMQ,拒绝用户访客访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆