I have a firmware update script that runs on 1 BOOT, which upgrades my devices to the newest version I have, it is not a very complicated script, and it was working for months, applying the firmware after I applied the TR069 settings in the router. But now I’m having issues and I receive a fault cwmp.9002 after the transfer is complete apparently.
Here is the firmware update script:
const now = Date.now();
const v86 = "V1.1.086_20220214095753_XGS_local.img";
const v91 = "V1.1.091_20220331094251_XGS_local.img";
log('firmware v91 update script executing...')
declare("Downloads.[FileType:1 Firmware Upgrade Image]", {path: 1}, {path: 1});
declare("Downloads.[FileType:1 Firmware Upgrade Image].FileName", {value: 1}, {value: v91}); declare("Downloads.[FileType:1 Firmware Upgrade Image].Download", {value: 1}, {value: now});
log('END FIRMWARE')
Followed by a reboot script that is called on 7 TRANSFER COMPLETE
log("Rebooting!!");
declare("Reboot", null, {value: Date.now()});
And lastly the output of genieacs-cwmp-access.log:
AZRS6F47EF9E: Script: firmware v91 update script executing…
AZRS6F47EF9E: Script: END FIRMWARE
AZRS6F47EF9E: Script: Rebooting!!
AZRS6F47EF9E: ACS request; acsRequestId=“18186fafc7c0000” acsRequestName=“Download” acsRequestCommandKey=“18186fafc7c0000”
AZRS6F47EF9E: Missing or invalid XML node; element=“StartTime”
AZRS6F47EF9E: Missing or invalid XML node; element=“CompleteTime”
AZRS6F47EF9E: ACS request; acsRequestId=“18186fafc7c0001” acsRequestName=“Reboot”
AZRS6F47EF9E: Script: Rebooting!!
AZRS6F47EF9E: Inform; cpeRequestId=“1626849438” informEvent=“7 TRANSFER COMPLETE” informRetryCount=0
AZRS6F47EF9E: CPE request; cpeRequestId=“transfercomplete” cpeRequestName=“TransferComplete” cpeRequestCommandKey=“18186fafc7c0000”
AZRS6F47EF9E: Channel has faulted; channel=“firmware” retries=1 faultCode=“cwmp.9002” faultMessage=“Internal error”
I suspect it might have something to do with the StartTime and CompleteTime? But I haven’t changed anything I would’ve though would break this.
Thanks in advance!