Firmware upgrade provision "File extension check unacceptable"

Dan Morphis dan at milkcarton.com
Wed Feb 20 13:11:51 EST 2019


Run genieacs cwmp in debug mode and look at the log file in
genieacs/debug/acs_id.log  Then grep for the filename and see what is
different between when the file is pushed via the GUI and via your
provisioning script.

-dan

On Mon, Feb 18, 2019 at 10:54 PM Jackson Sparkle <Jack at gamingkeyx.de> wrote:

> I have a Vigor 2760 in many version for VoIP and Wifi, so I use a
> provision script to automatically update the routers firmware by their
> ProductClass. I named the files like this:
> v2760Vn_std_3894.all
> v2760Vn_vect4_3894.all
> v2760n_std_3894.all
>
> If I send the firmware upgrade through the "Push file" in the gui, it
> works, but if the preset is triggered by the provision, I get the
> fault "File extension check unacceptable".
> What am I doing wrong?
>
> My provision looks like this:
> var HARDWARE = declare("InternetGatewayDevice.DeviceInfo.HardwareVersion",
> {value: Date.now()}).value[0];
> var PRODUCT_CLASS =
> declare("InternetGatewayDevice.DeviceInfo.ProductClass", {value:
> Date.now()});
> PRODUCT_CLASS = PRODUCT_CLASS.value[0].replace("Vigor", "v");
> var REP_VERSION =
> declare("InternetGatewayDevice.DeviceInfo.SoftwareVersion", {value:
> Date.now()}).value[0];
> var REQ_VERSION, REQ_FILE;
>
> if (HARDWARE >= "121" && HARDWARE <= "124") { //Vigor2710
> REQ_VERSION = "3.7.3_2111112";
> REQ_FILE = PRODUCT_CLASS + "_b_373.all";
> } else if (HARDWARE >= "136" && HARDWARE <= "138" &&
> !REP_VERSION.includes("VT") && declare("Tags.vt", {value:
> Date.now()}).value === undefined) { //Vigor2760
> REQ_VERSION = "3.8.9.4_STD";
> REQ_FILE = PRODUCT_CLASS + "_std_3894.all";
> } else if (HARDWARE >= "136" && HARDWARE <= "138" &&
> (REP_VERSION.includes("VT") || declare("Tags.vt", {value:
> Date.now()}).value !== undefined)) { //Vigor2760 VT4
> REQ_VERSION = "3.8.9.4_VT4";
> REQ_FILE = PRODUCT_CLASS + "_vect4_3894.all";
> }
>
> if (REP_VERSION !== REQ_VERSION) {
> declare("Tags.upgrading", null, {value: true});
> declare("Tags.vt", null, {value: false});
>
> declare("Downloads.[FileType:1 Firmware Upgrade Image]", {path: 1}, {path:
> 1});
> declare("Downloads.[FileType:1 Firmware Upgrade Image].FileName", {value:
> 1}, {value: REQ_FILE});
> declare("Downloads.[FileType:1 Firmware Upgrade Image].Download", {value:
> 1}, {value: Date.now()});
> }
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20190220/703a39fe/attachment.html>


More information about the Users mailing list