C8y_firmware operation cancelled by server after 1 hour

Hi all,

I’m developing an IOT device communicating with a cumulocity device management server via lwm2m.

In writing automated testing for the lwm2m FOTA process I’ve been running into an issue where the server is consistently cancelling the c8y_firmware operation 1 hour after the device starts to download.


(Apologies for the resolution of the screenshots here. Had to get a little crafty with the limit of 1 attachment.)

Reading the error message, it suggests that another firmware update operation is currently active on the device. However, when I check the control tab all other fota operations are in the failed category and there are no pending or executing operations.

I’m suspecting this comes down to user error as the same process is working fine for a different device and user account. Has anyone encountered a similar issue?

Hi Michael,

Sorry for the delay in the reply.

Could you let us know which environment (domain name) is this?
We are asking to ensure the version we are running in this environment.

Hi,

Thanks for taking a look. The server is hosted by Telstra so I’m not sure if you’ll be able to access the domain directly. It might be I slightly outside the scope of a community forum, but I can provide a platform-details.json if there is a way to share it privately.

Kind regards,
Michael

Hi Michael.

It looks like you’re hitting a firmware delivery timeout which is set to 1 hour by default. This can be changed in agent configuration by setting c8y.lwm2m.fwupdate.firmwareDeliveryTimeout property (value in milliseconds). Unfortunally it requires LWM2M agent restart and it can be done only by operations team.

Best regards,

Jakub Sobolewski

1 Like

Hi Jakub,

Thanks for taking a look. That sounds like a likely root cause. We’ll follow up with the support team for the server to double check what the timeout is set too.

Kind regards,
Michael