如何修复RabbitMQ在x射线上的403错误
视频记录:
嗨。我的名字是来自JFrog的Loren,今天我们将诊断,以及如何修复Xray报告的rabbitMQ 403错误。这里有一个它看起来像什么的例子。在x射线服务器日志中,它说,连接到rabbitMQ消息队列错误。检查MQ设置。异常403原因,用户或密码不允许。这个错误有点误导人。这通常意味着密码实际上是不正确的或没有提供,而不是不允许。让我们来看一个现场演示。所以我们可以看到x射线已经尝试了很多次,超过一百次。 You can see it’s continuing to do so. So let’s stop Xray.
好吧。因此,我们要做的第一件事是找出是否为rabbitMQ设置了密码。所以,最简单的方法是找到rabbitMQ配置文件。所以我们可以通过这个命令找到它。这就是。我们可以看到它已经设置好了。说明此参数的默认下划线pass和密码已设置为password。接下来,让我们验证这个密码是否正确。因此,我们可以通过使用rabbitMQctl CLI来做到这一点。这将位于op文件夹中。首先,我运行一个状态命令。 Make sure the RQ is running with the status returns that it’s unavailable or not available. You want to try using the extra user by running SU-Xray first. This is the extralytics user, and sometimes it permissions are owned by this guy, in this user.
接下来,让我们验证用户密码组合是否正确。在本例中,默认用户将是guests。身份验证。好吧。我能看到成功。这意味着密码是正确的。通常默认密码是guests,在我们的例子中,密码应该是2JFXR_rabbitMQ。现在rabbitMQ接受了它,让我们去验证我们在x射线上的系统确实有这个集合。所以我们可以看到这里根本没有密码账单。现在让我们从x射线开始。 We’ll check the service log. And we can see here, all services is actually started. Okay. Just to verify, let’s run a quick curl. Can run netstat to see what the port is on. So we have a customized port here. And there we go, and everything is up and running. Thank you for listening. This has been Loren with JFrog support.
