# GenieACS Push File

**URL:** <https://forum.genieacs.com/t/genieacs-push-file/427>\
**Category:** Uncategorized\
**Created:** [November 5, 2019, 6:43pm UTC](https://forum.genieacs.com/t/genieacs-push-file/427 "2019-11-05T18:43:30Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaeljohnsondai](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@michaeljohnsondai](https://forum.genieacs.com/u/michaeljohnsondai)\
**Post date:** [November 5, 2019, 6:43pm UTC](https://forum.genieacs.com/t/genieacs-push-file/427/1 "2019-11-05T18:43:30Z")

</div>

Hello,

I built and deployed the latest version of GenieACS. I have openwrt with easycwmp running and connected to it. I can perform device reboots and other functions. When I try to push a file I get an error in GenieACS

> task\_5dc1c0840b855d11d91bc3f0 script.Error Invalid arguments 1 11/5/2019, 10:41:15 AM

I’ve tried capturing HTTP data to determine what is going to my cwmp but I don’t see any traffic with the file information in it. I suspect this error is happening in GenieACS.

I also tested the download directly from my wrt/cwmp device with the easycwmp download command which was successful. I verified that I’ve got the FS\_IP and FS\_HOSTNAME and FS\_PORT params in my .env file as well.

What am I missing?

Detail from faults page:

name: Error  
message: Invalid arguments  
stack: |-  
Error: Invalid arguments  
at download

Mike

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [November 5, 2019, 8:56pm UTC](https://forum.genieacs.com/t/genieacs-push-file/427/2 "2019-11-05T20:56:13Z")

</div>

Can you share the code/script you are using to push the file? I presume you mean push a firmware/config file to a CPE?

---

<div class="post-metadata">

**Author:** ![michaeljohnsondai](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@michaeljohnsondai](https://forum.genieacs.com/u/michaeljohnsondai)\
**Post date:** [November 5, 2019, 9:14pm UTC](https://forum.genieacs.com/t/genieacs-push-file/427/3 "2019-11-05T21:14:31Z")

</div>

I just tried through the UI, under a device I clicked “Push File” and selected a file I’d uploaded to GenieACS in the admin tab.

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [November 5, 2019, 10:49pm UTC](https://forum.genieacs.com/t/genieacs-push-file/427/4 "2019-11-05T22:49:28Z")

</div>

Which version of GenieACS are you using?

---

<div class="post-metadata">

**Author:** ![michaeljohnsondai](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@michaeljohnsondai](https://forum.genieacs.com/u/michaeljohnsondai)\
**Post date:** [November 6, 2019, 12:19am UTC](https://forum.genieacs.com/t/genieacs-push-file/427/5 "2019-11-06T00:19:26Z")

</div>

Just built from latest from the repo. Does the push file functionality only work using code in provisions?

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [November 6, 2019, 12:30am UTC](https://forum.genieacs.com/t/genieacs-push-file/427/6 "2019-11-06T00:30:08Z")

</div>

I do not use 1.2 (which is in beta) so I’m not able to assist you with this. Sorry.

---

<div class="post-metadata">

**Author:** ![michaeljohnsondai](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@michaeljohnsondai](https://forum.genieacs.com/u/michaeljohnsondai)\
**Post date:** [November 6, 2019, 2:33am UTC](https://forum.genieacs.com/t/genieacs-push-file/427/7 "2019-11-06T02:33:37Z")

</div>

Appreciate your time anyway. I figured out how to do it with Provisions using the scripting but the ad-hoc push file doesn’t work. I’ll see if I can get it running locally so I can debug.

---

<div class="post-metadata">

**Author:** ![Tomwu](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/tomwu/32/146_2.png) [@Tomwu](https://forum.genieacs.com/u/Tomwu)\
**Post date:** [December 10, 2019, 8:30pm UTC](https://forum.genieacs.com/t/genieacs-push-file/427/8 "2019-12-10T20:30:23Z")

</div>

Hi, could you please share me with the script of upgrading the FW? I cannot use the push button to upgrade the FW also. There is no any error, but the CPE keeps the old the FW.  
I know we can upgrade the FW by using some scripts, but I am not familar with this yet. Really appreciate if you can help me!

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [December 10, 2019, 9:37pm UTC](https://forum.genieacs.com/t/genieacs-push-file/427/9 "2019-12-10T21:37:14Z")

</div>

> [@Tomwu](#):
>
> Hi, could you please share me with the script of upgrading the FW? I cannot use the push button to upgrade the FW also

> **[Provisions](https://github.com/genieacs/genieacs/wiki/Provisions#downloads)**
>
> A fast and lightweight TR-069 Auto Configuration Server (ACS) - genieacs/genieacs

---

<div class="post-metadata">

**Author:** ![Thomson](https://avatars.discourse-cdn.com/v4/letter/t/bc8723/32.png) [@Thomson](https://forum.genieacs.com/u/Thomson)\
**Post date:** [June 28, 2024, 3:27pm UTC](https://forum.genieacs.com/t/genieacs-push-file/427/10 "2024-06-28T15:27:28Z")

</div>

Hi,  
My doubt here is , using this script I will add that as a provision. Is that right at first step ?

declare(“Downloads.[FileType:1 Firmware Upgrade Image]”,  
{path: 1}, {path: 1});  
declare(“Downloads.[FileType:1 Firmware Upgrade Image].FileName”,  
{value: 1}, {value: “firmware-2017.01.tar”});  
declare(“Downloads.[FileType:1 Firmware Upgrade Image].Download”,  
{value: 1}, {value: Date.now()});

What I need to replace in the above script with my local file and path? Could I simply leave it like this ?  
Your reply will be helpful.
