View Issue Details

IDProjectCategoryView StatusLast Update
0000168easycwmpBugpublic2016-10-20 08:43
Reportergeek007 Assigned Tomohamed.kallel  
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionno change required 
PlatformOpenwrt CC 15.05 easycwmp 1.3.4.OSOpenwrt - LinuxOS Version3.18.27
Summary0000168: "3 Vendor Configuration FIle" set failed
DescriptionI tried to test 3 Vendor configuration file event.
I could see below log:

Wed Oct 19 03:13:30 2016 daemon.notice easycwmpd: start download url = http://192.168.20.143:8080/openacs/firmware/backup-2016-10-17.tar.gz, FileType = '3 Vendor Configuration File', CommandKey ='
Wed Oct 19 03:13:30 2016 daemon.notice easycwmpd: external script init
Wed Oct 19 03:13:30 2016 daemon.notice easycwmpd: external: execute download
Wed Oct 19 03:13:30 2016 daemon.notice easycwmpd: add event '7 TRANSFER COMPLETE'
Wed Oct 19 03:13:30 2016 daemon.notice easycwmpd: add event 'M Download'
Wed Oct 19 03:13:30 2016 daemon.notice easycwmpd: external: execute apply download 3 Vendor Configuration File
Wed Oct 19 03:13:30 2016 daemon.notice easycwmpd: download error: 'Download failure: file corrupted'
Wed Oct 19 03:13:30 2016 daemon.notice easycwmpd: external script exit


From log download success but final configuration setting failed.
Does easycwmp support openwrt *.tar.gz file based configuration set up.
Steps To ReproduceAPI in cwmp.c

void cwmp_download_launch(struct uloop_timeout *timeout)

    external_action_simple_execute("apply", "download", d->file_type);
    external_action_handle(json_handle_method_status);
    external_fetch_method_resp_status(&status, &fault);

if d->file_type is "3 Vendor Configuration File" then need to use API to execute

tar xzvf -C / /path/to/your/backup-xxx.tar.gz

may be simple popen and reboot after 5 seconds or so
TagsNo tags attached.
e-mail notification

Activities

mohamed.kallel

2016-10-19 10:42

administrator   ~0000556

The easycwmp does not support the config format openwrt *.tar.gz.
EasyCwmp support the config file that exported with "uci export >config" command.

If you want to work with the *.tar.gz, then you have to update the easycwmp script.

Issue History

Date Modified Username Field Change
2016-10-19 09:24 geek007 New Issue
2016-10-19 10:42 mohamed.kallel Note Added: 0000556
2016-10-20 08:43 mohamed.kallel Status new => resolved
2016-10-20 08:43 mohamed.kallel Resolution open => no change required
2016-10-20 08:43 mohamed.kallel Assigned To => mohamed.kallel