如何修复Xray上RabbitMQ的403个错误[视频]

罗兰杨
2023-01-22 11:09

视频记录:
你好。我是来自JFrog的Loren,今天我们将诊断和修复Xray报告的rabbitMQ 403错误。这里有一个例子。在x射线服务器日志中,它说,连接到rabbitMQ消息队列错误。检查MQ设置。异常403原因,用户或密码不允许。这个错误有点误导人。这通常意味着密码实际上不正确或没有提供,而不是不允许。让我们来看看现场演示。我们可以看到,Xray已经尝试重试了很多次,超过一百次。 You can see it’s continuing to do so. So let’s stop Xray.

好的。因此,我们要做的第一件事是找出rabbitMQ的密码是否已经设置。所以,最简单的方法就是找到rabbitMQ的conf,所以我们可以通过这个命令找到它。就是这个。我们可以看到它已经凝固了。说明此参数中,默认下划线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, password,在我们的例子中,应该是2JFXR_rabbitMQ。现在rabbitMQ接受了它,让我们去验证Xray上的系统是否有这个集合。所以我们可以看到这里根本没有密码法案。现在让我们从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.