-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tedge connect c8y does not cleanly close the local MQTT connection #3024
Labels
Milestone
Comments
11 tasks
The linked PR includes a system test: |
The bug is not reproducable anymore. |
Closed
11 tasks
This was referenced Nov 18, 2024
This was referenced Nov 27, 2024
This was referenced Dec 5, 2024
Merged
This was referenced Dec 16, 2024
Merged
This was referenced Jan 2, 2025
This was referenced Jan 10, 2025
Merged
This was referenced Jan 16, 2025
This was referenced Jan 24, 2025
didier-wenzek
added a commit
to didier-wenzek/thin-edge.io
that referenced
this issue
Jan 28, 2025
This test has been introduced by thin-edge#3024 but is flaky because a similar OpenSSL error occurs but for an unrelated reason. It the original ticket, the issue was clients failing to disconnect properly after a successful session. In the flaky case, the client is not even able to establish an MQTT connection: ``` Jan 27 13:06:41 0578accd2d08 mosquitto[787]: 1737983201: New connection from 127.0.0.1:35138 on port 8883. Jan 27 13:06:41 0578accd2d08 mosquitto[787]: 1737983201: OpenSSL Error[0]: error:0A000126:SSL routines::unexpected eof while reading Jan 27 13:06:41 0578accd2d08 mosquitto[787]: 1737983201: Client <unknown> disconnected: Protocol error. ``` To be compared to a client that connects successfully: ``` Jan 28 08:49:54 1bc252b47d05 mosquitto[1305]: 1738054194: New connection from 127.0.0.1:55188 on port 8883. Jan 28 08:49:54 1bc252b47d05 mosquitto[1305]: 1738054194: New client connected from 127.0.0.1:55188 as suftwjdgsw (p2, c1, k60). Jan 28 08:49:54 1bc252b47d05 mosquitto[1305]: 1738054194: No will message specified. Jan 28 08:49:54 1bc252b47d05 mosquitto[1305]: 1738054194: Sending CONNACK to suftwjdgsw (0, 0) Jan 28 08:49:54 1bc252b47d05 mosquitto[1305]: 1738054194: Received SUBSCRIBE from suftwjdgsw Jan 28 08:49:54 1bc252b47d05 mosquitto[1305]: 1738054194: c8y/s/dat (QoS 1) ``` Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
11 tasks
didier-wenzek
added a commit
to didier-wenzek/thin-edge.io
that referenced
this issue
Jan 28, 2025
This test has been introduced by thin-edge#3024 but is flaky because a similar OpenSSL error occurs but for an unrelated reason. It the original ticket, the issue was clients failing to disconnect properly after a successful session. In the flaky case, the client is not even able to establish an MQTT connection: ``` Jan 27 13:06:41 0578accd2d08 mosquitto[787]: 1737983201: New connection from 127.0.0.1:35138 on port 8883. Jan 27 13:06:41 0578accd2d08 mosquitto[787]: 1737983201: OpenSSL Error[0]: error:0A000126:SSL routines::unexpected eof while reading Jan 27 13:06:41 0578accd2d08 mosquitto[787]: 1737983201: Client <unknown> disconnected: Protocol error. ``` To be compared to a client that connects successfully: ``` Jan 28 08:49:54 1bc252b47d05 mosquitto[1305]: 1738054194: New connection from 127.0.0.1:55188 on port 8883. Jan 28 08:49:54 1bc252b47d05 mosquitto[1305]: 1738054194: New client connected from 127.0.0.1:55188 as suftwjdgsw (p2, c1, k60). Jan 28 08:49:54 1bc252b47d05 mosquitto[1305]: 1738054194: No will message specified. Jan 28 08:49:54 1bc252b47d05 mosquitto[1305]: 1738054194: Sending CONNACK to suftwjdgsw (0, 0) Jan 28 08:49:54 1bc252b47d05 mosquitto[1305]: 1738054194: Received SUBSCRIBE from suftwjdgsw Jan 28 08:49:54 1bc252b47d05 mosquitto[1305]: 1738054194: c8y/s/dat (QoS 1) ``` Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Describe the bug
The following MQTT client instances do not send an MQTT
DISCONNECT
to official close the connection.Below are the mosquitto log entries showing the abrupt disconnects (which seem to be visible via the
OpenSSL Error
message):client id: check_connection_c8y
client id: get_jwt_token_c8y
To Reproduce
When using TLS settings on the local MQTT mosquitto broker, the following commands seem to be enough to invoke the error:
The following ticket is a similar ticket which has already been solved but was another instance of an MQTT client not closing the connection cleanly:
Expected behavior
In normal operation, an MQTT client should close the MQTT connection cleanly by sending a
DISCONNECT
packet to the broker.Screenshots
Environment (please complete the following information):
All
All
All
1.1.2~320+g48a9843
Additional context
The text was updated successfully, but these errors were encountered: