View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
437 [easycwmp] Help minor N/A 2021-11-28 12:18 2021-11-28 12:18
Reporter: amargsaum Platform:  
Assigned To: OS:  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: I Can Not Install TR069 Server
Description: I Can Not Install TR069 Server
Please help
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
436 [easycwmp] Help major always 2021-10-25 08:46 2021-10-25 08:46
Reporter: houdongfeng Platform: aarch64-linux-gnu  
Assigned To: OS: Linux  
Priority: urgent OS Version: version 4.14.98  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Inform xml message creating failed
Description: Follow the instructions of “https://easycwmp.org/tutorial/

after setting

Run command “sudo bash easycwmp get value”,
and the command is not returned。Can end with Ctrl + C.

root@imx8mqevk:~# sudo bash easycwmp get value
{ "parameter": "Device.DeviceInfo.SpecVersion", "value": "1.0" }
{ "parameter": "Device.DeviceInfo.ProvisioningCode", "value": "" }
{ "parameter": "Device.DeviceInfo.Manufacturer", "value": "easycwmp" }
{ "parameter": "Device.DeviceInfo.ManufacturerOUI", "value": "FFFFFF" }
{ "parameter": "Device.DeviceInfo.ProductClass", "value": "easycwmp" }
{ "parameter": "Device.DeviceInfo.SerialNumber", "value": "FFFFFF123456" }
{ "parameter": "Device.DeviceInfo.HardwareVersion", "value": "example_hw_version" }
{ "parameter": "Device.DeviceInfo.SoftwareVersion", "value": "example_sw_version" }
{ "parameter": "Device.DeviceInfo.UpTime", "value": "1991", "type": "xsd:unsignedInt" }
{ "parameter": "Device.DeviceInfo.DeviceLog", "value": "" }
{ "parameter": "Device.DeviceInfo.MemoryStatus.Total", "value": "3070560" }
{ "parameter": "Device.DeviceInfo.MemoryStatus.Free", "value": "2617664" }

Run command “/usr/sbin/easycwmpd -f -b”,The following error occurs:
2021-01-11 13:39:38 [easycwmp] DEBUG - Inform xml message creating failed
2021-01-11 13:39:38 [easycwmp] NOTICE - sending Inform failed
...
2021-01-11 13:39:38 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-01-11 13:39:38 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-01-11 13:39:38 [easycwmp] NOTICE - external script exit
2021-01-11 13:39:38 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-01-11 13:39:38 [easycwmp] NOTICE - end session failed

root@imx8mqevk:~# /usr/sbin/easycwmpd -f -b
2021-01-11 13:39:38 [easycwmp] NOTICE - add event '0 BOOTSTRAP'
2021-01-11 13:39:38 [easycwmp] NOTICE - add event '1 BOOT'
2021-01-11 13:39:38 [easycwmp] NOTICE - add event '2 PERIODIC'
2021-01-11 13:39:38 [easycwmp] NOTICE - external script init
2021-01-11 13:39:38 [easycwmp] DEBUG - easycwmp.@local[0].logging_level=4
2021-01-11 13:39:38 [easycwmp] DEBUG - easycwmp.@acs[0].url=http://39.106.195.193:9090/ACS-server/ACS/houdongfeng
2021-01-11 13:39:38 [easycwmp] DEBUG - easycwmp.@acs[0].username=acs
2021-01-11 13:39:38 [easycwmp] DEBUG - easycwmp.@acs[0].password=acs
2021-01-11 13:39:38 [easycwmp] DEBUG - easycwmp.@acs[0].periodic_enable=1
2021-01-11 13:39:38 [easycwmp] DEBUG - easycwmp.@acs[0].periodic_interval=100
2021-01-11 13:39:38 [easycwmp] DEBUG - easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z
2021-01-11 13:39:38 [easycwmp] NOTICE - init periodic inform: reference time = -62135625943, interval = 100
2021-01-11 13:39:38 [easycwmp] NOTICE - external: execute update_value_change
2021-01-11 13:39:38 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-01-11 13:39:38 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-01-11 13:39:38 [easycwmp] NOTICE - daemon started
2021-01-11 13:39:38 [easycwmp] NOTICE - external: execute inform device_id
2021-01-11 13:39:38 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-01-11 13:39:38 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-01-11 13:39:38 [easycwmp] DEBUG - in device you must define product_class
2021-01-11 13:39:38 [easycwmp] NOTICE - external script exit
2021-01-11 13:39:38 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-01-11 13:39:38 [easycwmp] NOTICE - add event '1 BOOT'
2021-01-11 13:39:38 [easycwmp] NOTICE - interface eth0 has ip 10.86.37.209
2021-01-11 13:39:38 [easycwmp] DEBUG - +++ HTTP SERVER CONFIGURATION +++
2021-01-11 13:39:38 [easycwmp] DEBUG - ip: '10.86.37.209'
2021-01-11 13:39:38 [easycwmp] DEBUG - port: '7547'
2021-01-11 13:39:38 [easycwmp] DEBUG - --- HTTP SERVER CONFIGURATION ---
2021-01-11 13:39:38 [easycwmp] NOTICE - http server initialized
2021-01-11 13:39:38 [easycwmp] NOTICE - entering main loop
2021-01-11 13:39:38 [easycwmp] NOTICE - start session
2021-01-11 13:39:38 [easycwmp] DEBUG - +++ HTTP CLIENT CONFIGURATION +++
2021-01-11 13:39:38 [easycwmp] DEBUG - url: http://39.106.195.193:9090/ACS-server/ACS/houdongfeng
2021-01-11 13:39:38 [easycwmp] DEBUG - ssl_verify: SSL certificate validation disabled.
2021-01-11 13:39:38 [easycwmp] DEBUG - --- HTTP CLIENT CONFIGURATION ---
2021-01-11 13:39:38 [easycwmp] NOTICE - configured acs url http://39.106.195.193:9090/ACS-server/ACS/houdongfeng
2021-01-11 13:39:38 [easycwmp] NOTICE - external script init
2021-01-11 13:39:38 [easycwmp] DEBUG - Inform xml message creating failed
2021-01-11 13:39:38 [easycwmp] NOTICE - sending Inform failed
2021-01-11 13:39:38 [easycwmp] NOTICE - external: execute apply service
2021-01-11 13:39:38 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-01-11 13:39:38 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-01-11 13:39:38 [easycwmp] NOTICE - external script exit
2021-01-11 13:39:38 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-01-11 13:39:38 [easycwmp] NOTICE - end session failed
2021-01-11 13:39:38 [easycwmp] NOTICE - retry session in 7 sec, RetryCount = 1
Tags:
Steps To Reproduce:
Additional Information: Setting Command:

#!/bin/sh

sh remount_to_rw.sh

sudo ln -sf /mnt/data/TR069/json-c/include/json-c/ /usr/include/json
sudo ln -sf /mnt/data/TR069/json-c/lib/libjson-c.so /usr/lib/libjson-c.so
sudo ln -sf /mnt/data/TR069/json-c/lib/libjson-c.so.5 /usr/lib/libjson-c.so.5
sudo ln -sf /mnt/data/TR069/json-c/lib/libjson-c.so.5.1 /usr/lib/libjson-c.so.5.1
sudo ln -sf /mnt/data/TR069/json-c/lib/libjson-c.so.5.1.0 /usr/lib/libjson-c.so.5.1.0

sudo mkdir -p /usr/share/libubox
sudo ln -sf /mnt/data/TR069/libubox/lib/libubox.so /usr/lib/libubox.so
sudo ln -sf /mnt/data/TR069/libubox/share/libubox/jshn.sh /usr/share/libubox/jshn.sh

sudo ln -sf /mnt/data/TR069/libubox/bin/jshn /sbin/jshn
sudo chmod 777 /sbin/jshn
sudo ln -sf /mnt/data/TR069/libubox/lib/libblobmsg_json.so /usr/lib/libblobmsg_json.so


sudo ln -sf /mnt/data/TR069/uci/bin/uci /sbin/uci
sudo ln -sf /mnt/data/TR069/uci/lib/libuci.so /usr/lib/libuci.so

sudo chmod +x /mnt/data/TR069/ubus/sbin/ubusd
sudo ln -sf /mnt/data/TR069/ubus/sbin/ubusd /usr/sbin/ubusd
sudo ln -sf /mnt/data/TR069/ubus/lib/libubus.so /usr/lib/libubus.so

sudo ln -sf /mnt/data/TR069/microxml/lib/libmicroxml.so /lib/libmicroxml.so
sudo ln -sf /mnt/data/TR069/microxml/lib/libmicroxml.so.1 /lib/libmicroxml.so.1
sudo ln -sf /mnt/data/TR069/microxml/lib/libmicroxml.so.1.0 lib/libmicroxml.so.1.0

sudo mkdir -p /usr/share/easycwmp/functions
sudo mkdir -p /etc/easycwmp

sudo ln -sf /mnt/data/TR069/easycwmp/ext/openwrt/scripts/easycwmp.sh /usr/sbin/easycwmp
sudo ln -sf /mnt/data/TR069/easycwmp/ext/openwrt/scripts/defaults /usr/share/easycwmp/defaults
sudo ln -sf /mnt/data/TR069/easycwmp/ext/openwrt/scripts/functions/common/common /usr/share/easycwmp/functions/common
sudo ln -sf /mnt/data/TR069/easycwmp/ext/openwrt/scripts/functions/common/device_info /usr/share/easycwmp/functions/device_info
sudo ln -sf /mnt/data/TR069/easycwmp/ext/openwrt/scripts/functions/common/management_server /usr/share/easycwmp/functions/management_server
sudo ln -sf /mnt/data/TR069/easycwmp/ext/openwrt/scripts/functions/common/ipping_launch /usr/share/easycwmp/functions/ipping_launch
sudo ln -sf /mnt/data/TR069/easycwmp/ext/openwrt/scripts/functions/tr181/root /usr/share/easycwmp/functions/root
sudo ln -sf /mnt/data/TR069/easycwmp/ext/openwrt/scripts/functions/tr181/ip /usr/share/easycwmp/functions/ip
sudo ln -sf /mnt/data/TR069/easycwmp/ext/openwrt/scripts/functions/tr181/ipping_diagnostic /usr/share/easycwmp/functions/ipping_diagnostic

sudo chmod +x /mnt/data/TR069/easycwmp/bin/easycwmpd
sudo chmod +x /mnt/data/TR069/easycwmp/ext/openwrt/scripts/functions/*

sudo mkdir /etc/config
sudo ln -sf /mnt/data/TR069/easycwmp/ext/openwrt/config/easycwmp /etc/config/easycwmp

sudo ln -sf /mnt/data/TR069/easycwmp/bin/easycwmpd /usr/sbin/easycwmpd



export UCI_CONFIG_DIR="/mnt/data/TR069/easycwmp/ext/openwrt/config/"
export UBUS_SOCKET="/var/run/ubus.sock"


sudo mkdir -p /lib/{config,functions}
sudo wget http://pastebin.lukaperkov.net/openwrt/20121219_lib_functions.sh -O /lib/functions.sh
sudo wget http://pastebin.lukaperkov.net/openwrt/20121219_lib_config_uci.sh -O /lib/config/uci.sh
sudo wget http://pastebin.lukaperkov.net/openwrt/20121219_lib_functions_network.sh -O /lib/functions/network.sh

export PATH=$PATH:/usr/sbin:/sbin
sudo ln -sf bash /bin/sh
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
435 [easycwmp] Help major always 2021-10-11 10:33 2021-10-18 09:55
Reporter: houdongfeng Platform:  
Assigned To: OS:  
Priority: immediate OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: [ubuntu] error occured when trying to write to the pipe
Description: root@qevk:/bin# /usr/sbin/easycwmpd -f -b
2021-10-11 16:20:13 [easycwmp] NOTICE - add event '0 BOOTSTRAP'
2021-10-11 16:20:13 [easycwmp] NOTICE - add event '1 BOOT'
2021-10-11 16:20:13 [easycwmp] NOTICE - add event '2 PERIODIC'
2021-10-11 16:20:13 [easycwmp] NOTICE - external script init
2021-10-11 16:20:13 [easycwmp] DEBUG - easycwmp.@local[0].logging_level=4
2021-10-11 16:20:13 [easycwmp] DEBUG - easycwmp.@acs[0].url=http://39.106.195.193:9090/ACS-server/ACS/houdongfeng
2021-10-11 16:20:13 [easycwmp] DEBUG - easycwmp.@acs[0].username=acs
2021-10-11 16:20:13 [easycwmp] DEBUG - easycwmp.@acs[0].password=acs
2021-10-11 16:20:13 [easycwmp] DEBUG - easycwmp.@acs[0].periodic_enable=1
2021-10-11 16:20:13 [easycwmp] DEBUG - easycwmp.@acs[0].periodic_interval=100
2021-10-11 16:20:13 [easycwmp] DEBUG - easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z
2021-10-11 16:20:13 [easycwmp] NOTICE - init periodic inform: reference time = -62135625943, interval = 100
2021-10-11 16:20:13 [easycwmp] NOTICE - external: execute update_value_change
2021-10-11 16:20:13 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-10-11 16:20:13 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-10-11 16:20:13 [easycwmp] NOTICE - daemon started
2021-10-11 16:20:13 [easycwmp] NOTICE - external: execute inform device_id
2021-10-11 16:20:13 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-10-11 16:20:13 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-10-11 16:20:13 [easycwmp] DEBUG - in device you must define product_class
2021-10-11 16:20:13 [easycwmp] NOTICE - external script exit
2021-10-11 16:20:13 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-10-11 16:20:13 [easycwmp] NOTICE - add event '1 BOOT'
2021-10-11 16:20:13 [easycwmp] NOTICE - interface eth0 has ip 10.86.37.210
2021-10-11 16:20:13 [easycwmp] DEBUG - +++ HTTP SERVER CONFIGURATION +++
2021-10-11 16:20:13 [easycwmp] DEBUG - ip: '10.86.37.210'
2021-10-11 16:20:13 [easycwmp] DEBUG - port: '7547'
2021-10-11 16:20:13 [easycwmp] DEBUG - --- HTTP SERVER CONFIGURATION ---
2021-10-11 16:20:13 [easycwmp] NOTICE - http server initialized
2021-10-11 16:20:13 [easycwmp] NOTICE - entering main loop
2021-10-11 16:20:13 [easycwmp] NOTICE - start session
2021-10-11 16:20:13 [easycwmp] DEBUG - +++ HTTP CLIENT CONFIGURATION +++
2021-10-11 16:20:13 [easycwmp] DEBUG - url: http://39.106.195.193:9090/ACS-server/ACS/houdongfeng
2021-10-11 16:20:13 [easycwmp] DEBUG - ssl_verify: SSL certificate validation disabled.
2021-10-11 16:20:13 [easycwmp] DEBUG - --- HTTP CLIENT CONFIGURATION ---
2021-10-11 16:20:13 [easycwmp] NOTICE - configured acs url http://39.106.195.193:9090/ACS-server/ACS/houdongfeng
2021-10-11 16:20:13 [easycwmp] NOTICE - external script init
2021-10-11 16:20:13 [easycwmp] DEBUG - Inform xml message creating failed
2021-10-11 16:20:13 [easycwmp] NOTICE - sending Inform failed
2021-10-11 16:20:13 [easycwmp] NOTICE - external: execute apply service
2021-10-11 16:20:13 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-10-11 16:20:13 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-10-11 16:20:13 [easycwmp] NOTICE - external script exit
2021-10-11 16:20:13 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-10-11 16:20:13 [easycwmp] NOTICE - end session failed
2021-10-11 16:20:13 [easycwmp] NOTICE - retry session in 7 sec, RetryCount = 1
2021-10-11 16:20:20 [easycwmp] NOTICE - start session
2021-10-11 16:20:20 [easycwmp] DEBUG - +++ HTTP CLIENT CONFIGURATION +++
2021-10-11 16:20:20 [easycwmp] DEBUG - url: http://39.106.195.193:9090/ACS-server/ACS/houdongfeng
2021-10-11 16:20:20 [easycwmp] DEBUG - ssl_verify: SSL certificate validation disabled.
2021-10-11 16:20:20 [easycwmp] DEBUG - --- HTTP CLIENT CONFIGURATION ---
2021-10-11 16:20:20 [easycwmp] NOTICE - configured acs url http://39.106.195.193:9090/ACS-server/ACS/houdongfeng
2021-10-11 16:20:20 [easycwmp] NOTICE - external script init
2021-10-11 16:20:20 [easycwmp] DEBUG - Inform xml message creating failed
2021-10-11 16:20:20 [easycwmp] NOTICE - sending Inform failed
2021-10-11 16:20:20 [easycwmp] NOTICE - external: execute apply service
2021-10-11 16:20:20 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-10-11 16:20:20 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-10-11 16:20:20 [easycwmp] NOTICE - external script exit
2021-10-11 16:20:20 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-10-11 16:20:20 [easycwmp] NOTICE - end session failed
2021-10-11 16:20:20 [easycwmp] NOTICE - retry session in 15 sec, RetryCount = 2
2021-10-11 16:20:35 [easycwmp] NOTICE - start session
2021-10-11 16:20:35 [easycwmp] DEBUG - +++ HTTP CLIENT CONFIGURATION +++
2021-10-11 16:20:35 [easycwmp] DEBUG - url: http://39.106.195.193:9090/ACS-server/ACS/houdongfeng
2021-10-11 16:20:35 [easycwmp] DEBUG - ssl_verify: SSL certificate validation disabled.
2021-10-11 16:20:35 [easycwmp] DEBUG - --- HTTP CLIENT CONFIGURATION ---
2021-10-11 16:20:35 [easycwmp] NOTICE - configured acs url http://39.106.195.193:9090/ACS-server/ACS/houdongfeng
2021-10-11 16:20:35 [easycwmp] NOTICE - external script init
2021-10-11 16:20:35 [easycwmp] DEBUG - Inform xml message creating failed
2021-10-11 16:20:35 [easycwmp] NOTICE - sending Inform failed
2021-10-11 16:20:35 [easycwmp] NOTICE - external: execute apply service
2021-10-11 16:20:35 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-10-11 16:20:35 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-10-11 16:20:35 [easycwmp] NOTICE - external script exit
2021-10-11 16:20:35 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-10-11 16:20:35 [easycwmp] NOTICE - end session failed
2021-10-11 16:20:35 [easycwmp] NOTICE - retry session in 30 sec, RetryCount = 3
Tags:
Steps To Reproduce: easycwmp version:1.8.6
json-c version:0.11
curl version:7.73.0
ubus :commit f361bfa5fcb2daadf3b160583ce665024f8d108e
                                   Date: Wed May 13 13:52:22 2015 +0800
uci :commit 4b3db1179747b6a6779029407984bacef851325c
                                   Date: Mon Apr 12 16:05:52 2021 +0200
microxml version: commit 80a15162f3a8318c70e8688d8ecbfc38676bd9a2
                                   Date: Thu Jun 14 10:01:48 2018 +0100
libubox version: commit d716ac4bc4236031d4c3cc1ed362b502e20e3787
                                    Date: Thu Aug 19 08:47:04 2021 +0200
Additional Information:
Attached Files:
Notes
(0001037)
mohamed.kallel   
2021-10-12 19:48   
Could you please share the output of the following command:

/usr/sbin/easycwmp --json get value Device.
(0001038)
houdongfeng   
2021-10-15 05:34   
root@imx8mqevk:~# bash /usr/sbin/easycwmp -–json get value Device.
USAGE: /usr/sbin/easycwmp command [parameter] [values]
command:
  get [value|notification|name]
  set [value|notification]
  apply [value|notification|object|service]
  add [object]
  delete [object]
  download
  upload
  factory_reset
  reboot
  inform [parameter|device_id]
  --json-input
invalid action '-–json'
root@imx8mqevk:~# bash /usr/sbin/easycwmp get value Device.
































root@imx8mqevk:~#
(0001039)
mohamed.kallel   
2021-10-15 12:44   
there was error in your command in the argument '-–json'
Please try it with:

/usr/sbin/easycwmp get value Device.
(0001040)
mohamed.kallel   
2021-10-15 12:47   
try to change this line in /usr/sbin/easycwmp (in the bottom of the file):

handle_action 2>/dev/null

to

handle_action

this will display the errors
(0001041)
houdongfeng   
2021-10-18 04:37   
root@imx8mqevk:/usr/share/libubox# /usr/sbin/easycwmp get value Device.
/usr/share/libubox/jshn.sh: line 188: jshn: command not found

/usr/share/libubox/jshn.sh: line 188: jshn: command not found

/usr/share/libubox/jshn.sh: line 188: jshn: command not found

/usr/share/libubox/jshn.sh: line 188: jshn: command not found

/usr/share/libubox/jshn.sh: line 188: jshn: command not found

/usr/share/libubox/jshn.sh: line 188: jshn: command not found

/usr/share/libubox/jshn.sh: line 188: jshn: command not found

/usr/share/libubox/jshn.sh: line 188: jshn: command not found

/usr/share/libubox/jshn.sh: line 188: jshn: command not found

/usr/share/libubox/jshn.sh: line 188: jshn: command not found

/usr/share/libubox/jshn.sh: line 188: jshn: command not found

/usr/share/libubox/jshn.sh: line 188: jshn: command not found
(0001042)
houdongfeng   
2021-10-18 09:52   
2021-01-04 14:42:46 [easycwmp] NOTICE - external script init
2021-01-04 14:42:47 [easycwmp] DEBUG - easycwmp.@local[0].logging_level=4
2021-01-04 14:42:47 [easycwmp] DEBUG - easycwmp.@acs[0].url=http://39.106.195.193:9090/ACS-server/ACS/houdongfeng
2021-01-04 14:42:47 [easycwmp] DEBUG - easycwmp.@acs[0].username=acs
2021-01-04 14:42:47 [easycwmp] DEBUG - easycwmp.@acs[0].password=acs
2021-01-04 14:42:47 [easycwmp] DEBUG - easycwmp.@acs[0].periodic_enable=1
2021-01-04 14:42:47 [easycwmp] DEBUG - easycwmp.@acs[0].periodic_interval=100
2021-01-04 14:42:47 [easycwmp] DEBUG - easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z
2021-01-04 14:42:47 [easycwmp] NOTICE - add event '0 BOOTSTRAP'
2021-01-04 14:42:47 [easycwmp] NOTICE - init periodic inform: reference time = -62135625943, interval = 100
2021-01-04 14:42:47 [easycwmp] NOTICE - external: execute update_value_change
^C2021-01-04 14:46:16 [easycwmp] NOTICE - daemon started
2021-01-04 14:46:16 [easycwmp] NOTICE - external: execute inform device_id
2021-01-04 14:46:16 [easycwmp] DEBUG - in device you must define product_class
2021-01-04 14:46:16 [easycwmp] NOTICE - external script exit
2021-01-04 14:46:16 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-01-04 14:46:16 [easycwmp] NOTICE - add event '1 BOOT'
2021-01-04 14:46:16 [easycwmp] NOTICE - interface eth0 has ip 10.86.37.209
2021-01-04 14:46:16 [easycwmp] DEBUG - +++ HTTP SERVER CONFIGURATION +++
2021-01-04 14:46:16 [easycwmp] DEBUG - ip: '10.86.37.209'
2021-01-04 14:46:16 [easycwmp] DEBUG - port: '7547'
2021-01-04 14:46:16 [easycwmp] DEBUG - --- HTTP SERVER CONFIGURATION ---
2021-01-04 14:46:16 [easycwmp] NOTICE - http server initialized
2021-01-04 14:46:16 [easycwmp] NOTICE - entering main loop
2021-01-04 14:46:16 [easycwmp] NOTICE - add event '2 PERIODIC'
2021-01-04 14:46:16 [easycwmp] NOTICE - start session
2021-01-04 14:46:16 [easycwmp] DEBUG - +++ HTTP CLIENT CONFIGURATION +++
2021-01-04 14:46:16 [easycwmp] DEBUG - url: http://39.106.195.193:9090/ACS-server/ACS/houdongfeng
2021-01-04 14:46:16 [easycwmp] DEBUG - ssl_verify: SSL certificate validation disabled.
2021-01-04 14:46:16 [easycwmp] DEBUG - --- HTTP CLIENT CONFIGURATION ---
2021-01-04 14:46:16 [easycwmp] NOTICE - configured acs url http://39.106.195.193:9090/ACS-server/ACS/houdongfeng
2021-01-04 14:46:16 [easycwmp] NOTICE - external script init
2021-01-04 14:46:16 [easycwmp] DEBUG - Inform xml message creating failed
2021-01-04 14:46:16 [easycwmp] NOTICE - sending Inform failed
2021-01-04 14:46:16 [easycwmp] NOTICE - external: execute apply service
2021-01-04 14:46:16 [easycwmp] NOTICE - external script exit
2021-01-04 14:46:16 [easycwmp] NOTICE - end session failed
2021-01-04 14:46:16 [easycwmp] NOTICE - retry session in 7 sec, RetryCount = 1
2021-01-04 14:46:23 [easycwmp] NOTICE - start session
(0001043)
houdongfeng   
2021-10-18 09:55   
and
root@imx8mqevk:~# /usr/sbin/easycwmp get value Device.
{ "parameter": "Device.DeviceInfo.SpecVersion", "value": "1.0" }
{ "parameter": "Device.DeviceInfo.ProvisioningCode", "value": "" }
{ "parameter": "Device.DeviceInfo.Manufacturer", "value": "easycwmp" }
{ "parameter": "Device.DeviceInfo.ManufacturerOUI", "value": "FFFFFF" }
{ "parameter": "Device.DeviceInfo.ProductClass", "value": "easycwmp" }
{ "parameter": "Device.DeviceInfo.SerialNumber", "value": "FFFFFF123456" }
{ "parameter": "Device.DeviceInfo.HardwareVersion", "value": "example_hw_version" }
{ "parameter": "Device.DeviceInfo.SoftwareVersion", "value": "example_sw_version" }
{ "parameter": "Device.DeviceInfo.UpTime", "value": "667", "type": "xsd:unsignedInt" }
{ "parameter": "Device.DeviceInfo.DeviceLog", "value": "" }
{ "parameter": "Device.DeviceInfo.MemoryStatus.Total", "value": "3070560" }
{ "parameter": "Device.DeviceInfo.MemoryStatus.Free", "value": "2615040" }


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
434 [easycwmp] Help crash always 2021-10-04 13:46 2021-10-12 19:47
Reporter: deedcao Platform:  
Assigned To: OS:  
Priority: urgent OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: ubuntu TLS 16.04, compile easycwmp failed
Description: based on ubuntu 16.04 TLS, config the openwrt and easycwmp, and compile it, but always failed, the log report multiple definition of event_code_array, and it was first define in easycwmpd-backup.o
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0001032)
deedcao   
2021-10-06 11:18   
the version of easycwmp is 1.8.5, and the openwrt is clone from git.lede-project.org.source.git
(0001033)
deedcao   
2021-10-11 16:49   
here is the compile log
mv -f ../src/.deps/easycwmpd-basicauth.Tpo ../src/.deps/easycwmpd-basicauth.Po
mips-openwrt-linux-musl-gcc -I/home/cdd/Desktop/openwrt/lede/staging_dir/target-mips_24kc_musl/usr/include -I/home/cdd/Desktop/openwrt/lede/staging_dir/target-mips_24kc_musl/usr/include -I/home/cdd/Desktop/openwrt/lede/staging_dir/target-mips_24kc_musl/usr/include -I/home/cdd/Desktop/openwrt/lede/staging_dir/target-mips_24kc_musl/usr/include -I/home/cdd/Desktop/openwrt/lede/staging_dir/target-mips_24kc_musl/usr/include -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -fmacro-prefix-map=/home/cdd/Desktop/openwrt/lede/build_dir/target-mips_24kc_musl/easycwmp/easycwmp-1.8.6=easycwmp-1.8.6 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -D_GNU_SOURCE -L/home/cdd/Desktop/openwrt/lede/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/usr/lib -L/home/cdd/Desktop/openwrt/lede/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/lib -znow -zrelro -Wl,-rpath-link=/home/cdd/Desktop/openwrt/lede/staging_dir/target-mips_24kc_musl/usr/lib -o easycwmpd ../src/easycwmpd-backup.o ../src/easycwmpd-config.o ../src/easycwmpd-cwmp.o ../src/easycwmpd-digestauth.o ../src/easycwmpd-external.o ../src/easycwmpd-easycwmp.o ../src/easycwmpd-http.o ../src/easycwmpd-json.o ../src/easycwmpd-log.o ../src/easycwmpd-md5.o ../src/easycwmpd-time.o ../src/easycwmpd-ubus.o ../src/easycwmpd-xml.o ../src/easycwmpd-base64.o ../src/easycwmpd-basicauth.o -luci -lubox -lubus -L/home/cdd/Desktop/openwrt/lede/staging_dir/target-mips_24kc_musl/usr/lib -lmicroxml -L/home/cdd/Desktop/openwrt/lede/staging_dir/target-mips_24kc_musl/usr/lib -lcurl -ljson-c
/home/cdd/Desktop/openwrt/lede/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/lib/gcc/mips-openwrt-linux-musl/11.2.0/../../../../mips-openwrt-linux-musl/bin/ld: ../src/easycwmpd-config.o:(.bss+0x4): multiple definition of `event_code_array'; ../src/easycwmpd-backup.o:(.bss+0x4): first defined here
/home/cdd/Desktop/openwrt/lede/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/lib/gcc/mips-openwrt-linux-musl/11.2.0/../../../../mips-openwrt-linux-musl/bin/ld: ../src/easycwmpd-cwmp.o:(.data+0x60): multiple definition of `event_code_array'; ../src/easycwmpd-backup.o:(.bss+0x4): first defined here
/home/cdd/Desktop/openwrt/lede/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/lib/gcc/mips-openwrt-linux-musl/11.2.0/../../../../mips-openwrt-linux-musl/bin/ld: ../src/easycwmpd-easycwmp.o:(.bss+0x0): multiple definition of `event_code_array'; ../src/easycwmpd-backup.o:(.bss+0x4): first defined here
/home/cdd/Desktop/openwrt/lede/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/lib/gcc/mips-openwrt-linux-musl/11.2.0/../../../../mips-openwrt-linux-musl/bin/ld: ../src/easycwmpd-http.o:(.bss+0x8): multiple definition of `event_code_array'; ../src/easycwmpd-backup.o:(.bss+0x4): first defined here
/home/cdd/Desktop/openwrt/lede/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/lib/gcc/mips-openwrt-linux-musl/11.2.0/../../../../mips-openwrt-linux-musl/bin/ld: ../src/easycwmpd-json.o:(.bss+0x0): multiple definition of `event_code_array'; ../src/easycwmpd-backup.o:(.bss+0x4): first defined here
/home/cdd/Desktop/openwrt/lede/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/lib/gcc/mips-openwrt-linux-musl/11.2.0/../../../../mips-openwrt-linux-musl/bin/ld: ../src/easycwmpd-ubus.o:(.bss+0x0): multiple definition of `event_code_array'; ../src/easycwmpd-backup.o:(.bss+0x4): first defined here
/home/cdd/Desktop/openwrt/lede/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/lib/gcc/mips-openwrt-linux-musl/11.2.0/../../../../mips-openwrt-linux-musl/bin/ld: ../src/easycwmpd-xml.o:(.bss+0x0): multiple definition of `event_code_array'; ../src/easycwmpd-backup.o:(.bss+0x4): first defined here
collect2: error: ld returned 1 exit status
Makefile:457: recipe for target 'easycwmpd' failed
make[5]: *** [easycwmpd] Error 1
make[5]: Leaving directory '/home/cdd/Desktop/openwrt/lede/build_dir/target-mips_24kc_musl/easycwmp/easycwmp-1.8.6/bin'
Makefile:353: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/home/cdd/Desktop/openwrt/lede/build_dir/target-mips_24kc_musl/easycwmp/easycwmp-1.8.6'
Makefile:107: recipe for target '/home/cdd/Desktop/openwrt/lede/build_dir/target-mips_24kc_musl/easycwmp/easycwmp-1.8.6/.built' failed
make[3]: *** [/home/cdd/Desktop/openwrt/lede/build_dir/target-mips_24kc_musl/easycwmp/easycwmp-1.8.6/.built] Error 2
make[3]: Leaving directory '/home/cdd/Desktop/openwrt/lede/package/easycwmp'
time: package/easycwmp/compile#9.84#1.86#12.63
    ERROR: package/easycwmp failed to build.
package/Makefile:114: recipe for target 'package/easycwmp/compile' failed
make[2]: *** [package/easycwmp/compile] Error 1
make[2]: Leaving directory '/home/cdd/Desktop/openwrt/lede'
package/Makefile:110: recipe for target '/home/cdd/Desktop/openwrt/lede/staging_dir/target-mips_24kc_musl/stamp/.package_compile' failed
make[1]: *** [/home/cdd/Desktop/openwrt/lede/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/cdd/Desktop/openwrt/lede'
/home/cdd/Desktop/openwrt/lede/include/toplevel.mk:228: recipe for target 'world' failed
make: *** [world] Error 2
(0001036)
mohamed.kallel   
2021-10-12 19:47   
try to change this line in the cwmp.h:

struct event_code event_code_array[__EVENT_MAX];

to

extern struct event_code event_code_array[__EVENT_MAX];


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
433 [easycwmp] Question crash always 2021-09-10 11:29 2021-10-12 19:44
Reporter: eazyz Platform: debian  
Assigned To: OS: ubuntu  
Priority: normal OS Version: 18.04  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: [ubuntu] easycwmpd doesn't send data to ACS
Description: 0. there is too much problems with install easycwmp on Ubuntu, due to not actual instruction at https://easycwmp.org/tutorial/
nbd.name doesnt work anymore, and part with name "Install few shell scripts from OpenWrt:" doesn't work too
I found uci libubox and ubus packets at https://launchpad.net/~stokito/+archive/ubuntu/openwrt/+packages
But I can't find scripts from part, site pastebin.lukaperkov.net was closed:
sudo mkdir -p /lib/{config,functions}
sudo wget https://pastebin.lukaperkov.net/openwrt/20121219_lib_functions.sh -O /lib/functions.sh
sudo wget https://pastebin.lukaperkov.net/openwrt/20121219_lib_config_uci.sh -O /lib/config/uci.sh
sudo wget https://pastebin.lukaperkov.net/openwrt/20121219_lib_functions_network.sh -O /lib/functions/network.sh

maybe my problem will be solved if I found this scripts.

1. vCPE with easycwmpd on 192.168.205.14
2. GenieACS on http://192.168.205.38:7547
3. telnet 192.168.205.38 7547 working fine:

Trying 192.168.205.38...
Connected to 192.168.205.38.
Escape character is '^]'.
dasda
HTTP/1.1 400 Bad Request
Connection: close

4. in terminal window i see this errors:
 CRITICAL - error occured when trying to write to the pipe
 NOTICE - sending Inform failed
 NOTICE - can't remove file /tmp/easycwmp_cookies

look at log below
Tags: ubuntu
Steps To Reproduce: ubuntu@cwmp-client:~$ sudo /usr/sbin/easycwmpd -f -b
2021-09-10 09:12:38 [easycwmp] NOTICE - add event '0 BOOTSTRAP'
2021-09-10 09:12:38 [easycwmp] NOTICE - add event '1 BOOT'
2021-09-10 09:12:38 [easycwmp] NOTICE - add event '2 PERIODIC'
2021-09-10 09:12:38 [easycwmp] NOTICE - external script init
2021-09-10 09:12:38 [easycwmp] NOTICE - init periodic inform: reference time = -62135596800, interval = 100
2021-09-10 09:12:38 [easycwmp] NOTICE - external: execute update_value_change
2021-09-10 09:12:38 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-09-10 09:12:38 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-09-10 09:12:38 [easycwmp] NOTICE - daemon started
2021-09-10 09:12:38 [easycwmp] NOTICE - external: execute inform device_id
2021-09-10 09:12:38 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-09-10 09:12:38 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-09-10 09:12:38 [easycwmp] NOTICE - external script exit
2021-09-10 09:12:38 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-09-10 09:12:38 [easycwmp] NOTICE - add event '1 BOOT'
2021-09-10 09:12:38 [easycwmp] NOTICE - interface ens3 has ip 192.168.205.14
2021-09-10 09:12:38 [easycwmp] NOTICE - http server initialized
2021-09-10 09:12:38 [easycwmp] NOTICE - entering main loop
2021-09-10 09:12:38 [easycwmp] NOTICE - start session
2021-09-10 09:12:38 [easycwmp] NOTICE - configured acs url http://192.168.205.38:7547
2021-09-10 09:12:38 [easycwmp] NOTICE - external script init
2021-09-10 09:12:38 [easycwmp] NOTICE - sending Inform failed
2021-09-10 09:12:38 [easycwmp] NOTICE - can't remove file /tmp/easycwmp_cookies
2021-09-10 09:12:38 [easycwmp] NOTICE - external: execute apply service
2021-09-10 09:12:38 [easycwmp] NOTICE - external script exit
2021-09-10 09:12:38 [easycwmp] NOTICE - end session failed
2021-09-10 09:12:38 [easycwmp] NOTICE - retry session in 7 sec, RetryCount = 1
2021-09-10 09:12:45 [easycwmp] NOTICE - start session
2021-09-10 09:12:45 [easycwmp] NOTICE - configured acs url http://192.168.205.38:7547
2021-09-10 09:12:45 [easycwmp] NOTICE - external script init
2021-09-10 09:12:45 [easycwmp] NOTICE - sending Inform failed
2021-09-10 09:12:45 [easycwmp] NOTICE - can't remove file /tmp/easycwmp_cookies
2021-09-10 09:12:45 [easycwmp] NOTICE - external: execute apply service
2021-09-10 09:12:45 [easycwmp] NOTICE - external script exit
2021-09-10 09:12:45 [easycwmp] NOTICE - end session failed
2021-09-10 09:12:45 [easycwmp] NOTICE - retry session in 15 sec, RetryCount = 2

ubuntu@cwmp-client:~$ cat /etc/config/easycwmp
# easycwmp uci configuration

config local
        option enable '1'
        option interface ens3
        option port 7547
        option ubus_socket /var/run/ubus.sock
        option date_format %FT%T%z
        option username easycwmp
        option password easycwmp
        option provisioning_code ''
#basic authentication = 'Basic', Digest authentication = 'Digest', Default value = 'Digest'
        option authentication 'Digest'
#Logging levels: Critic=0, Warning=1, Notice=2, Info=3, Debug=4
        option logging_level '3'

config acs
        option scheme 'http'
        option url http://192.168.205.38:7547
        option username easycwmp
        option password easycwmp
        option parameter_key ''
        option periodic_enable '1'
        option periodic_interval '100'
        option periodic_time '0001-01-01T00:00:00Z'

config device
        option manufacturer easycwmp
        option oui FFFFFF
        option product_class easycwmp
        option serial_number FFFFFF123456
        option hardware_version example_hw_version
        option software_version example_sw_version

ubuntu@cwmp-client:~$ sudo ubus -s /var/run/ubus.sock call tr069 notify
2021-09-10 09:23:02 [easycwmp] NOTICE - triggered ubus notification
2021-09-10 09:23:02 [easycwmp] NOTICE - checking if there is notify value change
2021-09-10 09:23:02 [easycwmp] NOTICE - external script init
2021-09-10 09:23:02 [easycwmp] NOTICE - external: execute check_value_change
2021-09-10 09:23:02 [easycwmp] NOTICE - external script exit


Additional Information:
Attached Files:
Notes
(0001035)
mohamed.kallel   
2021-10-12 19:44   
Try to find these scripts in the openwrt project

Could you please share the output of the following command:

/usr/sbin/easycwmp --json get value Device.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
432 [easycwmp] Question major always 2021-09-04 01:06 2021-10-12 19:39
Reporter: vladisalomon Platform: easycwmp 1.8.6 VirtualBox X86_64  
Assigned To: OS: OpenWrt  
Priority: normal OS Version: v19.07.8  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: I can make GenieACS communicate with CPE
Description: I have built an OpenWrt + easycwmp image and create a VirtualBox VM.
It communicate well with my GenieACS and I can see periodic inform messages flowing.
But anytime I try to establish connection from GenieACS to CPE I get an error "FFFFFF-easycwmp-FFFFFF123456: Invalid connection request URL or protocol"

I think the issue is because my ConnectionRequestURL is empty
easycwmp get value returns:
 { "parameter": "Device.ManagementServer.ConnectionRequestURL", "value": "" }

same happen in GenieACS UI.

I can't figure it out how/when to set this value.
I have tried using easycwmp command line

root@OpenWrt:/usr/bin# easycwmp set value Device.ManagementServer.ConnectionRequestURL "http:\/\/192.168.56.2:7547\/"
root@OpenWrt:/usr/bin# easycwmp apply value
{ "parameter": "Device.ManagementServer.ConnectionRequestURL", "fault_code": "9008" }
root@OpenWrt:/usr/bin# easycwmp set Device.ManagementServer.ConnectionRequestURL "http:\/\/192.168.56.2:7547\/"
root@OpenWrt:/usr/bin# easycwmp apply
{ "parameter": "Device.ManagementServer.ConnectionRequestURL", "fault_code": "9008" }

reading others issues I understood "fault_code": "9008" means I'm trying to set a read only parameter, but I'm not sure.
I also checked "/etc/device_info" and "/etc/config/easycwmp", but I can't figured it out where to set it.

can it be the root cause of my problem or should I look somewhere else?
could you help me to understand where/how/when to set this parameter?
Tags: set
Steps To Reproduce:
Additional Information: root@OpenWrt:/usr/bin# cat /etc/config/easycwmp
# easycwmp uci configuration

config local
    option enable '1'
    option interface eth0
    option port 7547
    option ubus_socket /var/run/ubus.sock
    option date_format %FT%T%z
    option username easycwmp
    option password easycwmp
    option provisioning_code ''
#basic authentication = 'Basic', Digest authentication = 'Digest', Default value = 'Digest'
    option authentication 'Digest'
#Logging levels: Critic=0, Warning=1, Notice=2, Info=3, Debug=4
    option logging_level '4'

config acs
    option scheme 'http'
    option url http://192.168.1.184:7547
    option username admin
    option password admin
    option parameter_key ''
    option periodic_enable '1'
    option periodic_interval '100'
    option periodic_time '0001-01-01T00:00:00Z'

config device
    option manufacturer easycwmp
    option oui FFFFFF
    option product_class easycwmp
    option serial_number FFFFFF123457
    option hardware_version example_hw_version
    option software_version example_sw_version
Attached Files:
Notes
(0001031)
vladisalomon   
2021-09-07 18:45   
Sorry, issue summary should says "I CAN'T make GenieACS communicate with CPE".
(0001034)
mohamed.kallel   
2021-10-12 19:39   
You need to put the right value of interface in the easycwmp config:

option interface eth0


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
141 [easycwmp] Help minor have not tried 2016-06-14 12:49 2021-06-30 05:43
Reporter: stone1223 Platform:  
Assigned To: OS:  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Could not talk with ACS. Receive Empty message from ACS.
Description: I have device running easycwmp. It works fine against test ACS. But when I change to another ACS which I have not full control. It has problems, that I doesn't appear to the ACS. I don't know what could be the reason. The log is like below:

2016-04-04 17:24:05 [easycwmp] NOTICE - add event '0 BOOTSTRAP'
2016-04-04 17:24:05 [easycwmp] NOTICE - add event '2 PERIODIC'
2016-04-04 17:24:05 [easycwmp] NOTICE - external script init
config_init_local(65):: easycwmp.@local[0].port=7547
config_init_local(83):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(94):: easycwmp.@local[0].logging_level=3
config_init_local(71):: easycwmp.@local[0].username=xxx
config_init_local(77):: easycwmp.@local[0].password=xxx
config_init_local(55):: easycwmp.@local[0].interface=pppoe-wan
config_init_acs(177):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(183):: easycwmp.@acs[0].periodic_interval=3600
config_init_acs(190):: easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z
config_init_acs(165):: easycwmp.@acs[0].username=xxx
config_init_acs(171):: easycwmp.@acs[0].password=xxx
config_init_acs(159):: easycwmp.@acs[0].url=xxx
2016-04-04 17:24:05 [easycwmp] NOTICE - init periodic inform: reference time = n/a, interval = 3600
2016-04-04 17:24:05 [easycwmp] NOTICE - external: execute update_value_change (null)
2016-04-04 17:24:05 [easycwmp] NOTICE - daemon started
2016-04-04 17:24:05 [easycwmp] NOTICE - external: execute inform device_id
2016-04-04 17:24:06 [easycwmp] NOTICE - external script exit
2016-04-04 17:24:06 [easycwmp] NOTICE - add event '2 PERIODIC'
2016-04-04 17:24:06 [easycwmp] NOTICE - interface pppoe-wan has ip 184.22.148.140
+++ HTTP SERVER CONFIGURATION +++
ip: 'x.x.x.x'
port: '7547'
--- HTTP SERVER CONFIGURATION ---
2016-04-04 17:24:06 [easycwmp] NOTICE - http server initialized
root@xxx:/etc/easycwmp# 2016-04-04 17:24:06 [easycwmp] NOTICE - entering main loop
2016-04-04 17:24:06 [easycwmp] NOTICE - start session
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(50):: url: xxx
http_client_init(56):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
2016-04-04 17:24:06 [easycwmp] NOTICE - configured acs url xxx
2016-04-04 17:24:06 [easycwmp] NOTICE - external script init
2016-04-04 17:24:06 [easycwmp] NOTICE - external: execute inform parameter
2016-04-04 17:24:06 [easycwmp] NOTICE - send Inform
+++ SEND HTTP REQUEST +++
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soap_env:Envelope
xmlns:soap_env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soap_enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cwmp="urn:dslforum-org:cwmp-1-2">
  <soap_env:Header>
   <cwmp:ID soap_env:mustUnderstand="1">1</cwmp:ID>
  </soap_env:Header>
  <soap_env:Body>
   <cwmp:Inform>
    <DeviceId>
     <Manufacturer>XXX</Manufacturer>
     <OUI>000000</OUI>
     <ProductClass>XXX</ProductClass>
     <SerialNumber>FFFFFF123456</SerialNumber>
    </DeviceId>
   <Event soap_enc:arrayType="cwmp:EventStruct[2]">
     <EventStruct>
      <EventCode>0 BOOTSTRAP</EventCode>
      <CommandKey />
     </EventStruct>
     <EventStruct>
      <EventCode>2 PERIODIC</EventCode>
      <CommandKey />
     </EventStruct>
    </Event>
    <MaxEnvelopes>1</MaxEnvelopes>
    <CurrentTime>2016-04-04T17:24:06+07:00</CurrentTime>
    <RetryCount>0</RetryCount>
    <ParameterList soap_enc:arrayType="cwmp:ParameterValueStruct[11]">
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.HardwareVersion</Name>
      <Value xsi:type="xsd:string">CPE XXX</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.Manufacturer</Name>
      <Value xsi:type="xsd:string">XXX</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.ManufacturerOUI</Name>
      <Value xsi:type="xsd:string">000000</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.ProductClass</Name>
      <Value xsi:type="xsd:string">xxx</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.ProvisioningCode</Name>
      <Value xsi:type="xsd:string"></Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.SerialNumber</Name>
      <Value xsi:type="xsd:string">FFFFFF123456</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.SoftwareVersion</Name>
      <Value xsi:type="xsd:string">CPE XXXF</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.SpecVersion</Name>
      <Value xsi:type="xsd:string">1.0</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.ManagementServer.ConnectionRequestURL</Name>
      <Value xsi:type="xsd:string">http://x.x.x.x:7547/</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.ManagementServer.ParameterKey</Name>
      <Value xsi:type="xsd:string"></Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress</Name>
      <Value xsi:type="xsd:string"></Value>
     </ParameterValueStruct>
    </ParameterList>
   </cwmp:Inform>
  </soap_env:Body>
</soap_env:Envelope>
--- SEND HTTP REQUEST ---
> POST /fbb-sbn HTTP/1.1
Host: xxx
User-Agent: easycwmp
Content-Type: text/html; charset="utf-8"
SOAPAction:
Content-Length: 3200
Expect: 100-continue
 
< HTTP/1.1 100 Continue
< HTTP/1.1 204 No Content
< Server: nginx
< Date: Mon, 04 Apr 2016 10:24:06 GMT
< Content-Type: text/xml;charset=UTF-8
< Connection: keep-alive
< Set-Cookie: AOS_WEB_JSESSIONID=1w6rrcosek6qwkijqcu2z0aop;Path=/;HttpOnly
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
< SOAPAction: ""
<
+++ RECEIVED EMPTY HTTP RESPONSE +++
rpc_inform(223): parse Inform xml message from ACS: Empty message
2016-04-04 17:24:06 [easycwmp] NOTICE - sending Inform failed
2016-04-04 17:24:06 [easycwmp] NOTICE - external: execute apply service
2016-04-04 17:24:06 [easycwmp] NOTICE - external script exit
2016-04-04 17:24:06 [easycwmp] NOTICE - end session failed
2016-04-04 17:24:06 [easycwmp] NOTICE - retry session in 7 sec, RetryCount = 1
2016-04-04 17:24:14 [easycwmp] NOTICE - start session

Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000483)
mohamed.kallel   
2016-06-16 10:55   
Your ACS send empty message (http 204) after receiving Inform from CPE. I do not know if a some behaviour is allowed in the TR-069 because as I know the ACS should send InformResponse message when he get Inform message from the CPE
(0000484)
mohamed.kallel   
2016-06-16 10:57   
what is your ACS?
(0000486)
stone1223   
2016-06-17 12:56   
Hi, it is a commercial ACS. I found the problem is here:

<soap_env:Envelope
xmlns:soap_env="http://schemas.xmlsoap.org/soap/envelope/" [^]
xmlns:soap_enc="http://schemas.xmlsoap.org/soap/encoding/" [^]
xmlns:xsd="http://www.w3.org/2001/XMLSchema" [^]
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" [^]
xmlns:cwmp="urn:dslforum-org:cwmp-1-2">

The attributes are separated by [CR] [LF]. The ACS cannot parse the attribute with it. I should change the separator to [SPACE]. I tried to change in message.h. But it seems not the correct one. How could I change it to SPACE, is this part of the libmicroxml, including the function mxmlLoadString()?

Thank you.
(0000487)
mohamed.kallel   
2016-06-17 14:15   
You have to change it in microxml
(0001028)
chengang   
2021-06-30 05:43   
I solved a similar problem, The attributes are separated by [LF],I changed the separator to [SPACE]:
I fixed a fun according mohamed.kallel's suggestion
In mxml_write_node() of microxml
for (i = node->value.element.num_attrs, attr = node->value.element.attrs;
         i > 0;
         i --, attr ++)
    {
      width = strlen(attr->name);

      if (attr->value)
        width += strlen(attr->value) + 3;

      if (global->wrap > 0 && (col + width) > global->wrap)
      {
        //fixed
        //if ((*putc_cb)('\n', p) < 0)
        if ((*putc_cb)(' ', p) < 0)
          return (-1);

        col = 0;
      }


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
184 [easycwmp] Help minor have not tried 2016-12-01 12:24 2021-06-30 05:28
Reporter: alicher Platform: x86  
Assigned To: mohamed.kallel OS: Linux  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: HTTP SERVER CONNECTION FAILED
Description:
--- SEND HTTP REQUEST ---
* Found bundle for host 192.168.1.8: 0x1f968e0 [can pipeline]
* Re-using existing connection! (#1) with host 192.168.1.8
* Connected to 192.168.1.8 (192.168.1.8) port 8080 (#1)
* Server auth using Basic with user 'alicher'
> POST /tr069 HTTP/1.1
Host: 192.168.1.8:8080
Authorization: Basic YWxpY2hlcjpyZWhjaWxh
Cookie: JSESSIONID=D88CA76691B13CBD3A0FDB4A296F8BF5
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 600

* upload completely sent off: 600 out of 600 bytes
< HTTP/1.1 204 No Content
< Server: Apache-Coyote/1.1
< Connection: close
< Date: Thu, 01 Dec 2016 11:10:45 GMT
<
* Closing connection 1
+++ RECEIVED EMPTY HTTP RESPONSE +++
2016-12-01 14:10:45 [easycwmp] NOTICE - receive empty message from the ACS
2016-12-01 14:10:45 [easycwmp] NOTICE - end session: configuration reload
config_init_local(55):: easycwmp.@local[0].interface=eth0
config_init_local(65):: easycwmp.@local[0].port=7547
config_init_local(83):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(71):: easycwmp.@local[0].username=easycwmp
config_init_local(77):: easycwmp.@local[0].password=easycwmp
config_init_local(94):: easycwmp.@local[0].logging_level=3
config_init_acs(159):: easycwmp.@acs[0].url=http://192.168.1.8:8080/tr069
config_init_acs(165):: easycwmp.@acs[0].username=alicher
config_init_acs(171):: easycwmp.@acs[0].password=rehcila
config_init_acs(177):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(190):: easycwmp.@acs[0].periodic_time=0000-00-00T01:00:01Z
config_init_acs(183):: easycwmp.@acs[0].periodic_interval=91500
2016-12-01 14:10:45 [easycwmp] NOTICE - init periodic inform: reference time = 81627555212896, interval = 91500
2016-12-01 14:10:45 [easycwmp] NOTICE - external: execute update_value_change
2016-12-01 14:10:45 [easycwmp] NOTICE - external: execute apply service
2016-12-01 14:10:45 [easycwmp] NOTICE - external script exit
2016-12-01 14:10:45 [easycwmp] NOTICE - end session success
+++ RECEIVED HTTP REQUEST +++
http_digest_auth_fail_response(335):: http_digest_auth_fail_response: header: Digest realm="realm@easycwmp",qop="auth",nonce="3177ee8fa00ab2a3f633e3834f84df1e00000768",opaque="328458fab28345ae87ab3210a8513b14eff452a2"--- RECEIVED HTTP REQUEST ---
+++ HTTP SERVER CONNECTION FAILED +++
+++ RECEIVED HTTP REQUEST +++
http_digest_auth_fail_response(335):: http_digest_auth_fail_response: header: Digest realm="realm@easycwmp",qop="auth",nonce="3177ee8fa00ab2a3f633e3834f84df1e00000768",opaque="328458fab28345ae87ab3210a8513b14eff452a2"--- RECEIVED HTTP REQUEST ---
+++ HTTP SERVER CONNECTION FAILED +++
+++ RECEIVED HTTP REQUEST +++
http_digest_auth_fail_response(335):: http_digest_auth_fail_response: header: Digest realm="realm@easycwmp",qop="auth",nonce="55dca2996f0ff09bdcba395b5afaf40e00000769",opaque="328458fab28345ae87ab3210a8513b14eff452a2"--- RECEIVED HTTP REQUEST ---
+++ HTTP SERVER CONNECTION FAILED +++
+++ RECEIVED HTTP REQUEST +++
http_digest_auth_fail_response(335):: http_digest_auth_fail_response: header: Digest realm="realm@easycwmp",qop="auth",nonce="a6290021e396cfb2c8367e2f2e238fe1000008aa",opaque="328458fab28345ae87ab3210a8513b14eff452a2"--- RECEIVED HTTP REQUEST ---
+++ HTTP SERVER CONNECTION FAILED +++
+++ RECEIVED HTTP REQUEST +++
http_digest_auth_fail_response(335):: http_digest_auth_fail_response: header: Digest realm="realm@easycwmp",qop="auth",nonce="64260b14b08ede26cfb8d66d541db446000008ab",opaque="328458fab28345ae87ab3210a8513b14eff452a2"--- RECEIVED HTTP REQUEST ---
+++ HTTP SERVER CONNECTION FAILED +++
+++ RECEIVED HTTP REQUEST +++
http_digest_auth_fail_response(335):: http_digest_auth_fail_response: header: Digest realm="realm@easycwmp",qop="auth",nonce="64260b14b08ede26cfb8d66d541db446000008ab",opaque="328458fab28345ae87ab3210a8513b14eff452a2"--- RECEIVED HTTP REQUEST ---
+++ HTTP SERVER CONNECTION FAILED +++
+++ RECEIVED HTTP REQUEST +++
http_digest_auth_fail_response(335):: http_digest_auth_fail_response: header: Digest realm="realm@easycwmp",qop="auth",nonce="bbcbd8749e53910f2ef4b73810624f58000008cb",opaque="328458fab28345ae87ab3210a8513b14eff452a2"--- RECEIVED HTTP REQUEST ---
+++ HTTP SERVER CONNECTION FAILED +++
+++ RECEIVED HTTP REQUEST +++
http_digest_auth_fail_response(335):: http_digest_auth_fail_response: header: Digest realm="realm@easycwmp",qop="auth",nonce="5c81989c78bab8eaac65ea8a7bd38000000008cc",opaque="328458fab28345ae87ab3210a8513b14eff452a2"--- RECEIVED HTTP REQUEST ---
+++ HTTP SERVER CONNECTION FAILED +++
+++ RECEIVED HTTP REQUEST +++
http_digest_auth_fail_response(335):: http_digest_auth_fail_response: header: Digest realm="realm@easycwmp",qop="auth",nonce="937f8414d59ab657288684fb308c0543000008cd",opaque="328458fab28345ae87ab3210a8513b14eff452a2"--- RECEIVED HTTP REQUEST ---
+++ HTTP SERVER CONNECTION FAILED +++
+++ RECEIVED HTTP REQUEST +++
http_digest_auth_fail_response(335):: http_digest_auth_fail_response: header: Digest realm="realm@easycwmp",qop="auth",nonce="2f694e0d45761d61339ad2b1be12a54f0000094b",opaque="328458fab28345ae87ab3210a8513b14eff452a2"--- RECEIVED HTTP REQUEST ---
+++ HTTP SERVER CONNECTION FAILED +++
+++ RECEIVED HTTP REQUEST +++
http_digest_auth_fail_response(335):: http_digest_auth_fail_response: header: Digest realm="realm@easycwmp",qop="auth",nonce="0e6782a66e27519e55251004e69262ae0000094c",opaque="328458fab28345ae87ab3210a8513b14eff452a2"--- RECEIVED HTTP REQUEST ---
+++ HTTP SERVER CONNECTION FAILED +++
+++ RECEIVED HTTP REQUEST +++
http_digest_auth_fail_response(335):: http_digest_auth_fail_response: header: Digest realm="realm@easycwmp",qop="auth",nonce="0e6782a66e27519e55251004e69262ae0000094c",opaque="328458fab28345ae87ab3210a8513b14eff452a2"--- RECEIVED HTTP REQUEST ---
+++ HTTP SERVER CONNECTION FAILED +++

Tags:
Steps To Reproduce:
Additional Information:
Attached Files: easycwmp.log (18,278 bytes) 2016-12-01 16:07
https://support.easycwmp.org/file_download.php?file_id=76&type=bug
Notes
(0000583)
mohamed.kallel   
2016-12-01 14:19   
may be you have set wrong ACS credentials in your easycwmp config
(0000584)
alicher   
2016-12-01 14:47   
Message from ACS Unit dashboard:

Basic information
Public IP address: 192.168.1.8
Behind Gateway/NAT: No

Current status
First Management: 2016-12-01 14:01:57
Last Management: 2016-12-01 16:23:18
Next Management: 2016-12-02 19:57:21

History from nov 30 2016 16:40 to dec 01 2016 17:40
Syslog status: No errors logged
(0000587)
mohamed.kallel   
2016-12-01 15:36   
are you sure that you put the right username/password of te ACS in your easycwmp config
(0000588)
alicher   
2016-12-01 16:14   
Maybe I'm wrong.
I'm attach my test in easycwmp.log


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
424 [easycwmp] Help minor always 2021-04-14 20:01 2021-04-30 15:21
Reporter: AndyHorb Platform: Linux AMD64  
Assigned To: OS: Debian  
Priority: normal OS Version: 10.9.x  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Tutorials not up to date for other Linux Systems
Description: Error: autoreconf: 'configure.ac' or 'configure.in' is required
when in part json-c, autoreconf -i

See: https://github.com/json-c/json-c

Part uci, Get the sources:
cd path wrong --> /uci/ doubled


Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0001021)
ahmad.sahnoun   
2021-04-30 15:21   
yes, Tutorials not up to date for other Linux Systems and we will update it. For json-c, please compile it with cmake.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
428 [easycwmp] Question feature always 2021-04-29 04:57 2021-04-29 04:57
Reporter: jackson.stone Platform:  
Assigned To: OS:  
Priority: high OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Cannot debug ext\openwrt\scripts\functions\tr181\wifi functions
Description: I am trying to debug wifi_radio_get_FrequencyBands function in wifi script.
I add the "sh -x" and "sh +x" in the function like this:

wifi_radio_get_FrequencyBands() {
sh -x
        local phy="phy${1#*radio}"
        local freq=`iw phy $phy info | grep "MHz.*dBm" | head -1 | awk '{print $2}'`
sh +x
        [ "${freq#24}" = "$freq" ] && echo "5GHz" || echo "2.4GHz"

}

But I can't get any output by this command "easycwmp get Device.WiFi.Radio.1.OperatingFrequencyBand"

root@LEDE:/usr/share/easycwmp/functions# easycwmp get Device.WiFi.Radio.1.OperatingFrequencyBand


If I remove the "sh -x" and "sh +x" from the function, I can get below output.

root@LEDE:/usr/share/easycwmp/functions# easycwmp get Device.WiFi.Radio.1.Operat
ingFrequencyBand
{ "parameter": "Device.WiFi.Radio.1.OperatingFrequencyBand", "value": "5GHz" }
root@LEDE:/usr/share/easycwmp/functions#

Would you help to guide me how to debug shell script functions?

Thanks.

Jackson
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
427 [easycwmp] Question block always 2021-04-28 12:17 2021-04-28 12:18
Reporter: Debabrata.Hazarika@radisys.com Platform:  
Assigned To: OS:  
Priority: immediate OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Need to understand TR157 alarm notification to ACS.
Description: According to TR157 specs, Page 62
https://www.broadband-forum.org/download/TR-157.pdf#page=62&zoom=100,92,632
Expediate event will send immediately to ACS when any new expediate event/alarm is raised in CPE.

Currently we are using FM DB as CSV file. The expedited event will be look like below
When one expedite event is available the DB, it will have ExpeditedEventNumberOfEntries = 1 and its list with index = 0
    Device.FaultMgmt.{0}.ExpeditedEventNumberOfEntries,1
    Device.FaultMgmt.{0}.ExpeditedEvent.{0}.EventTime,2021-03-23T14:24:53
    Device.FaultMgmt.{0}.ExpeditedEvent.{0}.AlarmIdentifier,AlarmIdentifier1
    Device.FaultMgmt.{0}.ExpeditedEvent.{0}.NotificationType,NewAlarm
    Device.FaultMgmt.{0}.ExpeditedEvent.{0}.ManagedObjectInstance,ManagedObjectInstance1
    Device.FaultMgmt.{0}.ExpeditedEvent.{0}.EventType,EventType1
    Device.FaultMgmt.{0}.ExpeditedEvent.{0}.ProbableCause,ProbableCause1
    Device.FaultMgmt.{0}.ExpeditedEvent.{0}.SpecificProblem,SpecificProblem1
    Device.FaultMgmt.{0}.ExpeditedEvent.{0}.PerceivedSeverity,Minor
    Device.FaultMgmt.{0}.ExpeditedEvent.{0}.AdditionalText,AdditionalText1
    Device.FaultMgmt.{0}.ExpeditedEvent.{0}.AdditionalInformation,AdditionalInformation1

 

When a new expeditate event is generated, then ExpeditedEventNumberOfEntries will be 2 and it will add a new list with index = 1, then DB will be look like below
    Device.FaultMgmt.{0}.ExpeditedEventNumberOfEntries,2
    Device.FaultMgmt.{0}.ExpeditedEvent.{0}.EventTime,2021-03-23T14:24:53
    Device.FaultMgmt.{0}.ExpeditedEvent.{0}.AlarmIdentifier,AlarmIdentifier1
    Device.FaultMgmt.{0}.ExpeditedEvent.{0}.NotificationType,NewAlarm
    Device.FaultMgmt.{0}.ExpeditedEvent.{0}.ManagedObjectInstance,MOI1
    Device.FaultMgmt.{0}.ExpeditedEvent.{0}.EventType,EventType1
    Device.FaultMgmt.{0}.ExpeditedEvent.{0}.ProbableCause,ProbableCause1
    Device.FaultMgmt.{0}.ExpeditedEvent.{0}.SpecificProblem,SpecificProblem1
    Device.FaultMgmt.{0}.ExpeditedEvent.{0}.PerceivedSeverity,Minor
    Device.FaultMgmt.{0}.ExpeditedEvent.{0}.AdditionalText,AdditionalText1
    Device.FaultMgmt.{0}.ExpeditedEvent.{0}.AdditionalInformation,AdditionalInformation1
    Device.FaultMgmt.{0}.ExpeditedEvent.{1}.EventTime,2021-03-23T14:24:53
    Device.FaultMgmt.{0}.ExpeditedEvent.{1}.AlarmIdentifier,AlarmIdentifier2
    Device.FaultMgmt.{0}.ExpeditedEvent.{1}.NotificationType,NewAlarm
    Device.FaultMgmt.{0}.ExpeditedEvent.{1}.ManagedObjectInstance,MOI2
    Device.FaultMgmt.{0}.ExpeditedEvent.{1}.EventType,EventType2
    Device.FaultMgmt.{0}.ExpeditedEvent.{1}.ProbableCause,ProbableCause2
    Device.FaultMgmt.{0}.ExpeditedEvent.{1}.SpecificProblem,SpecificProblem2
    Device.FaultMgmt.{0}.ExpeditedEvent.{1}.PerceivedSeverity,Minor
    Device.FaultMgmt.{0}.ExpeditedEvent.{1}.AdditionalText,AdditionalText2
    Device.FaultMgmt.{0}.ExpeditedEvent.{1}.AdditionalInformation,AdditionalInformation2
    
So, in this case, when a new expedited alarm will generate, then we are expecting cwmp(4 VALUE CHANGE) will send ExpeditedEventNumberOfEntries and list of expedited event with index = 1 to ACS like below

    Device.FaultMgmt.{0}.ExpeditedEventNumberOfEntries,2
    Device.FaultMgmt.{0}.ExpeditedEvent.{1}.EventTime,2021-03-23T14:24:53
    Device.FaultMgmt.{0}.ExpeditedEvent.{1}.AlarmIdentifier,AlarmIdentifier2
    Device.FaultMgmt.{0}.ExpeditedEvent.{1}.NotificationType,NewAlarm
    Device.FaultMgmt.{0}.ExpeditedEvent.{1}.ManagedObjectInstance,MOI2
    Device.FaultMgmt.{0}.ExpeditedEvent.{1}.EventType,EventType2
    Device.FaultMgmt.{0}.ExpeditedEvent.{1}.ProbableCause,ProbableCause2
    Device.FaultMgmt.{0}.ExpeditedEvent.{1}.SpecificProblem,SpecificProblem2
    Device.FaultMgmt.{0}.ExpeditedEvent.{1}.PerceivedSeverity,Minor
    Device.FaultMgmt.{0}.ExpeditedEvent.{1}.AdditionalText,AdditionalText2
    Device.FaultMgmt.{0}.ExpeditedEvent.{1}.AdditionalInformation,AdditionalInformation2

 
Please let me know, how can we achieve this as per the specs.
Tags: alarm, DMC, TR157
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
290 [easycwmp] Help text N/A 2017-08-29 08:29 2021-04-12 12:00
Reporter: hidayat@swag.my Platform: Raspberry Pi 2b  
Assigned To: Anis OS: Openwrt  
Priority: normal OS Version: Bleeding Edge  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: How to implement new parameter in the DeviceInfo data model
Description: Hello there,

its me again. I really need your help and suggestion on this.

I am trying to implement a new custom parameter inside DeviceInfo which is called ServiceLevel.

I wanted to make this parameter ServiceLevel as writable because I want the ACS to be able to set this value.

The value set on this parameter will determine what the CPE access level to the service will be.

1. First of all, is this implementation is the recommended way of what I'm trying to achieve?

2. Can you advice me on how to create this new parameter for DeviceInfo and where should I pay attention if I want to update its value from the ACS?

Thank you very much. Look forward to your reply!
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000796)
Anis   
2017-08-30 16:38   
hi again,

Easycwmp design allows any user to add any obj/param easily.

you have just to follow the example of obj/para already implemented.

try to add parameters and if you have any problem send me the log, I will help you.

BTW, we offer training service and support for easycwmp, it allows you to understand deeply the architecture and the source code design of Easycwmp.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
419 [easycwmp] Question text unable to reproduce 2021-01-04 11:33 2021-04-12 05:10
Reporter: vinit rai Platform: Linux  
Assigned To: OS: Linux 64 bit  
Priority: urgent OS Version: 16.04.1-Ubuntu  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: utils.h:11:17: fatal error: QtSql: No such file or directory
Description: Hi Team,
        while installing EasyCwmp on my linux pc. first of all if i follow the doc their are numbers of file missing, but i am trying to solve it.
now when i am doing MAKE i got error QtSql not such file in src.
so please help me out, what i need to do to come out from this error.
Tags:
Steps To Reproduce:
Additional Information:
System Description
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
418 [easycwmp] Question minor N/A 2020-12-30 14:00 2020-12-30 14:00
Reporter: david.caul774 Platform:  
Assigned To: OS:  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: To add the vender specific fault code with the context of TR069
Description: Hi Team,

As I want some specific fault code to be add means vender specific , so as per TR069 these are Vendor Extension range for CPE Fault Codes from 9800 to 9899.

So my question can I add at CPE side , also should we need to add same code at ACS level.

Thanks
Davi
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
417 [easycwmp] Question minor N/A 2020-11-11 02:18 2020-11-11 02:18
Reporter: kihyun.kim Platform:  
Assigned To: OS: opemembedded linux  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: [Question] RAM usage in embedded linux
Description: Hi,

I want to know the typical Memory usage in embedded Linux.
this mean, I need this information when I determine the system memory size to fit this module.
please, there are some recommend memory usage data?

Thank you.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
416 [easycwmp] Question minor always 2020-11-01 10:18 2020-11-02 10:26
Reporter: komeilkma Platform: linux  
Assigned To: OS: openwrt  
Priority: normal OS Version: 18.06.4  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: after downlaod upgrade file get internal error
Description: I will receive this error after sending the file upgrade command and after downloading the file

 external: execute download http://************/***/*****.bin
Wed Jul 3 14:46:53 2019 daemon.notice easycwmpd: add event '7 TRANSFER COMPLETE'
Wed Jul 3 14:46:53 2019 daemon.notice easycwmpd: add event 'M Download'
Wed Jul 3 14:46:53 2019 daemon.notice easycwmpd: download error: 'Internal error'
Wed Jul 3 14:46:53 2019 daemon.notice easycwmpd: external script exit


How should I solve this problem?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0001011)
mohamed.kallel   
2020-11-02 10:26   
use the last version of easycwmp 1.8.6


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
415 [easycwmp] Question minor N/A 2020-09-23 13:45 2020-09-24 17:58
Reporter: Durga Platform:  
Assigned To: OS:  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: SHA-256
Description: Is easyCwmp 1.8.9 supported SHA-256 hash?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0001010)
Durga   
2020-09-24 17:58   
Is easycwmp 1.8.6 supported sha256 hashing

Thanks,


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
414 [easycwmp] Question minor have not tried 2020-08-31 03:48 2020-09-03 02:01
Reporter: kihyun.kim Platform:  
Assigned To: OS:  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: how to add vendor specific. Items?
Description: Hi,
If we are use LTE modem or other data connection.
and then, how to add new vendor specific items, lte connection status, rf signal, simcard info. and etc. ?
I just add /etc/config/easycwmp config file, and new function script?

please, let me know how to do and some guide for that.

Thank you,.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0001008)
mohamed.kallel   
2020-09-02 14:01   
you mean you want to add extra parameters for LTE modems?
If so you need to add new script file that contains the new parameters.
You can follow the examples of existing parameters
(0001009)
kihyun.kim   
2020-09-03 02:01   
Thank you.
I'll try to.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
413 [easycwmp] Question minor have not tried 2020-08-28 10:31 2020-09-02 06:31
Reporter: kihyun.kim Platform:  
Assigned To: OS:  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: easycwmp 1-8-6 support TR-143?
Description: How to add or modify in easycwmp config file? like TR-111 stun.
There is no way to solve it?
 only support in Premium version?

Thank you.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0001005)
mohamed.kallel   
2020-08-28 11:58   
TR-111 and other extra features are supported only in premium
Please refer to http://easycwmp.org/premium/ to see detailed differences between open source and premium
(0001007)
kihyun.kim   
2020-09-02 06:22   
Thank you.
please, close this.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
323 [easycwmp] Enhancement feature have not tried 2018-05-10 13:12 2020-08-28 10:25
Reporter: carlberg Platform: Yocto  
Assigned To: OS: Rocko or any other version  
Priority: normal OS Version: 2.4.2  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Yocto platform support
Description: Would love if Easycwmp would compile and run on the Yocto platform.
Happy to help testing, but are not that experienced in porting C to different platforms.


Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000867)
carlberg   
2018-05-18 10:41   
I found some old posts about freecwmp/easycwmp and yocto (poky?) think it was from mohamed.kallel, maybe you know where I can find some old recipes for building easycwmp with all dependencies?
(0000869)
mohamed.kallel   
2018-05-21 13:16   
please share the posts you found
(0001004)
kihyun.kim   
2020-08-28 10:25   
Hi There is no recipes for yocto.
You have to do modifying openwrt platform to yocto.
cmake and bb file
systemd or init.d


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
396 [easycwmp] Help major always 2019-11-29 04:01 2020-08-27 10:44
Reporter: andy1019 Platform: easycwmp and genieACS(Ubuntu18)  
Assigned To: OS:  
Priority: urgent OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Easycwmp cannot connect GenieACS
Description: [Easycwmp setup]
config local
option enable ‘1’
option interface eth0
option port 7547
option ubus_socket /var/run/ubus.sock
option date_format %FT%T%z
option username easycwmp
option password easycwmp
option provisioning_code ‘’
#basic authentication = ‘Basic’, Digest authentication = ‘Digest’, Default value = ‘Digest’
option authentication ‘Digest’
#Logging levels: Critic=0, Warning=1, Notice=2, Info=3, Debug=4
option logging_level ‘3’

config acs
option url http://192.168.2.100:7547
option parameter_key ‘1’
option periodic_enable ‘true’
option periodic_interval ‘100’
option periodic_time ‘0001-01-01T00:00:00Z’

After I issued "easycwmpd -f -b", and tried to connect ACS, the logs show,

* Connection #0 to host 192.168.2.100 left intact
+++ RECEIVED HTTP RESPONSE +++
<?xml version="1.0" encoding="UTF-8"?>
<soap-env:Envelope xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cwmp="urn:dslforum-org:cwmp-1-2"><soap-env:Header><cwmp:ID soap-env:mustUnderstand="1">1</cwmp:ID></soap-env:Header><soap-env:Body><cwmp:InformResponse><MaxEnvelopes>1</MaxEnvelopes></cwmp:InformResponse></soap-env:Body></soap-env:Envelope>
--- RECEIVED HTTP RESPONSE ---
2019-11-29 10:15:48 [easycwmp] NOTICE - receive InformResponse from the ACS
2019-11-29 10:15:48 [easycwmp] NOTICE - send empty message to the ACS
+++ SEND EMPTY HTTP REQUEST +++
* Found bundle for host 192.168.2.100: 0xd831df0
* Re-using existing connection! (#0) with host 192.168.2.100
* Connected to 192.168.2.100 (192.168.2.100) port 7547 (#0)
> POST / HTTP/1.1
Host: 192.168.2.100:7547
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
Content-Length: 0

* The requested URL returned error: 400 Bad Request
* Closing connection 0
2019-11-29 10:15:50 [easycwmp] NOTICE - LibCurl Error: The requested URL returned error: 400 Bad Request

Please share your information, Thanks.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files: easycwmp_log.txt (7,186 bytes) 2019-11-29 04:01
https://support.easycwmp.org/file_download.php?file_id=126&type=bug
packet.pcap (15,375 bytes) 2019-11-29 07:29
https://support.easycwmp.org/file_download.php?file_id=127&type=bug
Notes
(0001003)
kihyun.kim   
2020-08-27 10:44   
(Last edited: 2020-08-27 10:44)
Hi,
You should be set URI for ACS connection string
This mean,

Your url should be not
option url http://192.168.2.100:7547 [^]

but
option url http://192.168.2.100:7547/tr069



View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
412 [easycwmp] Question minor always 2020-07-30 14:18 2020-07-31 11:18
Reporter: Kaituozhe64 Platform: MIPS  
Assigned To: OS: Linux  
Priority: normal OS Version: linux-3.18.24.x  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: easycwmp connect to XACS or OpenACS, but Inform ParameterList is empty, how to send a inform with ParameterValue?
Description: 2020-07-27 09:54:26 [easycwmp] NOTICE - send Inform
2020-07-27 09:54:26 [easycwmp] DEBUG - +++ SEND HTTP REQUEST +++
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <soap_env:Envelope
xmlns:soap_env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soap_enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cwmp="urn:dslforum-org:cwmp-1-2">
  <soap_env:Header>
   <cwmp:ID soap_env:mustUnderstand="1">1</cwmp:ID>
  </soap_env:Header>
  <soap_env:Body>
   <cwmp:Inform>
    <DeviceId>
     <Manufacturer>easycwmp</Manufacturer>
     <OUI>FFFFFF</OUI>
     <ProductClass>easycwmp</ProductClass>
     <SerialNumber>FFFFFF123456</SerialNumber>
    </DeviceId>
    <Event soap_enc:arrayType="cwmp:EventStruct[2]">
     <EventStruct>
      <EventCode>0 BOOTSTRAP</EventCode>
      <CommandKey />
     </EventStruct>
     <EventStruct>
      <EventCode>1 BOOT</EventCode>
      <CommandKey />
     </EventStruct>
    </Event>
    <MaxEnvelopes>1</MaxEnvelopes>
    <CurrentTime>2020-07-27T09:54:26+08:00</CurrentTime>
    <RetryCount>0</RetryCount>
    <ParameterList soap_enc:arrayType="cwmp:ParameterValueStruct[0]" />
   </cwmp:Inform>
  </soap_env:Body>
 </soap_env:Envelope>

2020-07-27 09:54:26 [easycwmp] DEBUG - --- SEND HTTP REQUEST ---
* Trying 192.168.254.200:80...
* Connected to 192.168.254.200 (192.168.254.200) port 80 (#0)
> POST /acs HTTP/1.1
Host: 192.168.254.200
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 1164

* upload completely sent off: 1164 out of 1164 bytes
* Mark bundle as not supporting multiuse
* The requested URL returned error: 500 Internal Server Error
* Closing connection 0
2020-07-27 09:54:26 [easycwmp] NOTICE - LibCurl Error: The requested URL returned error: 500 Internal Server Error
2020-07-27 09:54:26 [easycwmp] NOTICE - sending http message failed
2020-07-27 09:54:26 [easycwmp] DEBUG - sending Inform http message failed
2020-07-27 09:54:26 [easycwmp] NOTICE - sending Inform failed
2020-07-27 09:54:26 [easycwmp] NOTICE - external: execute apply service
2020-07-27 09:54:26 [easycwmp] NOTICE - external script exit
2020-07-27 09:54:26 [easycwmp] NOTICE - end session failed
2020-07-27 09:54:26 [easycwmp] NOTICE - retry session in 7 sec, RetryCount = 1
Tags:
Steps To Reproduce: 1、easycwmp connect to XACS or OpenACS
easycwmpd -f -b
2、OpenACS Server print:
Parsing failed:
...
java.lang.RuntimeException: Invalid root. Must be InternetGatewayDevice or Device
3、The device which runs easycwmpd, print "500 Internal Server Error":
see in Description.

I guess the parameter list is empty due to improper configuration of easycwmp, and easycwmp get value can get the parameters.
Additional Information: ~ # easycwmp get value
{ "parameter": "Device.DeviceInfo.SpecVersion", "value": "1.0" }
{ "parameter": "Device.DeviceInfo.ProvisioningCode", "value": "" }
{ "parameter": "Device.DeviceInfo.Manufacturer", "value": "easycwmp" }
{ "parameter": "Device.DeviceInfo.ManufacturerOUI", "value": "FFFFFF" }
{ "parameter": "Device.DeviceInfo.ProductClass", "value": "easycwmp" }
{ "parameter": "Device.DeviceInfo.SerialNumber", "value": "FFFFFF123456" }
{ "parameter": "Device.DeviceInfo.HardwareVersion", "value": "example_hw_version" }
{ "parameter": "Device.DeviceInfo.SoftwareVersion", "value": "example_sw_version" }
{ "parameter": "Device.DeviceInfo.UpTime", "value": "2126", "type": "xsd:unsignedInt" }
{ "parameter": "Device.DeviceInfo.DeviceLog", "value": "" }
{ "parameter": "Device.DeviceInfo.MemoryStatus.Total", "value": "118112" }
{ "parameter": "Device.DeviceInfo.MemoryStatus.Free", "value": "58232" }
{ "parameter": "Device.DHCPv4.Server.Enable", "value": "0", "type": "xsd:boolean" }
{ "parameter": "Device.IP.Diagnostics.IPPing.DiagnosticsState", "value": "None" }
{ "parameter": "Device.IP.Diagnostics.IPPing.Host", "value": "" }
{ "parameter": "Device.IP.Diagnostics.IPPing.NumberOfRepetitions", "value": "3", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Diagnostics.IPPing.Timeout", "value": "1000", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Diagnostics.IPPing.DataBlockSize", "value": "64", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Diagnostics.IPPing.SuccessCount", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Diagnostics.IPPing.FailureCount", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Diagnostics.IPPing.AverageResponseTime", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Diagnostics.IPPing.MinimumResponseTime", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Diagnostics.IPPing.MaximumResponseTime", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "Device.ManagementServer.URL", "value": "http:\/\/192.168.254.200:80\/acs" }
{ "parameter": "Device.ManagementServer.Username", "value": "root" }
{ "parameter": "Device.ManagementServer.Password", "value": "" }
{ "parameter": "Device.ManagementServer.PeriodicInformEnable", "value": "1", "type": "xsd:boolean" }
{ "parameter": "Device.ManagementServer.PeriodicInformInterval", "value": "100", "type": "xsd:unsignedInt" }
{ "parameter": "Device.ManagementServer.PeriodicInformTime", "value": "0001-01-01T00:00:00Z", "type": "xsd:dateTime" }
{ "parameter": "Device.ManagementServer.ConnectionRequestURL", "value": "http:\/\/192.168.254.1:7547\/" }
{ "parameter": "Device.ManagementServer.ConnectionRequestUsername", "value": "easycwmp" }
{ "parameter": "Device.ManagementServer.ConnectionRequestPassword", "value": "" }
{ "parameter": "Device.ManagementServer.ParameterKey", "value": "" }
{ "parameter": "Device.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ConnectionStatus", "value": "Connected" }
{ "parameter": "Device.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress", "value": "2206_v" }
{ "parameter": "Device.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.MACAddress", "value": "" }
Attached Files:
Notes
(0001002)
Kaituozhe64   
2020-07-31 11:18   
I have fixed this bug, it is because of:
The common_entry_inform function in common script file:
--------------------------------------------------------------------------------
local forced_list=${entry_execute_method_list_forcedinform:-$entry_execute_method_list}
--------------------------------------------------------------------------------
should be changed to:
--------------------------------------------------------------------------------
local forced_list="${entry_execute_method_list_forcedinform:-$entry_execute_method_list}"
--------------------------------------------------------------------------------

It may be because the Embedded system uses sh instead of bash, and there have been similar character quote errors in several other places.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
408 [easycwmp] General block always 2020-04-08 11:16 2020-04-08 11:16
Reporter: TheJoker187 Platform: Linux  
Assigned To: OS: Mint  
Priority: normal OS Version: 19.3  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: OpenWRT Compilation Error
Description: After the steps in the tutorial for OpenWRT i got this error form the the build process, libmicroxml was installed as mentioned in the tutorial, the easycwmp version is the 1.8.6 for openwrt, this problem in the build occour for openwrt 19.0 and even for 18.0 versions i do not know if something is missing but without easycwmp the build proceed without any problem. For what i can tell it seems that there is some problem in the download process but using wget to the exact same address download the package without any problem. Hope you can help me with this
Tags:
Steps To Reproduce: just followed the steps in the tutorial, selected the easycwmp package and then issued the make command.
Additional Information: make[3]: Entering directory '/home/joker/openwrt/package/easycwmp'
mkdir -p /home/joker/openwrt/dl
SHELL= flock /home/joker/openwrt/tmp/.easycwmp-1.8.6.tar.gz.flock -c ' /home/joker/openwrt/scripts/download.pl "/home/joker/openwrt/dl" "easycwmp-1.8.6.tar.gz" "x" "" "http://easycwmp.org/download/" '
Cannot find appropriate hash command, ensure the provided hash is either a MD5 or SHA256 checksum.
Makefile:106: recipe for target '/home/joker/openwrt/dl/easycwmp-1.8.6.tar.gz' failed
make[3]: *** [/home/joker/openwrt/dl/easycwmp-1.8.6.tar.gz] Error 255
make[3]: Leaving directory '/home/joker/openwrt/package/easycwmp'
time: package/easycwmp/compile#0.14#0.03#0.31
package/Makefile:111: recipe for target 'package/easycwmp/compile' failed
make[2]: *** [package/easycwmp/compile] Error 2
make[2]: Leaving directory '/home/joker/openwrt'
package/Makefile:107: recipe for target '/home/joker/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile' failed
make[1]: *** [/home/joker/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/joker/openwrt'
/home/joker/openwrt/include/toplevel.mk:225: recipe for target 'world' failed
make: *** [world] Error 2
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
407 [easycwmp] Bug minor have not tried 2020-03-19 09:12 2020-03-19 10:02
Reporter: lucy Platform: X86  
Assigned To: OS: linux  
Priority: normal OS Version: fedora 15  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: "Unrecognized option '--json-input'" error when running the program
Description: The "main" function of "easycwmp.c" does not have a "json-input" option? Why would there be an option "json-input" when running "easycwmp" in "external.c"?
Tags: json-input
Steps To Reproduce:
Additional Information:
Attached Files: error_1.png (24,440 bytes) 2020-03-19 09:59
https://support.easycwmp.org/file_download.php?file_id=130&type=bug
Notes
(0000991)
lucy   
2020-03-19 10:01   
When run with the parameter '--json-input', the program's 'main' function exits


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
403 [easycwmp] General major always 2020-01-06 11:39 2020-03-12 14:03
Reporter: mianasif Platform: ubuntu  
Assigned To: OS: ubuntu  
Priority: high OS Version: 18.04.3 LTS  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: CMakeFiles/ubusd.dir/build.make:198: recipe for target 'ubusd' failed
Description: i am unable to install ubus, kindly let me know how to fix this error?

root@tr069-2:/opt/git/ubus# cmake CMakeLists.txt -DBUILD_LUA=OFF
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'systemd'
-- Found systemd, version 237
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/git/ubus
root@tr069-2:/opt/git/ubus#
root@tr069-2:/opt/git/ubus#
root@tr069-2:/opt/git/ubus#
root@tr069-2:/opt/git/ubus# make
[ 5%] Building C object CMakeFiles/ubusd.dir/ubusd.c.o
[ 11%] Building C object CMakeFiles/ubusd.dir/ubusd_id.c.o
[ 16%] Building C object CMakeFiles/ubusd.dir/ubusd_obj.c.o
[ 22%] Building C object CMakeFiles/ubusd.dir/ubusd_proto.c.o
[ 27%] Building C object CMakeFiles/ubusd.dir/ubusd_event.c.o
[ 33%] Linking C executable ubusd
/usr/bin/ld: cannot find -lubox
collect2: error: ld returned 1 exit status
CMakeFiles/ubusd.dir/build.make:198: recipe for target 'ubusd' failed
make[2]: *** [ubusd] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/ubusd.dir/all' failed
make[1]: *** [CMakeFiles/ubusd.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000990)
Anis   
2020-03-12 14:03   
did you build the libubox lib ?

please refer to the easycwmp tutorial (http://easycwmp.org/tutorial) to build it


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
400 [easycwmp] Enhancement minor have not tried 2019-12-16 15:21 2020-03-12 13:58
Reporter: emna.trigui@pivasoftware.com Platform:  
Assigned To: OS:  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Add log message
Description: Add log message
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
401 [easycwmp] Bug minor have not tried 2019-12-16 16:00 2020-03-12 13:55
Reporter: emna.trigui@pivasoftware.com Platform:  
Assigned To: OS:  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Add "4 VALUE CHANGE" event
Description: Add "4 VALUE CHANGE" event
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
406 [easycwmp] Bug minor have not tried 2020-02-20 23:18 2020-03-12 13:51
Reporter: omarbenabdejlil Platform: Linux  
Assigned To: OS: openwrt  
Priority: urgent OS Version: 4.14.167  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Faced problems with " uci headers "
Description: /easycwmp_Version*.*.*/# ./configure --prefix=path
/easycwmp_Version*.*.*/# export LIBCURL_LIBS=/usr/local/bin/
/easycwmp_Version*.*.*/# export LIBCURL_CFLAGS=/usr/local/bin/

//-------- i've made all these exports But when i type "make" i face a problem with uci , something like "uci.h NOT FOUND".
 DO i need to cross compile it ?? , if yes how i shoudl do it with openwrt SDK ?
Tags:
Steps To Reproduce:
Additional Information: in case of absence , contact me on my Email @ : 802.killer@gmail.com
Attached Files:
Notes
(0000986)
Anis   
2020-03-12 13:51   
if you build easycwmp for linux OS, you do not need the cross compile !!
could you please add more details about the steps of building uci package. !

did you follow the manual (http://easycwmp.org/tutorial) to build easycwmp ?


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
394 [easycwmp] Bug major always 2019-11-18 00:59 2020-03-04 12:31
Reporter: tomiparedes Platform: OPENWRT  
Assigned To: OS:  
Priority: urgent OS Version: 19.07  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Problem compile openwrt
Description: Hi, I'm having trouble compiling easycwmp in the latest version of openwrt as an included package. I follow the instructions of easycwmp download and unzip the package along with libmicroxml and later on make menuconfig select the same within utilities. Then a warning tells me :

make[3] -C package/easycwmp compile
make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
/home/ipcoms/openwrt/include/toplevel.mk:225: fallo en las instrucciones para el objetivo 'world'
make: *** [world] Error 1
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000956)
mohamed.kallel   
2019-11-18 10:27   
Do you have the same problem when you compile another package?
Did you already compile the whole openwrt?
(0000957)
tomiparedes   
2019-11-18 18:59   
I already compiled other packages like Lucy and I had no problem
(0000958)
mohamed.kallel   
2019-11-19 12:10   
do you have easycwmp folder under package folder?
If yes, could you please provide the output of the tree command of the easycwmp folder.
(0000959)
tomiparedes   
2019-11-19 17:58   
make[3]: Leaving directory '/home/ipcoms/openwrt/package/network/utils/curl'
time: package/network/utils/curl/compile#156.22#19.85#196.35
make[3]: Entering directory '/home/ipcoms/openwrt/package/easycwmp'
mkdir -p /home/ipcoms/openwrt/dl
SHELL= flock /home/ipcoms/openwrt/tmp/.easycwmp-1.8.0.tar.gz.flock -c ' /home/ipcoms/openwrt/scripts/download.pl "/home/ipcoms/openwrt/dl" "easycwmp-1.8.0.tar.gz" "x" "" "http://easycwmp.org/download/" '
Cannot find appropriate hash command, ensure the provided hash is either a MD5 or SHA256 checksum.
Makefile:106: recipe for target '/home/ipcoms/openwrt/dl/easycwmp-1.8.0.tar.gz' failed
make[3]: *** [/home/ipcoms/openwrt/dl/easycwmp-1.8.0.tar.gz] Error 255
make[3]: Leaving directory '/home/ipcoms/openwrt/package/easycwmp'
time: package/easycwmp/compile#0.23#0.10#0.43
package/Makefile:111: recipe for target 'package/easycwmp/compile' failed
make[2]: *** [package/easycwmp/compile] Error 2
make[2]: Leaving directory '/home/ipcoms/openwrt'
package/Makefile:107: recipe for target '/home/ipcoms/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile' failed
make[1]: *** [/home/ipcoms/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/ipcoms/openwrt'
/home/ipcoms/openwrt/include/toplevel.mk:225: fallo en las instrucciones para el objetivo 'world'
make: *** [world] Error 2
(0000960)
mohamed.kallel   
2019-11-19 18:05   
Please use the last version of Easycwmp 1.8.5.

You have to add the MD5 sum of the EasyCwmp-1.x.x to EasyCwmp Makefile.

This is a new requirement in the latest openWRT versions.
You cna download manually EasyCwmp-1.x.x, then calculate the md5sum then update Makefile with that MD5 sum
(0000961)
tomiparedes   
2019-11-19 18:13   
but I don't understand when it comes to “calculating the md5sum”. Update the makefile file with regedit I can do it. Thank you
(0000962)
mohamed.kallel   
2019-11-19 18:40   
To calculate md5sum: Download easycwmp package, then (on linux) use md5sum command to retrieve the md5sum value
(0000963)
tomiparedes   
2019-11-19 19:29   
perfect, I must add it within MakeFile about
PKG_SOURCE_URL: = http: //easycwmp.org/download/a572013832c42df92254fcfcd308e649
This is correct ? thank you very much for all the support
(0000964)
tomiparedes   
2019-11-21 20:53   
I would appreciate a help
(0000965)
mohamed.kallel   
2019-11-25 14:20   
(Last edited: 2019-11-25 14:21)
PKG_SOURCE_URL: = http://easycwmp.org/download/easycwmp-1.8.5.tar.gz
PKG_MD5SUM:=66db42acb79837a15ca27d73925ebfd3

(0000966)
tomiparedes   
2019-11-26 16:14   
Hi, this is the error that throws me with all the modifications on make file of the md5sum :

make[3]: Entering directory '/home/ipcoms/openwrt/package/easycwmp'
mkdir -p /home/ipcoms/openwrt/dl
SHELL= flock /home/ipcoms/openwrt/tmp/.easycwmp-1.8.5.tar.gz.flock -c ' / home/ipcoms/openwrt/scripts/download.pl "/home/ipcoms/openwrt/dl" "easycwmp-1.8. 5.tar.gz" "a572013832c42df92254fcfcd308e649" "" "http://easycwmp.org/download/" '
Can't exec "curl": No such file or directory at /home/ipcoms/openwrt/scripts/dow nload.pl line 77.
+ wget --tries=5 --timeout=20 --no-check-certificate --output-document=- http:// easycwmp.org/download/easycwmp-1.8.5.tar.gz
--2019-11-26 15:10:50-- http://easycwmp.org/download/easycwmp-1.8.5.tar.gz
Resolving easycwmp.org (easycwmp.org)... 212.227.247.109, 2001:8d8:1001:23fb:565 8:d8cb:6a65:d815
Connecting to easycwmp.org (easycwmp.org)|212.227.247.109|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 72504 (71K) [application/gzip]
Saving to: 'STDOUT'

- 100%[===================>] 70.80K 123KB/s in 0.6s

2019-11-26 15:10:51 (123 KB/s) - written to stdout [72504/72504]

Hash of the downloaded file does not match (file: 03f60933b2afd03a33a853d9a469ca 6e, requested: a572013832c42df92254fcfcd308e649) - deleting download.
Can't exec "curl": No such file or directory at /home/ipcoms/openwrt/scripts/dow nload.pl line 77.
+ wget --tries=5 --timeout=20 --no-check-certificate --output-document=- https:/ /sources.openwrt.org/easycwmp-1.8.5.tar.gz
--2019-11-26 15:10:51-- https://sources.openwrt.org/easycwmp-1.8.5.tar.gz
Resolving sources.openwrt.org (sources.openwrt.org)... 148.251.151.136, 2a01:4f8 :210:5087::2
Connecting to sources.openwrt.org (sources.openwrt.org)|148.251.151.136|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-11-26 15:10:52 ERROR 404: Not Found.

Download failed.
Can't exec "curl": No such file or directory at /home/ipcoms/openwrt/scripts/dow nload.pl line 77.
+ wget --tries=5 --timeout=20 --no-check-certificate --output-document=- https:/ /mirror2.openwrt.org/sources/easycwmp-1.8.5.tar.gz
--2019-11-26 15:10:52-- https://mirror2.openwrt.org/sources/easycwmp-1.8.5.tar. gz
Resolving mirror2.openwrt.org (mirror2.openwrt.org)... 46.4.11.11, 2a01:4f8:221: 3d45::2
Connecting to mirror2.openwrt.org (mirror2.openwrt.org)|46.4.11.11|:443... conne cted.
HTTP request sent, awaiting response... 404 Not Found
2019-11-26 15:10:54 ERROR 404: Not Found.

Download failed.
No more mirrors to try - giving up.
Makefile:107: recipe for target '/home/ipcoms/openwrt/dl/easycwmp-1.8.5.tar.gz' failed
make[3]: *** [/home/ipcoms/openwrt/dl/easycwmp-1.8.5.tar.gz] Error 2
make[3]: Leaving directory '/home/ipcoms/openwrt/package/easycwmp'
time: package/easycwmp/compile#0.29#0.11#4.02
package/Makefile:111: recipe for target 'package/easycwmp/compile' failed
make[2]: *** [package/easycwmp/compile] Error 2
make[2]: Leaving directory '/home/ipcoms/openwrt'
package/Makefile:107: recipe for target '/home/ipcoms/openwrt/staging_dir/target -mipsel_24kc_musl/stamp/.package_compile' failed
make[1]: *** [/home/ipcoms/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.pa ckage_compile] Error 2
make[1]: Leaving directory '/home/ipcoms/openwrt'
/home/ipcoms/openwrt/include/toplevel.mk:225: fallo en las instrucciones para el objetivo 'world'
make: *** [world] Error 2
(0000967)
tomiparedes   
2019-11-26 21:52   
With the modifications mentioned above I continue to receive errors when it comes to compiling the package. Please could you give me a solution to this problem, if this solution should be charged there is no problem. From already thank you very much
(0000968)
tomiparedes   
2019-12-02 14:40   
hello can you answer me please
(0000969)
mohamed.kallel   
2019-12-02 15:16   
Please attach your Makefile
(0000970)
tomiparedes   
2019-12-02 16:14   
# Copyright (C) 2012-2016 PIVA Software <www.pivasoftware.com>
# Author: MOHAMED Kallel <mohamed.kallel@pivasoftware.com>
# Author: ANIS ELLOUZE <anis.ellouze@pivasoftware.com>

include $(TOPDIR)/rules.mk

PKG_NAME:=easycwmp
PKG_VERSION:=1.8.5
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://easycwmp.org/download/easycwmp-openwrt.tar.gz
PKG_MD5SUM:=a572013832c42df92254fcfcd308e649

PKG_FIXUP:=autoreconf

PKG_CONFIG_DEPENDS:= \
    CONFIG_EASYCWMP_DEBUG \
    CONFIG_EASYCWMP_DEVEL

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(PKG_NAME)-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk

define Package/easycwmp
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=CWMP client (using libcurl)
  DEPENDS:=+libubus +libuci +libubox +libmicroxml +libjson-c +libcurl +curl
endef

define Package/easycwmp/description
 An open source implementation of the client CWMP (TR-069) protocol
endef

define Package/easycwmp/config
    source "$(SOURCE)/Config.in"
endef

USE_LOCAL=$(shell ls ./src/ 2>/dev/null >/dev/null && echo 1)
ifneq ($(USE_LOCAL),)
define Build/Prepare
    $(CP) ./src/* $(PKG_BUILD_DIR)/
endef
endif

TARGET_CFLAGS += \
    -D_GNU_SOURCE

TARGET_LDFLAGS += \
    -Wl,-rpath-link=$(STAGING_DIR)/usr/lib

CONFIGURE_ARGS += \
    --with-uci-include-path=$(STAGING_DIR)/usr/include \
    --with-libubox-include-path=$(STAGING_DIR)/usr/include \
    --with-libubus-include-path=$(STAGING_DIR)/usr/include

ifeq ($(CONFIG_EASYCWMP_DEBUG),y)
CONFIGURE_ARGS += \
    --enable-debug
endif

ifeq ($(CONFIG_EASYCWMP_DEVEL),y)
CONFIGURE_ARGS += \
    --enable-devel
endif

ifeq ($(CONFIG_EASYCWMP_BACKUP_DATA_CONFIG),y)
CONFIGURE_ARGS += \
    --enable-backupdatainconfig
endif

CONFIGURE_ARGS += \
    --enable-jsonc=1

define Package/easycwmp/conffiles
/etc/config/easycwmp
/usr/share/easycwmp/defaults
endef

define Package/easycwmp/install
    $(INSTALL_DIR) $(1)/usr/sbin
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/easycwmpd $(1)/usr/sbin
    $(INSTALL_DIR) $(1)/etc/config
    $(INSTALL_CONF) $(PKG_BUILD_DIR)/ext/openwrt/config/easycwmp $(1)/etc/config
    $(INSTALL_DIR) $(1)/etc/init.d
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/ext/openwrt/init.d/easycwmpd $(1)/etc/init.d
ifeq ($(EASYCWMP_BACKUP_DATA_FILE),y)
    $(INSTALL_DIR) $(1)/etc/easycwmp
endif
ifeq ($(CONFIG_EASYCWMP_SCRIPTS_FULL),y)
    $(INSTALL_DIR) $(1)/usr/share/easycwmp/functions/
    $(CP) $(PKG_BUILD_DIR)/ext/openwrt/scripts/defaults $(1)/usr/share/easycwmp
    $(CP) $(PKG_BUILD_DIR)/ext/openwrt/scripts/functions/common/* $(1)/usr/share/easycwmp/functions/
ifeq ($(CONFIG_EASYCWMP_DATA_MODEL_TR181),y)
    $(CP) $(PKG_BUILD_DIR)/ext/openwrt/scripts/functions/tr181/* $(1)/usr/share/easycwmp/functions/
else
    $(CP) $(PKG_BUILD_DIR)/ext/openwrt/scripts/functions/tr098/* $(1)/usr/share/easycwmp/functions/
endif
    $(INSTALL_DIR) $(1)/usr/sbin
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/ext/openwrt/scripts/easycwmp.sh $(1)/usr/sbin/easycwmp
    chmod +x $(1)/usr/share/easycwmp/functions/*
else
    $(INSTALL_DIR) $(1)/usr/share/easycwmp/functions/
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/ext/openwrt/scripts/functions/common/ipping_launch $(1)/usr/share/easycwmp/functions/ipping_launch
endif
endef

$(eval $(call BuildPackage,easycwmp))
(0000971)
mohamed.kallel   
2019-12-02 16:20   
PKG_SOURCE_URL and PKG_MD5SUM are wrong, use the following

PKG_SOURCE_URL: = http://easycwmp.org/download/easycwmp-1.8.5.tar.gz
PKG_MD5SUM:=66db42acb79837a15ca27d73925ebfd3
(0000972)
tomiparedes   
2019-12-03 13:40   
make[3]: Entering directory '/home/ipcoms/openwrt/package/easycwmp'
mkdir -p /home/ipcoms/openwrt/dl
SHELL= flock /home/ipcoms/openwrt/tmp/.easycwmp-1.8.5.tar.gz.flock -c ' / home/ipcoms/openwrt/scripts/download.pl "/home/ipcoms/openwrt/dl" "easycwmp-1.8. 5.tar.gz" "66db42acb79837a15ca27d73925ebfd3 " "" "http://easycwmp.org/download/e asycwmp-1.8.5.tar.gz" "[^]" '
Cannot find appropriate hash command, ensure the provided hash is either a MD5 o r SHA256 checksum.
Makefile:107: recipe for target '/home/ipcoms/openwrt/dl/easycwmp-1.8.5.tar.gz' failed
make[3]: *** [/home/ipcoms/openwrt/dl/easycwmp-1.8.5.tar.gz] Error 255
make[3]: Leaving directory '/home/ipcoms/openwrt/package/easycwmp'
time: package/easycwmp/compile#0.28#0.05#0.45
package/Makefile:111: recipe for target 'package/easycwmp/compile' failed
make[2]: *** [package/easycwmp/compile] Error 2
make[2]: Leaving directory '/home/ipcoms/openwrt'
package/Makefile:107: recipe for target '/home/ipcoms/openwrt/staging_dir/target -mipsel_24kc_musl/stamp/.package_compile' failed
make[1]: *** [/home/ipcoms/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.pa ckage_compile] Error 2
make[1]: Leaving directory '/home/ipcoms/openwrt'
/home/ipcoms/openwrt/include/toplevel.mk:225: fallo en las instrucciones para el objetivo 'world'
make: *** [world] Error 2
(0000973)
mohamed.kallel   
2019-12-06 15:58   
try to build with the following command:

make package/easycwmp/download SKIPHASH=1
(0000977)
tomiparedes   
2019-12-13 20:15   
ipcoms@ipcoms-HVM-domU:~/openwrt$ make package/easycwmp/download SKIPHASH=1
time: target/linux/prereq#0.98#0.38#1.61
 make[1] package/easycwmp/download
 make[2] -C package/easycwmp download
make -r package/easycwmp/download: build failed. Please re-run make with -j1 V=s
/home/ipcoms/openwrt/include/toplevel.mk:225: fallo en las instrucciones para el
make: *** [package/easycwmp/download] Error 1
(0000978)
tomiparedes   
2019-12-30 17:12   
Hi, is there any news regarding the compilation of easycwmp in openwrt
(0000984)
tomiparedes   
2020-02-26 22:06   
Hello everyone, the truth is that I observe that the TR069 project by easycwmp is very down, I have tried to compile the package on several occasions and with different versions of openwrt and I have never had success following and performing all the tests that I proposed mohamed.kallel but I haven't had an answer yet. It would be nice to tell us if you are still committed to it if we do not look for another solution. From already thank you very much
(0000985)
Anis   
2020-03-04 12:30   
(Last edited: 2020-03-04 12:31)
hello,
did you try to download easycwmp and then try to build it with verbosity (V==99).

if yes, could you provide us the build log



View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
398 [easycwmp] Bug major always 2019-12-11 08:15 2019-12-13 14:08
Reporter: chengang Platform: openwrt  
Assigned To: OS: linux  
Priority: high OS Version: 4.4.60  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: when ACS get multiple parameter values, tr069 client response is error
Description: An error occurred when I tried to ipping diagnostic with multiple getParameterValues
Tags:
Steps To Reproduce: 1.ACS send a request containing some getParameterValues to client for ipping diagnostic.
    
2.easycwmp client response is error.

3.When ACS send request containing any one of them,the response is normal.
Attached is the capture package file
Additional Information:
Attached Files: multi-getParameterValues error.pcap (90,383 bytes) 2019-12-11 08:15
https://support.easycwmp.org/file_download.php?file_id=128&type=bug
Notes
(0000974)
mohamed.kallel   
2019-12-11 10:11   
Please try the following command on your device:

easycwmp --json-input

you willl get the folllowing prompt:

easycwmp>

Then type the following commands

{"command":"get", "class":"value", "parameter":"InternetGatewayDevice.IPPingDiagnostics.SuccessCount"}
{"command":"get", "class":"value", "parameter":"InternetGatewayDevice.IPPingDiagnostics.FailureCount"}
{"command":"get", "class":"value", "parameter":"InternetGatewayDevice.IPPingDiagnostics.AverageResponseTime"}
{"command":"get", "class":"value", "parameter":"InternetGatewayDevice.IPPingDiagnostics.MinimumResponseTime"}
{"command":"get", "class":"value", "parameter":"InternetGatewayDevice.IPPingDiagnostics.MaximumResponseTime"}
{"command":"end"}


and then let me know about results
(0000975)
chengang   
2019-12-12 02:45   
following is result:
root@demo:~# easycwmp --json-input
easycwmp>
{"command":"get", "class":"value", "parameter":"InternetGatewayDevice.IPPingDiagnostics.SuccessCount"}
{"command":"get", "class":"value", "parameter":"InternetGatewayDevice.IPPingDiagnostics.FailureCount"}
{"command":"get", "class":"value", "parameter":"InternetGatewayDevice.IPPingDiagnostics.AverageResponseTime"}
{"command":"get", "class":"value", "parameter":"InternetGatewayDevice.IPPingDiagnostics.MinimumResponseTime"}
{ "parameter": "InternetGatewayDevice.IPPingDiagnostics.SuccessCount", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.IPPingDiagnostics.FailureCount", "value": "0", "type": "xsd:unsignedInt" }
{"command":"get", "class":"value", "parameter":"InternetGatewayDevice.IPPingDiagnostics.MaximumResponseTime"}
{"command":"end"}{ "parameter": "InternetGatewayDevice.IPPingDiagnostics.AverageResponseTime", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.IPPingDiagnostics.MinimumResponseTime", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.IPPingDiagnostics.MaximumResponseTime", "value": "0", "type": "xsd:unsignedInt" }
(0000976)
mohamed.kallel   
2019-12-13 14:08   
That means your data model script works fine.
May you made some modification some where that cause the issue.

Better to retest with the original version with other parmeters and see if the issue reproduced


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
399 [easycwmp] Bug minor have not tried 2019-12-12 17:07 2019-12-12 17:07
Reporter: emna.trigui@pivasoftware.com Platform:  
Assigned To: OS:  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Fix issue in Download method
Description: Fix issue in Download method
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
397 [easycwmp] General minor always 2019-12-06 14:48 2019-12-06 14:48
Reporter: komeilkma Platform: openwrt  
Assigned To: OS: openwrt  
Priority: immediate OS Version: 18.06.3  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: firmware upgrade command / keep setting is selelct
Description: Hi
When using easycwmp to upgrade the firmware, the sysupgrade command is executed in a way that makes it difficult to do the upgrade.
Which part and in which script can I change the sysupgrade command to sysupgrade -n -v?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
395 [easycwmp] General minor always 2019-11-21 14:26 2019-11-21 14:26
Reporter: vamsi Platform: X86  
Assigned To: OS: openwrt  
Priority: normal OS Version: 18.06  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: tr069 notify not working
Description: The ubus -t 1 call tr069 inform '{"event":"8 DIAGNOSTICS COMPLETE"}' doesnot seem to work.

output of ubus is below:

root@OpenWrt:~# ubus -v list tr069
'tr069' @712dad9a
    "notify":{}
    "inform":{"event":"String"}
    "command":{"name":"String"}

                          
Tags:
Steps To Reproduce: Diagnostics request for ping is received, ping also happens but tr069 notify event doesnot happen due to which we dont get any inform with event code 8 for Diagnostics complete.

Manually gave the command ubus -t 1 call tr069 inform '{"event":"8 DIAGNOSTICS COMPLETE"}' while running easycwmpd in foreground with command easycwmpd -f -b
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
392 [easycwmp] Help minor always 2019-11-11 11:00 2019-11-14 17:09
Reporter: leiwudong Platform: mipsel  
Assigned To: mohamed.kallel OS: linux  
Priority: normal OS Version: 2.6.36+  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: openacs can not connect to cpe.
Description: when cpe boot to openacs,i try to cr_connect to cpe,but cpe does not work;i trace the code and find the uloop_fd_add return -1(http.c http_server_init),and the it does not register the event in epoll,so the callback does not work;i wish easycwmp team can give me some suggestions for this issue;
Tags:
Steps To Reproduce:
Additional Information: 2019-11-11 17:51:00 [easycwmp] NOTICE - add event '0 BOOTSTRAP'
2019-11-11 17:51:00 [easycwmp] NOTICE - init periodic inform: reference time = n/a, interval = 100
2019-11-11 17:51:00 [easycwmp] NOTICE - external: execute update_value_change
2019-11-11 17:51:01 [easycwmp] NOTICE - daemon started
2019-11-11 17:51:01 [easycwmp] NOTICE - external: execute inform device_id
2019-11-11 17:51:01 [easycwmp] NOTICE - external script exit
2019-11-11 17:51:01 [easycwmp] NOTICE - add event '1 BOOT'
main(330): ubus initialization failed
+++ lwd ret:-1 registered:0+++
+++ HTTP SERVER CONFIGURATION +++
NOT BOUND TO IP
port: '7547'
--- HTTP SERVER CONFIGURATION ---
2019-11-11 17:51:01 [easycwmp] NOTICE - http server initialized
2019-11-11 17:51:01 [easycwmp] NOTICE - entering main loop
2019-11-11 17:51:01 [easycwmp] NOTICE - start session

is it related to ubus failed?
Attached Files:
Notes
(0000953)
leiwudong   
2019-11-12 09:19   
(Last edited: 2019-11-13 02:17)
I hope to get your reply for the epoll's dependency ,
I search in network,it show need kernel2.6,glibc 2.3.3,but how we install and test glibc?

(0000955)
leiwudong   
2019-11-14 12:50   
I have solved the issue(toolchains is too old,upgrade 4.1 to 4.9),easycwmp team can closed this case.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
393 [easycwmp] Help major N/A 2019-11-13 10:36 2019-11-14 11:57
Reporter: kefi Platform: OpenWrt  
Assigned To: OS:  
Priority: high OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: How to run easycwmp in debug mode?
Description: How to see the Console of easycwmp when it run in debug mode?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000954)
mohamed.kallel   
2019-11-14 11:57   
You have to build easycwmp with debug options


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
391 [easycwmp] Enhancement minor have not tried 2019-10-31 11:30 2019-10-31 11:30
Reporter: emna.trigui@pivasoftware.com Platform:  
Assigned To: OS:  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Fix issue and enhancement
Description: Fix issue and enhancemen.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
390 [easycwmp] Bug minor have not tried 2019-10-25 17:40 2019-10-25 17:40
Reporter: emna.trigui@pivasoftware.com Platform:  
Assigned To: OS:  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Fix coverity issue
Description: Fix coverity issue
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
388 [easycwmp] Question minor always 2019-10-07 08:02 2019-10-07 23:50
Reporter: komeilkma Platform: openwrt  
Assigned To: OS: linux  
Priority: immediate OS Version: 18  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: after change oui and serialnumber get error 403 libcurl
Description: why after change oui or serialnumber libcurl get error 403 from server
In defualt mode I can easily connect
But after changing the serial number or oui get error 403
I don't mind being connected before or for the first time I want to connect
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000931)
mohamed.kallel   
2019-10-07 12:30   
New serial Number (and device info) may be is not defined in the server.
(0000932)
komeilkma   
2019-10-07 12:35   
There is no serial number defined on the acs server
Each time the serial number connection is sent and then defined
The initial serial number and oui (FFFFFF FFFFFF123456) were not defined, but the connection was established
(0000933)
mohamed.kallel   
2019-10-07 13:06   
what is your ACS server?
(0000934)
mohamed.kallel   
2019-10-07 13:06   
please send the files you changed
send log
send traffic capture
(0000935)
komeilkma   
2019-10-07 13:11   
AV System ACS
ok I'll send now
(0000936)
komeilkma   
2019-10-07 13:14   
this is my config

                                                                                                                                                                                                                   config local option interface 'wwan0' option port '7547' option ubus_socket '/var/run/ubus.sock' option date_format '%FT%T%z' option username 'easycwmp' option password 'easycwmp' option authentication 'Digest' option logging_level '3' config acs option url 'http://172.23.10.7:10301/acs' option username 'acs' option password 'acs' option periodic_enable '1' option periodic_interval '100' option periodic_time '0001-01-01T00:00:00Z' config device option oui 'KKKKKK' option serial_number 'KKKKKK123456' option manufacturer 'openwrt' option product_class 'Generic' option hardware_version 'v1' option software_version 'v1'
(0000937)
komeilkma   
2019-10-07 13:19   
this id log of easycwmp

start session
Mon Oct 7 09:20:49 2019 daemon.notice easycwmpd: configured acs url http://172.23.10.7:10301/acs
Mon Oct 7 09:20:49 2019 daemon.notice easycwmpd: external script init
Mon Oct 7 09:20:49 2019 daemon.notice easycwmpd: external: execute inform parameter
Mon Oct 7 09:20:49 2019 daemon.notice easycwmpd: send Inform
Mon Oct 7 09:20:49 2019 daemon.notice easycwmpd: LibCurl Error: The requested URL returned error: 403 Forbidden
Mon Oct 7 09:20:49 2019 daemon.notice easycwmpd: sending http message failed
Mon Oct 7 09:20:49 2019 daemon.notice easycwmpd: sending Inform failed
Mon Oct 7 09:20:49 2019 daemon.notice easycwmpd: external: execute apply service
Mon Oct 7 09:20:49 2019 daemon.notice easycwmpd: external script exit
Mon Oct 7 09:20:49 2019 daemon.notice easycwmpd: end session failed
Mon Oct 7 09:20:49 2019 daemon.notice easycwmpd: retry session in 15 sec, RetryCount = 2
(0000938)
komeilkma   
2019-10-07 13:22   
this is config file


config local
    option interface 'wwan0'
    option port '7547'
    option ubus_socket '/var/run/ubus.sock'
    option date_format '%FT%T%z'
    option username 'easycwmp'
    option password 'easycwmp'
    option authentication 'Digest'
    option logging_level '4'

config acs
    option url 'http://172.23.10.7:10301/acs'
    option username 'acs'
    option password 'acs'
    option periodic_enable '1'
    option periodic_interval '100'
    option periodic_time '0001-01-01T00:00:00Z'

config device
    option oui 'KKKKKK'
    option serial_number 'KKKKKK123456'
    option manufacturer 'openwrt'
    option product_class 'Geberic'
    option hardware_version 'v1'
    option software_version 'v1'
(0000939)
komeilkma   
2019-10-07 13:28   
this is xml that send

POST / HTTP/1.1
Host: 188.208.151.147:3090
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 3200
Expect: 100-continue


<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soap_env:Envelope
    xmlns:soap_env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:soap_enc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:cwmp="urn:dslforum-org:cwmp-1-2">
    <soap_env:Header>
        <cwmp:ID soap_env:mustUnderstand="1">1</cwmp:ID>
    </soap_env:Header>
    <soap_env:Body>
        <cwmp:Inform>
            <DeviceId>
                <Manufacturer>openwrt</Manufacturer>
                <OUI>KKKKKK</OUI>
                <ProductClass>Generic</ProductClass>
                <SerialNumber>KKKKKK123456</SerialNumber>
            </DeviceId>
            <Event soap_enc:arrayType="cwmp:EventStruct[2]">
                <EventStruct>
                    <EventCode>0 BOOTSTRAP</EventCode>
                    <CommandKey />
                </EventStruct>
                <EventStruct>
                    <EventCode>2 PERIODIC</EventCode>
                    <CommandKey />
                </EventStruct>
            </Event>
            <MaxEnvelopes>1</MaxEnvelopes>
            <CurrentTime>2019-10-07T10:00:57+00:00</CurrentTime>
            <RetryCount>0</RetryCount>
            <ParameterList soap_enc:arrayType="cwmp:ParameterValueStruct[11]">
                <ParameterValueStruct>
                    <Name>InternetGatewayDevice.DeviceInfo.SpecVersion</Name>
                    <Value xsi:type="xsd:string">1.0</Value>
                </ParameterValueStruct>
                <ParameterValueStruct>
                    <Name>InternetGatewayDevice.DeviceInfo.ProvisioningCode</Name>
                    <Value xsi:type="xsd:string"></Value>
                </ParameterValueStruct>
                <ParameterValueStruct>
                    <Name>InternetGatewayDevice.DeviceInfo.Manufacturer</Name>
                    <Value xsi:type="xsd:string">openwrt</Value>
                </ParameterValueStruct>
                <ParameterValueStruct>
                    <Name>InternetGatewayDevice.DeviceInfo.ManufacturerOUI</Name>
                    <Value xsi:type="xsd:string">KKKKKK</Value>
                </ParameterValueStruct>
                <ParameterValueStruct>
                    <Name>InternetGatewayDevice.DeviceInfo.ProductClass</Name>
                    <Value xsi:type="xsd:string">Generic</Value>
                </ParameterValueStruct>
                <ParameterValueStruct>
                    <Name>InternetGatewayDevice.DeviceInfo.SerialNumber</Name>
                    <Value xsi:type="xsd:string">KKKKKK123456</Value>
                </ParameterValueStruct>
                <ParameterValueStruct>
                    <Name>InternetGatewayDevice.DeviceInfo.HardwareVersion</Name>
                    <Value xsi:type="xsd:string">v1</Value>
                </ParameterValueStruct>
                <ParameterValueStruct>
                    <Name>InternetGatewayDevice.DeviceInfo.SoftwareVersion</Name>
                    <Value xsi:type="xsd:string">v1</Value>
                </ParameterValueStruct>
                <ParameterValueStruct>
                    <Name>InternetGatewayDevice.ManagementServer.ConnectionRequestURL</Name>
                    <Value xsi:type="xsd:string">http://10.18.36.143:7547/</Value>
                </ParameterValueStruct>
                <ParameterValueStruct>
                    <Name>InternetGatewayDevice.ManagementServer.ParameterKey</Name>
                    <Value xsi:type="xsd:string">n/a</Value>
                </ParameterValueStruct>
                <ParameterValueStruct>
                    <Name>InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress</Name>
                    <Value xsi:type="xsd:string"></Value>
                </ParameterValueStruct>
            </ParameterList>
        </cwmp:Inform>
    </soap_env:Body>
</soap_env:Envelope>
(0000940)
komeilkma   
2019-10-07 13:30   
After I switch the serial number to FFFFFF123456 and OUI to FFFFFF and restart EASYCWMP worked correct
(0000941)
mohamed.kallel   
2019-10-07 15:01   
May be your acs accept only serial number in hexadecimal format
(0000942)
komeilkma   
2019-10-07 15:05   
(Last edited: 2019-10-07 15:10)
So how does this accept defaults?
Does this mean FFFFF and FFFFFF123456?

(0000943)
mohamed.kallel   
2019-10-07 15:32   
by the way OUI should be hexadecimal
FFFFFF is hexadecimal
KKKKKK is not
(0000944)
komeilkma   
2019-10-07 15:37   
I tested with this one but still get the Error 403
OUI: BBBBBB
serial: BBBBBB123456
(0000945)
mohamed.kallel   
2019-10-07 15:42   
You have to check with the ACS provider
(0000946)
komeilkma   
2019-10-07 15:45   
But I find no reason for this
If acs has problems I shouldn't connect to it even with oui FFFFFF and serial FFFFFF123456
But what happens to ACS after the change? Unchanged ACS This is caused by a change in easycwmp
(0000947)
mohamed.kallel   
2019-10-07 15:58   
I checked the inform message sent by your device. ANd there is no issue with it. The issue is from the ACS, because the issue is returning forbidden 403 when OUI is BBBBBB
(0000948)
komeilkma   
2019-10-07 16:02   
(Last edited: 2019-10-07 16:03)
These acs set the username and password according to oui and serialnumber
And I found that by installing easycwmp even by modifying the modem it recognizes me as the previous modem.
Isn't that the solution for it?

(0000949)
komeilkma   
2019-10-07 17:51   
What I do notice is that the server always recognizes me as a similar modem it has previously identified
Is there a solution to this?
(0000950)
mohamed.kallel   
2019-10-07 20:22   
This is really ACS issue, you nead to understand the ACS behviour and configure easycwmp and ACS in the right way.

What is your ACS?
(0000951)
mohamed.kallel   
2019-10-07 20:23   
OK , I see you are using AV system, easycwmp was tested successfully with AVSystem
(0000952)
komeilkma   
2019-10-07 23:49   
(Last edited: 2019-10-07 23:50)
Thank you
Does that mean you don't have a solution to solve this problem in easycwmp?



View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
387 [easycwmp] Bug minor have not tried 2019-09-26 14:48 2019-09-26 14:48
Reporter: emna.trigui@pivasoftware.com Platform:  
Assigned To: OS:  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Fix issue in ipping_stop function
Description: fix issue in ipping_stop function
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
385 [easycwmp] Enhancement minor have not tried 2019-09-23 18:44 2019-09-23 18:44
Reporter: emna.trigui@pivasoftware.com Platform:  
Assigned To: OS:  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Add ipping ServerSelection backend
Description: Add ipping ServerSelection backend
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
356 [easycwmp] Help minor have not tried 2018-09-03 21:52 2019-07-31 03:43
Reporter: kalilac Platform: GNU/Linux  
Assigned To: OS: Debian  
Priority: normal OS Version: 9  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Manual of EasyCWMP
Description: Where can I find any EasyCWMP manual? I need more information, like how to use, if the the instalation it is for been a server or just a client and something like that.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000910)
mohamed.kallel   
2018-09-06 04:09   
You can find documentation about easycwmp in the home page of easycwmp.org
And you can find documentation about installation and usage of easycwmp in the install page of easycwmp.org


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
383 [easycwmp] Help minor always 2019-07-10 23:30 2019-07-10 23:30
Reporter: darkingdoom Platform: Linux  
Assigned To: OS: Ubuntu  
Priority: high OS Version: 18.04  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Error on compiling : cannot find appropriate hash command, ensure the provided hash is either a MD5 or SHA256 checksum
Description: Hey,
I am trying Easycwmp for openWER by following the following wiki
http://easycwmp.org/tutorial/
Tried to compile the OpenWRT without the EasyWCMP and it compiles as it should, now after adding the EasyWCMP package and then compile i get the following error
Cannot find appropriate hash command, ensure the provided hash is either a MD5 or SHA256 checksum.

Full log is attached
Tags:
Steps To Reproduce: Download OpenWRT 18.06
compile it according to this
https://github.com/openwrt/openwrt/tree/openwrt-18.06
Download EasyWCMP for OPenWRT from here
http://easycwmp.org/get/
Add it according to this Wiki
http://easycwmp.org/tutorial/
Additional Information: tester@tester-VirtualBox:~/Downloads/new/openwrt-openwrt-18.06$ make package/easycwmp/compile
 make[1] package/easycwmp/compile
 make[2] -C package/libs/toolchain compile
 make[2] -C package/libmicroxml compile
 make[2] -C package/libs/libjson-c compile
 make[2] -C package/utils/lua compile
 make[2] -C package/libs/libubox compile
 make[2] -C package/system/ca-certificates compile
 make[2] -C package/libs/mbedtls compile
 make[2] -C package/network/utils/curl compile
 make[2] -C package/system/ubus compile
 make[2] -C package/system/uci compile
 make[2] -C package/easycwmp compile
make -r package/easycwmp/compile: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
make: *** [/home/tester/Downloads/new/openwrt-openwrt-18.06/include/toplevel.mk:218: package/easycwmp/compile] Error 1
tester@tester-VirtualBox:~/Downloads/new/openwrt-openwrt-18.06$ make package/easycwmp/compile V=sc
make[1]: Entering directory '/home/tester/Downloads/new/openwrt-openwrt-18.06'
make[2]: Entering directory '/home/tester/Downloads/new/openwrt-openwrt-18.06/package/libs/toolchain'
echo "libc" >> /home/tester/Downloads/new/openwrt-openwrt-18.06/staging_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/pkginfo/toolchain.default.install
echo "libgcc" >> /home/tester/Downloads/new/openwrt-openwrt-18.06/staging_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/pkginfo/toolchain.default.install
echo "libpthread" >> /home/tester/Downloads/new/openwrt-openwrt-18.06/staging_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/pkginfo/toolchain.default.install
echo "librt" >> /home/tester/Downloads/new/openwrt-openwrt-18.06/staging_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/pkginfo/toolchain.default.install
make[2]: Leaving directory '/home/tester/Downloads/new/openwrt-openwrt-18.06/package/libs/toolchain'
time: package/libs/toolchain/compile#0.19#0.08#0.27
make[2]: Entering directory '/home/tester/Downloads/new/openwrt-openwrt-18.06/package/libmicroxml'
make[2]: Leaving directory '/home/tester/Downloads/new/openwrt-openwrt-18.06/package/libmicroxml'
time: package/libmicroxml/compile#0.19#0.04#0.24
make[2]: Entering directory '/home/tester/Downloads/new/openwrt-openwrt-18.06/package/libs/libjson-c'
echo "libjson-c" >> /home/tester/Downloads/new/openwrt-openwrt-18.06/staging_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/pkginfo/libjson-c.default.install
make[2]: Leaving directory '/home/tester/Downloads/new/openwrt-openwrt-18.06/package/libs/libjson-c'
time: package/libs/libjson-c/compile#0.23#0.07#0.29
make[2]: Entering directory '/home/tester/Downloads/new/openwrt-openwrt-18.06/package/utils/lua'
make[2]: Leaving directory '/home/tester/Downloads/new/openwrt-openwrt-18.06/package/utils/lua'
time: package/utils/lua/compile#0.22#0.07#0.31
make[2]: Entering directory '/home/tester/Downloads/new/openwrt-openwrt-18.06/package/libs/libubox'
echo "libubox" >> /home/tester/Downloads/new/openwrt-openwrt-18.06/staging_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/pkginfo/libubox.default.install
echo "libblobmsg-json" >> /home/tester/Downloads/new/openwrt-openwrt-18.06/staging_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/pkginfo/libubox.default.install
echo "jshn" >> /home/tester/Downloads/new/openwrt-openwrt-18.06/staging_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/pkginfo/libubox.default.install
echo "libjson-script" >> /home/tester/Downloads/new/openwrt-openwrt-18.06/staging_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/pkginfo/libubox.default.install
make[2]: Leaving directory '/home/tester/Downloads/new/openwrt-openwrt-18.06/package/libs/libubox'
time: package/libs/libubox/compile#0.79#0.26#1.05
make[2]: Entering directory '/home/tester/Downloads/new/openwrt-openwrt-18.06/package/system/ca-certificates'
make[2]: Leaving directory '/home/tester/Downloads/new/openwrt-openwrt-18.06/package/system/ca-certificates'
time: package/system/ca-certificates/compile#0.21#0.04#0.25
make[2]: Entering directory '/home/tester/Downloads/new/openwrt-openwrt-18.06/package/libs/mbedtls'
make[2]: Leaving directory '/home/tester/Downloads/new/openwrt-openwrt-18.06/package/libs/mbedtls'
time: package/libs/mbedtls/compile#0.20#0.08#0.26
make[2]: Entering directory '/home/tester/Downloads/new/openwrt-openwrt-18.06/package/network/utils/curl'
make[2]: Leaving directory '/home/tester/Downloads/new/openwrt-openwrt-18.06/package/network/utils/curl'
time: package/network/utils/curl/compile#0.28#0.07#0.32
make[2]: Entering directory '/home/tester/Downloads/new/openwrt-openwrt-18.06/package/system/ubus'
echo "libubus" >> /home/tester/Downloads/new/openwrt-openwrt-18.06/staging_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/pkginfo/ubus.default.install
echo "ubus" >> /home/tester/Downloads/new/openwrt-openwrt-18.06/staging_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/pkginfo/ubus.default.install
echo "ubusd" >> /home/tester/Downloads/new/openwrt-openwrt-18.06/staging_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/pkginfo/ubus.default.install
make[2]: Leaving directory '/home/tester/Downloads/new/openwrt-openwrt-18.06/package/system/ubus'
time: package/system/ubus/compile#0.58#0.24#0.83
make[2]: Entering directory '/home/tester/Downloads/new/openwrt-openwrt-18.06/package/system/uci'
echo "uci" >> /home/tester/Downloads/new/openwrt-openwrt-18.06/staging_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/pkginfo/uci.default.install
echo "libuci" >> /home/tester/Downloads/new/openwrt-openwrt-18.06/staging_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/pkginfo/uci.default.install
make[2]: Leaving directory '/home/tester/Downloads/new/openwrt-openwrt-18.06/package/system/uci'
time: package/system/uci/compile#0.53#0.22#0.75
make[2]: Entering directory '/home/tester/Downloads/new/openwrt-openwrt-18.06/package/easycwmp'
mkdir -p /home/tester/Downloads/new/openwrt-openwrt-18.06/dl
SHELL= flock /home/tester/Downloads/new/openwrt-openwrt-18.06/tmp/.easycwmp-1.8.1.tar.gz.flock -c ' /home/tester/Downloads/new/openwrt-openwrt-18.06/scripts/download.pl "/home/tester/Downloads/new/openwrt-openwrt-18.06/dl" "easycwmp-1.8.1.tar.gz" "x" "" "http://easycwmp.org/download/" '
Cannot find appropriate hash command, ensure the provided hash is either a MD5 or SHA256 checksum.
make[2]: *** [Makefile:107: /home/tester/Downloads/new/openwrt-openwrt-18.06/dl/easycwmp-1.8.1.tar.gz] Error 255
make[2]: Leaving directory '/home/tester/Downloads/new/openwrt-openwrt-18.06/package/easycwmp'
time: package/easycwmp/compile#0.21#0.08#0.31
make[1]: *** [package/Makefile:109: package/easycwmp/compile] Error 2
make[1]: Leaving directory '/home/tester/Downloads/new/openwrt-openwrt-18.06'
make: *** [/home/tester/Downloads/new/openwrt-openwrt-18.06/include/toplevel.mk:218: package/easycwmp/compile] Error 2
Attached Files: log.txt (6,706 bytes) 2019-07-10 23:30
https://support.easycwmp.org/file_download.php?file_id=125&type=bug
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
382 [easycwmp] Help minor always 2019-07-05 13:46 2019-07-05 13:46
Reporter: hariram.ale Platform:  
Assigned To: OS:  
Priority: high OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Not showing DSL Statistics graph
Description: Hi expertise,
I am new for CWMP and TR069 and trying to test openacs on my workstation . I am not able to get DLS statistics graph. I have not configured anything as of now for DLS statistics.
So could you please guid me how to add configuration to get DLS statistics graph.

If possible please send me sample script.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
17 [easycwmp] Help minor always 2014-10-09 11:49 2019-07-05 13:22
Reporter: janmus Platform: ARMv5TEJ  
Assigned To: Anis OS: MontaVista Linux  
Priority: normal OS Version: 3.0.8  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: No any graph data of DSL Statistics that I selected "DSL Statistics graph of cpe" form openACS managent Interface
Description: I can't see anything if I selected "DSL Statistics graph of cpe" form openACS managent Interface.

How to show the graph data of DSL Statistics from openACS managent Interface ?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files: DSL Statistics graph.jpg (149,177 bytes) 2014-10-09 11:49
https://support.easycwmp.org/file_download.php?file_id=20&type=bug
Notes
(0000075)
Anis   
2014-10-09 15:27   
The graph is not shown, because DSL parameters are not implemented.
You can add all parameters that you want with same way of parameters already exist in wan_device script file.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
377 [easycwmp] Enhancement minor have not tried 2019-06-19 11:12 2019-06-19 11:12
Reporter: emna.trigui@pivasoftware.com Platform:  
Assigned To: OS:  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Fix issues and enhancement
Description: - change sprintf with snprintf
- Fix issue in log message
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
375 [easycwmp] Question minor always 2019-05-07 06:31 2019-05-07 06:31
Reporter: komeilkma Platform: openwrt  
Assigned To: OS: linux  
Priority: immediate OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: LibCurl Error: The requested URL returned error: 400 Bad Request
Description: Hi, I've made easycwmp settings but there is a problem with the ACS software and when I receive my system log, I get this error from the server.
LibCurl Error: The requested URL returned error: 400 Bad Request
The ACS software that the modem should communicate with is the product of AVSystem
Is
I send the information and settings below

config local
        option interface 'wwan0'
        option port '7547'
        option ubus_socket '/var/run/ubus.sock'
        option date_format '%FT%T%z'
        option username 'root'
        option password 'admin'
        option authentication 'Basic'
        option logging_level '4'

config acs
        option url 'http://cwmp.hiweb.ir:10301/acs'
        option username 'ACS'
        option password ''
        option periodic_enable '1'
        option periodic_interval '10'
        option periodic_time '0001-01-01T00:00:00Z'

config device
        option oui 'FFFFFF'
        option serial_number 'FFFFFF123456'
        option manufacturer 'OpenWrt
http___openwrt.org_'
        option product_class 'Generic'
        option hardware_version 'v0'
        option software_version 'r7258-5eb055306f'


logread -f :

Tue May 7 04:28:53 2019 daemon.notice easycwmpd: add event '2 PERIODIC'
Tue May 7 04:28:53 2019 daemon.notice easycwmpd: start session
Tue May 7 04:28:53 2019 daemon.notice easycwmpd: configured acs url http://cwmp.hiweb.ir:10301/acs
Tue May 7 04:28:53 2019 daemon.notice easycwmpd: external script init
Tue May 7 04:28:54 2019 daemon.notice easycwmpd: external: execute inform parameter
Tue May 7 04:28:54 2019 daemon.notice easycwmpd: send Inform
Tue May 7 04:28:54 2019 daemon.notice easycwmpd: LibCurl Error: The requested URL returned error: 400 Bad Request
Tue May 7 04:28:54 2019 daemon.notice easycwmpd: sending http message failed
Tue May 7 04:28:54 2019 daemon.notice easycwmpd: sending Inform failed
Tue May 7 04:28:54 2019 daemon.notice easycwmpd: external: execute apply service
Tue May 7 04:28:54 2019 daemon.notice easycwmpd: external script exit
Tue May 7 04:28:54 2019 daemon.notice easycwmpd: end session failed
Tue May 7 04:28:54 2019 daemon.notice easycwmpd: retry session in 3840 sec, RetryCount = 91


Meanwhile, I have another problem to send WANIPConnection.1.ExternalIPAddress in the form that I can not set the wan_script file correctly.
Please help me in this case too
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
288 [easycwmp] Enhancement minor have not tried 2017-08-25 16:20 2019-04-08 13:23
Reporter: mohamed.kallel Platform:  
Assigned To: mohamed.kallel OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Make the easycwmp backup configurable and possible to save backup in easycwmp config
Description: Make the easycwmp backup configurable and possible to save backup in easycwmp config
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000795)
mohamed.kallel   
2017-08-26 16:19   
Delivered in EasyCwmp-1.6.0


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
374 [easycwmp] Bug minor always 2019-04-02 16:24 2019-04-02 16:24
Reporter: p2019 Platform:  
Assigned To: OS:  
Priority: immediate OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: cwmp_init_deviceid(736): in device you must define product_class
Description: I have installed as server libreacs and I have followed this link to run easycwmp but the problem is when I write sudo /usr/sbin/easycwmpd -f -b it returns cwmp_init_deviceid(736): in device you must define product_class. But when I force informing about device id by sudo easycwmp inform device_id it returns { "manufacturer": "easycwmp", "oui": "FFFFFF", "product_class": "easycwmp", "serial_number": "FFFFFF123456" }
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
373 [easycwmp] Help major always 2019-04-02 10:21 2019-04-02 10:27
Reporter: orion829 Platform: ARM  
Assigned To: OS: Ubuntu  
Priority: high OS Version: Linaro 14.04  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: The same issue as #issue0000161
Description: Hello,

I have the same log as #issue0000161 but there is no exact solution
It shows "[easycwmp] CRITICAL - error occured when trying to write to the pipe"

I tried command "sudo easycwmp get value" but got nothing
Tags:
Steps To Reproduce: Run easycwmpd as root
Additional Information:
Attached Files:
Notes
(0000930)
orion829   
2019-04-02 10:27   
This is the log i got

analog@analog:/opt/dev/easycwmp$ sudo /usr/sbin/easycwmpd -f -b
2019-04-02 08:24:45 [easycwmp] NOTICE - add event '0 BOOTSTRAP'
2019-04-02 08:24:45 [easycwmp] NOTICE - add event '1 BOOT'
2019-04-02 08:24:45 [easycwmp] NOTICE - add event '2 PERIODIC'
2019-04-02 08:24:45 [easycwmp] NOTICE - external script init
config_init_local(59):: easycwmp.@local[0].interface=eth0
config_init_local(69):: easycwmp.@local[0].port=7547
config_init_local(87):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(75):: easycwmp.@local[0].username=easycwmp
config_init_local(81):: easycwmp.@local[0].password=easycwmp
config_init_local(109):: easycwmp.@local[0].authentication=Digest
config_init_local(98):: easycwmp.@local[0].logging_level=3
config_init_acs(174):: easycwmp.@acs[0].url=http://192.168.0.100:8080/libreacs/acs
config_init_acs(180):: easycwmp.@acs[0].username=easycwmp
config_init_acs(186):: easycwmp.@acs[0].password=easycwmp
config_init_acs(192):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(198):: easycwmp.@acs[0].periodic_interval=100
config_init_acs(205):: easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z
2019-04-02 08:24:45 [easycwmp] NOTICE - init periodic inform: reference time = n/a, interval = 100
2019-04-02 08:24:45 [easycwmp] NOTICE - external: execute update_value_change
2019-04-02 08:24:45 [easycwmp] NOTICE - daemon started
2019-04-02 08:24:45 [easycwmp] NOTICE - external: execute inform device_id
cwmp_init_deviceid(642): in device you must define product_class
2019-04-02 08:24:45 [easycwmp] NOTICE - external script exit
2019-04-02 08:24:45 [easycwmp] NOTICE - add event '1 BOOT'
2019-04-02 08:24:45 [easycwmp] NOTICE - interface eth0 has ip 192.168.0.99
main(324): ubus initialization failed
+++ HTTP SERVER CONFIGURATION +++
ip: '192.168.0.99'
port: '7547'
--- HTTP SERVER CONFIGURATION ---
2019-04-02 08:24:45 [easycwmp] NOTICE - http server initialized
2019-04-02 08:24:45 [easycwmp] NOTICE - entering main loop
2019-04-02 08:24:45 [easycwmp] NOTICE - start session
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(51):: url: http://192.168.0.100:8080/libreacs/acs
http_client_init(57):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
2019-04-02 08:24:45 [easycwmp] NOTICE - configured acs url http://192.168.0.100:8080/libreacs/acs
2019-04-02 08:24:45 [easycwmp] NOTICE - external script init
rpc_inform(208): Inform xml message creating failed
2019-04-02 08:24:45 [easycwmp] NOTICE - sending Inform failed
2019-04-02 08:24:45 [easycwmp] NOTICE - external: execute apply service
2019-04-02 08:24:45 [easycwmp] NOTICE - external script exit
2019-04-02 08:24:45 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2019-04-02 08:24:45 [easycwmp] NOTICE - end session failed
2019-04-02 08:24:45 [easycwmp] NOTICE - retry session in 7 sec, RetryCount = 1
2019-04-02 08:24:52 [easycwmp] NOTICE - start session
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(51):: url: http://192.168.0.100:8080/libreacs/acs
http_client_init(57):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
2019-04-02 08:24:52 [easycwmp] NOTICE - configured acs url http://192.168.0.100:8080/libreacs/acs
2019-04-02 08:24:52 [easycwmp] NOTICE - external script init
rpc_inform(208): Inform xml message creating failed
2019-04-02 08:24:52 [easycwmp] NOTICE - sending Inform failed
2019-04-02 08:24:52 [easycwmp] NOTICE - external: execute apply service
2019-04-02 08:24:52 [easycwmp] NOTICE - external script exit
2019-04-02 08:24:52 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2019-04-02 08:24:52 [easycwmp] NOTICE - end session failed
2019-04-02 08:24:52 [easycwmp] NOTICE - retry session in 15 sec, RetryCount = 2
2019-04-02 08:25:07 [easycwmp] NOTICE - start session
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(51):: url: http://192.168.0.100:8080/libreacs/acs
http_client_init(57):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
2019-04-02 08:25:07 [easycwmp] NOTICE - configured acs url http://192.168.0.100:8080/libreacs/acs
2019-04-02 08:25:07 [easycwmp] NOTICE - external script init
rpc_inform(208): Inform xml message creating failed
2019-04-02 08:25:08 [easycwmp] NOTICE - sending Inform failed
2019-04-02 08:25:08 [easycwmp] NOTICE - external: execute apply service
2019-04-02 08:25:08 [easycwmp] NOTICE - external script exit
2019-04-02 08:25:08 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2019-04-02 08:25:08 [easycwmp] NOTICE - end session failed
2019-04-02 08:25:08 [easycwmp] NOTICE - retry session in 30 sec, RetryCount = 3


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
372 [easycwmp] Bug minor always 2019-03-29 17:34 2019-03-29 17:34
Reporter: p2019 Platform:  
Assigned To: OS:  
Priority: immediate OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Can't build libubox
Description: I have installed LibreACS. Now I am installing EasyCwmp but when I try libubox it returns
make[2]: *** [CMakeFiles/blobmsg_json.dir/blobmsg_json.c.o] Error 1
make[1]: *** [CMakeFiles/blobmsg_json.dir/all] Error 2
make: *** [all] Error 2
 I know it's the same issue of 0000078 and 0000093 but it's the same when I tried to install json.c 11 and even 10
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
371 [easycwmp] Question block always 2019-03-25 17:34 2019-03-25 17:35
Reporter: Alessandro Platform:  
Assigned To: OS: Ubuntu  
Priority: normal OS Version: 18.04  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Issues installing UCI
Description: Hi team,

I'm trying to install easycwmp in a testing server. I installed libubox without problems. When I send "make" command in uci installation there is this:

[ 63%] Built target uci
[ 81%] Built target ucimap
[ 90%] Linking C executable uci
/usr/bin/ld: impossibile aprire il file di output uci: È una directory
collect2: error: ld returned 1 exit status
CMakeFiles/cli.dir/build.make:95: recipe for target 'uci' failed
make[2]: *** [uci] Error 1
CMakeFiles/Makefile2:141: recipe for target 'CMakeFiles/cli.dir/all' failed
make[1]: *** [CMakeFiles/cli.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

Could you help me?

Tags: error, ubuntu
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
367 [easycwmp] Bug minor always 2019-01-31 16:57 2019-01-31 16:57
Reporter: bmiramont Platform: x86  
Assigned To: OS: debian  
Priority: high OS Version: stretch  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Can't run easycwmpd as non-root user
Description: Hi,
I need to run easycwmpd as non root.
I am migrating from easycwmp 1.1.2 on openwrt (where I can run as non-root).
Init script on openwrt is using procd.

On my debian setup, I use openwrt 1.6.1 which runs fine as root.

Here are several commands I try :
# start-stop-daemon -c remotemgmt -x /usr/sbin/easycwmpd -S -- --getrpcmethod
main(285): run easycwmpd as root

process does not start but easycwmp.pid is created in /var/run

when I run :
# start-stop-daemon -b -c remotemgmt -x /usr/sbin/easycwmpd -S -- --getrpcmethod

no message but easycwmp.pid is created in /var/run.

# start-stop-daemon -b -x /usr/sbin/easycwmpd -S -- --getrpcmethod
this launches the process ok in the background.

the correct permissions are on :
/run -> 777 for debugging purposes
/tmp/ubus.sock -> 777 for debugging purposes

thank you,

brice
Tags:
Steps To Reproduce: # start-stop-daemon -c remotemgmt -x /usr/sbin/easycwmpd -S -- --getrpcmethod
main(285): run easycwmpd as root

where remotemgmt is my user
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
307 [easycwmp] Help minor have not tried 2018-01-11 06:07 2019-01-31 14:57
Reporter: parcorp Platform: ubuntu  
Assigned To: OS: linux - ubuntu  
Priority: normal OS Version: 16.04 LTS  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: ubus installation fail due to missing -lblobmsg_json
Description: I have installed json-c, libubox by using the guide, but I am unable to finish the installation for ubus due to the unable to locate -lblobmsg_json.

Any suggestion?
Tags: error, Openwrt, ubuntu, ubus
Steps To Reproduce:
Additional Information:
Attached Files: VirtualBox_2018-01-11_12-59-22.png (42,158 bytes) 2018-01-11 06:07
https://support.easycwmp.org/file_download.php?file_id=113&type=bug
Notes
(0000831)
mohamed.kallel   
2018-01-12 09:53   
(Last edited: 2018-01-12 09:56)
libblobmsg_json is a part of libubox.
You have to build and install libubox first. And then you have to make a:
sudo ln -sf /usr/local/lib/libblobmsg_json /usr/lib/libblobmsg_json.so

(0000929)
bmiramont   
2019-01-31 14:57   
before compiling libubox, you'll need this package : libjson-c-dev
install in ubuntu with
apt install -y libjson-c-dev

otherwise libubox compiles ok but does not compile and install libblobmsg_json
So you won't have any error but the lib won't be present hence ubus won't compile.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
366 [easycwmp] Question minor always 2019-01-22 04:15 2019-01-22 04:15
Reporter: daozue Platform: openwrt  
Assigned To: OS:  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: In PPPoE mode, the WAN IP on the CPE side changes, but ACS is not notified.
Description: In PPPoE mode, the SSID of CPE side WIFI was modified on ACS, causing Network restart and WAN IP change, but ACS was not notified.
Tags:
Steps To Reproduce:
Additional Information: 1、/etc/config/easycwmp:
config local
        option interface 'pppoe-wan'
        option port '7547'
        option ubus_socket '/var/run/ubus.sock'
        option date_format '%FT%T%z'
        option username 'admin'
        option password 'admin'
        option authentication 'Digest'
        option logging_level '3'

config acs
        option url 'http://xx.xx.xx.xx:80/acs'
        option username 'admin'
        option password 'admin'
        option periodic_enable '1'
        option periodic_time '0001-01-01T00:00:00Z'
        option periodic_interval '1800'
        option parameter_key 'unsetCommandKey'

config device
        option oui 'FFFFFF'
        option serial_number 'FFFFFF123456'
        option manufacturer 'OpenWrt'
        option product_class 'Generic'
        option hardware_version 'v0'
        option software_version '14.07'

2、/usr/share/easycwmp/functions/management_server:
....
common_execute_method_param "$DMROOT.ManagementServer.ConnectionRequestURL" "0" "management_server_get_connection_request_url" "" "" "1"
....
management_server_get_connection_request_url() {
        local val
        if [ -z "$default_management_server_connection_request_url" ]; then
                local intf=`$UCI_GET easycwmp.@local[0].interface 2> /dev/null`
                local ip=`ifconfig "$intf" | grep inet | sed 's/^ *//g' | cut -f 2 -d ' '|cut -f 2 -d ':'`
                local port=`$UCI_GET easycwmp.@local[0].port 2> /dev/null`
                                                                                                           
                if [ -n "$ip" -a -n "$port" ]; then
                        val="http://$ip:$port/"
                fi
        else
                val=$default_management_server_connection_request_url
        fi
        echo $val
}
...

3、ifconfig
br-lan Link encap:Ethernet HWaddr xxxxxxxxxxxx
          inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
          inet6 addr: fdb9:2d81:1d2f::1/60 Scope:Global
          inet6 addr: fe80::2a3b:82ff:fe84:320/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:2759 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1942 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:286454 (279.7 KiB) TX bytes:1966623 (1.8 MiB)

eth0 Link encap:Ethernet HWaddr xxxxxxxxxxxxxx
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:36142 errors:0 dropped:0 overruns:0 frame:0
          TX packets:41666 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:5576601 (5.3 MiB) TX bytes:33448839 (31.8 MiB)
          Interrupt:4

eth1 Link encap:Ethernet HWaddr xxxxxxxxxxx
          inet6 addr: fe80::2a3b:82ff:fe84:321/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1480 Metric:1
          RX packets:46315 errors:0 dropped:5 overruns:0 frame:0
          TX packets:39212 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:25247060 (24.0 MiB) TX bytes:6093099 (5.8 MiB)
          Interrupt:4

lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:65536 Metric:1
          RX packets:323 errors:0 dropped:0 overruns:0 frame:0
          TX packets:323 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:25225 (24.6 KiB) TX bytes:25225 (24.6 KiB)

pppoe-wan Link encap:Point-to-Point Protocol
          inet addr:122.233.178.196 P-t-P:122.233.176.1 Mask:255.255.255.255
          inet6 addr: 240e:f0:2b:52d2:fdec:a658:11fa:7dd3/64 Scope:Global
          inet6 addr: fe80::fdec:a658:11fa:7dd3/10 Scope:Link
          UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1472 Metric:1
          RX packets:2107 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2275 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:64
          RX bytes:1056362 (1.0 MiB) TX bytes:296355 (289.4 KiB)

wlan0 Link encap:Ethernet HWaddr xxxxxxxx
          inet6 addr: fe80::2a3b:82ff:fe84:324/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:52913 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:15814596 (15.0 MiB) TX bytes:1410 (1.3 KiB)
          Interrupt:5

wlan1 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
          inet6 addr: fe80::2a3b:82ff:fe84:322/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:6767 errors:0 dropped:0 overruns:0 frame:0
          TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1715290 (1.6 MiB) TX bytes:17859 (17.4 KiB)
          Interrupt:6
                           
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
365 [easycwmp] Question minor have not tried 2019-01-16 08:00 2019-01-18 11:48
Reporter: prajyodh Platform:  
Assigned To: OS: UBUNTU  
Priority: normal OS Version: 16.04  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: spawning multiple easycwmp instances
Description: I have tried installing easycwmp and was successfully able to connect to my ACS(genieACS).

I want to run multiple easycwmp instances(clients) connecting to a single ACS server.
Any way to achieve this using easycwmp solution.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000928)
mohamed.kallel   
2019-01-18 11:48   
you can run easycwmp on linux only 1 time.
If you want to run easycwmp many times, then you can run it with docker


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
357 [easycwmp] Help major have not tried 2018-09-10 12:06 2019-01-02 09:49
Reporter: runsfastman Platform:  
Assigned To: OS:  
Priority: immediate OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: `/usr/sbin/easycwmp get value Device.` prints empty line breaks
Description: I've made and installed on an arm32 linux. I'm seeing a couple of things going wrong. First is when I run the suggested command:

/usr/sbin/easycwmp get value Device.

from the Docs, it prints out 25-30 blank lines. Furthermore when I run

sudo uci show

I get

easycwmp.@local[0]=local
easycwmp.@local[0].interface='eth0'
easycwmp.@local[0].port='7547'
easycwmp.@local[0].ubus_socket='/var/run/ubus.sock'
easycwmp.@local[0].date_format='%FT%T%z'
easycwmp.@local[0].username='easycwmp'
easycwmp.@local[0].password='easycwmp'
easycwmp.@local[0].authentication='Digest'
easycwmp.@local[0].logging_level='3'
easycwmp.@acs[0]=acs
easycwmp.@acs[0].url='http://192.168.1.110:8080/openacs/acs'
easycwmp.@acs[0].username='easycwmp'
easycwmp.@acs[0].password='easycwmp'
easycwmp.@acs[0].periodic_enable='1'
easycwmp.@acs[0].periodic_interval='100'
easycwmp.@acs[0].periodic_time='0001-01-01T00:00:00Z'
easycwmp.@device[0]=device
easycwmp.@device[0].manufacturer='easycwmp'
easycwmp.@device[0].oui='FFFFFF'
easycwmp.@device[0].product_class='easycwmp'
easycwmp.@device[0].serial_number='FFFFFF123456'
easycwmp.@device[0].hardware_version='example_hw_version'
easycwmp.@device[0].software_version='example_sw_version'
uci: Parse error (invalid command) at line 1, byte 0

Notice the parse error at the end there.

Immediate assistance on this would be appreciated, thank you.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000911)
mohamed.kallel   
2018-09-12 15:29   
sudo /usr/sbin/easycwmp get value Device.
(0000913)
runsfastman   
2018-09-12 16:03   
I have added sudo and it still prints out 25-30 blank lines.
(0000914)
runsfastman   
2018-09-13 00:32   
sudo uci show

now shows

uci: Parse error (invalid command) at line 4, byte 0

at the end of it.
(0000915)
runsfastman   
2018-09-13 00:33   
sudo easycwmpd -b -f
2018-09-12 22:33:09 [easycwmp] NOTICE - add event '0 BOOTSTRAP'
2018-09-12 22:33:09 [easycwmp] NOTICE - external script init
config_init_local(59):: easycwmp.@local[0].interface=eth0
config_init_local(69):: easycwmp.@local[0].port=7547
config_init_local(87):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(75):: easycwmp.@local[0].username=easycwmp
config_init_local(81):: easycwmp.@local[0].password=easycwmp
config_init_local(109):: easycwmp.@local[0].authentication=Digest
config_init_local(98):: easycwmp.@local[0].logging_level=3
config_init_acs(174):: easycwmp.@acs[0].url=https://cwmcpe.charter.com/
config_init_acs(180):: easycwmp.@acs[0].username=easycwmp
config_init_acs(186):: easycwmp.@acs[0].password=easycwmp
config_init_acs(192):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(198):: easycwmp.@acs[0].periodic_interval=100
config_init_acs(205):: easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z
2018-09-12 22:33:09 [easycwmp] NOTICE - init periodic inform: reference time = n/a, interval = 100
2018-09-12 22:33:09 [easycwmp] NOTICE - external: execute update_value_change
2018-09-12 22:33:09 [easycwmp] NOTICE - daemon started
2018-09-12 22:33:09 [easycwmp] NOTICE - external: execute inform device_id
cwmp_init_deviceid(642): in device you must define product_class
2018-09-12 22:33:09 [easycwmp] NOTICE - external script exit


This output stays at this point and i must send a ctrl + c to stop it.
(0000916)
runsfastman   
2018-09-13 01:19   
What kind of shell does this depend on? I'm in a busybox bash. ls -l /bin/sh links to -> /bin/bash, which is a busybox distribution of bash.
(0000917)
mohamed.kallel   
2018-09-13 17:37   
may be you modified manually the easycwmp config and you made a typo. That's why there is uci parse error
(0000918)
runsfastman   
2018-09-14 02:30   
# easycwmp uci configuration

config local
    option interface eth0
    option port 7547
    option ubus_socket /var/run/ubus.sock
    option date_format %FT%T%z
    option username easycwmp
    option password easycwmp
    option provisioning_code ''
#basic authentication = 'Basic', Digest authentication = 'Digest', Default value = 'Digest'
    option authentication 'Digest'
#Logging levels: Critic=0, Warning=1, Notice=2, Info=3, Debug=4
    option logging_level '3'

config acs
    option url http://192.168.1.110:8080/openacs/acs
    option username easycwmp
    option password easycwmp
    option parameter_key ''
    option periodic_enable '1'
    option periodic_interval '100'
    option periodic_time '0001-01-01T00:00:00Z'

config device
    option manufacturer easycwmp
    option oui FFFFFF
    option product_class easycwmp
    option serial_number FFFFFF123456
    option hardware_version example_hw_version
    option software_version example_sw_version


The above is my config. Any ideas why it would be printing a bunch of blank lines like that?
(0000920)
gopimohan   
2018-11-20 08:26   
I get the same issue on ARM32. 10-12 blank lines are getting printed when easycwmp get value is executed
(0000921)
gopimohan   
2018-11-20 14:42   
Some change after updating few linkages but still having problems - instead of empty lines, I am getting empty curly braces
root:~ easycwmp get value Device
{ }
(0000922)
gopimohan   
2018-11-20 14:48   
How important is it to make with LUA=OFF?
cmake CMakeLists.txt -DBUILD_LUA=OFF

I using the latest version 1.8.0.
(0000923)
runsfastman   
2018-11-20 16:31   
I had the problems whether or not I did -DBUILD_LUA=OFF on arm32.
(0000924)
mairead   
2018-11-28 16:05   
My empty lines went away when I rebuilt with -D_GNU_SOURCE. Problem seemed to be due to warning about implicit declaration of asprintf
(0000925)
gopimohan   
2018-12-15 12:38   
For which module -D_GNU_SOURCE was defined?
(easycwmp uses aprintf and the warnings get removed by defining _GNU_SOURCE) but it only generates one binary easycwmpd which does not get used in "easycwmp get value
(0000927)
gopimohan   
2019-01-02 09:49   
The issue got resolved for me because of my development environment - It was causing issues in libubox. The -D_GNU_SOURCE was not the issue..Thanks


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
345 [easycwmp] Bug crash always 2018-07-18 15:05 2018-12-18 17:44
Reporter: pedro.sanchez Platform:  
Assigned To: OS:  
Priority: high OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Unable to compile OpenWRT package
Description: On a new cloned openwrt repository, i've installed EasyCwmp OpenWRT package (easycwmp-openwrt-1.7.0.tar.gz) but it doest not compiles.

It returns the error "Cannot find appropriate hash command, ensure the provided hash is either a MD5 or SHA256 checksum."
Tags:
Steps To Reproduce: make package/easycwmp/compile V=s
Additional Information: According to
https://github.com/openwrt/openwrt/commit/f4b9d9d6f13c898d473ce678234339e4a9dba5b2#diff-37328c94ce7b51e93bffc95f34083ae7

the following lines fixes it.
make package/easycwmp/download PKG_HASH=skip V=s
make package/easycwmp/check FIXUP=1 V=s

They add the following
PKG_HASH:=b1238970704dcc0384a8f2b059eabf615ce4e2f4584dc281d602cac89e85daa0
line after
PKG_SOURCE_URL:=http://easycwmp.org/download/

Hash is required since https://github.com/openwrt/openwrt/commit/b30ba14e2a858cfebcfdbc38348ab96a6d179556

If you don't need checksum verification, you can add PKG_HASH=skip
Attached Files:
Notes
(0000888)
mohamed.kallel   
2018-07-18 15:53   
Thank you for the information
(0000926)
squigley   
2018-12-18 17:44   
Same issue here. I'm trying to use easycwmp-1.8.0.tar.gz, and it fails in the same manner:

SHELL= flock /home/simonq/openwrt/tmp/.easycwmp-1.8.0.tar.gz.flock -c ' /home/simonq/openwrt/scripts/download.pl "/home/simonq/openwrt/dl" "easycwmp-1.8.0.tar.gz" "x" "" "http://easycwmp.org/download/" '
Cannot find appropriate hash command, ensure the provided hash is either a MD5 or SHA256 checksum.

I tried to build just this package skipping the hash, but that didn't work:

$ make package/easycwmp-1.8.0/download PKG_HASH=skip V=s
make[1]: Entering directory '/home/simonq/openwrt'
make[1]: *** No rule to make target 'package/easycwmp-1.8.0/download'. Stop.

but building the whole kernel/image did, ie ~/openwrt$ make V=s PKG_HASH=skip


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
350 [easycwmp] Bug major always 2018-08-10 15:02 2018-10-01 09:01
Reporter: okraits Platform:  
Assigned To: OS: OpenWRT  
Priority: high OS Version: LEDE 17.01  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: easycwmp doesn't send a DownloadResponse for the second of two consecutive downloads
Description: If two download requests appear within a short period of time, then easycwmp doesn't send a DownloadResponse for the second download request.

Thus the ACS thinks that the download request wasn't successful and retries the whole session.
Tags:
Steps To Reproduce: Send two download requests to easycwmp closely one after the other.
Additional Information: Attached you find the ACS log and the easycwmp log.
Attached Files: easycwmp.log (11,464 bytes) 2018-08-10 15:02
https://support.easycwmp.org/file_download.php?file_id=121&type=bug
acs.log (21,647 bytes) 2018-08-10 15:02
https://support.easycwmp.org/file_download.php?file_id=122&type=bug
dump.pcap (70,462 bytes) 2018-08-28 14:20
https://support.easycwmp.org/file_download.php?file_id=123&type=bug
Notes
(0000902)
mohamed.kallel   
2018-08-15 11:01   
(Last edited: 2018-08-15 11:02)
I checked the easycwmp.log.
The easycwmp is sending the download response for each download request:



Fri Aug 10 14:26:57 2018 daemon.notice easycwmpd: received Download method from the ACS
Fri Aug 10 14:26:57 2018 daemon.notice easycwmpd: add download: delay = 0 sec, url = https://host:7567/test, FileType = '12 Other File', CommandKey = '16523cdd9bd0000'
Fri Aug 10 14:26:57 2018 daemon.notice easycwmpd: send DownloadResponse to the ACS
Fri Aug 10 14:26:58 2018 daemon.notice easycwmpd: received Download method from the ACS
Fri Aug 10 14:26:58 2018 daemon.notice easycwmpd: add download: delay = 0 sec, url = https://host:7567/test_1533903958.1886573.sh, FileType = '11 Shell Script', CommandKey = '16523cdd9bd0100'
Fri Aug 10 14:26:58 2018 daemon.notice easycwmpd: send DownloadResponse to the ACS

(0000903)
okraits   
2018-08-27 11:05   
Well, it says so in the log but if you look at the SOAP XML log in acs.log you see that easycwmp actually doesn't send a DownloadResponse for the second download request (although it sends one for the first download request) but already a Download Event in the next inform without having confirmed the second download request.
(0000904)
mohamed.kallel   
2018-08-27 11:52   
do you have pcap file?
(0000906)
okraits   
2018-08-28 14:20   
Please see attached file dump.pcap.
(0000909)
okraits   
2018-09-03 15:34   
Any news on this one?
(0000919)
okraits   
2018-10-01 09:01   
Could you please have a look at this issue? I would greatly appreciate it.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
361 [easycwmp] Help minor always 2018-09-25 11:58 2018-09-25 11:58
Reporter: praveen.durai Platform: Arm  
Assigned To: OS: OpenWRT  
Priority: urgent OS Version: Yocto custom  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: easycwmpd start result in "Segmentation Fault" and not even sending Inform request
Description: easycwmp is crashing with segmentation fault as below,

2018-09-24 09:47:25 [easycwmp] NOTICE - add event '0 BOOTSTRAP'
2018-09-24 09:47:25 [easycwmp] NOTICE - add event '1 BOOT'
2018-09-24 09:47:25 [easycwmp] NOTICE - external script init
config_init_local(59):: easycwmp.@local[0].interface=eth0
config_init_local(69):: easycwmp.@local[0].port=7547
config_init_local(87):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(75):: easycwmp.@local[0].username=easycwmp
config_init_local(81):: easycwmp.@local[0].password=easycwmp
config_init_local(98):: easycwmp.@local[0].logging_level=4
config_init_acs(174):: easycwmp.@acs[0].url=http://54.174.75.5/tr069/
config_init_acs(180):: easycwmp.@acs[0].username=easycwmp
config_init_acs(186):: easycwmp.@acs[0].password=easycwmp
config_init_acs(192):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(198):: easycwmp.@acs[0].periodic_interval=100
config_init_acs(205):: easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z
2018-09-24 09:47:25 [easycwmp] NOTICE - init periodic inform: reference time = n/a, interval = 100
2018-09-24 09:47:25 [easycwmp] NOTICE - external: execute update_value_change
2018-09-24 09:47:26 [easycwmp] NOTICE - daemon started
2018-09-24 09:47:26 [easycwmp] NOTICE - external: execute inform device_id
2018-09-24 09:47:26 [easycwmp] NOTICE - external script exit
2018-09-24 09:47:26 [easycwmp] NOTICE - interface eth0 has ip 192.168.15.104
Segmentation fault
Tags:
Steps To Reproduce: Just start easycwmp
(/usr/sbin/easycwmpd -f -b)
Additional Information: OpenWRT is custom built using Yocto for different reason and it does not have easycwmp within so had to make build easycwmp (1.8.0) manually.
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
358 [easycwmp] Bug major always 2018-09-11 21:53 2018-09-12 15:39
Reporter: hendre Platform: Linux  
Assigned To: OS: Ubuntu  
Priority: normal OS Version: 16.04  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: ./configure error same issue as http://support.easycwmp.org/view.php?id=119
Description: /opt/dev/easycwmp$ autoreconf -V
autoreconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.

hendre@testserver:/opt/dev/easycwmp$ aptitude search libcurl
v libcurl-dev -
v libcurl-dev:i386 -
p libcurl-ocaml - OCaml curl bindings (Runtime Library)
p libcurl-ocaml:i386 - OCaml curl bindings (Runtime Library)
v libcurl-ocaml-7alu7 -
p libcurl-ocaml-dev - OCaml libcurl bindings (Development package)
p libcurl-ocaml-dev:i386 - OCaml libcurl bindings (Development package)
v libcurl-ocaml-dev-7alu7 -
v libcurl-ocaml-dev-oioe7:i386 -
v libcurl-ocaml-oioe7:i386 -
v libcurl-ssl-dev -
v libcurl-ssl-dev:i386 -
i A libcurl3 - easy-to-use client-side URL transfer library (OpenSSL flavour)
p libcurl3:i386 - easy-to-use client-side URL transfer library (OpenSSL flavour)
p libcurl3-dbg - debugging symbols for libcurl (OpenSSL, GnuTLS and NSS flavours)
p libcurl3-dbg:i386 - debugging symbols for libcurl (OpenSSL, GnuTLS and NSS flavours)
v libcurl3-dev -
v libcurl3-dev:i386 -
i A libcurl3-gnutls - easy-to-use client-side URL transfer library (GnuTLS flavour)
p libcurl3-gnutls:i386 - easy-to-use client-side URL transfer library (GnuTLS flavour)
v libcurl3-gnutls-dev -
v libcurl3-gnutls-dev:i386 -
p libcurl3-nss - easy-to-use client-side URL transfer library (NSS flavour)
p libcurl3-nss:i386 - easy-to-use client-side URL transfer library (NSS flavour)
v libcurl3-nss-dev -
v libcurl3-nss-dev:i386 -
v libcurl3-openssl-dev -
v libcurl3-openssl-dev:i386 -
v libcurl4-dbg -
v libcurl4-dbg:i386 -
v libcurl4-dev -
v libcurl4-dev:i386 -
p libcurl4-doc - documentation for libcurl
p libcurl4-gnutls-dev - development files and documentation for libcurl (GnuTLS flavour)
p libcurl4-gnutls-dev:i386 - development files and documentation for libcurl (GnuTLS flavour)
p libcurl4-nss-dev - development files and documentation for libcurl (NSS flavour)
p libcurl4-nss-dev:i386 - development files and documentation for libcurl (NSS flavour)
p libcurl4-openssl-dev - development files and documentation for libcurl (OpenSSL flavour)
p libcurl4-openssl-dev:i386 - development files and documentation for libcurl (OpenSSL flavour)
p libcurlpp-dev - c++ wrapper for libcurl (development files)
p libcurlpp-dev:i386 - c++ wrapper for libcurl (development files)
p libcurlpp0 - c++ wrapper for libcurl
p libcurlpp0:i386 - c++ wrapper for libcurl
Tags:
Steps To Reproduce: /opt/dev/easycwmp$ ./configure --enable-debug --enable-devel --enable-acs=multi --enable-jsonc=1
configure: WARNING: unrecognized options: --enable-acs
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking dependency style of gcc... (cached) gcc3
./configure: line 4106: syntax error near unexpected token `LIBCURL,'
./configure: line 4106: `PKG_CHECK_MODULES(LIBCURL, libcurl)' - There is error!
Additional Information: I did install

  - pkg-config
  - libssl-dev

As seen on other page, but does not work.

I don't know what to do anymore.
Attached Files:
Notes
(0000912)
mohamed.kallel   
2018-09-12 15:39   
check if you have libcurl installted on your ubuntu system.
if it's already installed, may be you have some dependencies missinig


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
355 [easycwmp] Enhancement minor have not tried 2018-09-03 10:12 2018-09-03 10:12
Reporter: emna.trigui@pivasoftware.com Platform:  
Assigned To: OS:  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Easycwmp: add method upload
Description: Easycwmp: add method upload
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
352 [easycwmp] Question minor have not tried 2018-08-28 11:50 2018-09-03 08:31
Reporter: yongshin Platform:  
Assigned To: OS:  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: How different data models coexists in shell script version?
Description: I am a new easycwmp user.
How can I use Device and InternetGatewayDevice simultaneously?
The default root data model is one of both.
I can not found example.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000905)
mohamed.kallel   
2018-08-28 13:17   
both data models Device. and InternetGatewayDevice. can not coexist in the running time, you have to choose one of them in the compilation time.

If you want both data models coexist in the same time and switch between them with a config option, then you have to make some changes in the source code
(0000908)
yongshin   
2018-09-03 08:31   
Thank you very much for your reply.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
354 [easycwmp] Bug major sometimes 2018-09-01 13:38 2018-09-01 13:38
Reporter: kalilac Platform: GNU/Linux  
Assigned To: OS: CentOS  
Priority: high OS Version: 7.5.1804 (Core)  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Compilation ends with error "collect2: error: ld returned 1 exit status"
Description: Hello all.
After some problems I could pass from "./configure" step but when I go to make command it ends with this error:

collect2: error: ld returned 1 exit status
make[1]: ** [easycwmpd] Erro 1
make[1]: Saindo do diretório `/opt/dev/easycwmp/bin'
make: ** [all-recursive] Erro 1

Again, I followed the instalation guide just like how is write there.
Can anyone help me?
Best regars
Tags:
Steps To Reproduce: cd /opt/dev/

tar -xzvf easycwmp-1.7.0.tar.gz

mv easycwmp-1.7.0 easycwmp

cd /opt/dev/easycwmp/

autoreconf -i

./configure --enable-debug --enable-devel --enable-acs=multi --enable-jsonc=1 MICROXML_CFLAGS="-I/opt/git/microxml" MICROXML_LIBS="-L/opt/git/microxml"

make
Additional Information: I needed add the options MICROXML_CFLAGS and MICROXML_LIBS on ./configure step to pass microxml problem.
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
353 [easycwmp] Bug minor have not tried 2018-08-31 21:14 2018-09-01 13:26
Reporter: kalilac Platform: Linux  
Assigned To: OS: CentOS 7  
Priority: normal OS Version: 7.5.1804 (Core)  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: checking for MICROXML... no configure: error: Package requirements (microxml) were not met: No package 'microxml' found
Description: Following the manual installation, exactly how it is there, when we reach the ./configure part it finished with the above error.
I tried to remove the microxml directory and redone the Microxml step again but it was the same result.
Tags:
Steps To Reproduce: Exactly how it is on this page: http://www.easycwmp.org/install.html

Additional Information: I must used the json-c-0.11.tar.gz vertion due a already knew bug.
Attached Files:
Notes
(0000907)
kalilac   
2018-09-01 13:26   
I used a workaround to pass this problem. On the line command I puted this:

./configure --enable-debug --enable-devel --enable-acs=multi --enable-jsonc=1 MICROXML_CFLAGS="-I/opt/git/microxml" MICROXML_LIBS="-L/opt/git/microxml"

and passed just with one warning, this one "configure: WARNING: unrecognized options: --enable-acs".


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
346 [easycwmp] Help minor always 2018-07-19 09:26 2018-08-10 12:54
Reporter: arukona Platform: ARM  
Assigned To: OS: linux  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: easycwmp client stuck and not making connection with ACS server
Description: Hi,

I have cross compiled easycwmp client and all dependencies for
arm-cortexa9-linux-gbueabi. I've followed instruction given here
http://www.easycwmp.org/install.html# for EasyCwmp install for
other Linux distributions.

I have copied required libraries / binaries etc to hardware box
and started genieacs and easycemp client. The easycwmp client got
stuck and logs on the screen as below.

root@phyFLEX-i:~ /usr/sbin/easycwmpd -f -b
2018-07-19 06:54:12 [easycwmp] NOTICE - add event '0 BOOTSTRAP'
2018-07-19 06:54:12 [easycwmp] NOTICE - external script init
config_init_local(59):: easycwmp.@local[0].interface=eth0
config_init_local(69):: easycwmp.@local[0].port=7547
config_init_local(87):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(75):: easycwmp.@local[0].username=easycwmp
config_init_local(81):: easycwmp.@local[0].password=easycwmp
config_init_local(109):: easycwmp.@local[0].authentication=Digest
config_init_local(98):: easycwmp.@local[0].logging_level=3
config_init_acs(174):: easycwmp.@acs[0].url=http://192.168.0.210:7547/
config_init_acs(180):: easycwmp.@acs[0].username=easycwmp
config_init_acs(186):: easycwmp.@acs[0].password=easycwmp
config_init_acs(192):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(198):: easycwmp.@acs[0].periodic_interval=100
config_init_acs(205):: easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z
2018-07-19 06:54:13 [easycwmp] NOTICE - add event '0 BOOTSTRAP'
2018-07-19 06:54:13 [easycwmp] NOTICE - init periodic inform: reference time = n/a, interval = 100
2018-07-19 06:54:13 [easycwmp] NOTICE - external: execute update_value_change
2018-07-19 06:54:13 [easycwmp] NOTICE - daemon started
2018-07-19 06:54:13 [easycwmp] NOTICE - external: execute inform device_id
cwmp_init_deviceid(642): in device you must define product_class
2018-07-19 06:54:13 [easycwmp] NOTICE - external script exit

After seeing the code it seems the client (easycwmpd) is waiting for
easycwmp --json-input to exit and but it is not and as a result it is in infinite loop

root@phyFLEX-i:~ ps -aef | grep easycwmp
root 4288 4130 0 06:54 pts/4 00:00:00 /usr/sbin/easycwmpd -f -b
root 4289 4288 0 06:54 pts/4 00:00:00 /bin/sh /usr/sbin/easycwmp --json-input
root 4302 4297 0 06:55 pts/6 00:00:00 grep easycwmp

Also some information as below based on similar issue in easycwmp support site

root@phyFLEX-i:~ easycwmp --json-input
easycwmp>
{"command": "inform", "class": "device_id"}
easycwmp> (<--------blank no output here)



root@phyFLEX-i:~ easycwmp --json-input
easycwmp>
{"command": "get", "class": "value"}
easycwmp> (<--------blank no output here)

Please suggest what I'm missing it to make client communicate with server

Also one information that on my box for dependencies (curl, json-c, libubox, ubus, uci, microxml) the make install is not executed as compilation is done on virtual machine with required toolchain so I copied required libraries and binararies and created softlinks as suggested to install webpage

Please provide valuable feedback / pointer to proceed further.

Thanks,
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000889)
mohamed.kallel   
2018-07-20 11:30   
you have some issue in json package. may be there is some scripts from json package are not installed.

To guaranty that your easycwmp is well installed, you should got output of the following command:

Linux$ easycwmp inform
{ "parameter": "Device.DeviceInfo.SpecVersion", "value": "1.0" }
{ "parameter": "Device.DeviceInfo.ProvisioningCode", "value": "" }
{ "parameter": "Device.DeviceInfo.Manufacturer", "value": "" }
{ "parameter": "Device.DeviceInfo.ManufacturerOUI", "value": "" }
{ "parameter": "Device.DeviceInfo.ProductClass", "value": "" }
{ "parameter": "Device.DeviceInfo.SerialNumber", "value": "" }
{ "parameter": "Device.DeviceInfo.HardwareVersion", "value": "" }
{ "parameter": "Device.DeviceInfo.SoftwareVersion", "value": "" }
{ "parameter": "Device.ManagementServer.ConnectionRequestURL", "value": "" }
{ "parameter": "Device.ManagementServer.ParameterKey", "value": "" }
(0000890)
arukona   
2018-07-20 12:38   
Hi,

Thanks for your response.

On the box, I am able to get following output for the command you suggested to execute.

phyFLEX-i.MX6 login: root
root@phyFLEX-i:~ easycwmp inform
{ "parameter": "Device.DeviceInfo.SpecVersion", "value": "1.0" }
{ "parameter": "Device.DeviceInfo.ProvisioningCode", "value": "" }
{ "parameter": "Device.DeviceInfo.Manufacturer", "value": "easycwmp" }
{ "parameter": "Device.DeviceInfo.ManufacturerOUI", "value": "FFFFFF" }
{ "parameter": "Device.DeviceInfo.ProductClass", "value": "easycwmp" }
{ "parameter": "Device.DeviceInfo.SerialNumber", "value": "FFFFFF123456" }
{ "parameter": "Device.DeviceInfo.HardwareVersion", "value": "example_hw_version" }
{ "parameter": "Device.DeviceInfo.SoftwareVersion", "value": "example_sw_version" }
{ "parameter": "Device.ManagementServer.ConnectionRequestURL", "value": "http:\/\/192.168.0.200:7547\/" }
{ "parameter": "Device.ManagementServer.ParameterKey", "value": "" }
root@phyFLEX-i:~
root@phyFLEX-i:~
root@phyFLEX-i:~

and there is no connection b/w client and server. Please provide your valuable feedback / pointer
(0000891)
mohamed.kallel   
2018-07-20 13:11   
Try now the following command

Linux$ easycwmp --json-input

And then input the following json message:

easycwmp>
{"command": "inform"}

you should got the same output you did with "easycwmp inform"
(0000892)
arukona   
2018-07-20 13:18   
I am not getting any output in this case, it is blank, please refer below

root@phyFLEX-i:~
root@phyFLEX-i:~ easycwmp --json-input
easycwmp>
{"command": "inform"}
easycwmp>

Please advice
(0000893)
arukona   
2018-07-20 14:54   
This is what json related files on my box, just in case if it helps

root@phyFLEX-i:~ find / -name json*
/opt/dev/easycwmp/src/json.c
/opt/dev/easycwmp/src/json.h
/usr/lib/python2.6/json
/usr/lib/python3.1/json
/usr/include/json
/usr/include/json-c
/usr/include/json-c/json-c
/usr/include/json-c/json.h
/usr/include/json-c/json_c_version.h
/usr/include/json-c/json_visit.h
/usr/include/json-c/json_tokener.h
/usr/include/json-c/json_inttypes.h
/usr/include/json-c/json_object_iterator.h
/usr/include/json-c/json_object.h
/usr/include/json-c/json_util.h
/usr/include/json-c/json_config.h
/usr/include/json-c/json_pointer.h
/usr/local/include/libubox/json_script.h
root@phyFLEX-i:~
root@phyFLEX-i:~ find / -name libjson*
/usr/lib/libjson-c.la
/usr/lib/libjson-c.so
/usr/lib/libjson-c.so.4.0.0
/usr/lib/libjson-c.so.4
/usr/lib/libjson-c.a
/usr/local/lib/libjson_script.so
root@phyFLEX-i:~

and the soft link I created as part of install

root@phyFLEX-i:~ ll /usr/include/json
lrwxrwxrwx 1 root root 19 Jul 12 14:02 /usr/include/json -> /usr/include/json-c
root@phyFLEX-i:~
(0000894)
mohamed.kallel   
2018-07-20 15:47   
what is your default sh ?

ls -l /bin/sh
(0000895)
arukona   
2018-07-20 16:36   
Here it is

root@phyFLEX-i:~ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Jul 20 10:31 /bin/sh -> bash
root@phyFLEX-i:~
(0000896)
arukona   
2018-08-06 07:45   
Hi,

Request your help in debugging this or let me know some pointer

Thanks,
(0000897)
mohamed.kallel   
2018-08-06 16:40   
(Last edited: 2018-08-06 17:56)
You have some issue with your json installation on your linux
The json.sh (from json-c package) seems does not work properly on your linux platform for some reasons.
you have to check that

(0000899)
arukona   
2018-08-09 09:19   
Hi,

Since I copied executable and library manually so there was issue with default PATH variable. When I edited it for correct path(s) the tr069 client is able to make connection with genieacs ACS server

HTTP inform sent by client is responded back by server but in keep alive mode when client is trying to send empty http request it results into
* The requested URL returned error: 400

For more detail refer below and let me know any pointer to debug this further.

--- RECEIVED HTTP RESPONSE ---
2018-08-09 07:15:49 [easycwmp] NOTICE - receive InformResponse from the ACS
2018-08-09 07:15:49 [easycwmp] NOTICE - send empty message to the ACS
+++ SEND EMPTY HTTP REQUEST +++
> POST / HTTP/1.1
Host: 192.168.0.210:7547
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
Content-Length: 0

* The requested URL returned error: 400
2018-08-09 07:15:49 [easycwmp] NOTICE - LibCurl Error: The requested URL returned error: 400
2018-08-09 07:15:49 [easycwmp] NOTICE - sending http message failed
cwmp_handle_messages(351): sending http message failed
cwmp_inform(315): handling xml message failed
2018-08-09 07:15:49 [easycwmp] NOTICE - external: execute apply service
2018-08-09 07:15:49 [easycwmp] NOTICE - external script exit
(0000900)
arukona   
2018-08-10 08:58   
Hi,

Let me know some pointer to debug this further as I am not able to understand that why client is not able to send empty http request when he just sent one http request as part of Inform so communication is through b/w client and server.

Regards,
(0000901)
arukona   
2018-08-10 09:18   
(Last edited: 2018-08-10 12:54)
Also I see on successful case (simulated client and server on x86 platform) the logs in geniacs as below. Difference I see in content of InformEvent being

"1 BOOT,2 PERIODIC" - in Success case and "0 BOOTSTRAP,1 BOOT" as in failure case. I hope this is okay?

Success case (client & server on x86 platform)
----------------------------------------------

2018-08-10T05:36:55.194Z [INFO] 192.168.0.211 FFFFFF-easycwmp-FFFFFF123456: Inform; cpeRequestId="1" informEvent="1 BOOT,2 PERIODIC" informRetryCount=0
2018-08-10T05:38:13.019Z [INFO] 192.168.0.211 FFFFFF-easycwmp-FFFFFF123456: Inform; cpeRequestId="2" informEvent="2 PERIODIC" informRetryCount=0

whereas for unsuccessful case (client on ARM based platform)
-------------------------------------------------------------

2018-08-10T05:46:51.750Z [INFO] 192.168.0.200 FFFFFF-easycwmp-FFFFFF123456: Inform; cpeRequestId="1" informEvent="0 BOOTSTRAP,1 BOOT" informRetryCount=0
2018-08-10T05:46:51.765Z [ERROR] 192.168.0.200 FFFFFF-easycwmp-FFFFFF123456: Invalid session
2018-08-10T05:46:59.202Z [INFO] 192.168.0.200 FFFFFF-easycwmp-FFFFFF123456: Inform; cpeRequestId="2" informEvent="" informRetryCount=1
2018-08-10T05:46:59.213Z [ERROR] 192.168.0.200 FFFFFF-easycwmp-FFFFFF123456: Invalid session

One more difference I see on easycwmp client log for success case is the comment starting with "* Found...."

Success case
------------

+++ SEND EMPTY HTTP REQUEST +++
* Found bundle for host 192.168.0.211: 0x5590c1226020 [can pipeline]
* Re-using existing connection! (#0) with host 192.168.0.211
* Connected to 192.168.0.211 (192.168.0.211) port 7547 (#0)
> POST / HTTP/1.1

and this is not the case in failure case

Failure case
-------------

+++ SEND EMPTY HTTP REQUEST +++
> POST / HTTP/1.1
Host: 192.168.0.210:7547
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
Content-Length: 0

Please provide your input to proceed further



View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
344 [easycwmp] Help crash always 2018-07-12 05:25 2018-07-16 08:51
Reporter: Rany.Li Platform:  
Assigned To: OS:  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: ubusd was crashed
Description: I have compile easycwmp into my system(not Openwrt),and run "ubusd -s /var/run/ubus.sock & " then,i run the "easycwmpd -b -f",after that,the programm was cuashed.i have checked the source code and found it was stuck at the time of read command from the acs server,please check the attachment. And i want to know when the easycwmp working normally,there is how many process is running?i found the ubus(not ubusd)and easycwmp(not easycwmpd)is not running at all.
I have tried another way that do not run the ubusd and run easycwmpd -b -f directly,when i add RPC on acs server,like reboot,getValue..etc,the cwmp will response,but not response immediately,i think it because the client was not to listen.
So i want to ask ,is my ubus source code have some problem?or my operation was wrong?i'm using easycwmp-1.6.1 now。
Please take a look,thanks.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files: log.jpg (37,204 bytes) 2018-07-12 05:25
https://support.easycwmp.org/file_download.php?file_id=119&type=bug
source code.jpg (32,141 bytes) 2018-07-12 05:26
https://support.easycwmp.org/file_download.php?file_id=120&type=bug
Notes
(0000886)
mohamed.kallel   
2018-07-13 12:53   
Did you launch the easycwmpd and ubusd in root? if not, you have to.
(0000887)
Rany.Li   
2018-07-16 08:51   
Thanks for your reply..and i have checked the authroity,it's have been launched in root already...


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
322 [easycwmp] Help minor always 2018-05-09 12:47 2018-07-13 10:58
Reporter: Rany.Li Platform:  
Assigned To: mohamed.kallel OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: ubus initialization failed
Description: I'm using easycwmp-1.6.1.
when i run “easycwmpd -f -b”,it will be stuck in initialize ubus server,then i check the code find :
if (read(ctx->sock.fd, &hdr, sizeof(hdr)) != sizeof(hdr))
because the function read was blocked by default,and there is no data form client,so it will be stuck.Then i change this with:
fcntl(ctx->sock.fd,F_SETFL,FNDELAY);
and it work,but it still prompt “ubus initialization failed”.
The acs server was openacs i used.
when i run 'easycwmpd -f -b' again,it will show :

So i want to know where am i wrong about the config or enviroment.

Please help me ,thanks.
Tags:
Steps To Reproduce: 1970-01-01 00:53:46 [easycwmp] NOTICE - external script init
config_init_local(58):: easycwmp.@local[0].interface=eth0
config_init_local(68):: easycwmp.@local[0].port=7547
config_init_local(86):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(74):: easycwmp.@local[0].username=easycwmp
config_init_local(80):: easycwmp.@local[0].password=easycwmp
config_init_local(97):: easycwmp.@local[0].logging_level=3
config_init_acs(162):: easycwmp.@acs[0].url=http://192.168.1.11:8080/openacs/acs
config_init_acs(168):: easycwmp.@acs[0].username=easycwmp
config_init_acs(174):: easycwmp.@acs[0].password=easycwmp
config_init_acs(180):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(193):: easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z
config_init_acs(186):: easycwmp.@acs[0].periodic_interval=1800
1970-01-01 00:53:47 [easycwmp] NOTICE - init periodic inform: reference time = n/a, interval = 1800
1970-01-01 00:53:47 [easycwmp] NOTICE - external: execute update_value_change
1970-01-01 00:53:53 [easycwmp] NOTICE - daemon started
main(307): 33333333333333333333333333333333333
1970-01-01 00:53:53 [easycwmp] NOTICE - external: execute inform device_id
1970-01-01 00:53:54 [easycwmp] NOTICE - external script exit
1970-01-01 00:53:54 [easycwmp] NOTICE - add event '1 BOOT'

main(330): ubus initialization failed

+++ HTTP SERVER CONFIGURATION +++
NOT BOUND TO IP
port: '7547'
--- HTTP SERVER CONFIGURATION ---
1970-01-01 00:53:54 [easycwmp] NOTICE - http server initialized
1970-01-01 00:53:54 [easycwmp] NOTICE - entering main loop
1970-01-01 00:53:54 [easycwmp] NOTICE - start session
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(50):: url: http://192.168.1.11:8080/openacs/acs
http_client_init(56):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
1970-01-01 00:53:54 [easycwmp] NOTICE - configured acs url http://192.168.1.11:8080/openacs/acs
1970-01-01 00:53:54 [easycwmp] NOTICE - external script init
1970-01-01 00:53:55 [easycwmp] NOTICE - external: execute inform parameter
[ 3238.370000] eth1_1 emac_lib_rxstatistics_counter: warn: system is overloaded : spend more ~10ms!
1970-01-01 00:53:59 [easycwmp] NOTICE - send Inform
+++ SEND HTTP REQUEST +++
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <soap_env:Envelope
xmlns:soap_env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soap_enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cwmp="urn:dslforum-org:cwmp-1-2">
  <soap_env:Header>
   <cwmp:ID soap_env:mustUnderstand="1">1</cwmp:ID>
  </soap_env:Header>
  <soap_env:Body>
   <cwmp:Inform>
    <DeviceId>
     <Manufacturer>easycwmp</Manufacturer>
     <OUI>FFFFFF</OUI>
     <ProductClass>easycwmp</ProductClass>
     <SerialNumber>FFFFFF123456</SerialNumber>
    </DeviceId>
    <Event soap_enc:arrayType="cwmp:EventStruct[1]">
     <EventStruct>
      <EventCode>1 BOOT</EventCode>
      <CommandKey />
     </EventStruct>
    </Event>
    <MaxEnvelopes>1</MaxEnvelopes>
    <CurrentTime>1970-01-01T00:53:55+00:00</CurrentTime>
    <RetryCount>0</RetryCount>
    <ParameterList soap_enc:arrayType="cwmp:ParameterValueStruct[10]">
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.SpecVersion</Name>
      <Value xsi:type="xsd:string">1.0</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.ProvisioningCode</Name>
      <Value xsi:type="xsd:string"></Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.Manufacturer</Name>
      <Value xsi:type="xsd:string">easycwmp</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.ManufacturerOUI</Name>
      <Value xsi:type="xsd:string">FFFFFF</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.ProductClass</Name>
      <Value xsi:type="xsd:string">easycwmp</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.SerialNumber</Name>
      <Value xsi:type="xsd:string">FFFFFF123456</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.HardwareVersion</Name>
      <Value xsi:type="xsd:string">example_hw_version</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.SoftwareVersion</Name>
      <Value xsi:type="xsd:string">example_sw_version</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.ManagementServer.ConnectionRequestURL</Name>
      <Value xsi:type="xsd:string"></Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.ManagementServer.ParameterKey</Name>
      <Value xsi:type="xsd:string">unsetCommandKey</Value>
     </ParameterValueStruct>
    </ParameterList>
   </cwmp:Inform>
  </soap_env:Body>
 </soap_env:Envelope>
--- SEND HTTP REQUEST ---
> POST /openacs/acs HTTP/1.1
Host: 192.168.1.11:8080
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 2863
Expect: 100-continue

< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< X-Powered-By: Servlet 2.4; JBoss-4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)/JBossWeb-2.0
< Set-Cookie: JSESSIONID=4428A112C402E2EB67C1144CB0B4C45C; Path=/
< Content-Type: text/xml;charset=utf-8
< Content-Length: 565
< Date: Wed, 09 May 2018 10:28:20 GMT
<
+++ RECEIVED HTTP RESPONSE +++
<SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cwmp="urn:dslforum-org:cwmp-1-0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header><cwmp:ID SOAP-ENV:mustUnderstand="1">1</cwmp:ID><cwmp:NoMoreRequests>0</cwmp:NoMoreRequests></SOAP-ENV:Header><SOAP-ENV:Body><cwmp:InformResponse xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><MaxEnvelopes>1</MaxEnvelopes></cwmp:InformResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>--- RECEIVED HTTP RESPONSE ---
1970-01-01 00:53:59 [easycwmp] NOTICE - receive InformResponse from the ACS
1970-01-01 00:53:59 [easycwmp] NOTICE - send empty message to the ACS
+++ SEND EMPTY HTTP REQUEST +++
> POST /openacs/acs HTTP/1.1
Host: 192.168.1.11:8080
Cookie: JSESSIONID=4428A112C402E2EB67C1144CB0B4C45C
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
Content-Length: 0

< HTTP/1.1 204 No Content
< Server: Apache-Coyote/1.1
< X-Powered-By: Servlet 2.4; JBoss-4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)/JBossWeb-2.0
< Date: Wed, 09 May 2018 10:28:20 GMT
<
+++ RECEIVED EMPTY HTTP RESPONSE +++
1970-01-01 00:53:59 [easycwmp] NOTICE - receive empty message from the ACS
1970-01-01 00:53:59 [easycwmp] NOTICE - external: execute apply service
1970-01-01 00:54:00 [easycwmp] NOTICE - external script exit
1970-01-01 00:54:00 [easycwmp] NOTICE - end session success
Additional Information:
Attached Files: config.jpg (19,681 bytes) 2018-05-09 12:47
https://support.easycwmp.org/file_download.php?file_id=115&type=bug
openacs.jpg (38,755 bytes) 2018-05-09 12:47
https://support.easycwmp.org/file_download.php?file_id=116&type=bug
valuetree.jpg (37,051 bytes) 2018-05-09 12:47
https://support.easycwmp.org/file_download.php?file_id=117&type=bug
Notes
(0000865)
Rany.Li   
2018-05-11 05:05   
And i found another problem:After i input “easycwmp --json-input”,then
"easycwmp>get InternetGatewayDevice.ManagementServer.Username 111111"

input Enter it shows "Failed to parse message data".

please tell me what's wrong with this,thanks
(0000883)
mohamed.kallel   
2018-06-28 15:26   
If you use "easycwmp --json-input" then you have to enter your RPC command in json format

Otherwise you can execute:
OpenWRT# easycwmp get value InternetGatewayDevice.ManagementServer.Username
(0000885)
Rany.Li   
2018-07-12 05:05   
Thanks,i have reslove this problem,you can shutdown this issue.thanks again.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
340 [easycwmp] Bug major always 2018-06-29 06:49 2018-07-11 09:37
Reporter: DEBUGGER Platform: MIPS  
Assigned To: OS: LINUX  
Priority: high OS Version: 3.18  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: When ubus notification is triggered sync with ACS fails which cause connection disruption
Description: Hi Mohammed, I had enabled notification for three parameters,
and have put a script in place to poll every 30s and call ubus call tr069 notify. But on testing with just three parameters the sync is failing for 25 seconds when ubus notification. On furthur profiling observed easycwmp_do_notify takes 18 s. Could you please suggest possible solutions for
the same
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
343 [easycwmp] Help block always 2018-07-10 01:11 2018-07-10 01:11
Reporter: Antony1169 Platform: Linux x86  
Assigned To: OS: CentOS 7  
Priority: normal OS Version: 7-5.1804.el7  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Unable to Complete ./configure Script
Description: This is repeatable on latest CentOS 7 and Ubuntu Server 18.04 versions.

I am sure that I followed the EasyCwmp installation guide completely. I always get stuck when installing the EasyCwmp program at the ./configure script. It reports "No package 'microxml' found".
I repeat the installation instructions part 3 and skip over step 2 for microxml from the EasyCwmp installation document. I look over the ./configure script and can not tell what/where the script is looking for 'microxml'.

Required packages installed:
libuci: 26 March 2018 version (from git.openwrt.org)
libcurl: libcurl-devel 7.29.0-46.el7
json-c: json-c 0.11-4.el7_0
json-c: json-c-devel 0.11-4.el7_0
libubox: 2.8.12.2
libubus: 2.8.12.2
microxml: 1.0 (from https://github.com/pivasoftware/microxml)
mini-xml: 2.7
Tags:
Steps To Reproduce: Install all packages normally using the steps provided at http://www.easycwmp.org/install.html (not all packages needed to be installed are listed; cmake, autoconf, libcurl-dev, etc.)

When you start installing the latest version of EasyCwmp, you will be able to run the "autoreconf -i" successfully. When you run the "./configure --prefix=/usr --enable-threads --enable-shared --enable-static" script, 1) --enable-acs is not recognized 2) "checking for MICROXML... no"
"configure: error: Package requirements (microxml) were not met:

"No package 'microxml' found

"Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.

"Alternatively, you may set the environment variables MICROXML_CFLAGS
and MICROXML_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details."
Additional Information: Then man pkg-config page does not help me as I did not design this code.

json-c and libcurl were installed using yum in CentOS 7 and apt-get in Ubuntu 18.04
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
339 [easycwmp] Enhancement minor have not tried 2018-06-28 15:40 2018-06-28 15:40
Reporter: mohamed.kallel Platform:  
Assigned To: OS:  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: make the choice of DataModel (TR181/TR098) configurable
Description: make the choice of DataModel (TR181/TR098) configurable
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
286 [easycwmp] Bug minor have not tried 2017-08-23 18:22 2018-06-28 15:33
Reporter: mohamed.kallel Platform:  
Assigned To: mohamed.kallel OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Remove gz/bz files in the download config before make the folder copy
Description: Remove gz/bz files in the download config before make the folder copy
check if sysupgrade --restore-backup <file> works for standardOpenWRT
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000884)
mohamed.kallel   
2018-06-28 15:33   
Delivered in EasyCwmp-1.7.0


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
301 [easycwmp] Question minor have not tried 2017-10-16 13:32 2018-06-28 15:29
Reporter: wells89 Platform:  
Assigned To: mohamed.kallel OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: TR-111 STUN NAT
Description: does easycwmp-1.6.0 support TR-111 ? How to set those stun parameters?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000815)
mohamed.kallel   
2017-10-17 00:44   
TR-111 stun is supported only the commercial version of easycwmp
(0000816)
wells89   
2017-10-17 05:44   
Thanks for your fast reply.
Can you provide simple document describing how to config the stun parameters in the commercial version of easycwmp?
We want to buy the commercial version of easycwmp.
(0000817)
wells89   
2017-10-17 09:33   
How about the price of it?
(0000818)
mohamed.kallel   
2017-10-17 11:27   
here after the configuration of the stun client for easycwmp. it's uci openwrt configuration

config stun 'stun'
    option username 'tr069_stun'
    option password 'tr069_stun'
    option server_address 'stun.server-example.com'
    option server_port '19302'
    option min_keepalive '30'
    option max_keepalive '3600'
#Log levels: Critical=0, Warning=1, Notice=2, Info=3, Debug=4
    option loglevel '3'
# option client_port 7547
#if client_port option is not set or < 0 then use a random port for connection request source port
(0000819)
mohamed.kallel   
2017-10-17 11:29   
to provide you the commercial solution details and prices, please send me an email to my email address mohamed[dot]kallel[at]pivasoftware.com


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
324 [easycwmp] Help minor always 2018-05-17 08:36 2018-06-28 15:22
Reporter: Rany.Li Platform:  
Assigned To: mohamed.kallel OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: easycwmp download
Description: when i run the :
easycwmp.sh download http://xx.xx.xx.xx/1.bin '1 Firmware Upgrade Image' '0'
the 1.bin will be download successful.

but if i run the easycwmpd -b -f and set the download on ACS server,it will show a
error always:download error: 'Download failure: file corrupted'

but the filepath or filename was same as http://xx.xx.xx.xx/1.bin

Please help me thanks.
Tags:
Steps To Reproduce:
Additional Information: <SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cwmp="urn:dslforum-org:cwmp-1-0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <SOAP-ENV:Header>
                <cwmp:ID SOAP-ENV:mustUnderstand="1">27957</cwmp:ID>
                <cwmp:HoldRequests SOAP-ENV:mustUnderstand="1"/>
        </SOAP-ENV:Header>
        <SOAP-ENV:Body>
                <cwmp:Download>
                        <CommandKey/>
                        <FileType>1 Firmware Upgrade Image</FileType>
                        <URL>http://xx.xx.xx.xx/1.bin</URL>
                        <Username>username</Username>
                        <Password>password</Password>
                        <FileSize/>
                        <TargetFileName/>
                        <DelaySeconds>0</DelaySeconds>
                        <SuccessURL/>
                        <FailureURL/>
                </cwmp:Download>
        </SOAP-ENV:Body>
</SOAP-ENV:Envelope>--- RECEIVED HTTP RESPONSE ---
1970-01-01 00:22:13 [easycwmp] NOTICE - received Download method from the ACS
1970-01-01 00:22:13 [easycwmp] NOTICE - add download: delay = 0 sec, url = http://203.125.11.38:9092/azacs/firmware/test.down, FileType = '1 Firmware Upgrade Image', CommandKey = ''
1970-01-01 00:22:13 [easycwmp] NOTICE - send DownloadResponse to the ACS
+++ SEND HTTP REQUEST +++
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <soap_env:Envelope
xmlns:soap_env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soap_enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cwmp="urn:dslforum-org:cwmp-1-2">
  <soap_env:Header>
   <cwmp:ID soap_env:mustUnderstand="1">27957</cwmp:ID>
  </soap_env:Header>
  <soap_env:Body>
   <cwmp:DownloadResponse>
    <Status>1</Status>
    <StartTime>0001-01-01T00:00:00Z</StartTime>
    <CompleteTime>0001-01-01T00:00:00Z</CompleteTime>
   </cwmp:DownloadResponse>
  </soap_env:Body>
 </soap_env:Envelope>
--- SEND HTTP REQUEST ---
> POST /tr069/acs HTTP/1.1
Authorization: Basic ZmlybXdhcmU6YXp0ZWNoMTIz
Host: 203.125.11.38:8081
Cookie: sprtCpeGuid=cfd87e4b16e13de6aed9a9ac0c55e1ab; sprtDeviceEmptyPost=0; CPEID=FFFFFF-aztech-easy-0A0B0C0D0E0F; sprtHTTP204=true; sprtPeerIP=218.17.133.186
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 668

< HTTP/1.1 204 No Content
< Date: Thu, 17 May 2018 06:18:46 GMT
< Server: Apache/2.2.6 (Fedora)
< Vary: Authorization
< Content-Length: 0
< Content-Type: text/plain; charset=UTF-8
<
+++ RECEIVED EMPTY HTTP RESPONSE +++
1970-01-01 00:22:14 [easycwmp] NOTICE - receive empty message from the ACS
1970-01-01 00:22:14 [easycwmp] NOTICE - external: execute apply service
1970-01-01 00:22:14 [easycwmp] NOTICE - external script exit
1970-01-01 00:22:14 [easycwmp] NOTICE - end session success
1970-01-01 00:22:14 [easycwmp] NOTICE - start download url = http://xx.xx.xx.xx/1.bin, FileType = '1 Firmware Upgrade Image', CommandKey = ''
1970-01-01 00:22:14 [easycwmp] NOTICE - external script init
1970-01-01 00:22:15 [easycwmp] NOTICE - external: execute download
1970-01-01 00:22:37 [easycwmp] NOTICE - add event '7 TRANSFER COMPLETE'
1970-01-01 00:22:37 [easycwmp] NOTICE - add event 'M Download'
../src/external.c : 110 : external_method_fault = (null)
1970-01-01 00:22:37 [easycwmp] NOTICE - external: execute apply download 1 Firmware Upgrade Image
../src/external.c : 110 : external_method_fault = 9018
Test : ../src/cwmp.c : 480
1970-01-01 00:22:38 [easycwmp] NOTICE - download error: 'Download failure: file corrupted'
1970-01-01 00:22:38 [easycwmp] NOTICE - external script exit
1970-01-01 00:22:38 [easycwmp] NOTICE - start session
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(50):: url: http://xx.xx.xx.xx
http_client_init(56):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
1970-01-01 00:22:38 [easycwmp] NOTICE - configured acs url http://203.125.11.38:8081/tr069/acs
1970-01-01 00:22:38 [easycwmp] NOTICE - external script init
1970-01-01 00:22:39 [easycwmp] NOTICE - external: execute inform parameter
1970-01-01 00:22:43 [easycwmp] NOTICE - send Inform

Attached Files:
Notes
(0000866)
Rany.Li   
2018-05-18 08:15   
(Last edited: 2018-05-18 08:16)
I found another error:
easycwmp --json-input
easycwmp>
get
Failed to parse message data
/usr/share/easycwmp/functions/jshn.sh: line 179: Test: command not found
easycwmp>
set
Failed to parse message data
/usr/share/easycwmp/functions/jshn.sh: line 179: Test: command not found
command =
easycwmp>
what's wrong with this..
I have test the setvalue or getvalue by ACS Server,and it worked.
so weird..

(0000868)
mohamed.kallel   
2018-05-21 13:15   
1) For the download issue. the problem does not come from the download of the file. The file is downloaded successfully. The error come from apply the 1.bin firmware. looks yuor bin file is not a right bin file

2) for the issue you get when typing get and set command in the easycwmp cli, you have to input your command in json format. as the argument indicated "--json-input"
(0000870)
Rany.Li   
2018-06-01 08:22   
Thanks.
i have already solved this problem.you can close this issue.
thanks again.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
319 [easycwmp] Question minor have not tried 2018-04-16 22:53 2018-06-28 15:22
Reporter: Quinteon Platform:  
Assigned To: mohamed.kallel OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Is there any documentation available?
Description: Dear Mohamed and Anis - where I can download any docs for easycwmp?
link http://www.easycwmp.org/index.php/manual not working with output:

Multiple Choices
The document name you requested (/index.php/manual) could not be found on this server. However, we found documents with names similar to the one you requested.
Available documents:

/index.html/manual (common basename)
Please consider informing the owner of the referring page about the broken link.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000864)
mohamed.kallel   
2018-05-10 15:13   
You have documentation about easycwmp in:

http://www.easycwmp.org
and
http://www.easycwmp.org/install.html

Otherwise you have to refer to premium solution for more documentation and features


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
302 [easycwmp] Bug minor always 2017-10-18 18:10 2018-06-25 18:42
Reporter: hmh Platform:  
Assigned To: emna.trigui@pivasoftware.com OS: OpenWRT  
Priority: normal OS Version: Chaos_Calmer  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Does not filter illegal characters in DEVICE_PRODUCT, interacts badly with some ACSes
Description: Easycwmp does not filter characters like "/" in DEVICE_PRODUCT (which are common in several router model names in OpenWRT/LEDE).

With FreeACS, this results in major issues when attempting to provision new firmware to the units, because the file path will have an extra "/" in it (which is not a path separator), and therefore the firmware data file cannot be found, ever.
Tags:
Steps To Reproduce: Provision a TP-Link TL-WDR842ND with OpenWRT, and attempt to update its firmware using FreeACS.

This results in an attempt to download an illegal file name that has an "/" in it, because the contents of /etc/device_info are:

DEVICE_MANUFACTURER='TP-LINK'
DEVICE_PRODUCT='SIMETBOX-TP-LINKTL-WR842N/NDv2'
DEVICE_REVISION='v0'

And this results in an illegal URI due to the forward slash in "WR842N/NDv2".
Additional Information: Changing the init.d/easycwmp script with the attached patch fixes the issue, although I am not sure this is the best way to do it. If anything, it illustrates what the issue is better than my description of it...
Attached Files: easycwmp_init.d_badchars.patch (1,916 bytes) 2017-10-18 18:10
https://support.easycwmp.org/file_download.php?file_id=110&type=bug
Notes
(0000882)
emna.trigui@pivasoftware.com   
2018-06-25 18:42   
Delivered in EasyCwmp-1.7.0


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
303 [easycwmp] Bug minor always 2017-10-26 12:51 2018-06-25 18:42
Reporter: hmh Platform: OpenWRT  
Assigned To: emna.trigui@pivasoftware.com OS: OpenWRT/LEDE  
Priority: normal OS Version: all  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Typos and ident fixes for the easycwmp action script for openwrt
Description: Fix minor issues in the easycwmp action script. Each issue will have a different patch attached.

Note: one of the minor issues fixed might actually be breaking firmware updates/config updates depending on what implements /bin/sh in the target.
Tags:
Steps To Reproduce:
Additional Information: Please consider using shellcheck on the scripts that are shipped with easycwmp...
Attached Files: 011-easycwmp_fix-code-ident.patch (1,429 bytes) 2017-10-26 12:52
https://support.easycwmp.org/file_download.php?file_id=111&type=bug
012-easycwmp_fix-syntax-error-on-download.patch (1,000 bytes) 2017-10-26 12:52
https://support.easycwmp.org/file_download.php?file_id=112&type=bug
Notes
(0000881)
emna.trigui@pivasoftware.com   
2018-06-25 18:42   
Delivered in EasyCwmp-1.7.0


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
289 [easycwmp] Bug major have not tried 2017-08-26 15:22 2018-06-25 18:42
Reporter: mohamed.kallel Platform:  
Assigned To: emna.trigui@pivasoftware.com OS:  
Priority: high OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: dev_rand(/dev/urandom) is not closed in the function http_digest_init_nonce_priv_key()
Description: dev_rand(/dev/urandom) is not closed in the function http_digest_init_nonce_priv_key()
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000880)
emna.trigui@pivasoftware.com   
2018-06-25 18:42   
Delivered in EasyCwmp-1.7.0


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
312 [easycwmp] Bug minor have not tried 2018-02-19 21:40 2018-06-25 18:42
Reporter: mohamed.kallel Platform:  
Assigned To: emna.trigui@pivasoftware.com OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Remove gz/bz files in the download config before make the folder copy
Description: Remove gz/bz files in the download config before make the folder copy
check if sysupgrade --restore-backup <file> works for the standard OpenWRT
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000879)
emna.trigui@pivasoftware.com   
2018-06-25 18:42   
Delivered in EasyCwmp-1.7.0


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
337 [easycwmp] Bug minor have not tried 2018-06-13 13:20 2018-06-25 18:42
Reporter: mohamed.kallel Platform:  
Assigned To: emna.trigui@pivasoftware.com OS:  
Priority: low OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: wrong name reference LIBUBOX_LDFLAGS in configure.ac
Description: From github issues: https://github.com/pivasoftware/easycwmp/issues/38

in the file configure.ac, around line 59, LIBUBOX_LDFLAGS should be LIBUBUS_LDFLAGS:
My corrected version:

AC_ARG_WITH([libubus-lib-path],
  [AS_HELP_STRING([--with-libubus-lib-path], [location of the libubus library])], [LIBUBUS_LDFLAGS="-L$withval"])
AC_SUBST([LIBUBUS_LDFLAGS])
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000878)
emna.trigui@pivasoftware.com   
2018-06-25 18:42   
Delivered in EasyCwmp-1.7.0


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
335 [easycwmp] Enhancement minor have not tried 2018-06-12 12:19 2018-06-25 18:41
Reporter: emna.trigui@pivasoftware.com Platform:  
Assigned To: emna.trigui@pivasoftware.com OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Add basic authentication for connection request
Description: Add basic authentication for connection request
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000877)
emna.trigui@pivasoftware.com   
2018-06-25 18:41   
Delivered in EasyCwmp-1.7.0


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
295 [easycwmp] Bug minor have not tried 2017-09-28 23:19 2018-06-25 18:41
Reporter: mohamed.kallel Platform:  
Assigned To: emna.trigui@pivasoftware.com OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Should execute apply service before Reboot in the cwmp_handle_end_session()
Description: Should execute apply service before Reboot in the cwmp_handle_end_session()
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000876)
emna.trigui@pivasoftware.com   
2018-06-25 18:41   
Delivered in EasyCwmp-1.7.0


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
336 [easycwmp] Bug minor have not tried 2018-06-12 14:26 2018-06-25 18:36
Reporter: emna.trigui@pivasoftware.com Platform:  
Assigned To: emna.trigui@pivasoftware.com OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: fork child error when making many Connection Requests
Description:




< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< X-Powered-By: Servlet 2.4; JBoss-4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)/Tomcat-5.5
< Set-Cookie: JSESSIONID=312FBEDD38A7225D4C7792063744AD30; Path=/
< Content-Type: text/xml;charset=utf-8
< Content-Length: 566
< Date: Tue, 12 Jun 2018 12:24:55 GMT
<
+++ RECEIVED HTTP RESPONSE +++
<SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cwmp="urn:dslforum-org:cwmp-1-0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header><cwmp:ID SOAP-ENV:mustUnderstand="1">20</cwmp:ID><cwmp:NoMoreRequests>0</cwmp:NoMoreRequests></SOAP-ENV:Header><SOAP-ENV:Body><cwmp:InformResponse xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><MaxEnvelopes>1</MaxEnvelopes></cwmp:InformResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>--- RECEIVED HTTP RESPONSE ---
+++ SEND EMPTY HTTP REQUEST +++
> POST /openacs/acs HTTP/1.1
Host: 192.168.1.4:8080
Cookie: JSESSIONID=312FBEDD38A7225D4C7792063744AD30
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
Content-Length: 0

< HTTP/1.1 204 No Content
< Server: Apache-Coyote/1.1
< X-Powered-By: Servlet 2.4; JBoss-4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)/Tomcat-5.5
< Date: Tue, 12 Jun 2018 12:24:55 GMT
<
+++ RECEIVED EMPTY HTTP RESPONSE +++
external_exit(241):: waiting for child to exit+++ RECEIVED HTTP REQUEST +++
http_digest_auth_check(379):: http_digest_auth_check: header: username="test", realm="realm@easycwmp", nonce="6d7ed93ea9542ee98754ea0dc19e911100055611", uri="/", response="9fa614c72cb9e97a2b8820f4c7bbb1e7", opaque="328458fab28345ae87ab3210a8513b14eff452a2", qop=auth, nc=00000009, cnonce="c352ab674ba88228"
--- RECEIVED HTTP REQUEST ---
+++ HTTP SERVER CONNECTION SUCCESS +++
+++ RECEIVED HTTP REQUEST +++
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(50):: url: http://192.168.1.4:8080/openacs/acs
http_client_init(56):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
http_digest_auth_check(379):: http_digest_auth_check: header: username="test", realm="realm@easycwmp", nonce="6d7ed93ea9542ee98754ea0dc19e911100055611", uri="/favicon.ico", response="31ce10ffb9aac40abeadb91cbe6becd0", opaque="328458fab28345ae87ab3210a8513b14eff452a2", qop=auth, nc=0000000a, cnonce="900c87224a5e7144"
--- RECEIVED HTTP REQUEST ---
+++ SEND HTTP REQUEST +++
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <soap_env:Envelope
xmlns:soap_env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soap_enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cwmp="urn:dslforum-org:cwmp-1-2">
  <soap_env:Header>
   <cwmp:ID soap_env:mustUnderstand="1">21</cwmp:ID>
  </soap_env:Header>
  <soap_env:Body>
   <cwmp:Inform>
    <DeviceId>
     <Manufacturer>SmartRG</Manufacturer>
     <OUI>64D954</OUI>
     <ProductClass>SR400ac</ProductClass>
     <SerialNumber>64D954116C40</SerialNumber>
    </DeviceId>
    <Event soap_enc:arrayType="cwmp:EventStruct[1]">
     <EventStruct>
      <EventCode>6 CONNECTION REQUEST</EventCode>
      <CommandKey />
     </EventStruct>
    </Event>
    <MaxEnvelopes>1</MaxEnvelopes>
    <CurrentTime>2017-05-09T04:09:25-07:00</CurrentTime>
    <RetryCount>0</RetryCount>
    <ParameterList soap_enc:arrayType="cwmp:ParameterValueStruct[0]" />
   </cwmp:Inform>
  </soap_env:Body>
 </soap_env:Envelope>
--- SEND HTTP REQUEST ---
> POST /openacs/acs HTTP/1.1
Host: 192.168.1.4:8080
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 1076
Expect: 100-continue

< HTTP/1.1 100 Continue
* The requested URL returned error: 500 Internal Server Error
rpc_inform(218): sending Inform http message failed
external_exit(241):: waiting for child to exit+++ RECEIVED HTTP REQUEST +++
+++ RECEIVED HTTP REQUEST +++
http_digest_auth_check(379):: http_digest_auth_check: header: username="test", realm="realm@easycwmp", nonce="6d7ed93ea9542ee98754ea0dc19e911100055611", uri="/", response="83879b36dadf37f3ac46f921bcfc1918", opaque="328458fab28345ae87ab3210a8513b14eff452a2", qop=auth, nc=0000000b, cnonce="d65ade57af21e7ca"
--- RECEIVED HTTP REQUEST ---
+++ HTTP SERVER CONNECTION SUCCESS +++
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(50):: url: http://192.168.1.4:8080/openacs/acs
http_client_init(56):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
http_digest_auth_check(379):: http_digest_auth_check: header: username="test", realm="realm@easycwmp", nonce="6d7ed93ea9542ee98754ea0dc19e911100055611", uri="/favicon.ico", response="f7096eab185862b96783e35d1f96b2f9", opaque="328458fab28345ae87ab3210a8513b14eff452a2", qop=auth, nc=0000000c, cnonce="802d6aa89c3c4613"
--- RECEIVED HTTP REQUEST ---
+++ SEND HTTP REQUEST +++
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <soap_env:Envelope
xmlns:soap_env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soap_enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cwmp="urn:dslforum-org:cwmp-1-2">
  <soap_env:Header>
   <cwmp:ID soap_env:mustUnderstand="1">22</cwmp:ID>
  </soap_env:Header>
  <soap_env:Body>
   <cwmp:Inform>
    <DeviceId>
     <Manufacturer>SmartRG</Manufacturer>
     <OUI>64D954</OUI>
     <ProductClass>SR400ac</ProductClass>
     <SerialNumber>64D954116C40</SerialNumber>
    </DeviceId>
    <Event soap_enc:arrayType="cwmp:EventStruct[1]">
     <EventStruct>
      <EventCode>6 CONNECTION REQUEST</EventCode>
      <CommandKey />
     </EventStruct>
    </Event>
    <MaxEnvelopes>1</MaxEnvelopes>
    <CurrentTime>2017-05-09T04:09:25-07:00</CurrentTime>
    <RetryCount>0</RetryCount>
    <ParameterList soap_enc:arrayType="cwmp:ParameterValueStruct[0]" />
   </cwmp:Inform>
  </soap_env:Body>
 </soap_env:Envelope>
--- SEND HTTP REQUEST ---
> POST /openacs/acs HTTP/1.1
Host: 192.168.1.4:8080
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 1076
Expect: 100-continue

< HTTP/1.1 100 Continue
* The requested URL returned error: 500 Internal Server Error
rpc_inform(218): sending Inform http message failed
external_exit(241):: waiting for child to exit
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000875)
emna.trigui@pivasoftware.com   
2018-06-25 18:36   
Delivered in EasyCwmp-1.7.0


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
333 [easycwmp] Bug minor have not tried 2018-06-08 18:01 2018-06-08 18:54
Reporter: mohamed.kallel Platform:  
Assigned To: mohamed.kallel OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Interoperability issue with Pace ACS. Parse infrom response fails
Description: Interoperability issue with Pace ACS. Parse infrom response fails
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000873)
mohamed.kallel   
2018-06-08 18:23   
delivered in EasyCwmp-1.6.2


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
309 [easycwmp] Bug minor have not tried 2018-02-01 11:09 2018-06-08 18:22
Reporter: mohamed.kallel Platform:  
Assigned To: mohamed.kallel OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: in module time.c the array for local_time is too short! It MUST be char local_time[27] = {0}
Description: in module time.c the array for local_time is too short! It MUST be char local_time[27] = {0}; because at the end of the function mix_get_time() local_time[26] = '\0';
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000872)
mohamed.kallel   
2018-06-08 18:22   
delivered in EasyCwmp-1.6.2


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
332 [easycwmp] Bug minor always 2018-06-08 08:04 2018-06-08 18:22
Reporter: tomgrean Platform: any  
Assigned To: mohamed.kallel OS: any  
Priority: normal OS Version: any  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: array out of index in src/time.c
Description: in src/time.c, the declaration is:
char local_time[26] = {0};
but in the function, there is a line of this:
local_time[26] = '\0';
which is out of the array index.
Tags:
Steps To Reproduce:
Additional Information: I think the author miss-counted some of the array indexes.
actually the code should look like this:

local_time[24] = local_time[23];
local_time[23] = local_time[22];
local_time[22] = ':';
local_time[25] = '\0';

And one more thing, making variable local_time static is better.
Attached Files:
Notes
(0000871)
mohamed.kallel   
2018-06-08 18:22   
delivered in EasyCwmp-1.6.2


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
329 [easycwmp] Bug minor always 2018-05-25 14:10 2018-05-25 14:10
Reporter: bajooba Platform: openwrt  
Assigned To: OS: lede 17.01.04  
Priority: normal OS Version: Lede 17.01.04  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: $UCI_SHOW/$UCI_GET -X not working
Description: I'm using the latest easycwmp1.6.1 compiled with TR-181 model. The object Device.WiFi. was not shown. After hours of debugging I have found out that in /usr/share/easycwmp/functions/wifi the commands issued with $UCI_SHOW -X and $UCI_GET -X do not work :( the same applies to /usr/share/easycwmp/functions/dhcpv4. With deleting the -X in functions you get full output.
Tags:
Steps To Reproduce: 1.) compile
2.) easycwmp get value Device.Dhcpv4.
3.) easycwmp get value Device.WiFi.
Additional Information: Maybe I'm doing something wrong as this is my first install.
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
325 [easycwmp] Help minor have not tried 2018-05-21 15:01 2018-05-21 15:01
Reporter: Quinteon Platform: ubuntu 16.04 lts  
Assigned To: OS:  
Priority: urgent OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Factory reset - how to set default values
Description: Hi,

How to restore default values in /etc/config/easycwmp after factory reset?
Now it only restart without any changes.
If I set default_management_server_connection_request_url in
/usr/share/easycwmp/defaults
it change connection request url asap - defaults file is not for defaults values after facotry reset?
If I want to call my script when factory reset is performed where I should call my script?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
321 [easycwmp] Help block always 2018-05-02 04:39 2018-05-10 15:18
Reporter: yuhan Platform:  
Assigned To: mohamed.kallel OS: openwrt  
Priority: immediate OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: how to add my function file under the path "/usr/share/easycwmp/functions/" base on openwrt sys
Description: Hello, I am a user of easycwmp. I have a question in use, If it is convenient, can you help me to answer it? This question has really been bothering me for a long time. Thank you.

I want to add a file such as "management_server" under the path "/usr/share/easycwmp/functions/" base on the system of openwrt.I have download easycwmp-openwrt-1.6.1 and run in the openwrt.now, I put the function_file under the $(PKG_BUILD_DIR)/ext/openwrt/scripts/functions/common/,compile the openwrt and run it, but no found my added_file under the "/usr/share/easycwmp/functions/".
finally,I have found a easycwmp.list file listed which function_files will be added in the easycwmp module.But the list file cannot be changed by modified immediate.How to add my function_file which to extend the easycwmp,which base on openwrt system.

Thanks again!
  
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000862)
yuhan   
2018-05-04 08:34   
I got it! thanks!


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
320 [easycwmp] Help minor always 2018-04-17 03:35 2018-05-10 15:16
Reporter: yuhan Platform:  
Assigned To: mohamed.kallel OS:  
Priority: high OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: easycwmp cannot set the value of the corresponding field by "easycwmp set Device.ManagementServer.Username XXX"
Description: Hello, I am a user of easycwmp. I have a question in use, I would like to ask for it. If it is convenient, can you help me to answer it? This question has really been bothering me for a long time. Thank you.

The problem is that:

Easycwmp runs in openwrt system, compiled easycwmp-1.6.1 version. Both openwrt and easycwmp run normally, and the value of the field corresponding to the field can be obtained by "easycwmp get Device.ManagementServer.Username", but it is not possible to set the value of the corresponding field by "easycwmp set Device.ManagementServer.Username XXX". There are corresponding fields in the management_server file under the function folder, and support the setting function. Other fields can only be read through get command, but not set. I want to ask if there are less steps in compiling or configuring. Or is my configuration wrong? How can we configure the values of existing fields through easycwmp?

Thanks again!
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000858)
yuhan   
2018-04-17 03:49   
root@TAU:~# easycwmp set Device.ManagementServer.Username huhuhu
root@TAU:~# easycwmp get Device.ManagementServer.Username
{ "parameter": "Device.ManagementServer.Username", "value": "easycwmp" }

/usr/share/easycwmp/functions/management_server:
common_execute_method_param "$DMROOT.ManagementServer.Username" "1" "$UCI_GET easycwmp.@acs[0].username" "management_server_set easycwmp.@acs[0].username"

management_server_set_url() {
    local val=$1
    
    local chk=`echo $val | grep "[a-zA-Z0-9_]://.*"`
    [ "$chk" = "" ] && return $E_INVALID_PARAMETER_VALUE

    $UCI_SET easycwmp.@acs[0].url=$val
    return 0
}
(0000859)
nromero   
2018-04-19 10:27   
Hi yuhan,

You need to apply your changes after setting them.

root@OpenWrt:/# easycwmp get Device.ManagementServer.Username
{ "parameter": "Device.ManagementServer.Username", "value": "easycwmp" }

root@OpenWrt:/# easycwmp set Device.ManagementServer.Username huhuhu

root@OpenWrt:/# easycwmp apply
{ "status": "1", "config_load": "1" }

root@OpenWrt:/# easycwmp get Device.ManagementServer.Username
{ "parameter": "Device.ManagementServer.Username", "value": "huhuhu" }
(0000861)
yuhan   
2018-04-19 11:13   
dear nromero,
Thank you very much. I'm glad to hear from you! You're right。


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
304 [easycwmp] Question minor always 2017-11-17 01:39 2018-05-10 15:09
Reporter: carlberg Platform: openwrt  
Assigned To: mohamed.kallel OS: chaos calmer  
Priority: normal OS Version: 15.05  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: acs url using https gives error
Description: Using easycwmp 1.4.1 on openwrt 15.05 setting the acs url to use https instead of http gives error.
http url works flawless.

Using packages:
easycwmp_1.4.1_ar71xx.ipk
libcurl_7.40.0-3.2_ar71xx.ipk
libmicroxml_2015-03-18-caa8d3e6887f5c70e54df555dd78e4e45cfa74cc_ar71xx.ipk
ca-certificates_20150426_ar71xx.ipk

root@OpenWrt:~# curl -v https://www.google.com
Gives successful response, no errors.

Log:
Fri Nov 17 00:25:36 2017 daemon.notice easycwmpd: daemon started
Fri Nov 17 00:25:36 2017 daemon.notice easycwmpd: external: execute inform device_id
Fri Nov 17 00:25:36 2017 daemon.notice easycwmpd: external script exit
Fri Nov 17 00:25:36 2017 daemon.notice easycwmpd: add event '2 PERIODIC'
Fri Nov 17 00:25:36 2017 daemon.notice easycwmpd: http server initialized
Fri Nov 17 00:25:36 2017 daemon.notice easycwmpd: entering main loop
Fri Nov 17 00:25:36 2017 daemon.notice easycwmpd: start session
Fri Nov 17 00:25:36 2017 daemon.notice easycwmpd: configured acs url https://server:port/acs/
Fri Nov 17 00:25:36 2017 daemon.notice easycwmpd: external script init
Fri Nov 17 00:25:36 2017 daemon.notice easycwmpd: external: execute inform parameter
Fri Nov 17 00:25:38 2017 daemon.notice easycwmpd: send Inform
Fri Nov 17 00:25:38 2017 daemon.notice easycwmpd: LibCurl Error: ssl_handshake returned - PolarSSL: (-0x7200) SSL - An invalid SSL record was
received
Fri Nov 17 00:25:38 2017 daemon.notice easycwmpd: sending http message failed
Fri Nov 17 00:25:38 2017 daemon.notice easycwmpd: sending Inform failed
Fri Nov 17 00:25:38 2017 daemon.notice easycwmpd: external: execute apply service
Fri Nov 17 00:25:38 2017 daemon.notice easycwmpd: external script exit
Fri Nov 17 00:25:39 2017 daemon.notice easycwmpd: end session failed


Have also tested with libcurl compiled to use OpenSSL, but that gives other error when using https.

Tags:
Steps To Reproduce: Change from http to https and restart easycwmpd and use logread -f
Additional Information: config acs
        option periodic_enable '1'
        option periodic_interval '100'
        option periodic_time '0001-01-01T00:00:00Z'
        option username 'acs'
        option password 'acs'
        option url 'https://server:port/acs/'


root@OpenWrt:/# curl -V
curl 7.40.0 (mips-openwrt-linux-gnu) libcurl/7.40.0 PolarSSL/1.3.14
Protocols: file ftp ftps http https
Features: IPv6 Largefile SSL
Attached Files:
Notes
(0000823)
mohamed.kallel   
2017-11-17 10:39   
Reproduced with the last version of easycwmp 1.6.0 ?
(0000824)
carlberg   
2017-11-18 19:22   
yes, exact same error with 1.6.0.

easycwmp_1.6.0_ar71xx.ipk
libcurl_7.40.0-3.2_ar71xx.ipk
libmicroxml_2015-03-18-caa8d3e6887f5c70e54df555dd78e4e45cfa74cc_ar71xx.ipk

What version of libcurl are you using?
(0000825)
carlberg   
2017-11-18 22:56   
This works:
curl https://www.google.com or some other https site works.
(0000826)
hmh   
2017-11-22 12:00   
(Last edited: 2017-11-22 12:00)
Works here using openwrt 15.05.1+git, easycwmp 1.6.0, and *openssl* (not mbedtls/polarssl).

For libcurl+mbedtls, the "ca bundle in single file" version of ca-certificates is required. libcurl+openssl can use either version of ca-certificates, if configured properly. In either case, you must configure things properly so that the certificates are found by libcurl, or easycwmp will reject the connection (which is good).

That said, it wouldn't explain the strange SSL error you got. I suggest you use Qualys' SSLlabs to test that ACS, it might be spewing weird crap or using an uncommon algo that limited mbedtls doesn't support...

https://www.ssllabs.com/ssltest/

(0000828)
carlberg   
2017-11-23 17:30   
(Last edited: 2017-11-23 17:32)
Please send (name and) versions of libcurl, libmicro and openssl packages used.

(0000829)
hmh   
2017-11-24 14:53   
Same versions as in message 824.

We do patch easycwmp, but nothing related to this issue (and all patches we use have already been reported to this bug tracker).
(0000863)
carlberg   
2018-05-10 13:14   
(Last edited: 2018-05-10 13:14)
Suddley this is issue is no more, but have been something with the libs or something.

please close issue.



View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
318 [easycwmp] Help minor have not tried 2018-04-11 04:26 2018-04-19 10:32
Reporter: caryqy Platform: docker container  
Assigned To: OS: Ubuntu 14.04.2 LTS  
Priority: normal OS Version: Ubuntu 14.04.2  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: acs cannot connect cwmp, because cwmp`s url is local ip
Description: HI, can anyone tell me how to change eth0 to WAN interface, or give me some doc about this to read.

cwmp can report info to ACS, but Connection resuest URL is cwmp`s local ip(http://172.17.0.15:7547/) and ACS cannot connect it successfully.
ACS and easycwmp are not in the same network


Best Regards
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000857)
mohamed.kallel   
2018-04-12 15:52   
check with ifconfig command your wan interface and then change it in the easycwmp config.
(0000860)
nromero   
2018-04-19 10:32   
@carygy

You probably need to change the configuration in "/etc/config/easycwmp":

config local
        option interface 'eth0'

to something like

config local
        option interface 'wifi0'


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
317 [easycwmp] Help minor always 2018-03-19 08:30 2018-04-04 18:31
Reporter: shasta Platform: mips32  
Assigned To: OS: linux  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: easycwmp doesn't send (passive / active) notification
Description: Upgrade easycwmp from 1.1.2 to 1.6.1, found that notify is no arg now.
#ubus list -v
'tr069' @bd50a229
        "notify":{}
        "inform":{"event":"String"}
        "command":{"name":"String"}

So I tested notification function as below:
#sh /usr/sbin/easycwmp set notification Device.IP.Diagnostics.IPPing.Host 2
#sh /usr/sbin/easycwmp apply notification

In easycwmp config file I see:

config notifications
        list active 'Device.IP.Diagnostics.IPPing.Host'

then I tried to modify Device.IP.Diagnostics.IPPing.Host:

#sh /usr/sbin/easycwmp set value Device.IP.Diagnostics.IPPing.Host 192.168.100.123
#sh /usr/sbin/easycwmp apply value

and got response message:
{ "status": "1" }

then I call ubus to send notify:
#ubus call tr069 notify

Response (please ignore date):
2012-01-01 01:49:30 [easycwmp] NOTICE - triggered ubus notification
2012-01-01 01:49:31 [easycwmp] NOTICE - checking if there is notify value change
2012-01-01 01:49:31 [easycwmp] NOTICE - external script init
2012-01-01 01:49:31 [easycwmp] NOTICE - external: execute check_value_change
2012-01-01 01:49:32 [easycwmp] NOTICE - external script exit


and nothing happened, no Inform, no VALUE CAHNGE event.
Do I missed something or issue wrong command for notification?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000855)
mohamed.kallel   
2018-03-26 13:10   
Do not set the host with easycwmp command. This will not trigger notification.
And also do test notification a parameter which defined in easycwmp config. You have to user another config file like wireless.
(0000856)
nromero   
2018-04-04 18:31   
Hi shasta.

/usr/sbin/easycwmp is used to act as the ACS, so the changes made with "set value" will not trigger a notification to the ACS (since it will be redundant for the ACS to receive the value it "sent" in the first place).

In order to trigger a "4 VALUE CHANGE" event you need to set the notification to "2" as you did and apply the changes with "/usr/sbin/easycwmp apply".

Then, change the parameter value "manually". For example, try with the parameter "Device.WiFi.SSID.1.SSID" which is defined in /etc/config/wireless, as mohamed.kallel said.

Then call "ubus call tr069 notify" and it will identify the change and trigger a "4 VALUE CHANGE" event.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
314 [easycwmp] Enhancement minor have not tried 2018-02-19 22:00 2018-02-19 22:00
Reporter: mohamed.kallel Platform:  
Assigned To: OS:  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Add new param ManagementServer.EnableCWMP
Description: Add new param ManagementServer.EnableCWMP
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
313 [easycwmp] Bug minor have not tried 2018-02-19 21:59 2018-02-19 21:59
Reporter: mohamed.kallel Platform:  
Assigned To: OS:  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Verify if Periodic Inform interval is updated when it is set by ACS
Description: Verify if Periodic Inform interval is updated when it is set by ACS
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
308 [easycwmp] Help feature always 2018-01-12 02:26 2018-01-12 09:55
Reporter: rakib Platform: OpenWrt  
Assigned To: mohamed.kallel OS: Chaos claimer  
Priority: urgent OS Version: 15  
Status: resolved Product Version:  
Product Build: Resolution: not fixable  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: How to add flow entries in the northbound database in OpenWrt
Description: I am using OpenWrt for my Tp link router. I have configured OpenVswitch and OVN.I have also created one logical router and two logical switches inside that virtual network.

Now, I want to add flow entries in OVN manuallay without any help of CMS.

For example, I can add flow entry to the OpenVswitch in Openwrt terminal by writing this command

ovs-ofctl add-flow br-int "table=0, priority=0, in_port=1,actions=output:2"
But this command is for OpenVswitch. I want to add logical flows to the OVN.

By default there are some entries inside the OVN southbound database. I can see those entries by this commmand:

ovn-sbctl lflow-list
Tags: OpenvNetwork, openvSwitch, Openwrt, ovn
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000832)
mohamed.kallel   
2018-01-12 09:54   
(Last edited: 2018-01-12 09:54)
This is not about EasyCwmp. it s out of topic.
If you need software services in OpenWRT, please refer to PIVA Software commercial services:
http://pivasoftware.com/Contact



View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
305 [easycwmp] Bug minor have not tried 2017-12-04 20:24 2017-12-20 16:52
Reporter: mohamed.kallel Platform:  
Assigned To: mohamed.kallel OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: do not replace multispace by 1 space in the xml tag values
Description: multispace is replaced by 1 space in the xml tag values
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000830)
mohamed.kallel   
2017-12-20 16:52   
delivered in EasyCwmp-1.6.1


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
306 [easycwmp] Enhancement feature N/A 2017-12-18 13:41 2017-12-18 13:41
Reporter: pej Platform:  
Assigned To: OS:  
Priority: urgent OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Clarifications on adding new feature support
Description: Hi ,

On brief analysis into the solution , did not find the following functionality support in the base:

          STUN/NAT
          Upload RPC
          Alias Based Addressing

Has it already been implemented as part of the opensource solution?

If no,is it ok to add these features as part of customization for my project. If yes what are the steps to go about reviewing , testing and publishing it as part of the license.

Thanks,
PEJ
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
138 [easycwmp] Help crash always 2016-05-27 09:34 2017-11-22 12:08
Reporter: superkid Platform: Openwrt  
Assigned To: OS: Linux  
Priority: high OS Version: 3.10.14  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Firmware update continues even if file is incomplete
Description: When we update our devices using acs server and if acs server suddenly stopped, download will be incomplete but firmware update continues and it destroys our devices. Do you have hash code checks before updating the device? Please help.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000479)
mohamed.kallel   
2016-05-27 09:51   
we do not have code that check the validity of the firmware. I think that the job of the update command.
But I think you can use md5 Checksum check of the OpenWRT firmware before calling sysupgrade. I tihnk the luci page do that before calling the sysupgrade command. I think that you can develop a check function that calculate the firmware checksum and then compare it to the firmware checksum.
Please keep me updated with your advancement and please share your check function if you are going to develop it
(0000480)
superkid   
2016-05-30 05:50   
But you are checking if the downloaded file matches the correct file size and if it doesn't, you will download it again before proceeding to firmware update right? I just don't understand why it continue to update even if the file is incomplete.
(0000481)
mohamed.kallel   
2016-05-30 10:16   
could you please provide your traffic capture and your firmware
(0000485)
superkid   
2016-06-17 09:32   
i fixed by comparing the file size before continuing update

 if [ "$dl_size" -lt "$size_check" ]; then
        let fault_code=9000+$E_DOWNLOAD_FAILURE
        common_json_output_fault "" "$fault_code"
 else
        /sbin/sysupgrade $DOWNLOAD_FILE
 fi
(0000827)
hmh   
2017-11-22 12:08   
The current lack of proper size checking on the downloaded file before one handles the data to "sysupgrade" is one MAJOR issue in the easycwmp scripts. Fixing it would improve the safety of firmware upgrade operations a great deal...

One can trivially get sysupgrade images with internal checksums in LEDE by enabling the image metadata mode (this is even the default on a few LEDE targets already), but the file format is going to FAIL to detect truncation unless you activate "require metadata" mode for the platform, which breaks backwards compatibility (older images, or images from other openwrt clones/forks won't have been generated with the checksum trailer).

And the underlying platform-specific flash upgrade routines that "sysupgrade" calls are not always good enough to have their own embedded checksums *or* check them, to put it mildly. So, depending on the platform you target, you can get a missflash on truncated files, instead of a clean rejection.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
201 [easycwmp] Question minor have not tried 2017-02-15 02:43 2017-10-20 12:35
Reporter: superkid Platform: Linux  
Assigned To: OS: openwrt  
Priority: normal OS Version: barrier breaker  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: does easycwmp support upload and download of config file
Description: acs needs to get configfile from cpe and should be able to restore the cpe status using this configfile
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000667)
Anis   
2017-02-15 09:57   
the download RPC is available in easycwmp free version.
the Upload is available only in easycwmp commercial version.
(0000821)
hmh   
2017-10-20 11:56   
Where can we find info about the easycwmp commercial version (what is included, price, etc)? PIVA's pages are not helpful in that regard...
(0000822)
mohamed.kallel   
2017-10-20 12:35   
to refer to our commercial solution. Please send an email to anis.ellouze@pivasoftware.com


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
293 [easycwmp] Bug major always 2017-09-13 16:21 2017-10-20 11:55
Reporter: okraits Platform: Any  
Assigned To: Anis OS: OpenWRT/LEDE  
Priority: normal OS Version: 17.01  
Status: assigned Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: easycwmp exists after file download
Description: I added additional filetypes in the easycwmp.sh script (certificates, etc) and noticed that easycwmp exits after a successfull download (https://github.com/pivasoftware/easycwmp/blob/master/src/cwmp.c#L484).

In my experience this leads to issues if there are several downloads queued for execution.

Why does easycwmp exit after download? The TR069 specification doesn't require to do this.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000799)
mohamed.kallel   
2017-09-13 18:11   
For your additional filetypes script, you should return as status = 0 in the apply download
(0000800)
okraits   
2017-09-14 08:14   
What's the reasoning behind not returning 1 like the other filetypes?

This doesn't work either, the session after the download fails:

Thu Sep 14 08:10:03 2017 daemon.notice easycwmpd: acs initiated connection
Thu Sep 14 08:10:03 2017 daemon.notice easycwmpd: add event '6 CONNECTION REQUEST'
Thu Sep 14 08:10:03 2017 daemon.notice easycwmpd: start session
Thu Sep 14 08:10:03 2017 daemon.notice easycwmpd: configured acs url https://acs:7547/genieacs
Thu Sep 14 08:10:03 2017 daemon.notice easycwmpd: external script init
Thu Sep 14 08:10:04 2017 daemon.notice easycwmpd: external: execute inform parameter
Thu Sep 14 08:10:05 2017 daemon.notice easycwmpd: send Inform
Thu Sep 14 08:10:05 2017 daemon.notice easycwmpd: receive InformResponse from the ACS
Thu Sep 14 08:10:05 2017 daemon.notice easycwmpd: send empty message to the ACS
Thu Sep 14 08:10:05 2017 daemon.notice easycwmpd: received Download method from the ACS
Thu Sep 14 08:10:05 2017 daemon.notice easycwmpd: add download: delay = 0 sec, url = https://acs:7567/test.p12, FileType = '9 PKCS#12 File', CommandKey = '15e7f023858000'
Thu Sep 14 08:10:05 2017 daemon.notice easycwmpd: send DownloadResponse to the ACS
Thu Sep 14 08:10:05 2017 daemon.notice easycwmpd: receive empty message from the ACS
Thu Sep 14 08:10:05 2017 daemon.notice easycwmpd: external: execute apply service
Thu Sep 14 08:10:05 2017 daemon.notice easycwmpd: external script exit
Thu Sep 14 08:10:05 2017 daemon.notice easycwmpd: end session success
Thu Sep 14 08:10:05 2017 daemon.notice easycwmpd: start download url = https://acs:7567/test.p12, FileType = '9 PKCS#12 File', CommandKey = '15e7f023858000'
Thu Sep 14 08:10:05 2017 daemon.notice easycwmpd: external script init
Thu Sep 14 08:10:06 2017 daemon.notice easycwmpd: external: execute download
Thu Sep 14 08:10:06 2017 daemon.notice easycwmpd: add event '7 TRANSFER COMPLETE'
Thu Sep 14 08:10:06 2017 daemon.notice easycwmpd: add event 'M Download'
Thu Sep 14 08:10:06 2017 daemon.notice easycwmpd: external: execute apply download 9 PKCS#12 File
Thu Sep 14 08:10:06 2017 daemon.notice easycwmpd: external script exit
Thu Sep 14 08:10:06 2017 daemon.notice easycwmpd: start session
Thu Sep 14 08:10:06 2017 daemon.notice easycwmpd: configured acs url https://acs:7547/genieacs
Thu Sep 14 08:10:06 2017 daemon.notice easycwmpd: external script init
Thu Sep 14 08:10:07 2017 daemon.notice easycwmpd: external: execute inform parameter
Thu Sep 14 08:10:07 2017 daemon.notice easycwmpd: send Inform
Thu Sep 14 08:10:07 2017 daemon.notice easycwmpd: LibCurl Error: The requested URL returned error: 401
Thu Sep 14 08:10:07 2017 daemon.notice easycwmpd: sending http message failed
Thu Sep 14 08:10:07 2017 daemon.notice easycwmpd: sending Inform failed
Thu Sep 14 08:10:07 2017 daemon.notice easycwmpd: external: execute apply service
Thu Sep 14 08:10:07 2017 daemon.notice easycwmpd: external script exit
Thu Sep 14 08:10:07 2017 daemon.notice easycwmpd: end session failed
Thu Sep 14 08:10:07 2017 daemon.notice easycwmpd: retry session in 7 sec, RetryCount = 1
(0000801)
mohamed.kallel   
2017-09-14 15:22   
traffic capture ?
(0000802)
mohamed.kallel   
2017-09-14 15:26   
(Last edited: 2017-09-14 15:27)
By the way, easycwmp does not exit any more after the apply. that solve your first question. seems that you change your download apply return to 0.

For the new issue. I m not sure what could be the problem. if you can capture traffic. or launch easycwmpd with command /usr/sbin/easycwmpd -b that could show more log details. may be the file you downloaded are related to some cet file

(0000804)
okraits   
2017-09-19 16:25   
(Last edited: 2017-09-19 16:30)
I know that using

common_json_output_status "0"

keeps easycwmpd from exiting. This basically means that in the function cwmp_download_launch the mark out is jumped to:

https://github.com/pivasoftware/easycwmp/blob/master/src/cwmp.c#L491

What I noticed is that the next session fails because authentication against the ACS is broken (which was working before the download).

easycwmpd tries to auth itself at nginx which is used as a reverse proxy in front of the ACS. From the nginx log:

2017/09/19 16:12:35 [error] 353#353: *389 user "transfer_complete" was not found in "/etc/nginx/ms-htpasswd", client: 10.1.3.107, server: acs, request: "POST /genieacs HTTP/1.1", host: "acs:7547"

Looks like config->acs is corrupted or something.

I can provide a traffic capture tomorrow if it helps.

(0000805)
okraits   
2017-09-26 10:48   
(Last edited: 2017-09-26 10:50)
I finally had the time to debug this issue. The next session after the download fails because username and password of the config->acs struct is free'd in the function xml_handle_download:

https://github.com/pivasoftware/easycwmp/blob/master/src/xml.c#L1398

This is redundant because the config->acs struct gets free'd in

https://github.com/pivasoftware/easycwmp/blob/master/src/config.c#L124

anyway.

So I would like to propose the following:

Remove the lines

https://github.com/pivasoftware/easycwmp/blob/master/src/cwmp.c#L484
https://github.com/pivasoftware/easycwmp/blob/master/src/xml.c#L1398
https://github.com/pivasoftware/easycwmp/blob/master/src/xml.c#L1399
https://github.com/pivasoftware/easycwmp/blob/master/src/xml.c#L1431
https://github.com/pivasoftware/easycwmp/blob/master/src/xml.c#L1432

to avoid that easycwmpd shuts down after file downloads.



View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
300 [easycwmp] Question major always 2017-10-13 04:39 2017-10-18 17:35
Reporter: superkid Platform: linux  
Assigned To: OS: openwrt  
Priority: normal OS Version: barrier breaker  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: some data model tree can not be shown on ACS
Description: easycwmp sequence of object and parameters are in alphabetical order and not the normal object then parameter
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
InternetGatewayDevice.DeviceInfo.DeviceLog
InternetGatewayDevice.DeviceInfo.Manufacturer
InternetGatewayDevice.DeviceInfo.ManufacturerOUI
InternetGatewayDevice.DeviceInfo.ProductClass
InternetGatewayDevice.DeviceInfo.ProvisioningCode
InternetGatewayDevice.DeviceInfo.SerialNumber
InternetGatewayDevice.DeviceInfo.SoftwareVersion
InternetGatewayDevice.DeviceInfo.UpTime
InternetGatewayDevice.DeviceInfo.MemoryStatus.Total
InternetGatewayDevice.DeviceInfo.MemoryStatus.Free

every parameter after InternetGatewayDevice.DeviceInfo.MemoryStatus.Total
will not be displayed on ACS
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000814)
superkid   
2017-10-13 04:40   
edit

0000300: some data model tree can not be shown on ACS
(0000820)
mohamed.kallel   
2017-10-18 17:35   
Did you add some parameters to the DeviceInfo. May be your changes are the cause of the missing params


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
299 [easycwmp] Bug major always 2017-10-11 05:31 2017-10-12 11:45
Reporter: superkid Platform: Linux  
Assigned To: OS: Openwrt  
Priority: high OS Version: barrier breaker  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: added obj/param but does not show on ACS
Description: I added vendor-specific object and parameters on deviceinfo
but we encountered problem like

DeviceInfo.UpTime does not appear on their ACS
some vendor-specific items isn't seen on ACS like X_STREAM_COM.IMEI and X_STREAM_COM.IMSI

is our script wrong?

I attached the script for reference
Tags:
Steps To Reproduce:
Additional Information:
Attached Files: device_info (9,270 bytes) 2017-10-11 05:31
https://support.easycwmp.org/file_download.php?file_id=109&type=bug
Notes
(0000813)
mohamed.kallel   
2017-10-12 11:45   
The verification of your customized work could not be done as free support of EasyCwmp.
Please refer to our commercial services.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
296 [easycwmp] Help feature always 2017-10-04 03:56 2017-10-11 05:08
Reporter: superkid Platform: linux  
Assigned To: OS: openwrt  
Priority: high OS Version: barrier breaker  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: need to retrieve/write parameters almost real-time
Description: i need to get or set parameters of device almost real-time

even if the periodic_interval is set to 24hours, device should still respond to set/get of parameters without waiting 24 hours.

I've seen this implemented on other device (not sure if it is easycwmp) but I need help to get this done, any idea?

Thanks
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000806)
mohamed.kallel   
2017-10-04 10:31   
You have to send Connection Request from your ACS. And then easycwmp will start immediately a session with your ACS which should be pre-configured to make your get/set
(0000812)
superkid   
2017-10-11 05:08   
found out the problem. connection request is not working because access to WAN is blocked by default

edited /etc/config/firewall and allow access to port 7547

please also include this on your installation note if possible so we will never forget it :)


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
298 [easycwmp] Help minor have not tried 2017-10-09 11:32 2017-10-11 04:09
Reporter: qianxiaowei Platform:  
Assigned To: OS: Openwrt  
Priority: high OS Version: 15.05  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: How to enable IPv6 support?
Description: I want to use easycwmp use IPv6 communicate with ACS,
This way the easycwmp client that in local area network can communicate with ACS more directly and faster.

I saw easycwmp has supported IPv6 in http://www.easycwmp.org/index.html

But I cannot work it, I have try to close IPv4 on my broad, and my broad get IPv6 address successfully.

Can you give me some suggestion?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000810)
mohamed.kallel   
2017-10-10 11:43   
You have just to set ACS URL with your server name that have a DHCPv6 address
(0000811)
qianxiaowei   
2017-10-11 04:09   
OK,thanks! But I have no IPv6 capability ACS. Are there any way test easycwmp IPv6 support is available in my local area network?


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
294 [easycwmp] Help minor N/A 2017-09-18 09:24 2017-09-18 11:15
Reporter: omnathpp Platform: Linux  
Assigned To: OS: CentOS  
Priority: immediate OS Version: 7  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: How to add InternetGatewayDevice Data Model to the easyCWMP client
Description: I installed easyCWMP as per the instructions. I could connect the client to the server and see the device in the server. Now I need to add extra parameters to the client data model. How to do that?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000803)
mohamed.kallel   
2017-09-18 11:15   
You can follow the example of the existing data model parameters (scripts shell in ext/openwrt/scripts/).


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
292 [easycwmp] Help feature unable to reproduce 2017-09-12 16:18 2017-09-15 17:41
Reporter: randon Platform:  
Assigned To: Anis OS:  
Priority: normal OS Version:  
Status: feedback Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Install EASYCWPM + DD-wrt + GenieACS
Description: Is it possible to install on DD-wrt? I not found how to use, configure or install easycwmp on DD-wrt.
In the dd-wrt forum I get no response until now...
I really need a remote management tool, anyone can help?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000798)
mohamed.kallel   
2017-09-13 11:41   
as I know, DD-WRT is a fork of OpenWRT. So the installation of easycwmp on DD-WRT should be similar to OpenWRT.
You can refer to easycwmp install on OpenWRT from http://easycwmp.org/install.html


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
265 [easycwmp] Question minor have not tried 2017-07-11 18:21 2017-08-26 16:22
Reporter: hjchae Platform:  
Assigned To: mohamed.kallel OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: compile problem
Description: system information = >
Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-62-generic x86_64)

---------------------------------

when try build easycwmp, I got blow error message.

----------------------------------
root@ubuntu:/opt/dev/easycwmp# ./configure --enable-debug --enable-devel --enable-acs=multi --enable-jsonc=1
configure: WARNING: unrecognized options: --enable-acs
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking dependency style of gcc... (cached) gcc3
./configure: line 4120: syntax error near unexpected token `LIBCURL,'
./configure: line 4120: `PKG_CHECK_MODULES(LIBCURL, libcurl)'
----------------------------------

but "libcurl" is already installed my system.

----------------------------------
root@ubuntu:/usr/lib/x86_64-linux-gnu# ls -al *curl*
lrwxrwxrwx 1 root root 19 11월 3 2016 libcurl-gnutls.so.3 -> libcurl-gnutls.so.4
lrwxrwxrwx 1 root root 23 11월 3 2016 libcurl-gnutls.so.4 -> libcurl-gnutls.so.4.4.0
-rw-r--r-- 1 root root 444800 11월 3 2016 libcurl-gnutls.so.4.4.0
-rw-r--r-- 1 root root 947016 11월 3 2016 libcurl.a
-rw-r--r-- 1 root root 953 11월 3 2016 libcurl.la
lrwxrwxrwx 1 root root 16 11월 3 2016 libcurl.so -> libcurl.so.4.4.0
lrwxrwxrwx 1 root root 12 11월 3 2016 libcurl.so.3 -> libcurl.so.4
lrwxrwxrwx 1 root root 16 11월 3 2016 libcurl.so.4 -> libcurl.so.4.4.0
-rw-r--r-- 1 root root 452992 11월 3 2016 libcurl.so.4.4.0


----------------------------------

when removed error line in file "configure",
and build again, I got below error message.

----------------------------------

./configure: line 4125: syntax error near unexpected token `MICROXML,'
./configure: line 4125: `PKG_CHECK_MODULES(MICROXML, microxml)'

----------------------------------

but "microxml" is already installed my system too.

----------------------------------

hjchae@ubuntu:/lib$ ls -al *xml*
lrwxrwxrwx 1 root root 27 7월 11 01:36 libmicroxml.so -> /usr/lib/libmicroxml.so.1.0
lrwxrwxrwx 1 root root 27 7월 11 01:36 libmicroxml.so.1 -> /usr/lib/libmicroxml.so.1.0



Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000752)
mohamed.kallel   
2017-07-18 11:04   
The same issue of 0000119

May be you have missed package in your ubuntu.

Install the following packages:

    - pkg-config
    - libssl-dev

and then retry the ./configure


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
285 [easycwmp] Help major always 2017-08-17 04:55 2017-08-26 16:20
Reporter: hidayat@swag.my Platform: Raspberry Pi 2b  
Assigned To: mohamed.kallel OS: OpenWRT  
Priority: urgent OS Version: BleedingEdge  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Run easycwmpd -f -d but nothing happens
Description: I am trying to run easycwmp on Raspberry Pi2b as a client and the server that I've run is using GenieACS.

What I run the command, there is nothing happening. No logs, no error, nothing.

I've listed down the steps to reproduce this.

Can you help me to see any mistakes in the steps taken please?

I really appreciate it.

Thanks!
Tags:
Steps To Reproduce: 1. Download easycwmp tar package from the download page
2. Compile the image for raspberry pi together with the downloaded easycwmp package
3. Configure the /etc/config/easycwmp to this:

config local
        option interface 'eth0'
        option port '7547'
        option ubus_socket '/var/run/ubus.sock'
        option date_format '%FT%T%z'
        option logging_level '3'

config acs
        option scheme 'http'
        option url '47.74.135.1'
        option hostname '47.74.135.1'
        option port '7547'
        option path '/'
        option parameter_key '1'
        option periodic_enable '1'
        option periodic_interval '100'

config device
        option oui 'FFFFFF'
        option serial_number 'FFFFFF123456'
        option hardware_version 'v0'
        option product_class 'Generic'
        option manufacturer 'OpenWrt
http://www.openwrt.org/'
        option software_version '50108'


4. Run easycwmpd -f -d
Additional Information:
Attached Files: dump.pcap (14,576 bytes) 2017-08-22 12:26
https://support.easycwmp.org/file_download.php?file_id=108&type=bug
Notes
(0000757)
Anis   
2017-08-17 12:56   
(Last edited: 2017-08-17 18:16)
what is the version of easycwmp that you use ?
it is recommended to use the last version.
could you provide the output of the cmd : ps aux|grep easycwmp
to check if easycwmp is running.

BTW, do you run easycwmp as root ?

(0000758)
hidayat@swag.my   
2017-08-18 04:00   
Thank you very much for your speedy support! Really appreciate it!

Yes I did run easycwp as root.

The version that I'm using is easycwmp-openwrt-1.5.3. The latest one from the download page.

However now I just realized that I'm seeing this error in my kernel log:

Thu Aug 17 10:19:19 2017 daemon.notice easycwmpd: external script init
Thu Aug 17 10:19:19 2017 daemon.crit easycwmpd: configuration (re)loading failed, exit daemon

Can you please point me in the right direction on how to configure easycwmp?

I really appreciate your help!
(0000759)
hidayat@swag.my   
2017-08-18 05:06   
I've recompile again the image for the raspberryPi, keep the default /etc/config/easycwmp, and it is running!

But now there is one other thing that I want to ask.

I've change the configuration in /etc/config/easycwmp for the 'option manufacturer'

to this -->

config device
        option oui 'SWAG_WR1'
        option serial_number 'FFFFF0000000001'
        option SerialNumber 'TESTSERIALNUMBERHERE'
        option manufacturer 'swag Technologies Sdn Bhd'
        option product_class 'SWAG_WR1'
        option hardware_version 'v1.0'
        option software_version 'v1.001'


but it always reverted back when I run /etc/init.d/easycwmpd stop/start -->

config device
        option oui 'SWAG_WR1'
        option serial_number 'FFFFF0000000001'
        option SerialNumber 'TESTSERIALNUMBERHERE'
        option manufacturer 'OpenWrt
http://www.openwrt.org/'
        option product_class 'Generic'
        option hardware_version 'v0'
        option software_version '50108'

Can you help guide me to the correct place of where I need to do all the required configuration?

And can you also give me some information on how to send the some INFORM data to the ACS for 'BytesSent' and 'BytesReceived' and where can I put that information in.

Thank you very much!
(0000760)
hidayat@swag.my   
2017-08-18 06:08   
Alright I've tried playing around with the easycwmp command.

I want to try setting up the parameter using the command like this -->

easycwmp set value Device.DeviceInfo.Manufacturer "swag technologies"
easycwmp apply value

But I always get this error -->
{ "parameter": "Device.DeviceInfo.Manufacturer", "fault_code": "9008" }

Can you help me with this please?

Thanks!
(0000761)
Anis   
2017-08-18 10:52   
(Last edited: 2017-08-18 11:26)
The parameter Manufacturer is retrieved from "/etc/device_info" file, you have to use this file to change it. When easycwmp start, easycwmp copy parameters from "/etc/device_info" to the "/etc/config/easycwmp".

The error that you got when setting Manufacturer param (with easycwmp set value) is normal, because Device.DeviceInfo.Mnufacturer is a read only parameter.

(0000763)
hidayat@swag.my   
2017-08-21 09:26   
Hi Anis,

thank you very much for your reply.

Now I'm starting to understand it. But there is some more stuff that I would be really glad if you can help me.

I need to send some information to GenieAcs server for example the number of bytes used interface 1 for example?

Because right now I'm not seeing that information in GenieAcs. What I'm seeing is only the device information itself like the device id, manufacturer id and so on.
(0000764)
Anis   
2017-08-21 12:00   
Hi,

 Easycwmp open source contains only data model basic parameters (about 75 parameters). the Data model open source version is developed in shell and you can add others parameters to the current data model. For your case, there is few stats params under Device.IP.Interface.{i}. and you can add other stats parameters for other obect like PPP, WiFi, DHCP...

 The data model of OpenSource version is for basic usage and not for professional usage. We offer a commercial version of Data Model Developed in C. It contains a large number of parameters(about 400 parameters and it include stats) and it's much more faster then the shell solution (open source)
(0000765)
hidayat@swag.my   
2017-08-21 12:03   
Alright so to be clear. All the data that is shown when I run 'easycwmp get value' should be sent to GenieACS right?

If that is true, is it safe to say right now there should be something that I still havent configured correctly on the GenieACS side?

BTW the other parameters, can I just add in any custom parameter thru 'easycwmp set value <custom_parameter_here> <value>' and 'easycwmp apply'?
(0000766)
Anis   
2017-08-21 12:13   
as I know GenieAcs get all param of each device. otherwise you can contact genieacs support.

No, you have to develop your param script before and then you can make a get/set value of your new param.
(0000767)
hidayat@swag.my   
2017-08-21 12:15   
Sorry for this. So by default easycwmp will send all information (about 75 parameters) together during 'inform' right?

And regarding the param script, can you give me an example of where to get started with it?
(0000768)
Anis   
2017-08-21 12:23   
no, the inform rpc contains only some specific parameters.
You can see the log/capture to understand all exchange between acs and cpe.
You can follow the IP ojb/param implementation to add your own obj/param.
(0000769)
hidayat@swag.my   
2017-08-21 12:25   
Ok great thank you very much for the information.

And how can I send the other 75 params to the ACS?

Im so sorry for all of this question. I just getting started with all of this like 3 days ago and I really appreciate this support.
(0000770)
Anis   
2017-08-21 12:41   
(Last edited: 2017-08-21 12:42)
genieacs has its own script to get the data model parameters for first time connection of each device.

the log/capture show you all details of TR069 session.

(0000771)
hidayat@swag.my   
2017-08-22 04:57   
Alright so for GenieACS to get all the data from the CPE, I need to configure the GenieACS script to get the value from the device?
(0000772)
hidayat@swag.my   
2017-08-22 09:10   
Hi Anis,

Can you guide me on how to change the following -->

<soap_env:Envelope
xmlns:soap_env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soap_enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cwmp="urn:dslforum-org:cwmp-1-2">


'XMLSchema-instance"
xmlns:cwmp="urn:dslforum-org:cwmp-1-2' to --> 'XMLSchema-instance"
xmlns:cwmp="urn:dslforum-org:cwmp-1-0'

Thank you!
(0000773)
hidayat@swag.my   
2017-08-22 10:38   
Where can I view the log/capture?

And just to confirm. the IP obj/param implementation, is it this file --> easycwmp/ext/openwrt/scripts/functions/tr181/ip ??
(0000774)
Anis   
2017-08-22 11:05   
for genieacs you have to contact genieacs support.

you can see the capture by wireshark.
logread cmd show you the log.

yes, easycwmp/ext/openwrt/scripts/functions/tr181/ip is the IP obj/param implementation file
(0000775)
hidayat@swag.my   
2017-08-22 11:09   
Alright, if I want to implement a new scripts, do I need to recompile easycwmp manually?
(0000776)
Anis   
2017-08-22 11:11   
if you change the script file(not .c file) you do not have to recompile. just copy the file at the right path
(0000777)
hidayat@swag.my   
2017-08-22 11:22   
Understood!

Another question. When the CPE received a task from ACS ie: getParameterValues, some of the information is not being sent by CPE to the ACS for example:

- Device.IP.Interface.1.Stats.BytesSent
- Device.IP.Interface.1.Stats.BytesReceived

Can you help me with this as well?
(0000778)
Anis   
2017-08-22 11:32   
run the getParameterValues RPC and send me the capture to check that.
(0000779)
hidayat@swag.my   
2017-08-22 11:34   
Sorry, how can I run that?
(0000780)
hidayat@swag.my   
2017-08-22 11:35   
Oh wait, run in inside the ACS right. And the capture is thru wireshark?
(0000781)
Anis   
2017-08-22 11:36   
yes, in wireshark make a filter on genieacs port
(0000782)
hidayat@swag.my   
2017-08-22 11:37   
ok great gimme a sec
(0000783)
hidayat@swag.my   
2017-08-22 12:19   
I tried running wireshark to capture the packet on a raspberry pi cpe, using this configuration on the wireshark. I selected remote ssh.

The configuration --> http://imgur.com/a/EoY6U

Is it correct?
(0000784)
hidayat@swag.my   
2017-08-22 12:25   
Pardon my stupidity. It is working. Im just looking at the wrong interface.
(0000785)
hidayat@swag.my   
2017-08-22 12:26   
There I've just attached the wireshark file.
(0000786)
Anis   
2017-08-22 13:14   
it does not contain the the capture of getParameterValues RPC !!
(0000787)
hidayat@swag.my   
2017-08-23 04:46   
Oh really I'm sorry! I'll try to capture it again.
(0000788)
hidayat@swag.my   
2017-08-24 10:58   
Hi Anis,

I've manage to get more parameters information. Thanks to you now I'm starting to understand how to protocol works.

Btw I have some more questions. As a default, do easycwmp implement factory RPC on the CPE?

If not, can you point me in the right direction on how can I start develop the functionality myself?

Thank you!
(0000789)
Anis   
2017-08-24 14:29   
easycwmp supports factory_reset rpc
(0000790)
hidayat@swag.my   
2017-08-25 08:44   
Hi anis, wow that is amazing! However I have a question. If I want to map the factory_reset function to another function of my own, can you show me where can I do that?

Thank you!
(0000791)
hidayat@swag.my   
2017-08-25 10:48   
I've figured it out!

Now I just need to try to implement a custom parameter. I'll try to figure it out myself first.
(0000792)
Anis   
2017-08-25 11:13   
sorry I'm busy right now,
what you need is easy to do, if you are understanding the source code
(0000793)
hidayat@swag.my   
2017-08-25 11:19   
No worries Anis. You've helped a lot! Thank you very much. I'll continue tinkering on my own. But I might still bug you later though :)
(0000794)
Anis   
2017-08-25 11:46   
you are welcome :)


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
283 [easycwmp] Enhancement minor have not tried 2017-08-09 12:11 2017-08-09 12:15
Reporter: mohamed.kallel Platform:  
Assigned To: OS:  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Retry to open the DM pipe when trying to write to the pipe and the pipe is accidently closed
Description: Retry to open the DM pipe when trying to write to the pipe and the pipe is accidently closed
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
282 [easycwmp] Enhancement minor have not tried 2017-08-09 12:09 2017-08-09 12:09
Reporter: mohamed.kallel Platform:  
Assigned To: OS:  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Return FAULT 9002 when the pipe to the external dm command is accidently closed
Description: Return FAULT 9002 when the pipe to the external dm command is accidently closed
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
277 [easycwmp] Help block always 2017-08-08 12:28 2017-08-09 11:41
Reporter: andy_yang Platform: openwrt  
Assigned To: mohamed.kallel OS: openwrt  
Priority: immediate OS Version: linux.2.6  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: AddObject method return 9005: 'Invalid parameter name' when Add a WANConnectionDevice object.
Description: I don't know how to AddObject method, I try write a function "wan_device_add_instances_wancxdev" in the common_execute_method_obj "$DMROOT.WANDevice.1.WANConnectionDevice." to Add a WANConnectionDevice object.

But, the result is the easycwmp return 9005: 'Invalid parameter name'.

please refere to my script file "wan_device" in the attachment!

Thanks!
Tags:
Steps To Reproduce: 1.ACS send AddObject method
2.check
Additional Information: < HTTP/1.1 200 OK
< Content-Type: text/xml; charset="utf-8"
< Content-Length: 387
<
+++ RECEIVED HTTP RESPONSE +++
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><SOAP-ENV:Header><cwmp:ID SOAP-ENV:mustUnderstand="1">2</cwmp:ID></SOAP-ENV:Header><SOAP-ENV:Body><cwmp:InformResponse><MaxEnvelopes>1</MaxEnvelopes></cwmp:InformResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

--- RECEIVED HTTP RESPONSE ---
2017-08-08 18:30:20 [easycwmp] NOTICE - receive InformResponse from the ACS
2017-08-08 18:30:20 [easycwmp] NOTICE - send empty message to the ACS
+++ SEND EMPTY HTTP REQUEST +++
> POST /ACS-server/ACS HTTP/1.1
Host: 192.168.4.11:9090
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
Content-Length: 0

< HTTP/1.1 200 OK
< Content-Type: text/xml; charset="utf-8"
< Content-Length: 690
<
+++ RECEIVED HTTP RESPONSE +++
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><SOAP-ENV:Header><cwmp:ID SOAP-ENV:mustUnderstand="1">-15950</cwmp:ID></SOAP-ENV:Header><SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><cwmp:AddObject><ObjectName xsi:type="cwmp:ObjectNameType">InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.</ObjectName><ParameterKey xsi:type="cwmp:ParameterKeyType"></ParameterKey></cwmp:AddObject></SOAP-ENV:Body></SOAP-ENV:Envelope>
--- RECEIVED HTTP RESPONSE ---
2017-08-08 18:30:21 [easycwmp] NOTICE - received AddObject method from the ACS
2017-08-08 18:30:21 [easycwmp] NOTICE - external: execute add object InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.
2017-08-08 18:30:21 [easycwmp] NOTICE - Fault in the param: InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1., Fault code: 9005
2017-08-08 18:30:21 [easycwmp] NOTICE - send Fault: 9005: 'Invalid parameter name'
+++ SEND HTTP REQUEST +++
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <soap_env:Envelope
xmlns:soap_env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soap_enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
  <soap_env:Header>
   <cwmp:ID soap_env:mustUnderstand="1">-15950</cwmp:ID>
  </soap_env:Header>
  <soap_env:Body>
   <soap_env:Fault>
    <faultcode>Client</faultcode>
    <faultstring>CWMP fault</faultstring>
    <detail>
     <cwmp:Fault>
      <FaultCode>9005</FaultCode>
      <FaultString>Invalid parameter name</FaultString>
     </cwmp:Fault>
    </detail>
   </soap_env:Fault>
  </soap_env:Body>
 </soap_env:Envelope>
--- SEND HTTP REQUEST ---
> POST /ACS-server/ACS HTTP/1.1
Host: 192.168.4.11:9090
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 760

< HTTP/1.1 200 OK
< Content-Type: text/xml; charset="utf-8"
< Content-Length: 0
<
+++ RECEIVED EMPTY HTTP RESPONSE +++
Attached Files: wan_device (4,502 bytes) 2017-08-08 12:28
https://support.easycwmp.org/file_download.php?file_id=107&type=bug
Notes
(0000754)
andy_yang   
2017-08-08 12:37   
when ACS send AddObject method again! I found that the easycwmp return 9002: 'Internal error'. It's so strange!!!

+++ RECEIVED HTTP RESPONSE +++
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><SOAP-ENV:Header><cwmp:ID SOAP-ENV:mustUnderstand="1">-15970</cwmp:ID></SOAP-ENV:Header><SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><cwmp:AddObject><ObjectName xsi:type="cwmp:ObjectNameType">InternetGatewayDevice.WANDevice.1.WANConnectionDevice.</ObjectName><ParameterKey xsi:type="cwmp:ParameterKeyType"></ParameterKey></cwmp:AddObject></SOAP-ENV:Body></SOAP-ENV:Envelope>
--- RECEIVED HTTP RESPONSE ---
2017-08-08 18:42:54 [easycwmp] NOTICE - received AddObject method from the ACS
2017-08-08 18:42:54 [easycwmp] NOTICE - external: execute add object InternetGatewayDevice.WANDevice.1.WANConnectionDevice.
2017-08-08 18:42:54 [easycwmp] NOTICE - Fault in the param: InternetGatewayDevice.WANDevice.1.WANConnectionDevice., Fault code: 9002
2017-08-08 18:42:54 [easycwmp] NOTICE - send Fault: 9002: 'Internal error'
+++ SEND HTTP REQUEST +++
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <soap_env:Envelope
xmlns:soap_env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soap_enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
  <soap_env:Header>
   <cwmp:ID soap_env:mustUnderstand="1">-15970</cwmp:ID>
  </soap_env:Header>
  <soap_env:Body>
   <soap_env:Fault>
    <faultcode>Server</faultcode>
    <faultstring>CWMP fault</faultstring>
    <detail>
     <cwmp:Fault>
      <FaultCode>9002</FaultCode>
      <FaultString>Internal error</FaultString>
     </cwmp:Fault>
    </detail>
   </soap_env:Fault>
  </soap_env:Body>
 </soap_env:Envelope>
--- SEND HTTP REQUEST ---
> POST /ACS-server/ACS HTTP/1.1
Host: 192.168.4.11:9090
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 752
(0000755)
mohamed.kallel   
2017-08-09 11:15   
Your add obj function: wan_device_add_instances_wancxdev() should echo at the end the instance number of the new added object.

Please follow the example of add_wifi_iface() in the TR181 WiFi param: https://github.com/pivasoftware/easycwmp/blob/master/ext/openwrt/scripts/functions/tr181/wifi
(0000756)
andy_yang   
2017-08-09 11:26   
OK! thanks, I have solved my problem.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
272 [easycwmp] Help crash always 2017-07-14 08:29 2017-07-20 08:20
Reporter: muratk Platform:  
Assigned To: OS: Openwrt  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: sending http message failed: httpCode= 500
Description: As the easycwmp first time inform the openacs server that built with tomcat,the server response:
+++ RECEIVED HTTP RESPONSE (PART) +++
<html><head><title>Apache Tomcat/6.0.32 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade">

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.lang.NullPointerException

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.32 logs.

<HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.32</h3></body></html>
--- RECEIVED HTTP RESPONSE (PART) ---
850.88727 [../src/http.c:159] sending http message failed: httpCode= 500, res = 0
Tags:
Steps To Reproduce:
Additional Information: the easycwmp works fine with another Xasc server. And the openacs with tomcat works fine with other cwmp client. So I do not think there is problem on our easycwmp client or the openacs.(I cant get the log of the server) Is that possible there is something incompatible between client and server, such as http header.
Expecting your response, thanks a lot.
Attached Files:
Notes
(0000751)
mohamed.kallel   
2017-07-18 11:01   
it's openacs issue.
Open ACS return always 500 error for any new device registration! even for non easycwmp user agents
(0000753)
muratk   
2017-07-20 08:20   
I spent lots of time to compare the ok message from other ok client with the message from our easycwmp. Finally I find two key points to solve the code 500 problem.(code 500 alwasy means format error in the easycwmp case)
 Firstly, the version of tr069 in easycwmp shows in "xmlns:cwmp=urn:dslforum-org:cwmp-1-2", but the server just support "xmlns:cwmp=urn:dslforum-org:cwmp-1-0".For compatible, maybe it's better for you to change the version of tr069 to cwmp-1-0.
 Secondly, the soap envelop:
#define CWMP_INFORM_MESSAGE \
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>" \
  "<soap_env:Envelope " \
    "xmlns:soap_env=\"http://schemas.xmlsoap.org/soap/envelope/\" " \
    "xmlns:soap_enc=\"http://schemas.xmlsoap.org/soap/encoding/\" " \
    "xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" " \
    "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" "\
    "xmlns:cwmp=\"urn:dslforum-org:cwmp-1-0\">"
   ...
the server didn't support the line break(LF) in element. But I didn't find anywhere in the code add the LF after load with:
   mxml_node_t *tree = mxmlLoadString(NULL, CWMP_INFORM_MESSAGE,MXML_NO_CALLBACK);
I caught from the message was (add the (LF) for easy understand ):
  <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <soap_env:Envelope (LF)
xmlns:soap_env="http://schemas.xmlsoap.org/soap/envelope/" (LF)
xmlns:soap_enc="http://schemas.xmlsoap.org/soap/encoding/" (LF)
xmlns:xsd="http://www.w3.org/2001/XMLSchema"(LF)
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"(LF)
xmlns:cwmp="urn:dslforum-org:cwmp-1-0"> (LF)
...

I write a FUNC to solve this. Any advice about the root cause problem.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
263 [easycwmp] Question minor N/A 2017-06-19 23:30 2017-07-18 11:46
Reporter: neodark Platform:  
Assigned To: mohamed.kallel OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Can´t compile easycwmp
Description: Hi, I download latest release of easycwmp to make a package for openwrt, I download easycwmp-1.5.3.tar.gz and easycwmp-openwrt-1.5.3.tar.gz, unzip twice and try to make menuconfig but can´t compile and say not rules to compile. How I can compile it? Tried in Lubuntu 14.04
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000748)
Anis   
2017-06-20 16:39   
follow the manual of installation of EasyCwmp for other Linux distributions ( http://easycwmp.org/install.html )


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
243 [easycwmp] Help minor always 2017-06-06 08:53 2017-06-08 14:01
Reporter: sunnyjames99 Platform:  
Assigned To: mohamed.kallel OS: Ubuntu  
Priority: normal OS Version: 12.04  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: [easycwmp] NOTICE - LibCurl Error: The requested URL returned error: 500
Description: We are using Openacs and easycwmp1.5.3 for TR069 experiment. Install according to README file and did not show any errors.

But the error message is shown below:
--- SEND HTTP REQUEST ---
* About to connect() to 192.168.0.25 port 8080 (#0)
* Trying 192.168.0.25... * connected
> POST /openacs/acs HTTP/1.1
Host: 192.168.0.25:8080
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
Content-Length: 2825
Expect: 100-continue

< HTTP/1.1 100 Continue
* The requested URL returned error: 500
* Closing connection #0
2017-06-06 11:18:39 [easycwmp] NOTICE - LibCurl Error: The requested URL returned error: 500
2017-06-06 11:18:39 [easycwmp] NOTICE - sending http message failed
rpc_inform(218): sending Inform http message failed
2017-06-06 11:18:39 [easycwmp] NOTICE - sending Inform failed
2017-06-06 11:18:39 [easycwmp] NOTICE - external: execute apply service
2017-06-06 11:18:39 [easycwmp] NOTICE - external script exit
2017-06-06 11:18:39 [easycwmp] NOTICE - end session failed
2017-06-06 11:18:39 [easycwmp] NOTICE - retry session in 7 sec, RetryCount = 1
2017-06-06 11:18:46 [easycwmp] NOTICE - start session
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(50):: url: http://192.168.0.25:8080/openacs/acs
http_client_init(56):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
2017-06-06 11:18:46 [easycwmp] NOTICE - configured acs url http://192.168.0.25:8080/openacs/acs
2017-06-06 11:18:46 [easycwmp] NOTICE - external script init
2017-06-06 11:18:47 [easycwmp] NOTICE - external: execute inform parameter
2017-06-06 11:18:47 [easycwmp] NOTICE - send Inform

Please let us know that we have missed anything in the configuration.

thanks!!
Tags:
Steps To Reproduce:
Additional Information: 2017-06-06 11:18:38 [easycwmp] NOTICE - add event '0 BOOTSTRAP'
2017-06-06 11:18:38 [easycwmp] NOTICE - add event '1 BOOT'
2017-06-06 11:18:39 [easycwmp] NOTICE - external script init
config_init_local(55):: easycwmp.@local[0].interface=eth0
config_init_local(65):: easycwmp.@local[0].port=7547
config_init_local(83):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(71):: easycwmp.@local[0].username=easycwmp
config_init_local(77):: easycwmp.@local[0].password=easycwmp
config_init_local(94):: easycwmp.@local[0].logging_level=3
config_init_acs(159):: easycwmp.@acs[0].url=http://192.168.0.25:8080/openacs/acs
config_init_acs(165):: easycwmp.@acs[0].username=openacs
config_init_acs(171):: easycwmp.@acs[0].password=openacs
config_init_acs(177):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(183):: easycwmp.@acs[0].periodic_interval=180
config_init_acs(190):: easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z
2017-06-06 11:18:39 [easycwmp] NOTICE - init periodic inform: reference time = -62135625960, interval = 180
2017-06-06 11:18:39 [easycwmp] NOTICE - external: execute update_value_change
2017-06-06 11:18:39 [easycwmp] NOTICE - daemon started
2017-06-06 11:18:39 [easycwmp] NOTICE - external: execute inform device_id
2017-06-06 11:18:39 [easycwmp] NOTICE - external script exit
2017-06-06 11:18:39 [easycwmp] NOTICE - add event '1 BOOT'
2017-06-06 11:18:39 [easycwmp] NOTICE - interface eth0 has ip 192.168.0.25
Attached Files: Desktop.rar (46,723 bytes) 2017-06-06 08:53
https://support.easycwmp.org/file_download.php?file_id=106&type=bug
Notes
(0000738)
mohamed.kallel   
2017-06-06 10:22   
It's OpenACS issue.
OpenAcs does not accept directely a new equipment. A new equipment should make 3 to 5 retry tr-069 sessions and then it will works fine.
Please let the cwmp client continu the retry session. and you will see in the 5th retry the session works fine
(0000745)
sunnyjames99   
2017-06-07 03:18   
Hi, kallel

Is it right to change option logging_level '3' to option logging_level '5' in /etc/config/easycwmp ?

Best Regards
(0000746)
mohamed.kallel   
2017-06-07 10:22   
You can see all possible logging levels in the original uci config file of easycwmp:


# easycwmp uci configuration

config local
    option interface eth0
    option port 7547
    option ubus_socket /var/run/ubus.sock
    option date_format %FT%T%z
    option username easycwmp
    option password easycwmp
    option provisioning_code ''
#Logging levels: Critic=0, Warning=1, Notice=2, Info=3, Debug=4 <------------here
    option logging_level '3'

config acs
    option url http://192.168.1.110:8080/openacs/acs
    option username easycwmp
    option password easycwmp
    option parameter_key ''
    option periodic_enable '1'
    option periodic_interval '100'
    option periodic_time '0001-01-01T00:00:00Z'

config device
    option manufacturer easycwmp
    option oui FFFFFF
    option product_class easycwmp
    option serial_number FFFFFF123456
    option hardware_version example_hw_version
option software_version example_sw_version
(0000747)
sunnyjames99   
2017-06-08 03:46   
The current situation:
-----------------------------------------------------------------------------
--- SEND HTTP REQUEST ---
* About to connect() to 192.168.0.25 port 8080 (#0)
* Trying 192.168.0.25... * connected
> POST /openacs/acs HTTP/1.1
Host: 192.168.0.25:8080
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
Content-Length: 2925
Expect: 100-continue

< HTTP/1.1 100 Continue
* The requested URL returned error: 500
* Closing connection #0
2017-06-08 09:26:00 [easycwmp] NOTICE - LibCurl Error: The requested URL returned error: 500
2017-06-08 09:26:00 [easycwmp] NOTICE - sending http message failed
rpc_inform(218): sending Inform http message failed
2017-06-08 09:26:00 [easycwmp] NOTICE - sending Inform failed
2017-06-08 09:26:00 [easycwmp] NOTICE - external: execute apply service
2017-06-08 09:26:00 [easycwmp] NOTICE - external script exit
2017-06-08 09:26:00 [easycwmp] NOTICE - end session failed
2017-06-08 09:26:00 [easycwmp] NOTICE - retry session in 240 sec, RetryCount = 6
2017-06-08 09:27:00 [easycwmp] NOTICE - add event '2 PERIODIC'
2017-06-08 09:27:00 [easycwmp] NOTICE - start session
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(50):: url: http://192.168.0.25:8080/openacs/acs
http_client_init(56):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
2017-06-08 09:27:00 [easycwmp] NOTICE - configured acs url http://192.168.0.25:8080/openacs/acs
2017-06-08 09:27:00 [easycwmp] NOTICE - external script init
2017-06-08 09:27:00 [easycwmp] NOTICE - external: execute inform parameter
2017-06-08 09:27:00 [easycwmp] NOTICE - send Inform
+++ SEND HTTP REQUEST +++
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <soap_env:Envelope
xmlns:soap_env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soap_enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cwmp="urn:dslforum-org:cwmp-1-2">
  <soap_env:Header>
   <cwmp:ID soap_env:mustUnderstand="1">7</cwmp:ID>
  </soap_env:Header>
  <soap_env:Body>
   <cwmp:Inform>
    <DeviceId>
     <Manufacturer>easycwmp</Manufacturer>
     <OUI>FFFFFF</OUI>
     <ProductClass>easycwmp</ProductClass>
     <SerialNumber>FFFFFF123456</SerialNumber>
    </DeviceId>
    <Event soap_enc:arrayType="cwmp:EventStruct[3]">
     <EventStruct>
      <EventCode>0 BOOTSTRAP</EventCode>
      <CommandKey />
     </EventStruct>
     <EventStruct>
      <EventCode>1 BOOT</EventCode>
      <CommandKey />
     </EventStruct>
     <EventStruct>
      <EventCode>2 PERIODIC</EventCode>
      <CommandKey />
     </EventStruct>
    </Event>
    <MaxEnvelopes>1</MaxEnvelopes>
    <CurrentTime>2017-06-08T09:27:00+08:00</CurrentTime>
    <RetryCount>6</RetryCount>
    <ParameterList soap_enc:arrayType="cwmp:ParameterValueStruct[10]">
     <ParameterValueStruct>
      <Name>Device.DeviceInfo.SpecVersion</Name>
      <Value xsi:type="xsd:string">1.0</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.DeviceInfo.ProvisioningCode</Name>
      <Value xsi:type="xsd:string"></Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.DeviceInfo.Manufacturer</Name>
      <Value xsi:type="xsd:string">easycwmp</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.DeviceInfo.ManufacturerOUI</Name>
      <Value xsi:type="xsd:string">FFFFFF</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.DeviceInfo.ProductClass</Name>
      <Value xsi:type="xsd:string">easycwmp</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.DeviceInfo.SerialNumber</Name>
      <Value xsi:type="xsd:string">FFFFFF123456</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.DeviceInfo.HardwareVersion</Name>
      <Value xsi:type="xsd:string">example_hw_version</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.DeviceInfo.SoftwareVersion</Name>
      <Value xsi:type="xsd:string">example_sw_version</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.ManagementServer.ConnectionRequestURL</Name>
      <Value xsi:type="xsd:string">http://192.168.0.25:7547/</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.ManagementServer.ParameterKey</Name>
      <Value xsi:type="xsd:string">1</Value>
     </ParameterValueStruct>
    </ParameterList>
   </cwmp:Inform>
  </soap_env:Body>
 </soap_env:Envelope>
-----------------------------------------------------------------------------
We think it should be connected, but OpenACS still did not find CPE.
We will test again with GenieACS, thanks!


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
245 [easycwmp] Enhancement minor have not tried 2017-06-06 10:36 2017-06-06 10:36
Reporter: mohamed.kallel Platform:  
Assigned To: OS:  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Add parameters of Time.
Description: Add parameters of Time.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
239 [easycwmp] Enhancement minor have not tried 2017-06-04 15:31 2017-06-04 15:31
Reporter: mohamed.kallel Platform:  
Assigned To: OS:  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Add new params: Device.GatewayInfo.
Description: Add new params: Device.GatewayInfo.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
237 [easycwmp] Enhancement minor have not tried 2017-06-01 13:08 2017-06-01 13:08
Reporter: mohamed.kallel Platform:  
Assigned To: OS:  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Add new parameters: DeviceInfo.NetworkProperties.
Description: Add new parameters: DeviceInfo.NetworkProperties.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
207 [easycwmp] Bug minor always 2017-02-24 07:00 2017-06-01 11:52
Reporter: harshshah Platform: ARM  
Assigned To: mohamed.kallel OS: openwrt  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: unable to reproduce  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Single param GPV request from ACS results in GPV response with multiple params with same parent node
Description: Example:

ACS sends :

<cwmp:GetParameterValues>
   <ParameterNames SOAP-ENC:arrayType="xsd:string1">
      <string>InternetGatewayDevice.DeviceInfo.SoftwareVersion</string>
   </ParameterNames>
</cwmp:GetParameterValues>


Easycwmp returns :

<cwmp:GetParameterValuesResponse>
   <ParameterList soap_enc:arrayType="cwmp:ParameterValueStruct[10]">
      <ParameterValueStruct>
         <Name>InternetGatewayDevice.DeviceInfo.DeviceLog</Name>
         <Value xsi:type="xsd:string">abcabc</Value>
      </ParameterValueStruct>
      <ParameterValueStruct>
         <Name>InternetGatewayDevice.DeviceInfo.HardwareVersion</Name>
         <Value xsi:type="xsd:string">123123</Value>
      </ParameterValueStruct>
      <ParameterValueStruct>
         <Name>InternetGatewayDevice.DeviceInfo.Manufacturer</Name>
         <Value xsi:type="xsd:string">XYZ</Value>
      </ParameterValueStruct>
      <ParameterValueStruct>
         <Name>InternetGatewayDevice.DeviceInfo.ManufacturerOUI</Name>
         <Value xsi:type="xsd:string">abc123</Value>
      </ParameterValueStruct>
      <ParameterValueStruct>
         <Name>InternetGatewayDevice.DeviceInfo.ProductClass</Name>
         <Value xsi:type="xsd:string">Class123</Value>
      </ParameterValueStruct>
      <ParameterValueStruct>
         <Name>InternetGatewayDevice.DeviceInfo.ProvisioningCode</Name>
         <Value xsi:type="xsd:string"/>
      </ParameterValueStruct>
      <ParameterValueStruct>
         <Name>InternetGatewayDevice.DeviceInfo.SerialNumber</Name>
         <Value xsi:type="xsd:string">1234567890</Value>
      </ParameterValueStruct>
      <ParameterValueStruct>
         <Name>InternetGatewayDevice.DeviceInfo.SoftwareVersion</Name>
         <Value xsi:type="xsd:string">ver1.0</Value>
      </ParameterValueStruct>
      <ParameterValueStruct>
         <Name>InternetGatewayDevice.DeviceInfo.SpecVersion</Name>
         <Value xsi:type="xsd:string">1.0</Value>
      </ParameterValueStruct>
      <ParameterValueStruct>
         <Name>InternetGatewayDevice.DeviceInfo.UpTime</Name>
         <Value xsi:type="xsd:unsignedInt">3257</Value>
      </ParameterValueStruct>
   </ParameterList>
</cwmp:GetParameterValuesResponse>
Tags:
Steps To Reproduce: - Initiate GPV from ACS with single parameter
- Wait for response
Additional Information:
Attached Files:
Notes
(0000672)
harshshah   
2017-02-24 07:29   
Even using command line utility it returns multiple params :

# easycwmp get value InternetGatewayDevice.DeviceInfo.SoftwareVersion

{ "parameter": "InternetGatewayDevice.DeviceInfo.SpecVersion", "value": "1.0" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.ProvisioningCode", "value": "" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.Manufacturer", "value": "XYZ" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.ManufacturerOUI", "value": "abc123" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.ProductClass", "value": "Class123" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.SerialNumber", "value": "1234567890" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.HardwareVersion", "value": "123123" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.SoftwareVersion", "value": "ver1.0" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.UpTime", "value": "3257", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.DeviceLog", "value": "abcabc" }


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
210 [easycwmp] Bug minor have not tried 2017-03-22 18:28 2017-06-01 11:51
Reporter: mohamed.kallel Platform:  
Assigned To: mohamed.kallel OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: external_free_list_parameter() is missing in the set notification in xml.c
Description: external_free_list_parameter() is missing in the set notification in xml.c
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000730)
mohamed.kallel   
2017-06-01 11:51   
Delivered in EasyCwmp-1.5.3


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
211 [easycwmp] Bug minor have not tried 2017-03-24 10:06 2017-06-01 11:50
Reporter: mohamed.kallel Platform:  
Assigned To: mohamed.kallel OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Use UBUS_METHOD_NOARG instead of UBUS_METHOD for easycwmpd_handle_notify
Description: Use UBUS_METHOD_NOARG instead of UBUS_METHOD for easycwmpd_handle_notify
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000729)
mohamed.kallel   
2017-06-01 11:50   
Delivered in EasyCwmp-1.5.3


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
225 [easycwmp] Enhancement minor have not tried 2017-05-18 18:50 2017-06-01 11:50
Reporter: mohamed.kallel Platform:  
Assigned To: mohamed.kallel OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: get ip address should use also ubus command in the Device.IP. script
Description: get ip address should use also ubus command in the Device.IP. script

In cas that interface is configured as dhcp then the ip address will return empty value
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000728)
mohamed.kallel   
2017-06-01 11:50   
Delivered in EasyCwmp-1.5.3


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
226 [easycwmp] Bug minor have not tried 2017-05-19 11:23 2017-06-01 11:49
Reporter: mohamed.kallel Platform:  
Assigned To: mohamed.kallel OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Some functions are missing input arguments in the common script
Description: In the common script file: the following functions

common_get_notification_inparam_isobj_check_obj()
common_get_value_inparam_isobj_check_obj()

are missing input arguments
TODO: check other common and easycwmp.sh functions
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000727)
mohamed.kallel   
2017-06-01 11:49   
Delivered in EasyCwmp-1.5.3


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
233 [easycwmp] Enhancement minor have not tried 2017-05-30 17:03 2017-06-01 11:48
Reporter: Anis Platform:  
Assigned To: Anis OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: fix warning issues
Description: some warnings are displayed when building Easycwmp with the last version of OpenWrt SDK.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000726)
mohamed.kallel   
2017-06-01 11:48   
Delivered in EasyCwmp-1.5.3


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
227 [easycwmp] Enhancement minor have not tried 2017-05-19 11:27 2017-06-01 11:11
Reporter: mohamed.kallel Platform:  
Assigned To: mohamed.kallel OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Use ubus call uci commit to restart services in the script
Description: Use ubus call uci commit to restart services in the script
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000725)
mohamed.kallel   
2017-06-01 11:11   
Delivered in EasyCwmp-1.5.3


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
234 [easycwmp] Enhancement minor have not tried 2017-05-31 09:24 2017-06-01 11:10
Reporter: mohamed.kallel Platform:  
Assigned To: mohamed.kallel OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Enhancement of Fault handlers in EasyCwmp core
Description: Enhancement of Fault handlers in EasyCwmp core
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000724)
mohamed.kallel   
2017-06-01 11:10   
Delivered in EasyCwmp-1.5.3


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
222 [easycwmp] Enhancement minor have not tried 2017-05-18 10:01 2017-06-01 11:10
Reporter: mohamed.kallel Platform:  
Assigned To: mohamed.kallel OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: remove forced inform from IP, DHCPv4 and WiFi
Description: remove forced inform from IP, DHCPv4 and WiFi
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000723)
mohamed.kallel   
2017-06-01 11:10   
Delivered in EasyCwmp-1.5.3


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
235 [easycwmp] Enhancement minor have not tried 2017-06-01 09:34 2017-06-01 11:09
Reporter: mohamed.kallel Platform:  
Assigned To: mohamed.kallel OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: remove the tri of parameters when getting them from external pipe
Description: remove the tri of parameters when getting them from external pipe
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000722)
mohamed.kallel   
2017-06-01 11:09   
Delivered in EasyCwmp-1.5.3


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
182 [easycwmp] General block always 2016-11-22 12:04 2017-05-31 12:04
Reporter: dgr999 Platform: VM  
Assigned To: mohamed.kallel OS: Ubuntu Server 32 Bit  
Priority: high OS Version: 16.04.1 LTS  
Status: new Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: EasyCwmp configure: WARNING: unrecognized options: --enable-acs
Description: I get the following warning when running configure on EasyCwmp

configure: WARNING: unrecognized options: --enable-acs

Tags: This issue is still prevailing in the latest version. Though removing it from the configure command
Steps To Reproduce: Following instruction on page http://www.easycwmp.org/install.html

Using EasyCwmp version 1.4.1

Section 3
3. EasyCwmp install for other Linux distributions

Configure

./configure --enable-debug --enable-devel --enable-acs=multi --enable-jsonc=1
Additional Information: ./configure --enable-debug --enable-devel --enable-acs=multi --enable-jsonc=1
configure: WARNING: unrecognized options: --enable-acs
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking dependency style of gcc... (cached) gcc3
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBCURL... yes
checking for MICROXML... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for uint8_t... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating bin/Makefile
config.status: executing depfiles commands
configure: WARNING: unrecognized options: --enable-acs
Attached Files:
Notes
(0000574)
mohamed.kallel   
2016-11-22 23:06   
The "-enable-acs" is not valid any more in the latest versions of EasyCwmp.
We have to remove it from documentation (Install page and Readme)


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
231 [easycwmp] Bug block always 2017-05-25 11:58 2017-05-26 11:19
Reporter: andy_yang Platform: openwrt 15.0.1  
Assigned To: Anis OS: linux  
Priority: immediate OS Version: linux  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: easycwmpd console exit and CPE timeout when IPPingDiagnostics
Description: I have rewrite the srcipt ipping_diagnostic and ipping_launch for my CPE test on the HuaWei's ITMS(ACS).I meet a probrom that easycwmpd console exit and CPE timeout when IPPingDiagnostics.
After the ACS save parameters sucess, that is, the ACS receive the SetParameterValuesResponse from the CPE.
then ,the ACS will read the result of ping Diagnostics immediately once.
Tags:
Steps To Reproduce: 1. set parameter DiagnosticsState is Requested, and host is 192.168.20.99
2. apply and check console.
3. the console printf "User defined signal 1" and then the CPE offline.
Additional Information: +++ RECEIVED HTTP RESPONSE +++
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><SOAP-ENV:Header><cwmp:ID SOAP-ENV:mustUnderstand="1">-15239</cwmp:ID></SOAP-ENV:Header><SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><cwmp:SetParameterValues><ParameterList SOAP-ENC:arrayType="cwmp:ParameterValueStruct[2]"><ParameterValueStruct xsi:type="cwmp:ParameterValueStruct"><Name xsi:type="xsd:string">InternetGatewayDevice.IPPingDiagnostics.Host</Name><Value xsi:type="xsd:string">192.168.20.99</Value></ParameterValueStruct><ParameterValueStruct xsi:type="cwmp:ParameterValueStruct"><Name xsi:type="xsd:string">InternetGatewayDevice.IPPingDiagnostics.DiagnosticsState</Name><Value xsi:type="xsd:string">Requested</Value></ParameterValueStruct></ParameterList><ParameterKey xsi:type="xsd:string"></ParameterKey></cwmp:SetParameterValues></SOAP-ENV:Body></SOAP-ENV:Envelope>
--- RECEIVED HTTP RESPONSE ---
2017-05-25 17:46:42 [easycwmp] NOTICE - received SetParameterValues method from the ACS
2017-05-25 17:46:42 [easycwmp] NOTICE - external: execute set value InternetGatewayDevice.IPPingDiagnostics.Host 192.168.20.99
2017-05-25 17:46:42 [easycwmp] NOTICE - external: execute set value InternetGatewayDevice.IPPingDiagnostics.DiagnosticsState Requested
2017-05-25 17:46:42 [easycwmp] NOTICE - external: execute apply value
2017-05-25 17:46:43 [easycwmp] NOTICE - send SetParameterValuesResponse to the ACS
+++ SEND HTTP REQUEST +++
<soap_env:Envelope
xmlns:soap_env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soap_enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
 <soap_env:Header>
  <cwmp:ID soap_env:mustUnderstand="1">-15239</cwmp:ID>
 </soap_env:Header>
 <soap_env:Body>
  <cwmp:SetParameterValuesResponse>
   <Status>1</Status>
  </cwmp:SetParameterValuesResponse>
 </soap_env:Body>
</soap_env:Envelope>
--- SEND HTTP REQUEST ---
> POST /ACS-server/ACS HTTP/1.1
Host: 192.168.4.11:9090
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 522

< HTTP/1.1 200 OK
< Content-Type: text/xml; charset="utf-8"
< Content-Length: 1704
<
+++ RECEIVED HTTP RESPONSE +++
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><SOAP-ENV:Header><cwmp:ID SOAP-ENV:mustUnderstand="1">-15240</cwmp:ID></SOAP-ENV:Header><SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><cwmp:GetParameterValues><ParameterNames SOAP-ENC:arrayType="xsd:string[12]"><string xsi:type="xsd:string">InternetGatewayDevice.IPPingDiagnostics.AverageResponseTime</string><string xsi:type="xsd:string">InternetGatewayDevice.IPPingDiagnostics.DSCP</string><string xsi:type="xsd:string">InternetGatewayDevice.IPPingDiagnostics.DataBlockSize</string><string xsi:type="xsd:string">InternetGatewayDevice.IPPingDiagnostics.DiagnosticsState</string><string xsi:type="xsd:string">InternetGatewayDevice.IPPingDiagnostics.FailureCount</string><string xsi:type="xsd:string">InternetGatewayDevice.IPPingDiagnostics.Host</string><string xsi:type="xsd:string">InternetGatewayDevice.IPPingDiagnostics.Interface</string><string xsi:type="xsd:string">InternetGatewayDevice.IPPingDiagnostics.MaximumResponseTime</string><string xsi:type="xsd:string">InternetGatewayDevice.IPPingDiagnostics.MinimumResponseTime</string><string xsi:type="xsd:string">InternetGatewayDevice.IPPingDiagnostics.NumberOfRepetitions</string><string xsi:type="xsd:string">InternetGatewayDevice.IPPingDiagnostics.SuccessCount</string><string xsi:type="xsd:string">InternetGatewayDevice.IPPingDiagnostics.Timeout</string></ParameterNames></cwmp:GetParameterValues></SOAP-ENV:Body></SOAP-ENV:Envelope>
--- RECEIVED HTTP RESPONSE ---
2017-05-25 17:46:43 [easycwmp] NOTICE - received GetParameterValues method from the ACS
2017-05-25 17:46:43 [easycwmp] NOTICE - external: execute get value InternetGatewayDevice.IPPingDiagnostics.AverageResponseTime
2017-05-25 17:46:43 [easycwmp] NOTICE - external: execute get value InternetGatewayDevice.IPPingDiagnostics.DSCP
2017-05-25 17:46:43 [easycwmp] NOTICE - external: execute get value InternetGatewayDevice.IPPingDiagnostics.DataBlockSize
2017-05-25 17:46:43 [easycwmp] NOTICE - external: execute get value InternetGatewayDevice.IPPingDiagnostics.DiagnosticsState
2017-05-25 17:46:43 [easycwmp] NOTICE - external: execute get value InternetGatewayDevice.IPPingDiagnostics.FailureCount
2017-05-25 17:46:43 [easycwmp] NOTICE - external: execute get value InternetGatewayDevice.IPPingDiagnostics.Host
2017-05-25 17:46:43 [easycwmp] NOTICE - external: execute get value InternetGatewayDevice.IPPingDiagnostics.Interface
2017-05-25 17:46:43 [easycwmp] NOTICE - external: execute get value InternetGatewayDevice.IPPingDiagnostics.MaximumResponseTime
2017-05-25 17:46:43 [easycwmp] NOTICE - external: execute get value InternetGatewayDevice.IPPingDiagnostics.MinimumResponseTime
2017-05-25 17:46:43 [easycwmp] NOTICE - external: execute get value InternetGatewayDevice.IPPingDiagnostics.NumberOfRepetitions
2017-05-25 17:46:43 [easycwmp] NOTICE - external: execute get value InternetGatewayDevice.IPPingDiagnostics.SuccessCount
2017-05-25 17:46:43 [easycwmp] NOTICE - external: execute get value InternetGatewayDevice.IPPingDiagnostics.Timeout
User defined signal 1
Attached Files: Test_log.rar (170,323 bytes) 2017-05-25 11:58
https://support.easycwmp.org/file_download.php?file_id=105&type=bug
Notes
(0000710)
andy_yang   
2017-05-25 11:59   
more debug and log information, please refer to attachment (Test_log.rar).
Thanks!
(0000711)
andy_yang   
2017-05-25 12:07   
I analyse that easycwmpd console exit and CPE timeout and offline is because that my easycwmp funcition.

int external_init()
{
    log_message(NAME, L_NOTICE, "external script init\n");
    if (pipe(pfds_out) < 0)
            return -1;
    if (pipe(pfds_in) < 0)
            return -1;
    if ((pid = fork()) == -1) {
        log_message(NAME, L_CRIT, "external init fork failed\n");
        return -1;
    }

    if (pid == 0) {
        /* child */
        close(pfds_out[0]);
        dup2(pfds_out[1], STDOUT_FILENO);
        close(pfds_out[1]);

        close(pfds_in[1]);
        dup2(pfds_in[0], STDIN_FILENO);
        close(pfds_in[0]);

        int i=0;
        const char *argv[4];
        argv[i++] = fc_script;
        argv[i++] = "--json-input";
        argv[i++] = NULL;

        execvp(argv[0], (char **) argv);
        exit(ESRCH);
    } else if (pid < 0)
        return -1;


    close(pfds_out[1]);
    close(pfds_in[0]);

    if (signal(SIGPIPE, SIG_IGN) == SIG_ERR)
        log_message(NAME, L_CRIT, "ignoring pipe signal failed\n");

    int r = external_read_pipe(NULL);
    return r;
}
The function don't the sigal SIGHUP to handle. your idea? I'm urgent to know your analysis and solution,.
thanks!
(0000717)
andy_yang   
2017-05-26 02:57   
I add following code to capture the sigal SIGUSR1 in the external_init function.
......
   if (signal(SIGUSR1, SIG_IGN) == SIG_ERR)
    log_message(NAME, L_CRIT, "ignoring pipe signal failed\n");
......
 
The problem is fixed. Oh, it's my lucky!


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
230 [easycwmp] Question major always 2017-05-24 13:16 2017-05-26 11:18
Reporter: magesh Platform: Linux  
Assigned To: Anis OS: Ubuntu  
Priority: high OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: rpc_inform(218): sending Inform http message failed
Description: Hi,

I am trying to make easycwmp to communicate with genieACS. I am running both GenieACS and Easycwmp on aws.

GenieACS is up and running fine. able to access gui using http://<IP>:3000

In both the EC2 instances we made it to allow all traffic.

How to identify the ACS URL from genieACS. So that i can provide in the easycwmp uci configuration.
config acs
option url http://54.210.130.183:7547/openacs/acs ==> Not sure about the path (/openacs/acs) in the URL. Until port is fine.

Tags:
Steps To Reproduce:
Additional Information:         
ubuntu@ip-172-31-30-69:/opt/genieacs$ wget http://easycwmp:easycwmp@172.31.13.243:7547/
--2017-05-24 09:18:46-- http://easycwmp:*password*@172.31.13.243:7547/
Connecting to 172.31.13.243:7547... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Authentication selected: Digest realm="realm@easycwmp",qop="auth",nonce="8b7f84c035c82c9f6b48d07ea541596600068aa3",opaque="328458fab28345ae87ab3210a8513b14eff452a2"
Connecting to 172.31.13.243:7547... connected.
HTTP request sent, awaiting response... 200 OK
Length: 0
index.html: Permission denied

Cannot write to ‘index.html’ (Success).

        
        
# easycwmp uci configuration

config local
        option interface eth0
        option port 7547
        option ubus_socket /var/run/ubus.sock
        option date_format %FT%T%z
        option username easycwmp
        option password easycwmp
        option provisioning_code ''
#Logging levels: Critic=0, Warning=1, Notice=2, Info=3, Debug=4
        option logging_level '0'

config acs
        option url http://54.210.130.183:7547/openacs/acs ==> Not sure about this URL.
        option username easycwmp
        option password easycwmp
        option parameter_key ''
        option periodic_enable '1'
        option periodic_interval '100'
        option periodic_time '0001-01-01T00:00:00Z'

config device
        option manufacturer easycwmp
        option oui FFFFFF
        option product_class easycwmp
        option serial_number FFFFFF123456
        option hardware_version example_hw_version
        option software_version example_sw_version






================================== ACS client tr069 ===================================
ubuntu@ip-172-31-13-243:~$ sudo easycwmpd -f
2017-05-24 09:49:43 [easycwmp] NOTICE - add event '0 BOOTSTRAP'
2017-05-24 09:49:43 [easycwmp] NOTICE - add event '2 PERIODIC'
2017-05-24 09:49:43 [easycwmp] NOTICE - external script init
config_init_local(55):: easycwmp.@local[0].interface=eth0
config_init_local(65):: easycwmp.@local[0].port=7547
config_init_local(83):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(71):: easycwmp.@local[0].username=easycwmp
config_init_local(77):: easycwmp.@local[0].password=easycwmp
config_init_local(94):: easycwmp.@local[0].logging_level=0
config_init_acs(159):: easycwmp.@acs[0].url=http://54.210.130.183:7547/openacs/acs
config_init_acs(165):: easycwmp.@acs[0].username=easycwmp
config_init_acs(171):: easycwmp.@acs[0].password=easycwmp
config_init_acs(177):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(183):: easycwmp.@acs[0].periodic_interval=100
config_init_acs(190):: easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z
main(320): ubus initialization failed
+++ HTTP SERVER CONFIGURATION +++
ip: '172.31.13.243'
port: '7547'
--- HTTP SERVER CONFIGURATION ---
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(50):: url: http://54.210.130.183:7547/openacs/acs
http_client_init(56):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
+++ SEND HTTP REQUEST +++
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <soap_env:Envelope
xmlns:soap_env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soap_enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cwmp="urn:dslforum-org:cwmp-1-2">
  <soap_env:Header>
   <cwmp:ID soap_env:mustUnderstand="1">1</cwmp:ID>
  </soap_env:Header>
  <soap_env:Body>
   <cwmp:Inform>
    <DeviceId>
     <Manufacturer>easycwmp</Manufacturer>
     <OUI>FFFFFF</OUI>
     <ProductClass>easycwmp</ProductClass>
     <SerialNumber>FFFFFF123456</SerialNumber>
    </DeviceId>
    <Event soap_enc:arrayType="cwmp:EventStruct[2]">
     <EventStruct>
      <EventCode>0 BOOTSTRAP</EventCode>
      <CommandKey />
     </EventStruct>
     <EventStruct>
      <EventCode>2 PERIODIC</EventCode>
      <CommandKey />
     </EventStruct>
    </Event>
    <MaxEnvelopes>1</MaxEnvelopes>
    <CurrentTime>2017-05-24T09:49:43+00:00</CurrentTime>
    <RetryCount>0</RetryCount>
    <ParameterList soap_enc:arrayType="cwmp:ParameterValueStruct[10]">
     <ParameterValueStruct>
      <Name>Device.DeviceInfo.HardwareVersion</Name>
      <Value xsi:type="xsd:string">example_hw_version</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.DeviceInfo.Manufacturer</Name>
      <Value xsi:type="xsd:string">easycwmp</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.DeviceInfo.ManufacturerOUI</Name>
      <Value xsi:type="xsd:string">FFFFFF</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.DeviceInfo.ProductClass</Name>
      <Value xsi:type="xsd:string">easycwmp</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.DeviceInfo.ProvisioningCode</Name>
      <Value xsi:type="xsd:string"></Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.DeviceInfo.SerialNumber</Name>
      <Value xsi:type="xsd:string">FFFFFF123456</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.DeviceInfo.SoftwareVersion</Name>
      <Value xsi:type="xsd:string">example_sw_version</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.DeviceInfo.SpecVersion</Name>
      <Value xsi:type="xsd:string">1.0</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.ManagementServer.ConnectionRequestURL</Name>
      <Value xsi:type="xsd:string">http://172.31.13.243:7547/</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.ManagementServer.ParameterKey</Name>
      <Value xsi:type="xsd:string"></Value>
     </ParameterValueStruct>
    </ParameterList>
   </cwmp:Inform>
  </soap_env:Body>
 </soap_env:Envelope>
--- SEND HTTP REQUEST ---
* Trying 54.210.130.183...
* Connection timed out after 30001 milliseconds
* Closing connection 0
rpc_inform(218): sending Inform http message failed
Attached Files: acspackDump.pcap (2,524 bytes) 2017-05-25 11:34
https://support.easycwmp.org/file_download.php?file_id=104&type=bug
Notes
(0000708)
Anis   
2017-05-25 11:01   
use this ACS url :


option url 'http://54.210.130.183:7547/genieacs'
(0000709)
magesh   
2017-05-25 11:39   
(Last edited: 2017-05-25 11:40)
Thanks Anis for the quick reply.

in the easycwmp config file have changed the acs url
http_client_init(50):: url: http://54.210.130.183:7547/genieacs

Still the same connection timed out. But i see the packets on 7547 port eth0 interface on genieacs ec2 instance. Attached the pcap file for your reference.

configured the logging level to 0 in the option logging_level '0'

where can we see the log file as to why connection is getting timed out?


can you help?

(0000712)
Anis   
2017-05-25 12:20   
to increase the timeout of the connexion.

you have to change the CURLOPT_TIMEOUT value in http.c

curl_easy_setopt(curl, CURLOPT_TIMEOUT, 30) ==> change it to 60

and then retest
(0000714)
Anis   
2017-05-25 14:43   
(Last edited: 2017-05-25 18:26)
I make a test with value of timeout 120 and is the same issue

tested with curl command
curl -vv --connect-timeout 120 http://54.210.130.183:7547/genieacs
* Hostname was NOT found in DNS cache
* Trying 54.210.130.183...
* Connection timed out after 120000 milliseconds
* Closing connection 0
curl: (28) Connection timed out after 120000 milliseconds

try to see the log of genieacs-cwmp and check if it receive request on port 7547

BTW, The test with our genieacs is OK :
curl -vv --connect-timeout 5 http://192.168.1.44:7547/genieacs
* Hostname was NOT found in DNS cache
* Trying 192.168.1.44...
* Connected to 192.168.1.44 (192.168.1.44) port 7547 (#0)
> GET /genieacs HTTP/1.1
> User-Agent: curl/7.35.0
> Host: 192.168.1.44:7547
> Accept: */*
>

(0000715)
magesh   
2017-05-25 19:08   
Thanks Anis.

i will look into genieacs logs for more information.

Following are observations:

1. Tried curl from client machine. CURL cmd failed with both public and private ip of ACS.
ubuntu@ip-172-31-13-243:/opt/dev/easycwmp $ curl -vv --connect-timeout 50 http://54.210.130.183:7547/
* Trying 54.210.130.183...
* Connection timed out after 50001 milliseconds
* Closing connection 0
curl: (28) Connection timed out after 50001 milliseconds

2. Tried curl from ACS machine with PUBLIC IP
a. ubuntu@ip-172-31-30-69: /opt/genieacs $ curl -vv --connect-timeout 50 http://54.210.130.183:7547/
* Trying 54.210.130.183...
* Connection timed out after 50001 milliseconds
* Closing connection 0
curl: (28) Connection timed out after 50001 milliseconds

3. Tried curl from ACS machine with PRIVATE IP
ubuntu@ip-172-31-30-69:/opt/genieacs$ curl -vv --connect-timeout 30 http://172.31.30.69:7547/
* Trying 172.31.30.69...
* Connected to 172.31.30.69 (172.31.30.69) port 7547 (#0)
> GET / HTTP/1.1
> Host: 172.31.30.69:7547
> User-Agent: curl/7.47.0
> Accept: */*
>
< HTTP/1.1 405 Method Not Allowed
< Allow: POST
< Date: Thu, 25 May 2017 16:25:06 GMT
< Connection: keep-alive
< Transfer-Encoding: chunked
<
* Connection #0 to host 172.31.30.69 left intact
405 Method Not Allowed
(0000716)
Anis   
2017-05-25 19:33   
No, for the private ip @ is OK no timeout error is displayed you can try to connect easycwmp with this private ip, it should works with it.
(0000719)
magesh   
2017-05-26 11:10   
Thanks Anis for all the support.

The issue got resolved. The problem was not in easycwmp/genieACS.

Cause for the Issue:-
----------------------
iptables rules.

we were flushing the rules from AWS console(security group) which did not reflect in the ec2 instance.

Directly logged into ec2 and flushed all the rules in ACS side and now i am able to get the INFORM response.
(0000720)
Anis   
2017-05-26 11:17   
good to see that the issue is fixed.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
229 [easycwmp] Bug block always 2017-05-22 11:35 2017-05-25 10:43
Reporter: andy_yang Platform: openwrt15  
Assigned To: Anis OS: linux  
Priority: immediate OS Version: linux  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: system reboot constantly by running command "easycwmpd start" or "easycwmpd boot"
Description: run easycwmpd program in the openwrt15, the console don't have log message,and the CPE reboot constantly.
Tags:
Steps To Reproduce: 1. I have install easycwmp-openwrt-1.5.2.tar.gz by Official manual
2. run easycwmp by following command
root@Openwrt:/usr/sbin# easycwmpd start
root@Openwrt:/usr/sbin#
root@Openwrt:/usr/sbin#

3.another console ,we can see the easycwmpd process status of the CPE:

root@Openwrt:~# ps | grep easycwmp
 3400 root 1920 S /usr/sbin/easycwmpd -f --boot
 3655 root 1556 S {easycwmp} /bin/sh /usr/sbin/easycwmp --json-input
 3863 root 1348 S grep easycwmp
root@Openwrt:~# ps | grep easycwmp
root@Openwrt:~# ps | grep easycwmp
 3917 root 1348 S grep easycwmp
root@Openwrt:~#

4. for a few seconds, we find the CPE reboot constantly
root@EBANG:/usr/sbin# [ 137.230000] save exit: isCheckpointed 1
[ 138.790000] br-lan: port 1(eth1.1) entering disabled state
[ 138.790000] device eth1.1 left promiscuous mode
[ 138.800000] device eth1 left promiscuous mode
[ 138.800000] br-lan: port 1(eth1.1) entering disabled state
[ 138.820000] ADDRCONF(NETDEV_UP): eth1.1: link is not ready
[ 139.930000]
[ 139.930000] mv_eth_txq_cpu_clean: port=0, txp=0, txq=0, mode=CPU
[ 139.930000] Free 0 buffers: from desc=1507 to desc=1507, tx_count=0
[ 139.940000] eth1: stopped
[ 141.270000] save exit: isCheckpointed 1
[ 141.290000] save exit: isCheckpointed 1
[ 141.310000] save exit: isCheckpointed 1
[ 144.360000] Shutting Down Marvell Ethernet Driver
[ 144.360000] Restarting system.
[ 144.360000] Reseting !!

BootROM 1.34
Booting from NAND flash
BootROM: Image checksum verification PASSED
.....
.....
Additional Information: please refer to attatchment.
The console_1 and console_2 is the same CPE meanwhile.
Attached Files: console.rar (78,482 bytes) 2017-05-22 11:35
https://support.easycwmp.org/file_download.php?file_id=103&type=bug
Notes
(0000700)
mohamed.kallel   
2017-05-23 19:16   
Please check you acs, may be your acs is sending reboot method to the easycwmp
(0000701)
mohamed.kallel   
2017-05-23 19:16   
You can see the log of easycwmp with logread command
(0000702)
andy_yang   
2017-05-24 04:45   
The console log stop at entering main loop, can you give me the conclustion?
root@EBANG:~# easycwmpd boot
2017-05-24 10:46:32 [easycwmp] NOTICE - external script init
config_init_local(55):: easycwmp.@local[0].interface=eth1.4093
config_init_local(65):: easycwmp.@local[0].port=7547
config_init_local(83):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(94):: easycwmp.@local[0].logging_level=3
config_init_local(71):: easycwmp.@local[0].username=rms61391322
config_init_local(77):: easycwmp.@local[0].password=rms37117846
config_init_acs(159):: easycwmp.@acs[0].url=http://192.168.4.11:9090/ACS-server/ACS
config_init_acs(177):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(183):: easycwmp.@acs[0].periodic_interval=100
config_init_acs(190):: easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z
config_init_acs(165):: easycwmp.@acs[0].username=cpe12693157
config_init_acs(171):: easycwmp.@acs[0].password=cpe69156167
2017-05-24 10:46:32 [easycwmp] NOTICE - init periodic inform: reference time = n/a, interval = 100
2017-05-24 10:46:32 [easycwmp] NOTICE - external: execute update_value_change
2017-05-24 10:46:32 [easycwmp] NOTICE - daemon started
2017-05-24 10:46:32 [easycwmp] NOTICE - external: execute inform device_id
2017-05-24 10:46:32 [easycwmp] NOTICE - external script exit
2017-05-24 10:46:32 [easycwmp] NOTICE - interface eth1.4093 has ip 192.168.20.99
+++ HTTP SERVER CONFIGURATION +++
ip: '192.168.20.99'
port: '7547'
--- HTTP SERVER CONFIGURATION ---
2017-05-24 10:46:32 [easycwmp] NOTICE - http server initialized
root@EBANG:~# 2017-05-24 10:46:32 [easycwmp] NOTICE - entering main loop
(0000703)
andy_yang   
2017-05-24 04:48   
By the way, I don't know why the ACS send reboot method? I have use the ACS to test other CPE running other tr069 program, the CPE don't receive the reboot method from ACS.
(0000704)
andy_yang   
2017-05-24 05:57   
I have find the key of the problem.
I use the two acs, the one URL is http://192.168.4.11:9090/ACS-server/ACS.
Another is http://192.168.20.36:80/acs. The former URL is not OK. I think the reasion it the special character "-" in the path of ACS-server/ACS.
so, your idea? can you help me check the code together?
(0000705)
andy_yang   
2017-05-24 06:00   
It seems that the special character "-" in the path of /ACS-server/ACS cause above reboot method from acs or other strange issue.
(0000706)
Anis   
2017-05-24 12:27   
if the ACS url is wrong the easycwmp can not connect to the ACS server and could not be the cause of reboot.
if you want to be sure if the reboot is caused by ACS or not, you have see the traffic between Easycwmp and your ACS.

maybe it is hardware watchdog which causes this issue.

check the log of dmesg command before reboot !
(0000707)
andy_yang   
2017-05-25 02:51   
Thanks, the reboot is caused by ACS. I have restore my acs's environment


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
217 [easycwmp] Help block always 2017-04-24 03:33 2017-04-27 10:17
Reporter: andy_yang Platform: openwrt15  
Assigned To: mohamed.kallel OS: openwrt  
Priority: urgent OS Version: openwrt 15  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: The easycwmpd process sends a [FIN,ACK] packet to disconnect with acs after sending post request
Description: My CPE ip is 192.168.20.99
My ITMS(ACS) ip is 192.168.4.11
CPE and ACS have established the TCP connection successfully by three TCP handshake protocols. Then,we meet a issue:
The easycwmpd process sends a [FIN,ACK] packet to disconnect with acs after sending post request.
Please refer to log and captured packet file.
Tags:
Steps To Reproduce: 1.config interface and acs url is
    option interface 'eth1.4093'
    option url 'http://192.168.4.11:9090/ACS-server/ACS'
2.start easycwmpd process
    easycwmpd -f
3. Capture packet to analysis
    

   
Additional Information: log message is following:
root@OpenWrt:~# easycwmpd -f
2017-04-24 09:20:10 [easycwmp] NOTICE - add event '0 BOOTSTRAP'
2017-04-24 09:20:10 [easycwmp] NOTICE - external script init
config_init_local(55):: easycwmp.@local[0].interface=eth1.4093
config_init_local(65):: easycwmp.@local[0].port=7547
config_init_local(83):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(94):: easycwmp.@local[0].logging_level=3
config_init_acs(159):: easycwmp.@acs[0].url=http://192.168.4.11:9090/ACS-server/ACS
config_init_acs(177):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(190):: easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z
config_init_acs(183):: easycwmp.@acs[0].periodic_interval=1800
2017-04-24 09:20:10 [easycwmp] NOTICE - init periodic inform: reference time = n/a, interval = 1800
2017-04-24 09:20:10 [easycwmp] NOTICE - external: execute update_value_change
2017-04-24 09:20:14 [easycwmp] NOTICE - daemon started
2017-04-24 09:20:14 [easycwmp] NOTICE - external: execute inform device_id
2017-04-24 09:20:14 [easycwmp] NOTICE - external script exit
2017-04-24 09:20:14 [easycwmp] NOTICE - interface eth1.4093 has ip 192.168.20.99
+++ HTTP SERVER CONFIGURATION +++
ip: '192.168.20.99'
port: '7547'
--- HTTP SERVER CONFIGURATION ---
2017-04-24 09:20:14 [easycwmp] NOTICE - http server initialized
2017-04-24 09:20:14 [easycwmp] NOTICE - entering main loop
2017-04-24 09:20:14 [easycwmp] NOTICE - start session
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(50):: url: http://192.168.4.11:9090/ACS-server/ACS
http_client_init(56):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
2017-04-24 09:20:14 [easycwmp] NOTICE - configured acs url http://192.168.4.11:9090/ACS-server/ACS
2017-04-24 09:20:14 [easycwmp] NOTICE - external script init
2017-04-24 09:20:14 [easycwmp] NOTICE - external: execute inform parameter
2017-04-24 09:20:16 [easycwmp] NOTICE - send Inform
+++ SEND HTTP REQUEST +++
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <soap_env:Envelope
xmlns:soap_env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soap_enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cwmp="urn:dslforum-org:cwmp-1-2">
  <soap_env:Header>
   <cwmp:ID soap_env:mustUnderstand="1">1</cwmp:ID>
  </soap_env:Header>
  <soap_env:Body>
   <cwmp:Inform>
    <DeviceId>
     <Manufacturer>EBANG</Manufacturer>
     <OUI>8CC7D0</OUI>
     <ProductClass>EB-MIG-1800ZG</ProductClass>
     <SerialNumber>83170311002Y00002</SerialNumber>
    </DeviceId>
    <Event soap_enc:arrayType="cwmp:EventStruct[1]">
     <EventStruct>
      <EventCode>0 BOOTSTRAP</EventCode>
      <CommandKey />
     </EventStruct>
    </Event>
    <MaxEnvelopes>1</MaxEnvelopes>
    <CurrentTime>2017-04-24T09:20:14+00:00</CurrentTime>
    <RetryCount>0</RetryCount>
    <ParameterList soap_enc:arrayType="cwmp:ParameterValueStruct[10]">
     <ParameterValueStruct>
      <Name>Device.DeviceInfo.HardwareVersion</Name>
      <Value xsi:type="xsd:string">10</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.DeviceInfo.Manufacturer</Name>
      <Value xsi:type="xsd:string">EBANG</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.DeviceInfo.ManufacturerOUI</Name>
      <Value xsi:type="xsd:string">8CC7D0</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.DeviceInfo.ProductClass</Name>
      <Value xsi:type="xsd:string">EB-MIG-1800ZG</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.DeviceInfo.ProvisioningCode</Name>
      <Value xsi:type="xsd:string"></Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.DeviceInfo.SerialNumber</Name>
      <Value xsi:type="xsd:string">83170311002Y00002</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.DeviceInfo.SoftwareVersion</Name>
      <Value xsi:type="xsd:string">soft_V1.0</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.DeviceInfo.SpecVersion</Name>
      <Value xsi:type="xsd:string">1.0</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.ManagementServer.ConnectionRequestURL</Name>
      <Value xsi:type="xsd:string">http://192.168.20.99:7547/</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>Device.ManagementServer.ParameterKey</Name>
      <Value xsi:type="xsd:string">unsetCommandKey</Value>
     </ParameterValueStruct>
    </ParameterList>
   </cwmp:Inform>
  </soap_env:Body>
 </soap_env:Envelope>
--- SEND HTTP REQUEST ---
> POST /ACS-server/ACS HTTP/1.1
Host: 192.168.4.11:9090
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 2733
Expect: 100-continue

* Operation timed out after 30008 milliseconds with 0 bytes received
2017-04-24 09:20:46 [easycwmp] NOTICE - LibCurl Error: Operation timed out after 30008 milliseconds with 0 bytes received
2017-04-24 09:20:46 [easycwmp] NOTICE - sending http message failed
rpc_inform(218): sending Inform http message failed
2017-04-24 09:20:46 [easycwmp] NOTICE - sending Inform failed
2017-04-24 09:20:46 [easycwmp] NOTICE - external: execute apply service
2017-04-24 09:20:46 [easycwmp] NOTICE - external script exit
2017-04-24 09:20:46 [easycwmp] NOTICE - end session failed
2017-04-24 09:20:46 [easycwmp] NOTICE - retry session in 7 sec, RetryCount = 1
^C2017-04-24 09:20:50 [easycwmp] NOTICE - exiting
Attached Files: cpe_connect_error.pcap (3,935 bytes) 2017-04-24 03:33
https://support.easycwmp.org/file_download.php?file_id=99&type=bug
another_CPE_ok_con.pcap (9,377 bytes) 2017-04-24 03:54
https://support.easycwmp.org/file_download.php?file_id=100&type=bug
disable_http_100.pcap (3,421 bytes) 2017-04-25 03:09
https://support.easycwmp.org/file_download.php?file_id=101&type=bug
Notes
(0000690)
andy_yang   
2017-04-24 03:54   
I use other CPE device with tr069, that can connect with the ITMS(ACS) of HUAWEI.
please refer to captured packet file(another_CPE_ok_con.pcap).

Another CPE device ip is 192.168.20.12
ITMS(ACS) ip addr is 192.168.4.11
(0000691)
andy_yang   
2017-04-24 10:49   
I analysis that the Easycwmp send the post packet with SOAP not supported by my acs or the HTTP packet format envelope error?
(0000692)
andy_yang   
2017-04-24 10:49   
what's your viewpoint?
(0000693)
mohamed.kallel   
2017-04-24 13:22   
try to set the "http100continue_disable" option to 1 in your easycwmp config

uci set easycwmp.@acs[0].http100continue_disable=1
uci commit
(0000694)
andy_yang   
2017-04-25 03:08   
I have try this method,but it's still not OK!!
please refer to packet file disable_http_100.pcap.
(0000695)
andy_yang   
2017-04-25 03:08   
the log is the same as above.
....
....
--- SEND HTTP REQUEST ---
> POST /ACS-server/ACS HTTP/1.1
Host: 192.168.4.11:9090
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 2733

* Operation timed out after 30004 milliseconds with 0 bytes received
2017-04-25 09:06:59 [easycwmp] NOTICE - LibCurl Error: Operation timed out after 30004 milliseconds with 0 bytes received
2017-04-25 09:06:59 [easycwmp] NOTICE - sending http message failed
rpc_inform(218): sending Inform http message failed
2017-04-25 09:06:59 [easycwmp] NOTICE - sending Inform failed
2017-04-25 09:06:59 [easycwmp] NOTICE - external: execute apply service
2017-04-25 09:06:59 [easycwmp] NOTICE - external script exit
2017-04-25 09:06:59 [easycwmp] NOTICE - end session failed
2017-04-25 09:06:59 [easycwmp] NOTICE - retry session in 15 sec, RetryCount = 2
2017-04-25 09:07:14 [easycwmp] NOTICE - start session
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(50):: url: http://192.168.4.11:9090/ACS-server/ACS
http_client_init(56):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
2017-04-25 09:07:14 [easycwmp] NOTICE - configured acs url http://192.168.4.11:9090/ACS-server/ACS
2017-04-25 09:07:14 [easycwmp] NOTICE - external script init
2017-04-25 09:07:14 [easycwmp] NOTICE - external: execute inform parameter
2017-04-25 09:07:15 [easycwmp] NOTICE - send Inform
+++ SEND HTTP REQUEST +++
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <soap_env:Envelope
xmlns:soap_env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soap_enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cwmp="urn:dslforum-org:cwmp-1-2">
  <soap_env:Header>
   <cwmp:ID soap_env:mustUnderstand="1">3</cwmp:ID>
....
....
(0000696)
mohamed.kallel   
2017-04-25 10:40   
some ACSs require that the xml tag attribute should be displayed in the same line.
In the microxml source code, try to change the the new lines by spaces of <sopa_env> attribute.
You can see that the name spaces attributes in the sop_env tag are displayed in new lines. try to replaced by spaces.
(0000697)
andy_yang   
2017-04-27 08:25   
Thanks for your idea. I have fixed my issue.The cause is that xml version the easycwmp use cwmp="urn:dslforum-org:cwmp-1-2" but my acs use cwmp="urn:dslforum-org:cwmp-1-0"
Thank you again!
(0000698)
mohamed.kallel   
2017-04-27 10:17   
Great!


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
216 [easycwmp] Help block always 2017-04-21 03:40 2017-04-24 13:10
Reporter: andy_yang Platform: linux  
Assigned To: mohamed.kallel OS: openwrt  
Priority: immediate OS Version: openwrt15  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: There is no --enable-debug and --enable-devel options when I build easycwmp on the openwrt15
Description: when I build easycwmp by use following command:
make package/easycwmp/compile V=99

I find that configure there is --enable-debug and --enable-devel options.But the Makefile have define the two options:

PKG_CONFIG_DEPENDS:= \
        CONFIG_EASYCWMP_DEBUG \
        CONFIG_EASYCWMP_DEVEL
...
ifeq ($(CONFIG_EASYCWMP_DEBUG),y)
CONFIGURE_ARGS += \
        --enable-debug
endif

ifeq ($(CONFIG_EASYCWMP_DEVEL),y)
CONFIGURE_ARGS += \
        --enable-devel
endif
Tags:
Steps To Reproduce: message is as following:
.....
 ./configure --target=arm-marvell-linux-uclibcgnueabi --host=arm-marvell-linux-uclibcgnueabi --build=i686-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls --with-uci-include-path=/disk2/yang.yong/work/develop/VIX10/mv6560/openwrt/staging_dir/target-arm-marvell-linux-uclibcgnueabi/usr/include --with-libubox-include-path=/disk2/yang.yong/work/develop/VIX10/mv6560/openwrt/staging_dir/target-arm-marvell-linux-uclibcgnueabi/usr/include --with-libubus-include-path=/disk2/yang.yong/work/develop/VIX10/mv6560/openwrt/staging_dir/target-arm-marvell-linux-uclibcgnueabi/usr/include --enable-jsonc=1 ; fi; )
....
Additional Information: I doubt that the define PKG_CONFIG_DEPENDS don't be included by openwrt rule.
Attached Files: compile_log_and_Makefile.rar (1,144 bytes) 2017-04-21 03:40
https://support.easycwmp.org/file_download.php?file_id=98&type=bug
Notes
(0000687)
andy_yang   
2017-04-21 03:42   
there is a line errror in the Description :
I find that configure there is --enable-debug and --enable-devel options.
it should be :
I find that configure there is no --enable-debug and --enable-devel options.
(0000688)
mohamed.kallel   
2017-04-21 10:34   
Did you select debug options in the make menuconfig ---> utilities --> easycwmp ?
(0000689)
andy_yang   
2017-04-24 03:11   
Oh, it's my careless. Thanks for your help!


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
215 [easycwmp] Help block always 2017-04-20 11:35 2017-04-20 17:36
Reporter: andy_yang Platform: openwrt  
Assigned To: mohamed.kallel OS: linux  
Priority: immediate OS Version: linux3.2  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: easycwmpd can't printf log message
Description: I have install easycwmp successlyg by help of EasyCwmp install for OpenWRT Linux. But I meet a block that my easycwmpd process can't printf log message.


Tags:
Steps To Reproduce: root@OpenWrt:/# /usr/sbin/easycwmpd -f boot
root@OpenWrt:/# ps | grep easycwmp
17654 root 1900 S /usr/sbin/easycwmpd -f --boot
18954 root 1344 S grep easycwmp
root@OpenWrt:/#
Additional Information:
Attached Files:
Notes
(0000683)
andy_yang   
2017-04-20 11:36   
How to printf log message on the openwrt platform?
(0000684)
mohamed.kallel   
2017-04-20 12:05   
you can see log in syslog file of openwrt

Otherwise you have to stop easycwmp with /etc/init.d/easycwmpd stop
and then started with /usr/sbin/easycwmpd -b

if you satrt easycwmp with /etc/init.d/easycwmpd then the log will be catched by the procd and you will not see the logs in the console
(0000685)
andy_yang   
2017-04-20 12:09   
root@OpenWrt:/# /usr/sbin/easycwmpd --help
Usage: easycwmpd [OPTIONS]
 -f, --foreground Run in the foreground
 -b, --boot Run with "1 BOOT" event
 -g, --getrpcmethod Run with "2 PERIODIC" event and with ACS GetRPCMethods
 -h, --help Display this help text
 -v, --version Display the easycwmpd version


easycwmpd Run in the foreground, how to modify to run as following :
 /usr/sbin/easycwmpd -run
(0000686)
mohamed.kallel   
2017-04-20 12:13   
if you want easycwmpd to run in foreground:

 /usr/sbin/easycwmpd -f -b

if you want easycwmpd to run in background:

 /usr/sbin/easycwmpd -b


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
213 [easycwmp] Help major always 2017-04-12 16:52 2017-04-12 16:52
Reporter: mayuri2017 Platform: Ubuntu  
Assigned To: OS: 14.04  
Priority: high OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: rpc_inform(229): parse Inform xml message from ACS failed
Description: Hi

We are trying to use easycwmp client (1.5.2) and freeacs server, but facing this issue while trying to communicate.

After doing all installation, running below steps:

/usr/sbin/ubusd -s /var/run/ubus.sock

#Finally run easycwmpd as root:
/usr/sbin/easycwmpd -f -b
Tags:
Steps To Reproduce:
Additional Information:
Attached Files: error_log.txt (8,499 bytes) 2017-04-12 16:52
https://support.easycwmp.org/file_download.php?file_id=97&type=bug
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
202 [easycwmp] Help major always 2017-02-15 03:15 2017-03-14 15:09
Reporter: superkid Platform: linux  
Assigned To: mohamed.kallel OS: openwrt  
Priority: high OS Version: barrier breaker  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: download firmware fail
Description: I was trying to update my cpe but download fails because it requires authentication,
I'm using libcurl v7.5 and enabled openssl and crypto auth


GET /tr/fwStore/sample_update_v3.bin HTTP/1.1
Host: 123.150.209.82:38180
User-Agent: Wget
Connection: close
Authorization: Basic ZG93bmxvYWQ6ZG93bmxvYWQ=

HTTP/1.1 401 Authorization Required
Date: Wed, 15 Feb 2017 02:05:24 GMT
Server: /0.0.0 (Unix) DAV/2 mod_ssl/0.0.0 OpenSSL/1.0.2f
WWW-Authenticate: Digest realm="Digest Auth", nonce="/eQdHYhIBQA=31057a26239cb982bbd76c35c5e4d625a80e5f5d", algorithm=MD5, qop="auth"
Content-Length: 401
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>

This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.


</body></html>
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000665)
superkid   
2017-02-15 06:52   
tried manual download, download/download is the username/password from acs

easycwmp download http://123.150.209.82:38180/tr/fwStore/sample_update_v3.bin "1 Firmware Upgrade Image" "0" download download
{ "fault_code": "9010" }
(0000666)
superkid   
2017-02-15 07:22   
looks like busybox wget issue
(0000668)
mohamed.kallel   
2017-02-15 10:22   
(Last edited: 2017-02-15 10:22)
I think busybox wget does not support digest auth. It supports only basic auth
Try to edit the easycwmp.sh script and use curl command instead. And do not forget to add curl command dependencie in the ext/opewrt/Makefile

Please share your patch

(0000682)
superkid   
2017-03-14 04:15   
yes busybox wget does not support digest auth, what we did is to enable full package of wget

Network
    -> File Transfer
        -> <*> wget............... Non-interactive network downloader
                    (with SSL support)


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
208 [easycwmp] Question major always 2017-03-09 07:04 2017-03-13 16:35
Reporter: superkid Platform: linux  
Assigned To: mohamed.kallel OS: openwrt  
Priority: normal OS Version: barrier breaker  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: how to use connectionrequesturl
Description: How to use ConnectionRequestURL, do we need a webserver that listens on port 7547?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000679)
superkid   
2017-03-09 11:17   
We tried to test it using
wget http://username:password@ipaddress:port but cpe didn’t send 6 CONNECTION REQUEST inform to ACS
(0000680)
superkid   
2017-03-09 11:18   
We're still using the default port 7547,
(0000681)
mohamed.kallel   
2017-03-09 11:42   
Connection Request is based on digest authentication. It's not basic authentication. it's a standard requirement.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
204 [easycwmp] Question feature always 2017-02-22 04:11 2017-02-22 15:01
Reporter: andy_yang Platform: arm  
Assigned To: OS: linux  
Priority: high OS Version: V2.6  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: How to realize that CPE find ACS URL by DHCP option
Description: In general, we use static method to configure ACS URL manually.
However, we can use DHCP option method to find out ACS URL and keep connection not but configure ACS URL manually.
Do you have implement it? if yes, can you release the source code to me for reference?

Thanks!
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000671)
mohamed.kallel   
2017-02-22 15:01   
URL DHCP Option is not supported in the free version


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
203 [easycwmp] Enhancement minor have not tried 2017-02-16 10:49 2017-02-16 11:15
Reporter: mohamed.kallel Platform:  
Assigned To: mohamed.kallel OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Support tar.gz file of luci in the apply download of config
Description: Support tar.gz file of luci in the apply download of config
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000670)
mohamed.kallel   
2017-02-16 11:15   
Enhancement in EasyCwmp-1.5.2


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
200 [easycwmp] Question minor always 2017-02-09 09:03 2017-02-15 10:23
Reporter: harshshah Platform: ARM  
Assigned To: mohamed.kallel OS: Linux  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: easycwmpd exits after firmware upgrade is downloaded and applied
Description: In file src/cwmp.c -> function cwmp_download_launch() there is a line :

if (status[0] == '1') exit(EXIT_SUCCESS);

Because of this when I apply the firmware upgrade, easycwmpd exits giving message :
[1] + Done /usr/sbin/easycwmpd -f -b

Because of this the communication with ACS stops

Is this normal ? Will easycwmpd exit after successful firmware upgrade ?
Tags: download, firmware
Steps To Reproduce: 1) Start easycwmpd using :
   /usr/sbin/easycwmpd -f -b &

2) Apply firmware upgrade from ACS

3) Firmware upgrade is applied successfully, but easycwmpd exits.
Additional Information: I have modified the easycwmp.sh script to adjust with mechanism used for firmware upgrade. Instead of :
/sbin/sysupgrade $DOWNLOAD_FILE

I have written custom command.

I have verified that firmware upgrade is successful with this custom command using :
easycwmp download <url> "1 Firmware Upgrade Image" "0" <user_name> <password>
easycwmp apply download "1 Firmware Upgrade Image"
Attached Files:
Notes
(0000657)
harshshah   
2017-02-10 08:04   
Okay, so I just figured out that device has to reboot itself after firmware upgrade, and after reboot when the Inform is sent it has to have '7 TRANSFER COMPLETE' and 'M Download'.

So now the question is that how to store the state of easycwmp between reboots ?
(0000664)
harshshah   
2017-02-15 04:01   
Resolved. No change in easycwmp source code required.

Issue was that /etc/ was not writable for /etc/easycwmp/.backup.xml file


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
181 [easycwmp] Enhancement minor have not tried 2016-11-22 11:24 2017-02-14 21:39
Reporter: Anis Platform:  
Assigned To: Anis OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: add log details
Description: When messages such as “Thu Nov 17 17:36:46 2016 daemon.notice easycwmpd: send Fault: 9003: 'Invalid arguments'” are being generated, is there a way to log what parameters were considered as being invalid?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000662)
mohamed.kallel   
2017-02-14 21:39   
Enhancement in EasyCwmp-1.5.1


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
199 [easycwmp] Question major have not tried 2017-02-08 08:02 2017-02-13 17:57
Reporter: superkid Platform: linux  
Assigned To: mohamed.kallel OS: openwrt  
Priority: high OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: does easycwmp support transfer encoding
Description: does easycwmp support transfer encoding instead of content-length?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000655)
mohamed.kallel   
2017-02-09 11:35   
(Last edited: 2017-02-09 11:36)
Not supported in the free version.

Forthcoming Amendment 5 in the commercial version. The Amendment 5 version of EasyCwmp supports encoding



View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
198 [easycwmp] Question block always 2017-02-08 03:58 2017-02-13 17:56
Reporter: superkid Platform: linux  
Assigned To: mohamed.kallel OS: openwrt  
Priority: urgent OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: tcp out of order
Description: Hi i was testing easycwmp and notice TCP out of order, data capture is attached

is easycwmp using HTTP digest authentication?

also we're using ACS that requires username and password, we changed username and password under local is that correct or should we change the one under config acs?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files: easy_out_of_order.cap (7,303 bytes) 2017-02-08 03:58
https://support.easycwmp.org/file_download.php?file_id=90&type=bug
easy_with_auth.cap (4,179 bytes) 2017-02-09 06:22
https://support.easycwmp.org/file_download.php?file_id=93&type=bug
.config (179,482 bytes) 2017-02-09 10:06
https://support.easycwmp.org/file_download.php?file_id=94&type=bug
.config2 (179,707 bytes) 2017-02-10 03:24
https://support.easycwmp.org/file_download.php?file_id=95&type=bug
with_digest.cap (769,443 bytes) 2017-02-10 09:42
https://support.easycwmp.org/file_download.php?file_id=96&type=bug
Notes
(0000641)
superkid   
2017-02-09 02:13   
i already tried the same fix as this issue

http://support.easycwmp.org/view.php?id=196

but I still cannot connect to ACS with digest auth


easycwmp logs
Wed Feb 8 17:22:21 2017 daemon.notice easycwmpd: external script init
Wed Feb 8 17:22:21 2017 daemon.notice easycwmpd: external: execute inform parameter
Wed Feb 8 17:22:21 2017 daemon.notice easycwmpd: send Inform
Wed Feb 8 17:22:22 2017 daemon.notice easycwmpd: LibCurl Error: The requested URL returned error: 401
Wed Feb 8 17:22:22 2017 daemon.notice easycwmpd: sending http message failed
Wed Feb 8 17:22:22 2017 daemon.notice easycwmpd: sending Inform failed
Wed Feb 8 17:22:22 2017 daemon.notice easycwmpd: external: execute apply service
Wed Feb 8 17:22:22 2017 daemon.notice easycwmpd: external script exit
Wed Feb 8 17:22:22 2017 daemon.notice easycwmpd: end session failed
(0000642)
superkid   
2017-02-09 06:22   
current easycwmp settings

config local
    option interface 'eth0'
    option port '7547'
    option ubus_socket '/var/run/ubus.sock'
    option date_format '%FT%T%z'
    option username 'admin'
    option password 'admin'
    option logging_level '3'

config acs
    option http100continue_disable '1'

I also enabled libraries-> libcurl -> enable cryptographic authentication

attached is our wireshark capture, I'm not sure if easycwmp is sending http with auth
easy_with_auth.cap
(0000643)
mohamed.kallel   
2017-02-09 07:28   
Rebuild libcurl and then easycwmp. and then re-install both libcurl and easycwmp.

and remove the option http100continue_disable from the config
(0000644)
superkid   
2017-02-09 08:36   
we already rebuild the whole source and flash it on out device, also removed http100continue_disable from config. still cannot connect to digest ACS server
(0000645)
mohamed.kallel   
2017-02-09 10:02   
share your ".config" file. It's under your openwrt sdk.

And what is the output of the following command:

opkg depends libcurl
(0000646)
superkid   
2017-02-09 10:06   
libcurl depends on:
    libc
    libpolarssl

.config is attached
(0000647)
mohamed.kallel   
2017-02-09 10:12   
what's your openwrt version?
(0000648)
mohamed.kallel   
2017-02-09 10:13   
did you made a make clean of packages libcurl and easycwmp
(0000649)
superkid   
2017-02-09 10:14   
yes I did. I clean the whole source to be sure, then recompiled again
(0000650)
mohamed.kallel   
2017-02-09 10:15   
and also what's your libcurl version?
(0000651)
superkid   
2017-02-09 10:27   
version 7.38
(0000652)
mohamed.kallel   
2017-02-09 10:27   
your openwrt version too?
(0000653)
superkid   
2017-02-09 10:31   
OpenWrt Barrier Breaker 14.07
easycwmp version 1.5.1
(0000654)
mohamed.kallel   
2017-02-09 11:26   
it's a libcurl bug.
You can fix it in the configure.ac of libcurl. The bug is related to the --enable-crypto-auth.

Or you can use a new version of libcurl. the libcurl version of OpenWRT CC works fine
(0000656)
superkid   
2017-02-10 03:23   
Hi, I updated libcurl to 7.50 with enable crypto auth (will attach .config2)
but easycwmp seems to hang, when i try
#easycwmp get
it displays data up to memorystatus then stops
(0000658)
superkid   
2017-02-10 09:41   
I updated libcurl to 7.50 and used openSSL, easycwmp can now connect to digest server, is this feature available on v1.4.1?

Also, we're still having problems with the session. sometimes, tcp session end but cpe still send packets then server sends reset.. any idea? (attached with_digest.cap)
(0000659)
mohamed.kallel   
2017-02-10 09:53   
yes it's available on v1.4.1 and in all easycwmp versions
(0000660)
mohamed.kallel   
2017-02-10 11:14   
tcp session end but cpe still send packets then server sends reset.. any idea? (attached with_digest.cap)

==> may be your acs conatins script of reset


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
196 [easycwmp] Question block always 2017-02-03 16:57 2017-02-06 16:43
Reporter: carlberg Platform: Linux OpenWrt 4.4.14 #1 Mon Jan  
Assigned To: mohamed.kallel OS: OpenWRT  
Priority: normal OS Version: bleeding edge  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Missing authentication header in http request
Description: Hi,
I cant get authentication on ACS Request to work, using easycwmp-1.4.1 and easycwmp-1.5.1.

Have tested with different configuration, but only receive HTTP 401 from server.
Have used wireshark looking at traffic and I cant see any "Authorization" header in the request to the ACS.
I am expecting a "Authorization: Digest" header...but it seem to be missing.

Using follow config:
config acs
option periodic_enable '1'
option periodic_interval '100'
option periodic_time '0001-01-01T00:00:00Z'
option username 'acs'
option password 'password123'
option url 'http://server:8000/acs'

Have also tested with: digest_enable='1', without success.
But I assume that is only used on local, not on acs.

Have read and follow: http://support.easycwmp.org/view.php?id=156&history=1
Looking at the code, http.c, cant see any Authorization Digest header added in http_send_message.
but I might be looking at the wrong place.

Any suggestions?

ex. HTTP Request
------------------

POST /acs/ HTTP/1.1
Host: server:8000
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 2818
Expect: 100-continue

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <soap_env:Envelope
xmlns:soap_env="http://schemas.xmlsoap.org/....



HTTP/1.1 100 Continue

ex. HTTP Response
------------------
HTTP/1.1 401 Unauthorized
Date: Fri, 03 Feb 2017 15:45:35 GMT
WWW-Authenticate: Digest realm="ACSRealm", domain="/acs", nonce="8agf0qdFpFxYqCdeN6U/mWTkzhH+wSk2", algorithm=MD5, qop="auth", stale=false
Cache-Control: must-revalidate,no-cache,no-store
Content-Type: text/html;charset=iso-8859-1
Content-Length: 337
Server: Jetty(9.3.8.v20160314)
....


Cheers
-Anders


Tags:
Steps To Reproduce: Connect to an ACS that requires authentication.

If you need a server to testa with, I can provide one.
Additional Information: Created this issue some time ago, without response.
https://github.com/pivasoftware/easycwmp/issues/30
Attached Files: ZyXEL Trace - Successful.zip (19,908 bytes) 2017-02-05 18:08
https://support.easycwmp.org/file_download.php?file_id=85&type=bug
EasyCWMP Trace HTTP401.zip (1,562 bytes) 2017-02-05 18:08
https://support.easycwmp.org/file_download.php?file_id=86&type=bug
EasyCWMP_w_auth.pcapng (5,428 bytes) 2017-02-06 13:25
https://support.easycwmp.org/file_download.php?file_id=87&type=bug
EasyCWMP_w_auth_more.pcapng (15,616 bytes) 2017-02-06 13:33
https://support.easycwmp.org/file_download.php?file_id=88&type=bug
Notes
(0000626)
carlberg   
2017-02-03 16:59   
oh,, sorry.. wasn't meaning to set it as Severity: block..
(0000627)
mohamed.kallel   
2017-02-04 10:13   
we need traffic capture to analyze the issue.

Try to add the following option in the easycwmp config

uci set easycwmp.@acs[0].http100continue_disable=1
(0000628)
carlberg   
2017-02-05 18:13   
Added two files, Trace one for a working device (ZyXEL) and trace of a EasyCWMP 1.5.1 device.
So I cant see the EasyCWMP response to the first HTTP 401 with the correct header.

Tested using: uci set easycwmp.@acs[0].http100continue_disable=1
But, no change.

Current config:

config local
        option interface 'eth0'
        option port '7547'
        option ubus_socket '/var/run/ubus.sock'
        option date_format '%FT%T%z'
        option username 'easycwmp'
        option password 'easycwmp'
        option logging_level '3'

config acs
        option periodic_enable '1'
        option periodic_interval '100'
        option periodic_time '0001-01-01T00:00:00Z'
        option url 'http://192.168.1.120:10301/acs/'
        option username 'acs'
        option password 'acs'
        option http100continue_disable '1'

config device
        option manufacturer 'OpenWrt
http://www.openwrt.org/'
        option product_class 'Generic'
        option hardware_version 'v0'
        option software_version '50082'
        option oui '90F652'
        option serial_number '90F6522BF8FF'


Send me a mail if you need a ACS server to test with..
anderscarlberg74@hotmail.com
(0000629)
mohamed.kallel   
2017-02-06 09:58   
(Last edited: 2017-02-06 11:03)
The files you sent do not help
please send the capture file (pcap file captured with wireshark for example)
And send also the log of easycwmp

I have a question: What is the SSL options that you you used to build libcurl?

(0000630)
carlberg   
2017-02-06 12:49   
(Last edited: 2017-02-06 13:41)
okay, I send over some pcap files.

Running on OpenWrt Main (Bleeding Edge)
I have not used any specific SSL options,
have simply follow the guide for OpenWRT build for easycwmp and microxml. http://www.easycwmp.org/install.html

so, I have not built libcurl explicit.

(0000631)
carlberg   
2017-02-06 13:34   
Uploaded two .pcap files.
_more, contains more then one sequence.

Get back to me if you need something..
(0000632)
carlberg   
2017-02-06 13:46   
Logread logging.. (cant find any specific logging for easycwmp).

Mon Feb 6 12:31:18 2017 daemon.notice easycwmpd: start session
Mon Feb 6 12:31:18 2017 daemon.notice easycwmpd: configured acs url http://192.168.1.120:10301/acs/digitalnordix/
Mon Feb 6 12:31:18 2017 daemon.notice easycwmpd: external script init
Mon Feb 6 12:31:18 2017 daemon.notice easycwmpd: external: execute inform parameter
Mon Feb 6 12:31:19 2017 daemon.notice easycwmpd: send Inform
Mon Feb 6 12:31:20 2017 daemon.notice easycwmpd: LibCurl Error: The requested URL returned error: 401
Mon Feb 6 12:31:20 2017 daemon.notice easycwmpd: sending http message failed
Mon Feb 6 12:31:20 2017 daemon.notice easycwmpd: sending Inform failed
Mon Feb 6 12:31:20 2017 daemon.notice easycwmpd: external: execute apply service
Mon Feb 6 12:31:20 2017 daemon.notice easycwmpd: external script exit
Mon Feb 6 12:31:20 2017 daemon.notice easycwmpd: end session failed
Mon Feb 6 12:31:20 2017 daemon.notice easycwmpd: retry session in 60 sec, RetryCount = 4
Mon Feb 6 12:31:56 2017 daemon.notice easycwmpd: add event '2 PERIODIC'
Mon Feb 6 12:31:56 2017 daemon.notice easycwmpd: start session
Mon Feb 6 12:31:56 2017 daemon.notice easycwmpd: configured acs url http://192.168.1.120:10301/acs/digitalnordix/
Mon Feb 6 12:31:56 2017 daemon.notice easycwmpd: external script init
Mon Feb 6 12:31:57 2017 daemon.notice easycwmpd: external: execute inform parameter
Mon Feb 6 12:31:58 2017 daemon.notice easycwmpd: send Inform
Mon Feb 6 12:31:58 2017 daemon.notice easycwmpd: LibCurl Error: The requested URL returned error: 401
Mon Feb 6 12:31:58 2017 daemon.notice easycwmpd: sending http message failed
Mon Feb 6 12:31:58 2017 daemon.notice easycwmpd: sending Inform failed
Mon Feb 6 12:31:58 2017 daemon.notice easycwmpd: external: execute apply service
Mon Feb 6 12:31:58 2017 daemon.notice easycwmpd: external script exit
Mon Feb 6 12:31:58 2017 daemon.notice easycwmpd: end session failed
Mon Feb 6 12:31:58 2017 daemon.notice easycwmpd: retry session in 120 sec, RetryCount = 5
Mon Feb 6 12:33:36 2017 daemon.notice easycwmpd: add event '2 PERIODIC'
Mon Feb 6 12:33:36 2017 daemon.notice easycwmpd: start session
Mon Feb 6 12:33:36 2017 daemon.notice easycwmpd: configured acs url http://192.168.1.120:10301/acs/digitalnordix/
Mon Feb 6 12:33:36 2017 daemon.notice easycwmpd: external script init
Mon Feb 6 12:33:37 2017 daemon.notice easycwmpd: external: execute inform parameter
Mon Feb 6 12:33:38 2017 daemon.notice easycwmpd: send Inform
Mon Feb 6 12:33:38 2017 daemon.notice easycwmpd: LibCurl Error: The requested URL returned error: 401
Mon Feb 6 12:33:38 2017 daemon.notice easycwmpd: sending http message failed
Mon Feb 6 12:33:38 2017 daemon.notice easycwmpd: sending Inform failed
Mon Feb 6 12:33:38 2017 daemon.notice easycwmpd: external: execute apply service
Mon Feb 6 12:33:38 2017 daemon.notice easycwmpd: external script exit
Mon Feb 6 12:33:38 2017 daemon.notice easycwmpd: end session failed
Mon Feb 6 12:33:38 2017 daemon.notice easycwmpd: retry session in 240 sec, RetryCount = 6
(0000633)
mohamed.kallel   
2017-02-06 14:11   
what is the output of the following command on your openWRT

opkg depends libcurl
(0000634)
carlberg   
2017-02-06 14:30   
root@OpenWrt:/# opkg depends libcurl
libcurl depends on:
        libc
        libpolarssl
(0000635)
mohamed.kallel   
2017-02-06 14:53   
(Last edited: 2017-02-06 14:55)
In the make menuconfig:
Under: Libraries > Libcurl
Check that the option "Enable cryptographic authentication" is selected.

If not selected, please select it and rebuild your libcurl and then rebuil easycwmp and then re-install both libcurl and easycwmp

(0000636)
carlberg   
2017-02-06 15:23   
..it was not selected..
I am rebuilding now.. I'll get back to you when I have tested.
(0000637)
carlberg   
2017-02-06 16:34   
(Last edited: 2017-02-06 16:42)
Yeah!
It seem to work now..
I rebuild and install libcurl and it start working.

Thank you..

Now I will go ahead and start testing things..



View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
195 [easycwmp] General text have not tried 2017-02-03 11:57 2017-02-03 11:57
Reporter: mohamed.kallel Platform:  
Assigned To: OS:  
Priority: low OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Add the patch of rc.common (for notify handler) in the install tutorial
Description: Add the patch of rc.common (for notify handler) in the install tutorial
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
There are no notes attached to this issue.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
180 [easycwmp] Enhancement minor have not tried 2016-11-22 11:22 2017-01-27 19:12
Reporter: Anis Platform:  
Assigned To: Anis OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: strip double and single quotes from Device_info value.
Description: Adjust /etc/init.d/easycwmpd to strip “ double quotes and ' single quote from the value of the file Device_info.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000621)
mohamed.kallel   
2017-01-27 19:12   
fixed in EasyCwmp-1.5.0


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
178 [easycwmp] Bug minor have not tried 2016-11-18 20:05 2017-01-27 19:11
Reporter: mohamed.kallel Platform:  
Assigned To: mohamed.kallel OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: The forced inform parameters list are not conform with the TR-181 standrad
Description: The forced inform parameters list are not conform with the TR-181 standrad:

https://www.broadband-forum.org/cwmp/tr-181-2-11-0.html#H.Device:2.Forced%20Inform%20Parametersrs
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000620)
mohamed.kallel   
2017-01-27 19:11   
fixed in EasyCwmp-1.5.0


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
194 [easycwmp] Enhancement minor have not tried 2017-01-27 18:56 2017-01-27 19:11
Reporter: mohamed.kallel Platform:  
Assigned To: mohamed.kallel OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Add TR-181 WiFi and DHCPv4 params and Enhancement of Download
Description: Add TR-181 WiFi and DHCPv4 params and Enhancement of Download
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000619)
mohamed.kallel   
2017-01-27 19:10   
fixed in EasyCwmp-1.5.0


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
166 [easycwmp] Bug minor always 2016-10-14 11:04 2017-01-27 16:28
Reporter: mohamed.kallel Platform:  
Assigned To: anis.ellouze OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: error in the case of DMROOT.IP.Interface.
Description: Eoor in the script ip in:

case "$1" in ""|"$DMROOT."|"$DMROOT.IP."|"$DMROOT.IP.Interface."*)

it should be

case "$1" in ""|"$DMROOT."|"$DMROOT.IP."*)
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000618)
mohamed.kallel   
2017-01-27 16:28   
fixed in EasyCwmp-1.4.1


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
145 [easycwmp] Question major always 2016-07-12 08:40 2017-01-27 16:27
Reporter: superkid Platform: linux 3.10  
Assigned To: Anis OS: OpenWRT  
Priority: normal OS Version: barrier breaker  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: ipping diagnostic has no reply
Description: under DiagnosticState i wrote Requested and set google.com to Host and provisioned, however ipping_diagnostic didn't give any result, what am i doing wrong?
Tags: ping
Steps To Reproduce:
Additional Information:
Attached Files: ipping_diagnostic.jpg (74,392 bytes) 2016-07-12 08:40
https://support.easycwmp.org/file_download.php?file_id=71&type=bug
Notes
(0000493)
mohamed.kallel   
2016-07-12 15:13   
(Last edited: 2016-07-12 15:14)
could you provide traffic capture between ACS and CPE

(0000494)
superkid   
2016-07-13 03:56   
how to get it? logread on openwrt?
(0000495)
mohamed.kallel   
2016-07-13 12:16   
you can send the syslogd messages of easycwmp


And you can launch wireshark on your ACS server to capture the traffic between ACS and CPE
(0000504)
Anis   
2016-07-14 17:15   
I am not able to reproduce this issue on openwrt CC and ubuntu !!
(0000511)
superkid   
2016-07-18 05:04   
Hi Anis. Do i need to fill up all RW parameters such as DataBlockSize, DiagnosticState, Host, NumberofRepetitions, Timeout. If so, can you give an example I might be filling it up wrongly.

I'll send the syslogd after. Thanks
(0000512)
Anis   
2016-07-18 11:12   
(Last edited: 2016-07-18 11:37)
Hi,
no, the other RW parameters are optional and are not needed to trigger ipping.
but it will be better to have the wireshark traffic and easycwmp log to investigate more the issue



View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
179 [easycwmp] Bug minor have not tried 2016-11-21 16:17 2017-01-27 16:26
Reporter: Anis Platform:  
Assigned To: Anis OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: [IPPing Diagnostics ] :8 DIAGNOSTICS COMPLETE event is not send when host is bad
Description: according to standard cwmp client should send the event 8 DIAGNOSTICS COMPLETE after successful or fail ping diagnostic.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000616)
mohamed.kallel   
2017-01-27 16:08   
fixed in EasyCwmp-1.4.1


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
154 [easycwmp] Bug minor have not tried 2016-07-16 21:28 2017-01-27 16:26
Reporter: mohamed.kallel Platform:  
Assigned To: mohamed.kallel OS:  
Priority: low OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Replace '//' by '/' in the OpenWRT Makefile
Description: Replace '//' by '/' in the OpenWRT Makefile in the line:

$(INSTALL_BIN) $(PKG_BUILD_DIR)/ext/openwrt/scripts/functions/ipping_launch $(1)/usr/share/easycwmp/functions//ipping_launch
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000617)
mohamed.kallel   
2017-01-27 16:26   
fixed in EasyCwmp-1.4.0


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
161 [easycwmp] Help major always 2016-08-19 17:12 2017-01-27 16:22
Reporter: danlee Platform: Windows PC  
Assigned To: mohamed.kallel OS: Ubuntu  
Priority: normal OS Version: 16.04.1 LTS  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Creating Inform xml message is failed.
Description: Hello,

I have installed latest version (1.3.4) of EasyCWMP to my Ubuntu server and when I run easycwmp daemon as a root, creating an Inform XML message is failed as you see below. I have not changed any easycwmp default config (/opt/dev/easycwmp/ext/openwrt/config) that defines ACS server.
Do you have any idea why creating an Inform XML message is failed and where do I need to look at the code to debug and troubleshoot the issue? Please let me know. Thanks.

dlee@ubuntu:/opt/dev/easycwmp$ sudo /usr/sbin/easycwmpd -f -b
2016-08-19 08:00:46 [easycwmp] NOTICE - add event '0 BOOTSTRAP'
2016-08-19 08:00:46 [easycwmp] NOTICE - add event '1 BOOT'
2016-08-19 08:00:46 [easycwmp] NOTICE - external script init
config_init_local(55):: easycwmp.@local[0].interface=eth0
config_init_local(65):: easycwmp.@local[0].port=7547
config_init_local(83):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(71):: easycwmp.@local[0].username=easycwmp
config_init_local(77):: easycwmp.@local[0].password=easycwmp
config_init_local(94):: easycwmp.@local[0].logging_level=3
config_init_acs(159):: easycwmp.@acs[0].url=http://192.168.1.110:8080/openacs/acs
config_init_acs(165):: easycwmp.@acs[0].username=easycwmp
config_init_acs(171):: easycwmp.@acs[0].password=easycwmp
config_init_acs(177):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(183):: easycwmp.@acs[0].periodic_interval=100
config_init_acs(190):: easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z
2016-08-19 08:00:46 [easycwmp] NOTICE - init periodic inform: reference time = -62135568422, interval = 100
2016-08-19 08:00:46 [easycwmp] NOTICE - external: execute update_value_change
2016-08-19 08:00:46 [easycwmp] NOTICE - daemon started
2016-08-19 08:00:46 [easycwmp] NOTICE - external: execute inform device_id
2016-08-19 08:00:46 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2016-08-19 08:00:46 [easycwmp] CRITICAL - error occured when trying to write to the pipe
cwmp_init_deviceid(642): in device you must define product_class
2016-08-19 08:00:46 [easycwmp] NOTICE - external script exit
2016-08-19 08:00:46 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2016-08-19 08:00:46 [easycwmp] NOTICE - add event '1 BOOT'
+++ HTTP SERVER CONFIGURATION +++
NOT BOUND TO IP
port: '7547'
--- HTTP SERVER CONFIGURATION ---
2016-08-19 08:00:46 [easycwmp] NOTICE - http server initialized
2016-08-19 08:00:46 [easycwmp] NOTICE - entering main loop
2016-08-19 08:00:46 [easycwmp] NOTICE - start session
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(50):: url: http://192.168.1.110:8080/openacs/acs
http_client_init(56):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
2016-08-19 08:00:46 [easycwmp] NOTICE - configured acs url http://192.168.1.110:8080/openacs/acs
2016-08-19 08:00:46 [easycwmp] NOTICE - external script init
rpc_inform(208): Inform xml message creating failed
2016-08-19 08:00:47 [easycwmp] NOTICE - sending Inform failed
2016-08-19 08:00:47 [easycwmp] NOTICE - external: execute apply service
2016-08-19 08:00:47 [easycwmp] NOTICE - external script exit
2016-08-19 08:00:47 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2016-08-19 08:00:47 [easycwmp] NOTICE - end session failed
2016-08-19 08:00:47 [easycwmp] NOTICE - retry session in 7 sec, RetryCount = 1
2016-08-19 08:00:54 [easycwmp] NOTICE - start session
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(50):: url: http://192.168.1.110:8080/openacs/acs
http_client_init(56):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
2016-08-19 08:00:54 [easycwmp] NOTICE - configured acs url http://192.168.1.110:8080/openacs/acs
2016-08-19 08:00:54 [easycwmp] NOTICE - external script init
rpc_inform(208): Inform xml message creating failed
2016-08-19 08:00:54 [easycwmp] NOTICE - sending Inform failed
2016-08-19 08:00:54 [easycwmp] NOTICE - external: execute apply service
2016-08-19 08:00:54 [easycwmp] NOTICE - external script exit
2016-08-19 08:00:54 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2016-08-19 08:00:54 [easycwmp] NOTICE - end session failed
2016-08-19 08:00:54 [easycwmp] NOTICE - retry session in 15 sec, RetryCount = 2
2016-08-19 08:01:09 [easycwmp] NOTICE - start session
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(50):: url: http://192.168.1.110:8080/openacs/acs
http_client_init(56):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
2016-08-19 08:01:09 [easycwmp] NOTICE - configured acs url http://192.168.1.110:8080/openacs/acs
2016-08-19 08:01:09 [easycwmp] NOTICE - external script init
rpc_inform(208): Inform xml message creating failed
Tags:
Steps To Reproduce: Run easycwmpd as root
Additional Information:
Attached Files:
Notes
(0000531)
danlee   
2016-08-19 17:28   
I will check details of xml_prepare_inform_message() in xml.c
(0000532)
danlee   
2016-08-19 18:24   
I think that the root cause of failure to create an Inform XML message is due to the following error.

2016-08-19 08:00:46 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2016-08-19 08:00:46 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2016-08-19 08:00:46 [easycwmp] CRITICAL - error occured when trying to write to the pipe
(0000533)
mohamed.kallel   
2016-08-19 18:36   
what is the output of the following command?

sudo easycwmp get value

and what is the output of the command?

ls -l /usr/share/easycwmp/functions/
(0000534)
danlee   
2016-08-19 19:54   
Hello,

Following is the output of the command that you requested:

dlee@ubuntu:~$ sudo bash easycwmp get value
{ "parameter": "InternetGatewayDevice.DeviceInfo.SpecVersion", "value": "1.0" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.ProvisioningCode", "value": "" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.Manufacturer", "value": "easycwmp" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.ManufacturerOUI", "value": "FFFFFF" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.ProductClass", "value": "easycwmp" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.SerialNumber", "value": "FFFFFF123456" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.HardwareVersion", "value": "example_hw_version" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.SoftwareVersion", "value": "example_sw_version" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.UpTime", "value": "173", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.DeviceLog", "value": "" }
{ "parameter": "InternetGatewayDevice.ManagementServer.URL", "value": "http:\/\/192.168.1.110:8080\/openacs\/acs" }
{ "parameter": "InternetGatewayDevice.ManagementServer.Username", "value": "easycwmp" }
{ "parameter": "InternetGatewayDevice.ManagementServer.Password", "value": "" }
{ "parameter": "InternetGatewayDevice.ManagementServer.PeriodicInformEnable", "value": "1", "type": "xsd:boolean" }
{ "parameter": "InternetGatewayDevice.ManagementServer.PeriodicInformInterval", "value": "100", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.ManagementServer.PeriodicInformTime", "value": "2016-08-18T00:00:00Z", "type": "xsd:dateTime" }
{ "parameter": "InternetGatewayDevice.ManagementServer.ConnectionRequestURL", "value": "" }
{ "parameter": "InternetGatewayDevice.ManagementServer.ConnectionRequestUsername", "value": "easycwmp" }
{ "parameter": "InternetGatewayDevice.ManagementServer.ConnectionRequestPassword", "value": "" }
{ "parameter": "InternetGatewayDevice.ManagementServer.ParameterKey", "value": "" }

dlee@ubuntu:~$ ls -l /usr/share/easycwmp/functions/
total 4
lrwxrwxrwx 1 root root 54 Aug 16 16:20 common -> /opt/dev/easycwmp/ext/openwrt/scripts/functions/common
lrwxrwxrwx 1 root root 59 Aug 16 16:21 device_info -> /opt/dev/easycwmp/ext/openwrt/scripts/functions/device_info
lrwxrwxrwx 1 root root 58 Aug 16 16:21 lan_device -> /opt/dev/easycwmp/ext/openwrt/scripts/functions/lan_device
lrwxrwxrwx 1 root root 65 Aug 16 16:21 management_server -> /opt/dev/easycwmp/ext/openwrt/scripts/functions/management_server
(0000535)
mohamed.kallel   
2016-08-20 12:09   
Could you please execute the 1st command without bash. Just

sudo easycwmp get value

Do not add bash as you did.

Most probably your /bin/sh is not linking to the bash.
Check with:
ls -l /bin/sh

You should got something like that:

lrwxrwxrwx 1 root root 4 Dec 25 2014 /bin/sh -> bash

if not, please change your /bin/sh to bash
(0000536)
danlee   
2016-08-23 19:30   
After making /bin/sh to link to bash, I have re-run easycwmp daemon and it seems the error message of "error occured when trying to write to the pipe" is gone, but it looks like nothing happens. Any thoughts or ideas?
  

dlee@ubuntu:~$ ls -al /bin/sh
lrwxrwxrwx 1 root root 9 Aug 22 06:59 /bin/sh -> /bin/bash

dlee@ubuntu:/opt/dev/easycwmp/ext/openwrt/config$ sudo /usr/sbin/easycwmpd -f -b
2016-08-23 10:23:27 [easycwmp] NOTICE - add event '0 BOOTSTRAP'
2016-08-23 10:23:27 [easycwmp] NOTICE - external script init
config_init_local(55):: easycwmp.@local[0].interface=eth0
config_init_local(65):: easycwmp.@local[0].port=7547
config_init_local(83):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(71):: easycwmp.@local[0].username=easycwmp
config_init_local(77):: easycwmp.@local[0].password=easycwmp
config_init_local(94):: easycwmp.@local[0].logging_level=3
config_init_acs(159):: easycwmp.@acs[0].url=http://192.168.1.110:8080/openacs/acs
config_init_acs(165):: easycwmp.@acs[0].username=easycwmp
config_init_acs(171):: easycwmp.@acs[0].password=easycwmp
config_init_acs(177):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(183):: easycwmp.@acs[0].periodic_interval=100
config_init_acs(190):: easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z
2016-08-23 10:23:28 [easycwmp] NOTICE - add event '0 BOOTSTRAP'
2016-08-23 10:23:28 [easycwmp] NOTICE - init periodic inform: reference time = -62135568422, interval = 100
2016-08-23 10:23:28 [easycwmp] NOTICE - external: execute update_value_change
2016-08-23 10:23:28 [easycwmp] NOTICE - daemon started
2016-08-23 10:23:28 [easycwmp] NOTICE - external: execute inform device_id
cwmp_init_deviceid(642): in device you must define product_class
2016-08-23 10:23:28 [easycwmp] NOTICE - external script exit
(0000537)
mohamed.kallel   
2016-08-24 10:19   
Try to execute the following command:

$ sudo easycwmp --json-input

You should get the prompt "easycwmp>"

And then under the easycwmp prompt, execute the following json command:

{"command": "inform", "class": "device_id"}

What is your output?
(0000538)
danlee   
2016-08-24 17:04   
The command "sudo easycwmp get value" shows parameter values, but the json command under the easycwmp prompt shows nothing. Where should I look at as a next step?


dlee@ubuntu:~$ sudo easycwmp get value
{ "parameter": "InternetGatewayDevice.DeviceInfo.SpecVersion", "value": "1.0" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.ProvisioningCode", "value": "" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.Manufacturer", "value": "easycwmp" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.ManufacturerOUI", "value": "FFFFFF" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.ProductClass", "value": "easycwmp" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.SerialNumber", "value": "FFFFFF123456" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.HardwareVersion", "value": "example_hw_version" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.SoftwareVersion", "value": "example_sw_version" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.UpTime", "value": "611", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.DeviceLog", "value": "" }
{ "parameter": "InternetGatewayDevice.ManagementServer.URL", "value": "http:\/\/192.168.1.110:8080\/openacs\/acs" }
{ "parameter": "InternetGatewayDevice.ManagementServer.Username", "value": "easycwmp" }
{ "parameter": "InternetGatewayDevice.ManagementServer.Password", "value": "" }
{ "parameter": "InternetGatewayDevice.ManagementServer.PeriodicInformEnable", "value": "1", "type": "xsd:boolean" }
{ "parameter": "InternetGatewayDevice.ManagementServer.PeriodicInformInterval", "value": "100", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.ManagementServer.PeriodicInformTime", "value": "0001-01-01T00:00:00Z", "type": "xsd:dateTime" }
{ "parameter": "InternetGatewayDevice.ManagementServer.ConnectionRequestURL", "value": "" }
{ "parameter": "InternetGatewayDevice.ManagementServer.ConnectionRequestUsername", "value": "easycwmp" }
{ "parameter": "InternetGatewayDevice.ManagementServer.ConnectionRequestPassword", "value": "" }
{ "parameter": "InternetGatewayDevice.ManagementServer.ParameterKey", "value": "" }
dlee@ubuntu:~$ sudo easycwmp --json-input
easycwmp>
{"command": "inform", "class": "device_id"}
easycwmp>
(0000539)
danlee   
2016-08-24 17:26   
Following is building and running test program for json-c.

dlee@ubuntu:/opt/git/json-c$ sudo make check
Making check in .
make[1]: Entering directory '/opt/git/json-c'
make[1]: Leaving directory '/opt/git/json-c'
Making check in tests
make[1]: Entering directory '/opt/git/json-c/tests'
make test_util_file test1 test2 test4 testReplaceExisting test_parse_int64 test_null test_cast test_double_serializer test_parse test_locale test_charcase test_printbuf test_set_serializer test_compare test1Formatted test2Formatted
make[2]: Entering directory '/opt/git/json-c/tests'
  CC test_util_file.o
  CC strerror_override.o
  CCLD test_util_file
  CC test1.o
  CCLD test1
  CC test2.o
  CCLD test2
  CC test4.o
  CCLD test4
  CC testReplaceExisting.o
  CCLD testReplaceExisting
  CC test_parse_int64.o
  CCLD test_parse_int64
  CC test_null.o
  CCLD test_null
  CC test_cast.o
  CCLD test_cast
  CC test_double_serializer.o
  CCLD test_double_serializer
  CC test_parse.o
  CCLD test_parse
  CC test_locale.o
  CCLD test_locale
  CC test_charcase.o
  CCLD test_charcase
  CC test_printbuf.o
  CCLD test_printbuf
  CC test_set_serializer.o
  CCLD test_set_serializer
  CC test_compare.o
  CCLD test_compare
  CC test1Formatted-test1.o
  CC test1Formatted-parse_flags.o
  CCLD test1Formatted
  CC test2Formatted-test2.o
  CC test2Formatted-parse_flags.o
  CCLD test2Formatted
make[2]: Leaving directory '/opt/git/json-c/tests'
make check-TESTS
make[2]: Entering directory '/opt/git/json-c/tests'
make[3]: Entering directory '/opt/git/json-c/tests'
PASS: test_util_file.test
PASS: test1.test
PASS: test2.test
PASS: test4.test
PASS: testReplaceExisting.test
PASS: test_parse_int64.test
PASS: test_null.test
PASS: test_cast.test
PASS: test_double_serializer.test
PASS: test_parse.test
PASS: test_locale.test
PASS: test_charcase.test
PASS: test_printbuf.test
PASS: test_set_serializer.test
PASS: test_compare.test
============================================================================
Testsuite summary for json-c 0.12.99
============================================================================
# TOTAL: 15
# PASS: 15
# SKIP: 0
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0
============================================================================
make[3]: Leaving directory '/opt/git/json-c/tests'
make[2]: Leaving directory '/opt/git/json-c/tests'
make[1]: Leaving directory '/opt/git/json-c/tests'
(0000540)
mohamed.kallel   
2016-08-24 17:36   
Output of

$ sudo easycwmp inform device_id

?
(0000541)
mohamed.kallel   
2016-08-24 17:37   
Try also to execute the following command:

$ sudo easycwmp --json-input


And then under the easycwmp prompt, execute the following json command:

{"command": "get", "class": "value"}

What is your output?
(0000542)
danlee   
2016-08-24 18:23   
When you compile libubox, it is necessary to add "#include <json/bits.h>" to the file of jshn.c and blobmsg_json.c. Otherwise, there is a compilation error because it doesn't recognize the is_error() function.

dlee@ubuntu:/opt/git/libubox$ sudo make
Scanning dependencies of target jshn
[ 2%] Building C object CMakeFiles/jshn.dir/jshn.c.o
/opt/git/libubox/jshn.c: In function ‘jshn_parse’:
/opt/git/libubox/jshn.c:162:6: error: implicit declaration of function ‘is_error’ [-Werror=implicit-function-declaration]
  if (is_error(obj) || json_object_get_type(obj) != json_type_object) {
      ^
cc1: all warnings being treated as errors
CMakeFiles/jshn.dir/build.make:62: recipe for target 'CMakeFiles/jshn.dir/jshn.c.o' failed
make[2]: *** [CMakeFiles/jshn.dir/jshn.c.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/jshn.dir/all' failed
make[1]: *** [CMakeFiles/jshn.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2


/opt/git/libubox/blobmsg_json.c: In function ‘__blobmsg_add_json’:
/opt/git/libubox/blobmsg_json.c:78:6: error: implicit declaration of function ‘is_error’ [-Werror=implicit-function-declaration]
  if (is_error(obj))
      ^
cc1: all warnings being treated as errors
CMakeFiles/blobmsg_json.dir/build.make:62: recipe for target 'CMakeFiles/blobmsg_json.dir/blobmsg_json.c.o' failed
make[2]: *** [CMakeFiles/blobmsg_json.dir/blobmsg_json.c.o] Error 1
CMakeFiles/Makefile2:178: recipe for target 'CMakeFiles/blobmsg_json.dir/all' failed
make[1]: *** [CMakeFiles/blobmsg_json.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
(0000543)
mohamed.kallel   
2016-08-24 18:27   
Or use json-c-0.11 version will sove the problem
(0000544)
danlee   
2016-08-24 18:33   
I have re-installed all the dependent modules and easycwmp. After that, I can verify that the json command for querying device_id works okay. Also, the easycwmp client daemon is trying to send an Inform XML message to the ACS server. As a next step, I will modify the default ACS server and test how easycwmp interacts with the real ACS server. You can close this issue. Thanks.
   

dlee@ubuntu:/opt/dev/easycwmp$ sudo easycwmp --json-input
easycwmp>
{"command": "inform", "class": "device_id"}
{ "manufacturer": "easycwmp", "oui": "FFFFFF", "product_class": "easycwmp", "serial_number": "FFFFFF123456" }


dlee@ubuntu:/opt/dev/easycwmp$ sudo /usr/sbin/easycwmpd -f -b
2016-08-24 09:19:22 [easycwmp] NOTICE - add event '0 BOOTSTRAP'
2016-08-24 09:19:22 [easycwmp] NOTICE - external script init
config_init_local(55):: easycwmp.@local[0].interface=eth0
config_init_local(65):: easycwmp.@local[0].port=7547
config_init_local(83):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(71):: easycwmp.@local[0].username=easycwmp
config_init_local(77):: easycwmp.@local[0].password=easycwmp
config_init_local(94):: easycwmp.@local[0].logging_level=3
config_init_acs(159):: easycwmp.@acs[0].url=http://192.168.1.110:8080/openacs/acs
config_init_acs(165):: easycwmp.@acs[0].username=easycwmp
config_init_acs(171):: easycwmp.@acs[0].password=easycwmp
config_init_acs(177):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(183):: easycwmp.@acs[0].periodic_interval=100
config_init_acs(190):: easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z
2016-08-24 09:19:22 [easycwmp] NOTICE - add event '0 BOOTSTRAP'
2016-08-24 09:19:22 [easycwmp] NOTICE - init periodic inform: reference time = -62135568422, interval = 100
2016-08-24 09:19:22 [easycwmp] NOTICE - external: execute update_value_change
2016-08-24 09:19:23 [easycwmp] NOTICE - daemon started
2016-08-24 09:19:23 [easycwmp] NOTICE - external: execute inform device_id
2016-08-24 09:19:23 [easycwmp] NOTICE - external script exit
2016-08-24 09:19:23 [easycwmp] NOTICE - add event '1 BOOT'
+++ HTTP SERVER CONFIGURATION +++
NOT BOUND TO IP
port: '7547'
--- HTTP SERVER CONFIGURATION ---
2016-08-24 09:19:23 [easycwmp] NOTICE - http server initialized
2016-08-24 09:19:23 [easycwmp] NOTICE - entering main loop
2016-08-24 09:19:23 [easycwmp] NOTICE - start session
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(50):: url: http://192.168.1.110:8080/openacs/acs
http_client_init(56):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
2016-08-24 09:19:23 [easycwmp] NOTICE - configured acs url http://192.168.1.110:8080/openacs/acs
2016-08-24 09:19:23 [easycwmp] NOTICE - external script init
2016-08-24 09:19:23 [easycwmp] NOTICE - external: execute inform parameter
2016-08-24 09:19:23 [easycwmp] NOTICE - send Inform
+++ SEND HTTP REQUEST +++
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <soap_env:Envelope
xmlns:soap_env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soap_enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cwmp="urn:dslforum-org:cwmp-1-2">
  <soap_env:Header>
   <cwmp:ID soap_env:mustUnderstand="1">1</cwmp:ID>
  </soap_env:Header>
  <soap_env:Body>
   <cwmp:Inform>
    <DeviceId>
     <Manufacturer>easycwmp</Manufacturer>
     <OUI>FFFFFF</OUI>
     <ProductClass>easycwmp</ProductClass>
     <SerialNumber>FFFFFF123456</SerialNumber>
    </DeviceId>
    <Event soap_enc:arrayType="cwmp:EventStruct[2]">
     <EventStruct>
      <EventCode>0 BOOTSTRAP</EventCode>
      <CommandKey />
     </EventStruct>
     <EventStruct>
      <EventCode>1 BOOT</EventCode>
      <CommandKey />
     </EventStruct>
    </Event>
    <MaxEnvelopes>1</MaxEnvelopes>
    <CurrentTime>2016-08-24T09:19:23-07:00</CurrentTime>
    <RetryCount>0</RetryCount>
    <ParameterList soap_enc:arrayType="cwmp:ParameterValueStruct[10]">
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.HardwareVersion</Name>
      <Value xsi:type="xsd:string">example_hw_version</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.Manufacturer</Name>
      <Value xsi:type="xsd:string">easycwmp</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.ManufacturerOUI</Name>
      <Value xsi:type="xsd:string">FFFFFF</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.ProductClass</Name>
      <Value xsi:type="xsd:string">easycwmp</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.ProvisioningCode</Name>
      <Value xsi:type="xsd:string"></Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.SerialNumber</Name>
      <Value xsi:type="xsd:string">FFFFFF123456</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.SoftwareVersion</Name>
      <Value xsi:type="xsd:string">example_sw_version</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.SpecVersion</Name>
      <Value xsi:type="xsd:string">1.0</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.ManagementServer.ConnectionRequestURL</Name>
      <Value xsi:type="xsd:string"></Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.ManagementServer.ParameterKey</Name>
      <Value xsi:type="xsd:string"></Value>
     </ParameterValueStruct>
    </ParameterList>
   </cwmp:Inform>
  </soap_env:Body>
 </soap_env:Envelope>
--- SEND HTTP REQUEST ---
* Trying 192.168.1.110...
* connect to 192.168.1.110 port 8080 failed: No route to host
* Failed to connect to 192.168.1.110 port 8080: No route to host
* Closing connection 0


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
163 [easycwmp] Question minor always 2016-09-20 11:46 2017-01-27 16:20
Reporter: geek007 Platform: Linux  
Assigned To: mohamed.kallel OS: openwrt  
Priority: normal OS Version: CC 15.05.1  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Can not find TR069 full parameters ?
Description: I have compiled easycwmp 1.3.4 with openwrt CC 15.05.1 version and configured to communicate with ACS.
It had communication but I wan to see all TR069 config parameters.

Is there way to generate or modify this parameters in source?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000547)
geek007   
2016-09-20 12:35   
what is the role of this along with /etc/init.d/easycwmpd:

root@openwrt:/# easycwmp -h
USAGE: /usr/sbin/easycwmp command [parameter] [values]
command:
  get [value|notification|name]
  set [value|notification]
  apply [value|notification|object|service]
  add [object]
  delete [object]
  download
  factory_reset
  reboot
  inform [parameter|device_id]
  --json-input

Is it suppose to add parameters separately ??
I want TR069 client should have its board specific get/set parameters
(0000548)
Anis   
2016-09-26 10:54   
you can found the Easycwmp config under /etc/config/easycwmp .

 the "/etc/init.d/easycwmpd" is the demon to launch easycwmpd process to communicate with ACS.

easycwmp is the command to execute locally the RPC like

#easycwmp get value

will show you all the tree of the data model parameters.
(0000549)
mohamed.kallel   
2016-09-26 10:56   
you can play with easycwmp command in order to test and to see the data model (get/set/addobj/delobj...) without ACS.

You can implement your own data model parameters by following the existing parameters. they are implemented in shell. they are under the folder ext/openwrt/scripts/functions


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
170 [easycwmp] Help minor N/A 2016-10-26 04:31 2017-01-27 16:18
Reporter: satirus Platform: Linux  
Assigned To: mohamed.kallel OS: Ubuntu  
Priority: normal OS Version: 14.04  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: how to use /tmp/.easycwmp_notif_param_value
Description: we can replace value by "ubus call tr069 notify" with /tmp/.easycwmp_notif_param_value.
as I analyze the easycwmp source and script, I must write something in /tmp/.easycwmp_notif_param_value before "ubus call tr069 notify"
but I don't know how to write a contents in /tmp/.easycwmp_notif_param_value.

can you explane how to use?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000565)
mohamed.kallel   
2016-10-26 10:20   
You do not have to change the /tmp/.easycwmp_notif_param_value. This file is only updated by easycwmp.

in order to get "ubus call tr069 notify" work, you have to:
1) set parameter to notification value to 2 (Active)
2) Change the parmeter value manually (not with ACS neither with easycwmp command) by editing the conf file for example.
3) call the "ubus call tr069 notify" and you will see easycwmp starting session to the ACS immediately.


Calling "ubus call tr069 notify" means that you are trigging easycwmp to cCheck if there is any parameter (with notification value = 2) has changed out of the easycwmp control. If there is one then easycwmp will open session immediately to ACS with inform containing the event "4 Value Change".


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
171 [easycwmp] Help minor always 2016-10-26 09:26 2017-01-27 16:16
Reporter: poori401 Platform: Linux  
Assigned To: mohamed.kallel OS: Ubuntu  
Priority: urgent OS Version: 15.04  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Able to send Inform but not able to get GPV response from Easycwmp
Description: Hi Team,

I am not able to get the GPV response from the easycwmp.

ACS : apache php simulator
Host : Ubuntu 15.04


Here is my datamodel o/p
root@ubuntu-VirtualBox:~# /usr/sbin/easycwmp get
{ "parameter": "InternetGatewayDevice.DeviceInfo.SpecVersion", "value": "1.0" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.ProvisioningCode", "value": "" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.Manufacturer", "value": "easycwmp" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.ManufacturerOUI", "value": "FFFFFF" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.ProductClass", "value": "easycwmp" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.SerialNumber", "value": "FFFFFF123456" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.HardwareVersion", "value": "example_hw_version" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.SoftwareVersion", "value": "example_sw_version" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.UpTime", "value": "6536", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.DeviceLog", "value": "" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.MemoryStatus.Total", "value": "2048844" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.MemoryStatus.Free", "value": "297184" }
{ "parameter": "InternetGatewayDevice.IP.Diagnostics.IPPing.DiagnosticsState", "value": "None" }
{ "parameter": "InternetGatewayDevice.IP.Diagnostics.IPPing.Host", "value": "" }
{ "parameter": "InternetGatewayDevice.IP.Diagnostics.IPPing.NumberOfRepetitions", "value": "3", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.IP.Diagnostics.IPPing.Timeout", "value": "1000", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.IP.Diagnostics.IPPing.DataBlockSize", "value": "64", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.IP.Diagnostics.IPPing.SuccessCount", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.IP.Diagnostics.IPPing.FailureCount", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.IP.Diagnostics.IPPing.AverageResponseTime", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.IP.Diagnostics.IPPing.MinimumResponseTime", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.IP.Diagnostics.IPPing.MaximumResponseTime", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.ManagementServer.URL", "value": "http:\/\/10.4.33.86\/CWMP2\/post_act_abd1.php" }
{ "parameter": "InternetGatewayDevice.ManagementServer.Username", "value": "" }
{ "parameter": "InternetGatewayDevice.ManagementServer.Password", "value": "" }
{ "parameter": "InternetGatewayDevice.ManagementServer.PeriodicInformEnable", "value": "0", "type": "xsd:boolean" }
{ "parameter": "InternetGatewayDevice.ManagementServer.PeriodicInformInterval", "value": "100", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.ManagementServer.PeriodicInformTime", "value": "0001-01-01T00:00:00Z", "type": "xsd:dateTime" }
{ "parameter": "InternetGatewayDevice.ManagementServer.ConnectionRequestURL", "value": "http:\/\/10.4.16.45:7547\/" }
{ "parameter": "InternetGatewayDevice.ManagementServer.ConnectionRequestUsername", "value": "" }
{ "parameter": "InternetGatewayDevice.ManagementServer.ConnectionRequestPassword", "value": "" }
{ "parameter": "InternetGatewayDevice.ManagementServer.ParameterKey", "value": "" }

Here is my configuration file
# easycwmp uci configuration

config local
# option interface eth0
    option interface enp0s3
    option port 7547
    option ubus_socket /var/run/ubus.sock
    option date_format %FT%T%z
    #option username easycwmp
    #option password easycwmp
    option provisioning_code ''
#Logging levels: Critic=0, Warning=1, Notice=2, Info=3, Debug=4
    option logging_level '3'

config acs
    option url http://10.4.33.86/CWMP2/post_act_abd1.php
    #option username easycwmp
    #option password easycwmp
    option parameter_key ''
    option periodic_enable '0'
    option periodic_interval '100'
    option periodic_time '0001-01-01T00:00:00Z'

config device
    option manufacturer easycwmp
    option oui FFFFFF
    option product_class easycwmp
    option serial_number FFFFFF123456
    option hardware_version example_hw_version
    option software_version example_sw_version

Here is my ACS XML file
<SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:cwmp="urn:dslforum-org:cwmp-1-2" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Header>
        <cwmp:ID SOAP-ENV:mustUnderstand="1">GPV</cwmp:ID>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <cwmp:GetParameterValues>
            <ParameterNames>
                    <Name>InternetGatewayDevice.IP.</Name>
            </ParameterNames>
        </cwmp:GetParameterValues>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


Here is the o/p of the easycwmp
root@ubuntu-VirtualBox:~# /usr/sbin/easycwmpd -f -b
2016-10-26 12:56:07 [easycwmp] NOTICE - external script init
config_init_local(55):: easycwmp.@local[0].interface=enp0s3
config_init_local(65):: easycwmp.@local[0].port=7547
config_init_local(83):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(94):: easycwmp.@local[0].logging_level=3
config_init_acs(159):: easycwmp.@acs[0].url=http://10.4.33.86/CWMP2/post_act_abd1.php
config_init_acs(177):: easycwmp.@acs[0].periodic_enable=0
config_init_acs(183):: easycwmp.@acs[0].periodic_interval=100
config_init_acs(190):: easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z
2016-10-26 12:56:07 [easycwmp] NOTICE - external: execute update_value_change
2016-10-26 12:56:08 [easycwmp] NOTICE - daemon started
2016-10-26 12:56:08 [easycwmp] NOTICE - external: execute inform device_id
2016-10-26 12:56:08 [easycwmp] NOTICE - external script exit
2016-10-26 12:56:08 [easycwmp] NOTICE - add event '1 BOOT'
2016-10-26 12:56:08 [easycwmp] NOTICE - interface enp0s3 has ip 10.4.16.45
main(320): ubus initialization failed
+++ HTTP SERVER CONFIGURATION +++
ip: '10.4.16.45'
port: '7547'
--- HTTP SERVER CONFIGURATION ---
2016-10-26 12:56:08 [easycwmp] NOTICE - http server initialized
2016-10-26 12:56:08 [easycwmp] NOTICE - entering main loop
2016-10-26 12:56:08 [easycwmp] NOTICE - start session
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(50):: url: http://10.4.33.86/CWMP2/post_act_abd1.php
http_client_init(56):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
2016-10-26 12:56:08 [easycwmp] NOTICE - configured acs url http://10.4.33.86/CWMP2/post_act_abd1.php
2016-10-26 12:56:08 [easycwmp] NOTICE - external script init
2016-10-26 12:56:08 [easycwmp] NOTICE - external: execute inform parameter
2016-10-26 12:56:08 [easycwmp] NOTICE - send Inform
+++ SEND HTTP REQUEST +++
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <soap_env:Envelope
xmlns:soap_env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soap_enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cwmp="urn:dslforum-org:cwmp-1-2">
  <soap_env:Header>
   <cwmp:ID soap_env:mustUnderstand="1">1</cwmp:ID>
  </soap_env:Header>
  <soap_env:Body>
   <cwmp:Inform>
    <DeviceId>
     <Manufacturer>easycwmp</Manufacturer>
     <OUI>FFFFFF</OUI>
     <ProductClass>easycwmp</ProductClass>
     <SerialNumber>FFFFFF123456</SerialNumber>
    </DeviceId>
    <Event soap_enc:arrayType="cwmp:EventStruct[1]">
     <EventStruct>
      <EventCode>1 BOOT</EventCode>
      <CommandKey />
     </EventStruct>
    </Event>
    <MaxEnvelopes>1</MaxEnvelopes>
    <CurrentTime>2016-10-26T12:56:08+05:00</CurrentTime>
    <RetryCount>0</RetryCount>
    <ParameterList soap_enc:arrayType="cwmp:ParameterValueStruct[10]">
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.HardwareVersion</Name>
      <Value xsi:type="xsd:string">example_hw_version</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.Manufacturer</Name>
      <Value xsi:type="xsd:string">easycwmp</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.ManufacturerOUI</Name>
      <Value xsi:type="xsd:string">FFFFFF</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.ProductClass</Name>
      <Value xsi:type="xsd:string">easycwmp</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.ProvisioningCode</Name>
      <Value xsi:type="xsd:string"></Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.SerialNumber</Name>
      <Value xsi:type="xsd:string">FFFFFF123456</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.SoftwareVersion</Name>
      <Value xsi:type="xsd:string">example_sw_version</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.SpecVersion</Name>
      <Value xsi:type="xsd:string">1.0</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.ManagementServer.ConnectionRequestURL</Name>
      <Value xsi:type="xsd:string">http://10.4.16.45:7547/</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.ManagementServer.ParameterKey</Name>
      <Value xsi:type="xsd:string"></Value>
     </ParameterValueStruct>
    </ParameterList>
   </cwmp:Inform>
  </soap_env:Body>
 </soap_env:Envelope>
--- SEND HTTP REQUEST ---
* Trying 10.4.33.86...
* Connected to 10.4.33.86 (10.4.33.86) port 80 (#0)
> POST /CWMP2/post_act_abd1.php HTTP/1.1
Host: 10.4.33.86
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 2871
Expect: 100-continue

< HTTP/1.1 100 Continue
* We are completely uploaded and fine
< HTTP/1.1 200 OK
< Date: Wed, 26 Oct 2016 07:26:05 GMT
< Server: Apache/2.2.16 (Debian)
< X-Powered-By: PHP/5.4.4-14+deb7u2
< Vary: Accept-Encoding
< Content-Length: 543
< Content-Type: text/html
<
* Connection #0 to host 10.4.33.86 left intact
+++ RECEIVED HTTP RESPONSE +++
<env:Envelope xmlns:enc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:env='http://schemas.xmlsoap.org/soap/envelope/' xmlns:cwmp='urn:dslforum-org:cwmp-1-0' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://w:ww.w3.org/2001/XMLSchema-instance'>
<env:Header><cwmp:ID SOAP-ENV:mustUnderstand='1'>073ad5f1</cwmp:ID>
<cwmp:NoMoreRequests>1</cwmp:NoMoreRequests>
</env:Header>
<env:Body><cwmp:InformResponse xmlns:cwmp='urn:dslforum-org:cwmp-1-0'><MaxEnvelopes>1</MaxEnvelopes></cwmp:InformResponse></env:Body></env:Envelope>
--- RECEIVED HTTP RESPONSE ---
2016-10-26 12:56:08 [easycwmp] NOTICE - receive InformResponse from the ACS
2016-10-26 12:56:08 [easycwmp] NOTICE - send empty message to the ACS
+++ SEND EMPTY HTTP REQUEST +++
* Found bundle for host 10.4.33.86: 0x7ea210
* Re-using existing connection! (#0) with host 10.4.33.86
* Connected to 10.4.33.86 (10.4.33.86) port 80 (#0)
> POST /CWMP2/post_act_abd1.php HTTP/1.1
Host: 10.4.33.86
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
Content-Length: 0

< HTTP/1.1 200 OK
< Date: Wed, 26 Oct 2016 07:26:05 GMT
< Server: Apache/2.2.16 (Debian)
< X-Powered-By: PHP/5.4.4-14+deb7u2
< Vary: Accept-Encoding
< Content-Length: 630
< Content-Type: text/html
<
* Connection #0 to host 10.4.33.86 left intact
+++ RECEIVED HTTP RESPONSE +++
<SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:cwmp="urn:dslforum-org:cwmp-1-2" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Header>
        <cwmp:ID SOAP-ENV:mustUnderstand="1">GPV</cwmp:ID>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <cwmp:GetParameterValues>
            <ParameterNames>
                    <Name>InternetGatewayDevice.IP.</Name>
            </ParameterNames>
        </cwmp:GetParameterValues>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

--- RECEIVED HTTP RESPONSE ---
2016-10-26 12:56:08 [easycwmp] NOTICE - received GetParameterValues method from the ACS
2016-10-26 12:56:08 [easycwmp] NOTICE - param value is NULL
2016-10-26 12:56:08 [easycwmp] NOTICE - param value is NULL
2016-10-26 12:56:08 [easycwmp] NOTICE - send GetParameterValuesResponse to the ACS
+++ SEND HTTP REQUEST +++
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <soap_env:Envelope
xmlns:soap_env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soap_enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cwmp="urn:dslforum-org:cwmp-1-2">
  <soap_env:Header>
   <cwmp:ID soap_env:mustUnderstand="1">GPV</cwmp:ID>
  </soap_env:Header>
  <soap_env:Body>
   <cwmp:GetParameterValuesResponse>
    <ParameterList soap_enc:arrayType="cwmp:ParameterValueStruct[0]" />
   </cwmp:GetParameterValuesResponse>
  </soap_env:Body>
 </soap_env:Envelope>
--- SEND HTTP REQUEST ---
* Found bundle for host 10.4.33.86: 0x7ea210
* Re-using existing connection! (#0) with host 10.4.33.86
* Connected to 10.4.33.86 (10.4.33.86) port 80 (#0)
> POST /CWMP2/post_act_abd1.php HTTP/1.1
Host: 10.4.33.86
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 633

* upload completely sent off: 633 out of 633 bytes
< HTTP/1.1 200 OK
< Date: Wed, 26 Oct 2016 07:26:05 GMT
< Server: Apache/2.2.16 (Debian)
< X-Powered-By: PHP/5.4.4-14+deb7u2
< Vary: Accept-Encoding
< Content-Length: 0
< Content-Type: text/html
<
* Connection #0 to host 10.4.33.86 left intact
+++ RECEIVED EMPTY HTTP RESPONSE +++
2016-10-26 12:56:08 [easycwmp] NOTICE - receive empty message from the ACS
2016-10-26 12:56:08 [easycwmp] NOTICE - external: execute apply service
2016-10-26 12:56:08 [easycwmp] NOTICE - external script exit
2016-10-26 12:56:08 [easycwmp] NOTICE - end session success
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000563)
mohamed.kallel   
2016-10-26 10:06   
(Last edited: 2016-10-26 10:07)
Your GetParameterValue in your XML file is not conform to the standard (Chapter A.3.2.2) : https://www.broadband-forum.org/technical/download/TR-069_Amendment-5.pdf

You should use the xml tags <string> instead of <Name>

It should be:

<SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" [^] xmlns:xsd="http://www.w3.org/2001/XMLSchema" [^] xmlns:cwmp="urn:dslforum-org:cwmp-1-2" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" [^] xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> [^]
    <SOAP-ENV:Header>
        <cwmp:ID SOAP-ENV:mustUnderstand="1">GPV</cwmp:ID>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <cwmp:GetParameterValues>
            <ParameterNames>
                    <string>InternetGatewayDevice.IP.</string>
            </ParameterNames>
        </cwmp:GetParameterValues>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

(0000567)
poori401   
2016-10-28 08:34   
Thanks a lot Kallel.

Yes, I have tested the GPV and SPV and they are working fine. You can close the issue.

Thanks and regards,
Abdul Muheedh B


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
165 [easycwmp] Help minor have not tried 2016-10-11 18:44 2017-01-27 16:14
Reporter: muna116 Platform: Linux  
Assigned To: mohamed.kallel OS: Ubuntu  
Priority: normal OS Version: 14.04  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: How deploy a Complete TR-069 Client-Server Environment
Description: I'm new to CWMP environment. After a couple of days reading I've reached to a point that we need an "ACS Server", "TR-069 Client" and "TR-069 Enabled CPE" (in our case it's Android STB).

Do I really need TR-069 Client OR TR-069 Enabled CPE will act as client?

Can I get an idea how much hardware and what specs I would need for the complete deployment. For ACS I'm planning to use "FreeACS", for TR-069 Client "EasyCWMP" or to enable our STB (for TR-135 standard).
Tags:
Steps To Reproduce: Please help me.
Additional Information:
Attached Files:
Notes
(0000552)
muna116   
2016-10-11 19:02   
I might have asked the repeating question, so apologize for that and please give me the reference ticket number where this question has already answered. Thanks.
(0000553)
mohamed.kallel   
2016-10-11 19:28   
You need ACS server (Like genieACS or freeACS)
And you need EasyCwmp (TR-069 client) implemented in your STB. That's all.

And you need only one ACS server and what ever the number of STB. You can implement the EasyCwmp open source in unlimited number of STB.

For the TR-135, it is not implemented in the free version of EasyCwmp, you can follow the parameters already implemented (in script shell) in order to implement your own parameters. It's easy and funny!
(0000554)
muna116   
2016-10-11 19:45   
Thanks Mohamed.

So, to implement it for STB, what do we need? Is there any free limited trial edition to setup a DEMO/TEST environment?
(0000555)
mohamed.kallel   
2016-10-12 13:14   
To implement it, you just need to follow the manual in the install page of www.easycwmp.org.

The free version contains some parameters of the TR-181 data model. And they are sufficient in order to make your first evaluation and tests.

For the commercial version it contains:
- Data Model TR-181 in C
- Stun fature
- XMPP feature

And also we provide service to implement more parameters.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
185 [easycwmp] Question minor have not tried 2016-12-01 12:52 2017-01-27 16:05
Reporter: alicher Platform:  
Assigned To: mohamed.kallel OS: Linux  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: Can't change PeriodicInformInterval
Description: I change config file
     option periodic_interval '79765' >> option periodic_interval '1000'
save and call
     ubus call tr069 notify
but after exchange I have
     option periodic_interval '88230'
were I'm wrong?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000581)
mohamed.kallel   
2016-12-01 14:10   
may be your acs is setting the value of the periodic_interval in the exchange
(0000585)
alicher   
2016-12-01 14:55   
Server Log

2016-12-01 16:50:32 Notice Web 0(Default) Updated unit parameter Device.ManagementServer.PeriodicInformInterval with value 1000

2016-12-01 16:50:33 Notice TR069 0(Default) ProvMsg: Written to CPE: Device.ManagementServer.PeriodicInformInterval = 84737

Server bug?
(0000586)
mohamed.kallel   
2016-12-01 15:35   
It's Just a server configuration and not bug. May be your server is configured to set th periodic interval. You can look in the ACS setting and try to disable it or set it equal to your periodic interval


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
186 [easycwmp] Help minor always 2016-12-01 13:11 2017-01-27 16:02
Reporter: hkachhia Platform: Virtual box  
Assigned To: mohamed.kallel OS: Ubuntu  
Priority: normal OS Version: 14.04  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: getting error when tried to configure json-c
Description: I have downloaded latest package easycwmp-1.4.1.tar.gz from download page and followed step number 3 from install page "3. EasyCwmp install for other Linux distributions:"

I am getting error when tried to configure json-c.
Error :
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
Tags:
Steps To Reproduce: git clone git://github.com/json-c/json-c.git /opt/git/json-c
cd /opt/git/json-c/

autoreconf -i
Additional Information:
Attached Files:
Notes
(0000580)
hkachhia   
2016-12-01 13:13   
By mistake i have wrote wrong summary " No package 'microxml' found"
(0000582)
mohamed.kallel   
2016-12-01 14:18   
Try to use the last cersion of automake
Otherwise you have to add AC_CONFIG_MACRO_DIR([m4]) in the configure.ac
(0000589)
hkachhia   
2016-12-02 05:53   
I have removed and install automake , but getting same error

sudo apt-get autoremove automake
sudo apt-get install automake
(0000590)
hkachhia   
2016-12-02 08:16   
I have fixed my problem after adding AC_CONFIG_MACRO_DIR([m4]) in the configure.ac


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
187 [easycwmp] Help minor N/A 2016-12-02 09:50 2017-01-27 16:00
Reporter: hkachhia Platform: Virtual box  
Assigned To: mohamed.kallel OS: Ubuntu  
Priority: normal OS Version: 14.04  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
Summary: How to access easyCwmp UI ?
Description: I have success