安装Helm图表后,组件“ mongodb”,“ postgres”和“ rabbitmq”成功启动。
但是,所有4个XRay微服务都无法启动,因为它们无法连接到RabbitMQ:
[06:06:11 UTC 2018/09/07] [INFO] (jfrog.com/xray/mongo.EnsureDbSchema:9) Initializing mongo db schema...
[06:06:11 UTC 2018/09/07] [INFO] (jfrog.com/xray/mongo.EnsureDbSchema:248) Mongo schema initialization finished
...
[06:06:11 UTC 2018/09/07] [INFO] (jfrog.com/xray/xqueue/connector.connectToRabbitMQ:75) Rabbitmq connecting to uri: amqp://guest:?;W5.)lz?xaNRABBITMQ_URLJu6#{8JmI[d@xray-rdvgk-rabbitmq-ha:5672/
[06:06:11 UTC 2018/09/07] [EROR] (jfrog.com/xray/xqueue/connector.connectToRabbitMQ:78)
_____ _ _ _ _ __ __ ____ _ _ _ _ _ _
| __ \ | | | | (_) | | \/ |/ __ \ (_) | | (_) | | | | |
| |__) |__ _| |__ | |__ _| |_| \ / | | | | _ ___ _ __ ___ | |_ __ ___ ____ _ _| | __ _| |__ | | ___
| _ // _ | _ \| _ \| | __| |\/| | | | | | / __| | _ \ / _ \| __| / _ \ \ / / _ | | |/ _ | _ \| |/ _ \
| | \ \ (_| | |_) | |_) | | |_| | | | |__| | | \__ \ | | | | (_) | |_ | (_| |\ V / (_| | | | (_| | |_) | | __/
|_| \_\__ _|_ __/|_ __/|_|\__|_| |_|\___\_\ |_|___/ |_| |_|\___/ \__| \__ _| \_/ \__ _|_|_|\__ _|_ __/|_|\___|
[06:06:11 UTC 2018/09/07] [EROR] (jfrog.com/xray/xqueue/connector.connectToRabbitMQ:79) Error connecting to rabbit message queue amqp://guest:password@xray-rdvgk-rabbitmq-ha:5672/ check mq settings
我在命令行和管理控制台中检查了密码,并且密码也失败了。在配置文件中,似乎可以设置空密码。但是,我将密码更改为期望的密码并进行了验证:
bash-4.4# rabbitmqctl change_password guest "password"
Changing password for user "guest" ...
bash-4.4# rabbitmqctl authenticate_user guest "password"
Authenticating user "guest" ...
Success
XRay服务仍然无法连接。
我还注意到,rabbitmq将失败的身份验证输出到日志,但是当XRay连接失败时,它不会输出。因此,这也可能是连通性问题-但是我尝试了netcat
从相同命名空间中的另一个pod到Rabbitmq并成功了,因此端口应该可以访问。