但是,所有4个X射线微服务都无法启动,因为它们无法连接到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,它工作了,所以端口应该是可以访问的。