Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mosquitto-dev] Mosquitto connection errors

Hi,

 

I have been developing my pub-sub based application using MQTT but have some connection problems.

After the connection was succeeded, disconnecting and my reconnecting is repeatedly.

Can you help me, please?

 

Kind Regards,

Takahashi Masato

 

Here is error description.

1. mosquito broker log

2021-06-09T15:15:49: mosquitto version 2.0.7 starting

2021-06-09T15:15:49: Config loaded from C:\Program Files (x86)\mosquitto/mosquitto.conf.

2021-06-09T15:15:49: Opening ipv6 listen socket on port 1883.

2021-06-09T15:15:49: Opening ipv4 listen socket on port 1883.

2021-06-09T15:15:49: mosquitto version 2.0.7 running

2021-06-09T15:17:12: New connection from x.x.x.x:49466 on port 1883.

2021-06-09T15:17:12: New client connected from x.x.x.x:49466 as Test_pub16436015 (p2, c1, k60, u'my_test').

2021-06-09T15:17:28: Connection Refused: unknown reason

2021-06-09T15:17:28: Client Test_pub16436015 closed its connection.

2021-06-09T15:17:28: New connection from x.x.x.x:49469 on port 1883.

2021-06-09T15:17:28: New client connected from x.x.x.x:49469 as Test_pub16436015 (p2, c1, k60, u'my_test').

2021-06-09T15:17:47: Connection Refused: unknown reason

2021-06-09T15:17:47: Client Test_pub16436015 closed its connection.

2021-06-09T15:17:47: New connection from x.x.x.x:49472 on port 1883.

2021-06-09T15:17:47: New client connected from x.x.x.x:49472 as Test_pub16436015 (p2, c1, k60, u'my_test').

2021-06-09T15:18:13: Client Test_pub16436015 disconnected due to malformed packet.

2021-06-09T15:18:13: New connection from x.x.x.x:49476 on port 1883.

2021-06-09T15:18:13: New client connected from x.x.x.x:49476 as Test_pub16436015 (p2, c1, k60, u'my_test').

2021-06-09T15:18:55: Client Test_pub16436015 closed its connection.

2021-06-09T15:18:55: New connection from x.x.x.x:49481 on port 1883.

2021-06-09T15:18:55: New client connected from x.x.x.x:49481 as Test_pub16436015 (p2, c1, k60, u'my_test').

2021-06-09T15:19:07: Client Test_pub16436015 closed its connection.

 

2. client log

[2021-06-09 15:17:12.546] mqtt_client::mqtt_client() called

[2021-06-09 15:17:12.550] MQTT broker: x.x.x.x:1883

[2021-06-09 15:17:12.553] MQTT client: Test_pub16436015

[2021-06-09 15:17:12.556] mqtt_client::afx_connect()

[2021-06-09 15:17:12.570] my_mqtt_loop() - start

[2021-06-09 15:17:12.580] mqtt_client::on_connect() - Code 0

[2021-06-09 15:17:28.275] mqtt_client::on_disconnect() - Code 14

[2021-06-09 15:17:28.278] loop() failed : 14

[2021-06-09 15:17:28.295] mqtt_client::afx_reconnect() called

[2021-06-09 15:17:28.299] mqtt_client::on_connect() - Code 0

[2021-06-09 15:17:47.096] mqtt_client::on_disconnect() - Code 14

[2021-06-09 15:17:47.099] loop() failed : 14

[2021-06-09 15:17:47.123] mqtt_client::afx_reconnect() called

[2021-06-09 15:17:47.128] mqtt_client::on_connect() - Code 0

[2021-06-09 15:18:13.384] mqtt_client::on_disconnect() - Code 7

[2021-06-09 15:18:13.387] loop() failed : 7

[2021-06-09 15:18:13.404] mqtt_client::afx_reconnect() called

[2021-06-09 15:18:13.408] mqtt_client::on_connect() - Code 0

[2021-06-09 15:18:55.507] mqtt_client::on_disconnect() - Code 14

[2021-06-09 15:18:55.510] loop() failed : 14

[2021-06-09 15:18:55.537] mqtt_client::afx_reconnect() called

[2021-06-09 15:18:55.542] mqtt_client::on_connect() - Code 0

 


Back to the top