AW: Upgrade with Provision

Michael Neumann mn at jm-data.at
Thu Oct 12 02:00:03 EDT 2017


Hi Michal,

do you know the setup for the file server ip?

https://github.com/zaidka/genieacs/wiki/GenieACS-General-Config

You can check with tcpdump port 7567 if you get requests on your file server ....


Best Regards

Michael Neumann

-----Ursprüngliche Nachricht-----
Von: Users [mailto:users-bounces at lists.genieacs.com] Im Auftrag von Margerita
Gesendet: Mittwoch, 11. Oktober 2017 23:19
An: Community support for GenieACS users <users at lists.genieacs.com>
Betreff: Upgrade with Provision

Hi,

I'm trying do make update with Provision script similar to one in Wiki:

   declare("Downloads.[FileType:1 Firmware Upgrade Image]", {path: 1},
{path: 1});
   declare("Downloads.[FileType:1 Firmware Upgrade Image].FileName",
{value: 1}, {value: "test.tar.gz"});
   declare("Downloads.[FileType:1 Firmware Upgrade Image].Download",
{value: 1}, {value: Date.now()});

but when doing it in this way CPE always try to download wrong, 'undefined' file:

  tr69c:215.523:downloadGetData:235:Download file cannot be found from http://192.168.8.3:7567/undefined failed. Status = 404

after searching what is wrong I found, that setting:
   declare("Downloads.[FileType:1 Firmware Upgrade Image]", {path: 1},
{path: 2});

sends file to CPE two times and second one is correct, so update is
successful:

tr69c:456.318:downloadGetData:235:Download file cannot be found from http://192.168.8.3:7567/undefined failed. Status = 404 tr69c:456.591:downloadGetData:235:Download file cannot be found from http://192.168.8.3:7567/test.tar.gz failed. Status = 404

(in exaple here I used non-existing filename 'test.tar.gz' to get it logged instead of upgrading CPE).

What should be correct syntax to have this working without workaround I found?

br,
--
Michal
_______________________________________________
Users mailing list
Users at lists.genieacs.com
http://lists.genieacs.com/mailman/listinfo/users


More information about the Users mailing list