Hi,
I have correctly configured everything and can manually do upgrades.
Problem is, when doing this from provision script, Genie sends wrong
filename to CPE:
tr69c:456.318:downloadGetData:235:Download file cannot be found from
http://192.168.8.3:7567/undefined
UNDEFINED instead of a declared name.
I found a workaround to this by doing declaration in this way:
declare("Downloads.[FileType:1 Firmware Upgrade Image]", {path:
1},{path: 2});
what makes Genie sending filename twice:
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
one wrong - undefined and second correct - test.tar.gz what makes CPE to
start download and upgrade.
test.tar.gz is correct name and 404 here is intended.
I assume that it should not work that way and correct filename should be
send at first time.
br,
--
Michal
W dniu 2017-10-12 o 08:00, Michael Neumann pisze:
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:[email protected]] Im Auftrag von Margerita
Gesendet: Mittwoch, 11. Oktober 2017 23:19
An: Community support for GenieACS users <[email protected]>
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
[email protected]
http://lists.genieacs.com/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users