Hi,
I would like to ask you whether there is a way e.g. from the Azure portal to restart remotely the Azure IoT Edge runtime running on the gateway? If not, is there a plan to support it?
I am asking because we are seeing a situation when our custom Edge module doesn't start properly when we remove it and add it again. I know this will be fixed and I got some other recommendations how to resolve or workaround the issue.
In this case the solution was to restart the IoT Edge runtime and then our module started too. Maybe there will be some other issue in the future and the restart of the runtime will be needed. So I would like to know whether there is a plan to have this feature.
Thank you.
This isn't directly supported but is something that we are looking to add in the next couple of months.
You can simulate a restart for your module by setting the status to "stopped", deploying, and then setting to "running" and redeploying. This will cause the Edge Agent to stop the module and then subsequently start it. However, this will not work for the Edge Agent itself or the daemon (iotedged).
Can I ask why you are removing modules and adding them back? I'm just trying to understand the scenario. Perhaps we can improve the underlying issue.
Well, at this moment we are doing it during the development. But I can imagine that in the future our customers will install some custom module. They can then decide to remove it and maybe add later because they will need it again.
But as I wrote, it may happen that there will be another issue that will require restart of the Azure IoT Edge runtime. And if the gateway will not be accessible via SSH e.g. then it will be a big problem.
We fully understand the concern and will have a solution in the near term. I unfortunately can't provide more details at this moment.
+1
Edge devices in my use cases are turn-key arms-length affairs locked away on a customer premises. Remote restart (or killing of the container so docker will restart it) of IOT Edge Agent would be good so we wouldn't have to ask a customer to press the reboot button on the Edge hardware.
+1
Edge devices in my use cases are turn-key arms-length affairs locked away on a customer premises. Remote restart (or killing of the container so docker will restart it) of IOT Edge Agent would be good so we wouldn't have to ask a customer to press the reboot button on the Edge hardware.
Likewise, I foresee the need to restart the operating system on an Edge device via a direct module method call. I don't believe you can restart an operating system from the within the container due to the security.
+1
This is an issue for me as well. I workaround it with an ssh systemctl restart iotedge.service , but it'd be more reliable to have an az iot edge command to do that.
We are facing a similar problem, we don't really want to run one of our containers with elevated permissions. It would be excellent if this sort of functionality was built-in.
This issue is being marked as stale because it has been open for 30 days with no activity.
This isn't directly supported but is something that we are looking to add in the next couple of months.
Any chances that this feature will be added?
We fully understand the concern and will have a solution in the near term. I unfortunately can't provide more details at this moment.
What exactly do you mean by "near term"?
@mparkitny - can you please clarify which components on the edge device you'd like to restart remotely?
@veyalla
prefferably entire device, but restarting runtime would also be useful
@veyalla – if we were able to restart any module that would be useful too. Many thanks.
From: mparkitny notifications@github.com
Sent: 05 December 2019 05:29
To: Azure/iotedge iotedge@noreply.github.com
Cc: Peter Mills Peter.Mills@acumentive.com; Comment comment@noreply.github.com
Subject: Re: [Azure/iotedge] Remote restart of the Azure IoT Edge runtime (#608)
@veyallahttps://github.com/veyalla
prefferably entire device, but restarting runtime would also be useful
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/Azure/iotedge/issues/608?email_source=notifications&email_token=AMWKUHYRN5RSPYDIQIZ4H2LQXCGSZA5CNFSM4GIYJXQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEF7RFLA#issuecomment-561975980, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMWKUH46OCKOHDGY6FSODI3QXCGSZANCNFSM4GIYJXQQ.
Any status on this? @myagley mentioned that a solution might be in the works.
FWIW, I'd like to see the ability to invoke a Direct Method on $edgeAgent that could...
@myagley @veyalla
Any updates ?
We've added support to restart modules via an edge agent direct method in the 1.0.9 release, see: https://docs.microsoft.com/azure/iot-edge/how-to-edgeagent-direct-method#restart-module
At this time, there are no plans to implement rebooting the device or other host components via the application framework.
Thanks for your patience, closing this issue!
Most helpful comment
Any status on this? @myagley mentioned that a solution might be in the works.
FWIW, I'd like to see the ability to invoke a Direct Method on $edgeAgent that could...