-
Notifications
You must be signed in to change notification settings - Fork 462
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
Twin update is not triggered after a module reconnection #7148
Comments
Hey @MiraLak, sorry to hear you have issues with twin refresh. Although it is hard to say without edge hub logs, and it is not clear what SDK your custom module uses, one possible explanation is that if edge is offline for extended period, the retry interval is 300 sec (5min). So, it means you might need to wait up to ~5min to make sure the edge hub reconnects. Another possibility is that you don't handle disconnect/connect events. I'm not sure about what SDK you use, but it could be custom module responsibility to check for reconnection and re-request the twin. So let us know what SDK you use and please provide the support bundle with debug logs, so maybe we can engage the SDK team on this. |
Hey @vadim-kovalyov , |
From a conversation I had elsewhere with @vipeller :
This is the part that doesn't seem to be working for the user here. The SDK team has already engaged with the @MiraLak to get most of the details. So, to clear up some possible confusion, there are no connection issues between the module and Edgehub. @MiraLak is only seeing disconnects between Edgehub and IoT hub. So this part
isn't relevant in this case. @MiraLak I believe the support bundle logs @vadim-kovalyov is looking for here are detailed here |
Hey @MiraLak sorry for delay, it was a holiday (Thanksgiving) week here in the US. Thanks @timtay-microsoft for clarifying, now I better understand what is the problem. As @timtay-microsoft mentioned, for me to troubleshoot further please try the following:
Also, if you can send a simple minimal repro (a simple module with the code to handle twin updates) that would help a lot. |
This issue is being marked as stale because it has been open for 30 days with no activity. |
@MiraLak based on the e-mail thread you are included on (Ref: case # 2402190050000566); I am closing this issue. Thanks! |
Expected Behavior
I update the twin properties in the cloud, the changes are instantly synchronized in the edge module.
The edge module is disconnected (no internet connection)
The twin properties are updated in the cloud
The edge module is reconnected (no twin changes locally while it was offline)
The twin changes are spread to the edge module and properties are updated in the edge.
Current Behavior
The edge module is disconnected (no internet connection)
The twin properties are updated in the cloud
The edge module is reconnected (no twin changes locally while it was offline)
The twin changes are never sent to the edge module after reconnection.
Steps to Reproduce
Provide a detailed set of steps to reproduce the bug.
1.Have a working IoT Edge device with one module container (connecting to EdgeHub) running
2. Update twin properties in the IOThub (in the azure portal) and see changes arrive to the Edge Device
3. Disconnect the Edge Device (cut internet connection of the device so it became offline but still running)
4. Update twin properties in the IOThub again in the cloud
5. Reconnect the Edge Device and check the twin properties if they get updated in the device
Context (Environment)
Device Information
Runtime Versions
The text was updated successfully, but these errors were encountered: