Closed LiyouZhou closed 5 years ago
We're experiecing the same issue when running the Pelion DM tests, which make use of mbed dm
- https://github.com/ARMmbed/simple-mbed-cloud-client/#testing
CC @theotherjimmy @bridadan
Thanks very much for providing the log and a proposed solution. What you've suggested makes sense to me. This part of the update process is handled by the manifest-tool, so the fix would need to be handled by that tool and its team.
In fact, it looks like someone has already raised an issue for this problem: https://github.com/ARMmbed/manifest-tool/issues/7. Shall we close this issue and keep the conversation going over there?
Issues on the manifest-tool are not monitored. I think it is best to keep this open.
Internal Jira reference: https://jira.arm.com/browse/MBOCUSTRIA-868
Here is a fix for the SDK to enable this: https://github.com/ARMmbed/mbed-cloud-sdk-python/pull/322
After that manifest-tool could enable that by default.
mbed dm update device will start a campaign and wait for campaign to go into autostopped state, but if I interrupt this process, mbed dm will try to delete a campagin in publishing mode which is not allowed. Hence I am greeted with error:
The consequence of this is the campaign is left running, and the device is forever prevented from joining another campaign. Now I have to go into portal to manually stop the campaign and deleting it before i can call mbed dm again.
Solution is: to clean up a campaign, mbed dm should first stop it before deleting.