Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » Puback not received(Puback not received ad client disconnects form broker)
Puback not received [message #1059991] Wed, 22 May 2013 13:14
marco divita is currently offline marco divitaFriend
Messages: 2
Registered: May 2013
Junior Member
Hi,
I have a problem in my mqtt client.
The scenario is:
1) A client with id "macchina 1" is connected to broker with Keep Alive Timer = 0 and it's subscribed to topic c/1/+/sts (this client is based on Paho library)
2) Another client with id "3" connects to broker every 5 minutes and it publishes a message on topic c/1/3/sts

During it's working happens that the client with id "macchina 1" doesn't send anymore the puback and after some retring of publishing of the broker the socket gives an error for "macchina 1".
To recover I need to restar the application with client id "macchina 1" because the client's connection is put down.

Here it is the mosquitto's log:

1369208386: New connection from 95.240.30.96.
1369208386: New client connected from 95.240.30.96 as macchina1.
1369208386: Sending CONNACK to macchina1 (0)
1369208387: Received PINGREQ from macchina1
1369208387: Sending PINGRESP to macchina1

1369208400: New connection from 151.18.71.174.
1369208400: New client connected from 151.18.71.174 as 3.
1369208400: Sending CONNACK to 3 (0)
1369208407: Received PUBLISH from 3 (d0, q1, r1, m10, 'c/1/3/sts', ... (19 bytes))
1369208407: Sending PUBACK to 3 (Mid: 10)
1369208407: Sending PUBLISH to macchina1 (d0, q1, r0, m753, 'c/1/3/sts', ... (19 bytes))
1369208407: Received PUBACK from macchina1 (Mid: 753)
1369208413: Received DISCONNECT from 3

1369208697: New connection from 151.47.77.5.
1369208697: New client connected from 151.47.77.5 as 3.
1369208697: Sending CONNACK to 3 (0)
1369208706: Received PUBLISH from 3 (d0, q1, r1, m10, 'c/1/3/sts', ... (19 bytes))
1369208706: Sending PUBACK to 3 (Mid: 10)
1369208706: Sending PUBLISH to macchina1 (d0, q1, r0, m754, 'c/1/3/sts', ... (19 bytes))
1369208706: Received PUBACK from macchina1 (Mid: 754)
1369208712: Received DISCONNECT from 3

1369208995: New connection from 151.19.68.34.
1369208996: New client connected from 151.19.68.34 as 3.
1369208996: Sending CONNACK to 3 (0)
1369209002: Received PUBLISH from 3 (d0, q1, r1, m10, 'c/1/3/sts', ... (19 bytes))
1369209002: Sending PUBACK to 3 (Mid: 10)
1369209002: Sending PUBLISH to macchina1 (d0, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))

[color=red]There isn't PUBACK from macchina1[/color]

1369209009: Received DISCONNECT from 3
1369209023: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209044: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209065: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209086: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209107: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209109: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1369209128: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209149: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209170: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209191: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209212: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209233: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209254: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209275: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))

1369209292: New connection from 151.46.34.137.
1369209293: New client connected from 151.46.34.137 as 3.
1369209293: Sending CONNACK to 3 (0)
1369209296: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209299: Received PUBLISH from 3 (d0, q1, r1, m10, 'c/1/3/sts', ... (19 bytes))
1369209299: Sending PUBACK to 3 (Mid: 10)
1369209306: Received DISCONNECT from 3
1369209317: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209338: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209359: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209380: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209401: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209422: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209443: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209464: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209485: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209506: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209527: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209548: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209569: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))

1369209589: New connection from 151.31.161.144.
1369209589: New client connected from 151.31.161.144 as 3.
1369209589: Sending CONNACK to 3 (0)
1369209590: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209596: Received PUBLISH from 3 (d0, q1, r1, m10, 'c/1/3/sts', ... (19 bytes))
1369209596: Sending PUBACK to 3 (Mid: 10)
1369209602: Received DISCONNECT from 3
1369209611: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209632: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209653: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209674: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209695: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209716: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209737: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209758: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209779: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209800: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209821: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209842: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209863: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209884: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))

1369209886: New connection from 151.46.130.62.
1369209887: New client connected from 151.46.130.62 as 3.
1369209887: Sending CONNACK to 3 (0)
1369209893: Received PUBLISH from 3 (d0, q1, r1, m10, 'c/1/3/sts', ... (19 bytes))
1369209893: Sending PUBACK to 3 (Mid: 10)
1369209899: Received DISCONNECT from 3
1369209905: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209926: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369209947: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
[color=red]1369209956: Socket read error on client macchina1, disconnecting.[/color]

[b][color=blue]Restart my application[/color][/b]

1369210135: New connection from 95.240.30.96.
1369210135: New client connected from 95.240.30.96 as macchina1.
1369210135: Sending CONNACK to macchina1 (0)
1369210135: Sending PUBLISH to macchina1 (d1, q1, r0, m755, 'c/1/3/sts', ... (19 bytes))
1369210135: Received PINGREQ from macchina1
1369210135: Sending PINGRESP to macchina1
1369210136: Received PUBACK from macchina1 (Mid: 755)
1369210136: Sending PUBLISH to macchina1 (d0, q1, r0, m756, 'c/1/3/sts', ... (19 bytes))
1369210136: Received PUBACK from macchina1 (Mid: 756)
1369210136: Sending PUBLISH to macchina1 (d0, q1, r0, m757, 'c/1/3/sts', ... (19 bytes))
1369210137: Received PUBACK from macchina1 (Mid: 757)
1369210137: Sending PUBLISH to macchina1 (d0, q1, r0, m758, 'c/1/3/sts', ... (19 bytes))
1369210137: Received PUBACK from macchina1 (Mid: 758)
Previous Topic:publish exception issue
Next Topic:MQTT Java Client Binary Jar out of Step with GIT code
Goto Forum:
  


Current Time: Fri Apr 26 20:16:57 GMT 2024

Powered by FUDForum. Page generated in 0.02998 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top