RabbitMQ + MQTT:无法发布任何消息:登录超时

huangapple go评论83阅读模式
英文:

RabbitMQ + MQTT: unable to publish any messages: login timeout

问题

我部署了一个带有MQTT插件的RabbitMQ服务器。突然之间,我的应用程序无法发布任何消息:

info: paho: 使用MQTT客户端:ssl://example.com:8883/
error: paho: [net] 连接出现EOF错误
error: paho: [net] 连接出现EOF错误
error: paho: [client] 连接到代理失败

当我尝试使用CLI发布消息时,完全相同的情况发生:它在10秒钟后超时:

$ mosquitto_pub -h example.com -u "user" -P "pass" -t "test" -m "123"
错误:连接丢失。

我检查了服务器日志,它们只有这个信息:

[error] 关闭MQTT连接 "1.2.3.4:40462 -> 4.5.6.7:1883"(登录超时)

"登录超时"。为什么?

英文:

I deployed a RabbitMQ server with an MQTT plugin. All of a sudden, my app was no able to publish any messages:

info: paho: MQTT Client using: ssl://example.com:8883/
error: paho: [net]      connect got error EOF
error: paho: [net]      connect got error EOF
error: paho: [client]   Failed to connect to a broker

Same thing happens when I try to publish a message using CLI: it times out in exactly 10 seconds:

$ mosquitto_pub -h example.com -u "user" -P "pass" -t "test" -m "123"
Error: The connection was lost.

I checked the server logs, and they only have this:

[error] closing MQTT connection "1.2.3.4:40462 -> 4.5.6.7:1883" (login timeout)

"Login timeout". Why?

答案1

得分: 0

这是RabbitMQ+MQTT在磁盘空间不足时的行为:它会开始断开连接,而在日志中唯一的消息是:

> 关闭MQTT连接:(登录超时)

腾出一些磁盘空间,重新启动(以防万一),然后它将正常工作。

了解更多信息:免费磁盘空间警报

英文:

This is how RabbitMQ+MQTT behave when you're out of disk space: it just starts dropping connections, and the only message you get in the logs is this:

> closing MQTT connection: (login timeout)

Get some disk space, reboot (just in case), and it will work just fine.

Read more about this: Free Disk Space Alarms

huangapple
  • 本文由 发表于 2023年5月29日 04:08:44
  • 转载请务必保留本文链接:https://go.coder-hub.com/76353409.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定