EasyCwmp

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000168easycwmp[All Projects] Bugpublic2016-10-19 09:242016-10-20 08:43
Reportergeek007 
Assigned Tomohamed.kallel 
PriorityhighSeveritymajorReproducibilityalways
StatusresolvedResolutionno 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.
Attached Files

- Relationships

-  Notes
(0000556)
mohamed.kallel (manager)
2016-10-19 10:42

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


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker