hui6075 / mosquitto-cluster

a built-in, autonomous Mosquitto Cluster implementation. MQTT集群.
Other
325 stars 110 forks source link

编译你的最新代码发现不能工作 #11

Open charliexp opened 5 years ago

charliexp commented 5 years ago

image 同一个机器上运行两个进程,报: 1550736719: mosquitto version 1.5.0 starting 1550736719: Config loaded from m1.conf. 1550736719: Opening ipv4 listen socket on port 3883. 1550736719: Warning: Mosquitto should not be run as root/administrator. 1550736719: [CLUSTER] totally 1 remote nodes configured: 1550736719: [CLUSTER] Node(1):node2, ip:127.0.0.1, port:4883, local_clientid:node2, remote_clientid:iZwz952485a5pzbjpqso0aZ_945, remote_username:(null), remote_password:(null), keepalive:10 1550736721: [CLUSTER INIT] node node2 service maybe down, will reconnect later after 2 seconds.. 1550736722: New connection from 127.0.0.1 on port 3883. 1550736723: Socket error on client , disconnecting. 1550736725: [CLUSTER INIT] Finally handshake with node: node2 success. Segmentation fault

node_name node1 node_address 127.0.0.1:3883

node_name node2 node_address 127.0.0.1:4883

hui6075 commented 5 years ago

既有finally handshake success又有segment fault?是建立连接之后发生了段错误?我最近没有合代码,你看看coredump或者dmesg,看看段错误发生在哪一行代码?

charliexp commented 5 years ago

添加了websocket组件后会segment fault 去掉 websocket后是这样: image 这是配置不对还是?

charliexp commented 5 years ago

是要用户密码吗?但是我配置了匿名登入了

charliexp commented 5 years ago

可以了,就是开启websocket组件编译的时候有问题

hui6075 commented 5 years ago

可否提供详细信息,以便后来的朋友遇到此问题时方便定位?

charliexp commented 5 years ago

后续我玩一下,提供更多信息吧,现在还不熟,随便问一下,这个用在生产环境了吗?

charliexp commented 5 years ago
2019-02-23 10 51 28 2019-02-23 10 54 15
charliexp commented 5 years ago

最后一行的地址

charliexp commented 5 years ago
2019-02-23 11 05 13
charliexp commented 5 years ago

添加websocket 编译 ,运行直接报段错误如图

hui6075 commented 5 years ago

@charliexp 用了,和其他broker混用的