-
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
Custom Modules are getting disconnected from edgeHub frequently #7372
Comments
It is expected that the module would be disconnected every 60-70 mn for re-authenticating, however, it shouldn't take 20mn to reconnect. This issue happens when the system is strapped for ressources, can you check the CPU/RAM usage on the machine? |
@huguesBouvier In the EdgeHub module logs, we noticed it reconnects immediately after disconnecting. However, in the IoT Edge Hub Connections section, the modules still show as disconnected. So, we’re unsure if the modules are actually connected or disconnected to EdgeHub or if this is just how IoT Edge version 1.5 behaves. The same issue is happening with all the custom modules—they show as disconnected even after reconnecting. However, one Microsoft module is working fine, and its connection remains stable. I am attaching the screeshot of the IoT Edge Hub Connections Section. In the screenshot I shared, I've hidden the names of the custom modules. Below are the logs which are getting generated.
|
Hi @Pulavarthykarthik-nagarro,
|
@Pulavarthykarthik-nagarro any update on the questions from @ryanwinter |
@Pulavarthykarthik-nagarro any updates? |
@ryanwinter @jlian We raised a support ticket with Microsoft, and they suggested increasing the sastoken_ttl time in the create_from_edge_environment() method. The default was set to 1 hour, but we increased it to 1 day. We're also using a daily cron job to restart the modules, which renews the SAS token. With this setup, we’ve noticed that the connections are now staying stable. |
@Pulavarthykarthik-nagarro Can you answer the questions from @ryanwinter just so that we can help look further? |
Expected Behavior
Modules should not loose their connection to edgeHub
Current Behavior
When we upgraded edgeHub and edgeAgent from version 1.1.19 to 1.5.3, we noticed that all the custom modules connect when edgeHub starts. However, after about an hour, the modules disconnect and reconnect after 20 minutes. This process keeps happening repeatedly.
EdgeHub using Microsoft.Azure.Devices.Edge.Hub.Core.Device.DeviceMessageHandler.SendMessageAsync causes TimeoutException when trying to send messages between modules.
Below are the logs of the edgeHub module
Context (Environment)
Host OS: VERSION= "Ubuntu 20.04.6 LTS"
Architecture: amd64
Container OS: Linux containers
Output of
iotedge check
Device Information
Runtime Versions
iotedge version
]: 1.5.7docker version
]: 23.0.7+The text was updated successfully, but these errors were encountered: