View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
456 [easycwmp] Bug major always 2023-04-20 09:40 2023-05-16 18:29
Reporter: haripriya Platform:  
Assigned To: Anis OS:  
Priority: high OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: I can't find scripts from this site https://pastebin.lukaperkov.net/openwrt/20121219_lib_functions_network.sh
Description: 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

 Kindly suggest alternate openwrt site for installation of this script...
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0001062)
Anis   
2023-05-16 18:29   
issue fixed.
Please refer to easycwmp Tutorial

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
455 [easycwmp] Bug minor have not tried 2023-01-06 08:13 2023-05-16 12:31
Reporter: hieuns 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:  
e-mail notification:
Summary: Error near unexpected token
Description:
I couldn't install EasyCwmp in my Ubuntu 22.04.1 when running ./configure, always got errors :

./configure: line 4624: syntax error near unexpected token `LIBCURL,'
./configure: line 4624: `PKG_CHECK_MODULES(LIBCURL, libcurl)'
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0001053)
mohamed.kallel   
2023-03-30 20:52   
did you get this error in ubuntu 20 or 18
(0001061)
Anis   
2023-05-16 12:31   
Did you install the Libcul ?
the libcurl should be built and installed before the build of easycwmp

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
454 [easycwmp] General major always 2023-01-05 22:32 2023-03-30 20:56
Reporter: Ernesto Rodriguez Vizoso Platform:  
Assigned To: mohamed.kallel OS:  
Priority: urgent OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Easycwmp configuration through luci interface.
Description: We need to visualize through luci the easycwmp configuration in openwrt. This is to be able to make changes easily in the corresponding configuration.
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:
165 [easycwmp] Help minor have not tried 2016-10-11 18:44 2023-01-06 05:37
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:  
e-mail notification:
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:
451 [easycwmp] Bug minor always 2022-12-06 19:11 2022-12-14 20:15
Reporter: vishnu 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:  
e-mail notification:
Summary: Error while building easycwmp on OpenWRT
Description: I tried building easycwmp on openwrt but I couldn't compile it.

I followed each steps from https://easycwmp.org/tutorial/

after giving make, I got error at
make[3] -C package/easycwmp compile
ERROR: package/easycwmp failed to build.

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

make: *** [/home/vishnu/openwrt/include/toplevel.mk:231: world] Error 1


Kindly help me to resolve.
 
Tags: Openwrt, patch-available, ubuntu
Steps To Reproduce:
Additional Information: After giving make -j1 V=s

home/vishnu/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/11.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld: ../src/easycwmpd-ubus.o:(.bss+0x58): multiple definition of `event_code_array'; ../src/easycwmpd-backup.o:(.bss+0x8): first defined here

/home/vishnu/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/11.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld: ../src/easycwmpd-xml.o:(.bss+0x80): multiple definition of `event_code_array'; ../src/easycwmpd-backup.o:(.bss+0x8): first defined here

collect2: error: ld returned 1 exit status

make[5]: *** [Makefile:458: easycwmpd] Error 1

make[5]: Leaving directory '/home/vishnu/openwrt/build_dir/target-aarch64_cortex-a53_musl/easycwmp/easycwmp-1.8.6/bin'

make[4]: *** [Makefile:353: all-recursive] Error 1

make[4]: Leaving directory '/home/vishnu/openwrt/build_dir/target-aarch64_cortex-a53_musl/easycwmp/easycwmp-1.8.6'

make[3]: *** [Makefile:110: /home/vishnu/openwrt/build_dir/target-aarch64_cortex-a53_musl/easycwmp/easycwmp-1.8.6/.built] Error 2

make[3]: Leaving directory '/home/vishnu/openwrt/package/easycwmp'

time: package/easycwmp/compile#1.77#0.14#1.98

    ERROR: package/easycwmp failed to build.

make[2]: *** [package/Makefile:116: package/easycwmp/compile] Error 1

make[2]: Leaving directory '/home/vishnu/openwrt'

make[1]: *** [package/Makefile:110: /home/vishnu/openwrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2

make[1]: Leaving directory '/home/vishnu/openwrt'

make: *** [/home/vishnu/openwrt/include/toplevel.mk:231: world] Error 2
Attached Files:
Notes
(0001051)
hmh   
2022-12-14 20:11   
Patch is simple:

--- a/src/cwmp.h
+++ b/src/cwmp.h
@@ -142,7 +142,7 @@ struct cwmp_internal {
};

extern struct cwmp_internal *cwmp;
-struct event_code event_code_array[__EVENT_MAX];
+extern struct event_code event_code_array[__EVENT_MAX];

static void cwmp_periodic_inform(struct uloop_timeout *timeout);
static void cwmp_do_inform(struct uloop_timeout *timeout);
(0001052)
hmh   
2022-12-14 20:13   
Note: easycwmp build is actually broken on gcc10+ and likely non-ancient clang because of this issue, really. It is not specific to OpenWRT at all.

And I wish I could attach proper patches as I could before. Oh well.

I looked, and there is a PR pending with this very same fix in github as well.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
141 [easycwmp] Help minor have not tried 2016-06-14 12:49 2022-12-14 17:10
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:  
e-mail notification:
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;
      }
(0001048)
hmh   
2022-12-14 16:23   
Well, that ACS' XML parsing is crap, plain and simple. But that's hardly surprising.

Really, it would make more sense for CWMP to ask libmicroxml to generate non-formatted XML, but when you do that, you also risk hitting line-length limits on broken quasi-XML parses.

Someone in github had the idea of adding a space after the linefeed, instead of replacing the linefeed with a space. This would work with parsers that skip one and require the other, AND avoid generating long lines.

But it won't work on parsers that can't handle LF separators at all...
(0001049)
hmh   
2022-12-14 17:08   
FWIW:
https://github.com/pivasoftware/microxml/pull/5


Note that I don't have any such broken ACS'es around here to test if this is enough to fix things.

Will also attach the patch here.
(0001050)
hmh   
2022-12-14 17:10   
diff --git a/mxml-file.c b/mxml-file.c
index 02eca9d..4875189 100644
--- a/mxml-file.c
+++ b/mxml-file.c
@@ -2790,13 +2790,11 @@ mxml_write_node(mxml_node_t *node, /* I - Node to write */

col = 0;
}
- else
- {
- if ((*putc_cb)(' ', p) < 0)
- return (-1);

- col ++;
- }
+ /* https://support.easycwmp.org/view.php?id=141 */
+ if ((*putc_cb)(' ', p) < 0)
+ return (-1);
+ col ++;

if (mxml_write_name(attr->name, p, putc_cb) < 0)
return (-1);

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
453 [easycwmp] Question major always 2022-12-14 11:21 2022-12-14 11:21
Reporter: jaingourav310 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:  
e-mail notification:
Summary: How to call wifi function ??
Description: Hi All,
I'm using "easycwmp-1.6.0" in my setup. While running "easycwmp get command" not able to see any wifi parameters.

Could some one pls let me know where to enable wifi function ??

 root@OpenWrt:/# easycwmp get
{ "parameter": "Device.UPnP.Enable", "value": "1" }
{ "parameter": "Device.DeviceInfo.Manufacturer", "value": "C-DOT" }
{ "parameter": "Device.DeviceInfo.ManufacturerOUI", "value": "002488" }
{ "parameter": "Device.DeviceInfo.ModelName", "value": "Qualcomm Technologies, Inc. IPQ40xx\/AP-DK01.1-C1" }
{ "parameter": "Device.DeviceInfo.ModelNumber", "value": "IPQ40xx\/AP-DK01.1-C1" }
{ "parameter": "Device.DeviceInfo.ProductClass", "value": "DEVICE" }
{ "parameter": "Device.DeviceInfo.SerialNumber", "value": "0024883CA599" }
{ "parameter": "Device.DeviceInfo.HardwareVersion", "value": "v0" }
{ "parameter": "Device.DeviceInfo.SoftwareVersion", "value": "15.05.1" }
{ "parameter": "Device.DeviceInfo.UpTime", "value": "14647", "type": "xsd:unsignedInt" }
{ "parameter": "Device.DeviceInfo.ProcessorNumberOfEnteries", "value": "4" }
{ "parameter": "Device.DeviceInfo.MemoryStatus.Total", "value": "235292" }
{ "parameter": "Device.DeviceInfo.MemoryStatus.Free", "value": "107712" }
{ "parameter": "Device.DeviceInfo.ProcessStatus.CPUUsage", "value": "4.86169%" }
{ "parameter": "Device.DeviceInfo.ProcessStatus.ProcessNumberOfEntries", "value": "129" }
{ "parameter": "Device.DeviceInfo.NetworkProperties.MaxTCPWindowSize", "value": "1850912" }
{ "parameter": "Device.DeviceInfo.NetworkProperties.TCPImplementation", "value": "cubic" }
{ "parameter": "Device.DeviceInfo.ProxierInfo.ManufacturerOUI", "value": "002488" }
{ "parameter": "Device.DHCPv4.Server.Enable", "value": "1", "type": "xsd:boolean" }
{ "parameter": "Device.IP.Interface.1.Enable", "value": "1", "type": "xsd:boolean" }
{ "parameter": "Device.IP.Interface.1.Name", "value": "loopback" }
{ "parameter": "Device.IP.Interface.1.Type", "value": "Loopback" }
{ "parameter": "Device.IP.Interface.1.IPv4AddressNumberOfEntries", "value": "1", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.1.IPv4Address.1.IPAddress", "value": "127.0.0.1" }
{ "parameter": "Device.IP.Interface.1.IPv4Address.1.AddressingType", "value": "Static" }
{ "parameter": "Device.IP.Interface.1.IPv4Address.1.Enable", "value": "1", "type": "xsd:boolean" }
{ "parameter": "Device.IP.Interface.1.IPv4Address.1.SubnetMask", "value": "255.0.0.0" }
{ "parameter": "Device.IP.Interface.1.Stats.BytesSent", "value": "86264", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.1.Stats.BytesReceived", "value": "86264", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.1.Stats.PacketsSent", "value": "1174", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.1.Stats.PacketsReceived", "value": "1174", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.1.Stats.ErrorsSent", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.1.Stats.ErrorsReceived", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.1.Stats.DiscardPacketsSent", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.1.Stats.DiscardPacketsReceived", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.2.Enable", "value": "1", "type": "xsd:boolean" }
{ "parameter": "Device.IP.Interface.2.Name", "value": "lan" }
{ "parameter": "Device.IP.Interface.2.Type", "value": "Normal" }
{ "parameter": "Device.IP.Interface.2.IPv4AddressNumberOfEntries", "value": "1", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.2.IPv4Address.1.IPAddress", "value": "192.168.20.1" }
{ "parameter": "Device.IP.Interface.2.IPv4Address.1.AddressingType", "value": "Static" }
{ "parameter": "Device.IP.Interface.2.IPv4Address.1.Enable", "value": "1", "type": "xsd:boolean" }
{ "parameter": "Device.IP.Interface.2.IPv4Address.1.SubnetMask", "value": "255.255.255.0" }
{ "parameter": "Device.IP.Interface.2.Stats.BytesSent", "value": "1258", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.2.Stats.BytesReceived", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.2.Stats.PacketsSent", "value": "11", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.2.Stats.PacketsReceived", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.2.Stats.ErrorsSent", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.2.Stats.ErrorsReceived", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.2.Stats.DiscardPacketsSent", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.2.Stats.DiscardPacketsReceived", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.3.Enable", "value": "1", "type": "xsd:boolean" }
{ "parameter": "Device.IP.Interface.3.Name", "value": "wan" }
{ "parameter": "Device.IP.Interface.3.Type", "value": "Normal" }
{ "parameter": "Device.IP.Interface.3.IPv4AddressNumberOfEntries", "value": "1", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.3.IPv4Address.1.IPAddress", "value": "192.168.1.41" }
{ "parameter": "Device.IP.Interface.3.IPv4Address.1.AddressingType", "value": "DHCP" }
{ "parameter": "Device.IP.Interface.3.IPv4Address.1.Enable", "value": "1", "type": "xsd:boolean" }
{ "parameter": "Device.IP.Interface.3.IPv4Address.1.SubnetMask", "value": "255.255.255.0" }
{ "parameter": "Device.IP.Interface.3.Stats.BytesSent", "value": "1231071", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.3.Stats.BytesReceived", "value": "1034761", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.3.Stats.PacketsSent", "value": "2831", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.3.Stats.PacketsReceived", "value": "15444", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.3.Stats.ErrorsSent", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.3.Stats.ErrorsReceived", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.3.Stats.DiscardPacketsSent", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.3.Stats.DiscardPacketsReceived", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.4.Enable", "value": "1", "type": "xsd:boolean" }
{ "parameter": "Device.IP.Interface.4.Name", "value": "wan6" }
{ "parameter": "Device.IP.Interface.4.Type", "value": "Normal" }
{ "parameter": "Device.IP.Interface.4.IPv4AddressNumberOfEntries", "value": "1", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.4.IPv4Address.1.IPAddress", "value": "" }
{ "parameter": "Device.IP.Interface.4.IPv4Address.1.AddressingType", "value": "DHCP" }
{ "parameter": "Device.IP.Interface.4.IPv4Address.1.Enable", "value": "1", "type": "xsd:boolean" }
{ "parameter": "Device.IP.Interface.4.IPv4Address.1.SubnetMask", "value": "" }
{ "parameter": "Device.IP.Interface.4.Stats.BytesSent", "value": "1231071", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.4.Stats.BytesReceived", "value": "1034761", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.4.Stats.PacketsSent", "value": "2831", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.4.Stats.PacketsReceived", "value": "15444", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.4.Stats.ErrorsSent", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.4.Stats.ErrorsReceived", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.4.Stats.DiscardPacketsSent", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "Device.IP.Interface.4.Stats.DiscardPacketsReceived", "value": "0", "type": "xsd:unsignedInt" }
{ "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:\/\/wanidmtest.cdot.in:5210\/" }
{ "parameter": "Device.ManagementServer.Username", "value": "cdotm2mserver" }
{ "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.1.41:7547\/" }
{ "parameter": "Device.ManagementServer.ConnectionRequestUsername", "value": "easycwmp" }
{ "parameter": "Device.ManagementServer.ConnectionRequestPassword", "value": "" }
{ "parameter": "Device.ManagementServer.ParameterKey", "value": "" }
{ "parameter": "Device.Time.Enable", "value": "0" }
{ "parameter": "Device.Time.NTPServer1", "value": "0.openwrt.pool.ntp.org" }
{ "parameter": "Device.Time.NTPServer2", "value": "1.openwrt.pool.ntp.org" }
{ "parameter": "Device.Time.NTPServer3", "value": "2.openwrt.pool.ntp.org" }
{ "parameter": "Device.Time.NTPServer4", "value": "3.openwrt.pool.ntp.org" }
{ "parameter": "Device.Time.LocalTimeZone", "value": "UTC" }
{ "parameter": "Device.Time.CurrentLocalTime", "value": "Wed Dec 14 10:07:10 UTC 2022" }
{ "parameter": "Device.USB.Port.usb1.Name", "value": "Linux 4.4.60 xhci-hcd" }
{ "parameter": "Device.USB.Port.usb1.Standard", "value": " 2.00" }
{ "parameter": "Device.USB.Port.usb1.Type", "value": "usb_device" }
{ "parameter": "Device.USB.Port.usb1.Rate", "value": "480" }
{ "parameter": "Device.USB.Port.usb1.Power", "value": "e0" }
{ "parameter": "Device.USB.Port.usb2.Name", "value": "Linux 4.4.60 xhci-hcd" }
{ "parameter": "Device.USB.Port.usb2.Standard", "value": " 3.00" }
{ "parameter": "Device.USB.Port.usb2.Type", "value": "usb_device" }
{ "parameter": "Device.USB.Port.usb2.Rate", "value": "5000" }
{ "parameter": "Device.USB.Port.usb2.Power", "value": "e0" }
{ "parameter": "Device.USB.Port.usb3.Name", "value": "Linux 4.4.60 xhci-hcd" }
{ "parameter": "Device.USB.Port.usb3.Standard", "value": " 2.00" }
{ "parameter": "Device.USB.Port.usb3.Type", "value": "usb_device" }
{ "parameter": "Device.USB.Port.usb3.Rate", "value": "480" }
{ "parameter": "Device.USB.Port.usb3.Power", "value": "e0" }
{ "parameter": "Device.USB.Port.usb4.Name", "value": "Linux 4.4.60 xhci-hcd" }
{ "parameter": "Device.USB.Port.usb4.Standard", "value": " 3.00" }
{ "parameter": "Device.USB.Port.usb4.Type", "value": "usb_device" }
{ "parameter": "Device.USB.Port.usb4.Rate", "value": "5000" }
{ "parameter": "Device.USB.Port.usb4.Power", "value": "e0" }
{ "parameter": "Device.USB.USBHosts.HostNumberOfEntries", "value": "4", "type": "xsd:unsigned int" }
{ "parameter": "Device.USB.USBHosts.Host.usb1.Name", "value": "xHCI Host Controller" }
{ "parameter": "Device.USB.USBHosts.Host.usb1.Type", "value": "usb_device" }
{ "parameter": "Device.USB.USBHosts.Host.usb1.USBVersion", "value": " 2.00" }
{ "parameter": "Device.USB.USBHosts.Host.usb2.Name", "value": "xHCI Host Controller" }
{ "parameter": "Device.USB.USBHosts.Host.usb2.Type", "value": "usb_device" }
{ "parameter": "Device.USB.USBHosts.Host.usb2.USBVersion", "value": " 3.00" }
{ "parameter": "Device.USB.USBHosts.Host.usb3.Name", "value": "xHCI Host Controller" }
{ "parameter": "Device.USB.USBHosts.Host.usb3.Type", "value": "usb_device" }
{ "parameter": "Device.USB.USBHosts.Host.usb3.USBVersion", "value": " 2.00" }
{ "parameter": "Device.USB.USBHosts.Host.usb4.Name", "value": "xHCI Host Controller" }
{ "parameter": "Device.USB.USBHosts.Host.usb4.Type", "value": "usb_device" }
{ "parameter": "Device.USB.USBHosts.Host.usb4.USBVersion", "value": " 3.00" }
Tags: mohamed.kallel
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:
452 [easycwmp] Help major always 2022-12-07 10:37 2022-12-07 10:37
Reporter: haripriya 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:  
e-mail notification:
Summary: Periodic inform Interval is not modify..its constant as 300
Description: int http_digest_auth_check(const char *http_method, const char *url,
                const char *header, const char *realm, const char *username,
                const char *password, unsigned int nonce_timeout)
{
 In http.c
 if (http_digest_auth_check("GET", "/", auth_digest + strlen("Authorization: Digest "), REALM, username, password,300) == MHD_YES)
                                        auth_status = 1;
this 300 mean that periodic inform interval?
Tags:
Steps To Reproduce: i am using genieacs from server i have try to manipulate the periodic inform interval. It's set as new value a sec then its auto setting of defaut value 300

kindly check logs

* Connection #0 to host 192.168.1.40 left intact
2022-12-07 14:54:59 [easycwmp] NOTICE - received SetParameterValues method from the ACS
2022-12-07 14:54:59 [easycwmp] NOTICE - external: execute set value Device.ManagementServer.PeriodicInformInterval 1300
2022-12-07 14:54:59 [easycwmp] NOTICE - external: execute apply value
2022-12-07 14:54:59 [easycwmp] NOTICE - send SetParameterValuesResponse to the ACS
* Found bundle for host: 0x55cced5378e0 [serially]
* Re-using existing connection #0 with host 192.168.1.40
* Connected to 192.168.1.40 (192.168.1.40) port 7547 (#0)
> POST /openacs/acs HTTP/1.1
Host: 192.168.1.40:7547
Cookie: session=0b40638ae148ac77
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 596

* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Content-Length: 772
< Server: GenieACS/1.2.8+20211027200938
< SOAPServer: GenieACS/1.2.8+20211027200938
< Content-Type: text/xml; charset="utf-8"
< Date: Wed, 07 Dec 2022 09:24:59 GMT
< Connection: keep-alive
<
* Connection #0 to host 192.168.1.40 left intact
2022-12-07 14:54:59 [easycwmp] NOTICE - received SetParameterValues method from the ACS
2022-12-07 14:54:59 [easycwmp] NOTICE - external: execute set value Device.ManagementServer.PeriodicInformInterval 300
2022-12-07 14:54:59 [easycwmp] NOTICE - external: execute apply value
2022-12-07 14:54:59 [easycwmp] NOTICE - send SetParameterValuesResponse to the ACS
* Found bundle for host: 0x55cced5378e0 [serially]
* Re-using existing connection #0 with host 192.168.1.40
* Connected to 192.168.1.40 (192.168.1.40) port 7547 (#0)
> POST /openacs/acs HTTP/1.1
Host: 192.168.1.40:7547
Additional Information:
Attached Files:
There are no notes attached to this issue.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
450 [easycwmp] Bug minor always 2022-12-06 13:01 2022-12-06 13:01
Reporter: haripriya 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:  
e-mail notification:
Summary: where easycwmp configuration is stored and periodic inform interval is not modify.
Description: /etc/easycwmp/config I can see configuration and some of the device config like device.ip.Diagnotics.maximumResponseTime that configuration where we its available.I have tried to change periodic inform interval from acs server..Its not changing

 Kindly check logs..default is 300.. I have tried to change 400..its set a sec but again auto setting the default value 300 again..400 is not reflecting

  * Connection #0 to host 192.168.1.40 left intact
2022-12-06 15:10:57 [easycwmp] NOTICE - received SetParameterValues method from the ACS
2022-12-06 15:10:57 [easycwmp] NOTICE - external: execute set value Device.ManagementServer.PeriodicInformInterval 400
2022-12-06 15:10:57 [easycwmp] NOTICE - external: execute apply value
2022-12-06 15:10:57 [easycwmp] NOTICE - send SetParameterValuesResponse to the ACS
* Found bundle for host: 0x55eb23e73ed0 [serially]
* Re-using existing connection #0 with host 192.168.1.40
* Connected to 192.168.1.40 (192.168.1.40) port 7547 (#0)
> POST /openacs/acs HTTP/1.1
Host: 192.168.1.40:7547
Cookie: session=b57bbb1644feb208
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 596

* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Content-Length: 772
< Server: GenieACS/1.2.8+20211027200938
< SOAPServer: GenieACS/1.2.8+20211027200938
< Content-Type: text/xml; charset="utf-8"
< Date: Tue, 06 Dec 2022 09:40:57 GMT
< Connection: keep-alive
<
* Connection #0 to host 192.168.1.40 left intact
2022-12-06 15:10:57 [easycwmp] NOTICE - received SetParameterValues method from the ACS
2022-12-06 15:10:57 [easycwmp] NOTICE - external: execute set value Device.ManagementServer.PeriodicInformInterval 300
2022-12-06 15:10:57 [easycwmp] NOTICE - external: execute apply value
2022-12-06 15:10:57 [easycwmp] NOTICE - send SetParameterValuesResponse to the ACS
* Found bundle for host: 0x55eb23e73ed0 [serially]
* Re-using existing connection #0 with host 192.168.1.40
* Connected to 192.168.1.40 (192.168.1.40) port 7547 (#0)
> POST /openacs/acs HTTP/1.1
Host: 192.168.1.40:7547
Cookie: session=b57bbb1644feb208
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 596

* Mark bundle as not supporting multiuse
< HTTP/1.1 204 No Content
< Content-Length: 0
< Server: GenieACS/1.2.8+20211027200938
< SOAPServer: GenieACS/1.2.8+20211027200938
< Connection: close
< Date: Tue, 06 Dec 2022 09:40:58 GMT
<
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:
449 [easycwmp] Bug minor always 2022-12-05 10:20 2022-12-06 13:01
Reporter: haripriya 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:  
e-mail notification:
Summary: where easycwmp configuration is stored and periodic inform interval is not modify.
Description: /etc/easycwmp/config I can see configuration and some of the device config like device.ip.Diagnotics.maximumResponseTime that configuration where we its available.I have tried to change periodic inform interval from acs server..Its not changing
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:
448 [easycwmp] Help minor always 2022-12-02 19:59 2022-12-02 19:59
Reporter: arphillips 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:  
e-mail notification:
Summary: How to put in default settings for openwrt build
Description: I am trying to build an image that I can flash onto routers that will have the ACS information. I don't know what file to edit before the compile.
Tags:
Steps To Reproduce:
Additional Information: DHCP sends the wrong vendor information in option 43.
Attached Files:
There are no notes attached to this issue.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
447 [easycwmp] Help minor always 2022-12-02 19:59 2022-12-02 19:59
Reporter: arphillips 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:  
e-mail notification:
Summary: How to put in default settings for openwrt build
Description: I am trying to build an image that I can flash onto routers that will have the ACS information. I don't know what file to edit before the compile.
Tags:
Steps To Reproduce:
Additional Information: DHCP sends the wrong vendor information in option 43.
Attached Files:
There are no notes attached to this issue.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
444 [easycwmp] Help crash always 2022-09-08 16:46 2022-09-08 16:46
Reporter: Ernesto Rodriguez Vizoso 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:  
e-mail notification:
Summary: Error in the compilation as integrated and as a package
Description: Error in the compilation as integrated and executing:
make menuconfig (selecting the package with * ) and make


Failed to compile as package and running:
make menuconfig (select the package as M) and make package/easycwmp/compile
Tags: Openwrt
Steps To Reproduce: This is everything from when you command to compile make to the error.

vizoso@vizoso-dynabook-Satellite-Pro-L50-G-132:~/openwrt$ make
WARNING: Makefile 'package/feeds/packages/afuse/Makefile' has a dependency on 'libfuse', which does not exist
WARNING: Makefile 'package/feeds/packages/afuse/Makefile' has a dependency on 'fuse-utils', which does not exist
WARNING: Makefile 'package/feeds/packages/aircrack-ng/Makefile' has a dependency on 'usbutils', which does not exist
WARNING: Makefile 'package/feeds/packages/apache/Makefile' has a dependency on 'libnghttp2', which does not exist
WARNING: Makefile 'package/feeds/packages/apache/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/apcupsd/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/telephony/asterisk/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/avrdude/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/backuppc/Makefile' has a dependency on 'iputils-ping', which does not exist
WARNING: Makefile 'package/feeds/packages/bind/Makefile' has a dependency on 'libnghttp2', which does not exist
WARNING: Makefile 'package/feeds/packages/bind/Makefile' has a build dependency on 'nghttp2', which does not exist
WARNING: Makefile 'package/feeds/packages/boinc/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/btrfs-progs/Makefile' has a dependency on 'liblzo', which does not exist
WARNING: Makefile 'package/feeds/packages/clamav/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/clamav/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/collectd/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/collectd/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/collectd/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/collectd/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/collectd/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/collectd/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/conntrack-tools/Makefile' has a dependency on 'libnetfilter-cttimeout', which does not exist
WARNING: Makefile 'package/feeds/packages/conntrack-tools/Makefile' has a dependency on 'libnetfilter-cthelper', which does not exist
WARNING: Makefile 'package/feeds/packages/conntrack-tools/Makefile' has a dependency on 'libnetfilter-queue', which does not exist
WARNING: Makefile 'package/feeds/packages/conntrack-tools/Makefile' has a dependency on 'libnetfilter-cttimeout', which does not exist
WARNING: Makefile 'package/feeds/packages/conntrack-tools/Makefile' has a dependency on 'libnetfilter-cthelper', which does not exist
WARNING: Makefile 'package/feeds/packages/conntrack-tools/Makefile' has a dependency on 'libnetfilter-queue', which does not exist
WARNING: Makefile 'package/feeds/packages/czmq/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/davfs2/Makefile' has a dependency on 'libfuse', which does not exist
WARNING: Makefile 'package/feeds/packages/ddns-scripts/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/ddns-scripts/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/ddns-scripts/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/ddns-scripts/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/ddns-scripts/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/ddns-scripts/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/ddns-scripts/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/digitemp/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/domoticz/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/easycwmp-openwrt-1.8.6/easycwmp/Makefile' has a dependency on 'libmicroxml', which does not exist
WARNING: Makefile 'package/easycwmp-openwrt-1.8.6/easycwmp/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/easycwmp-openwrt-1.8.6/easycwmp/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/elektra/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/eoip/Makefile' has a dependency on 'liblzo', which does not exist
WARNING: Makefile 'package/feeds/packages/esniper/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/etherwake-nfqueue/Makefile' has a dependency on 'libnetfilter-queue', which does not exist
WARNING: Makefile 'package/feeds/packages/forked-daapd/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/freeradius3/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/telephony/freeswitch/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/fwknop/Makefile' has a dependency on 'libnetfilter-queue', which does not exist
WARNING: Makefile 'package/feeds/packages/gammu/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/git/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/gnunet-fuse/Makefile' has a dependency on 'libfuse', which does not exist
WARNING: Makefile 'package/feeds/packages/gnupg/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/gnupg2/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/hcxtools/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/hs20/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/https-dns-proxy/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/hub-ctrl/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/icecast/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/idevicerestore/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/ipfs-http-client/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/ipfs-http-client/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/telephony/kamailio/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/telephony/kamailio/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/telephony/kamailio/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/telephony/kamailio/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/knot-resolver/Makefile' has a dependency on 'libnghttp2', which does not exist
WARNING: Makefile 'package/feeds/packages/lcd4linux/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/lcd4linux/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/lcdproc/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/leech/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/libftdi/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/libgphoto2/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/libgphoto2/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/libmariadb/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/libmariadb/Makefile' has a build dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/libnpupnp/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/libulfius/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/libulfius/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/linknx/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/luarocks/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/mocp/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/mpd/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/mpd/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/mpd/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/routing/naywatch/Makefile' has a dependency on 'owipcalc', which does not exist
WARNING: Makefile 'package/feeds/packages/netifyd/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/netopeer2/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/node/Makefile' has a dependency on 'libnghttp2', which does not exist
WARNING: Makefile 'package/feeds/packages/ntfs-3g/Makefile' has a dependency on 'libfuse', which does not exist
WARNING: Makefile 'package/feeds/packages/nut/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/open-vm-tools/Makefile' has a dependency on 'libfuse', which does not exist
WARNING: Makefile 'package/feeds/packages/openocd/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/openwisp-config/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/openwisp-config/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/openwisp-config/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/openwisp-config/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/owfs/Makefile' has a dependency on 'libfuse', which does not exist
WARNING: Makefile 'package/feeds/packages/owfs/Makefile' has a dependency on 'fuse-utils', which does not exist
WARNING: Makefile 'package/feeds/packages/owfs/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/pdns/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/pdns/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/perl-device-usb/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/perl-www-curl/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/php7/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/php7-pecl-http/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/php8/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/python-curl/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/rclone/Makefile' has a dependency on 'fuse-utils', which does not exist
WARNING: Makefile 'package/feeds/packages/rtorrent/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/rtorrent/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/seafile-server/Makefile' has a dependency on 'libfuse', which does not exist
WARNING: Makefile 'package/feeds/packages/serdisplib/Makefile' has a build dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/shairport-sync/Makefile' has a dependency on 'libconfig', which does not exist
WARNING: Makefile 'package/feeds/packages/shairport-sync/Makefile' has a dependency on 'libconfig', which does not exist
WARNING: Makefile 'package/feeds/packages/shairport-sync/Makefile' has a dependency on 'libconfig', which does not exist
WARNING: Makefile 'package/feeds/packages/sispmctl/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/snort/Makefile' has a dependency on 'libnghttp2', which does not exist
WARNING: Makefile 'package/feeds/packages/squashfs-tools/Makefile' has a dependency on 'liblzo', which does not exist
WARNING: Makefile 'package/feeds/packages/squashfs-tools/Makefile' has a dependency on 'liblzo', which does not exist
WARNING: Makefile 'package/feeds/packages/sslh/Makefile' has a dependency on 'libconfig', which does not exist
WARNING: Makefile 'package/feeds/packages/strongswan/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/syslog-ng/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/tinc/Makefile' has a dependency on 'liblzo', which does not exist
WARNING: Makefile 'package/feeds/packages/tinc/Makefile' has a build dependency on 'lzo', which does not exist
WARNING: Makefile 'package/feeds/packages/transmission/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/transmission/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/transmission/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/travelmate/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/uacme/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/ulogd/Makefile' has a dependency on 'libnetfilter-log', which does not exist
WARNING: Makefile 'package/feeds/packages/ulogd/Makefile' has a dependency on 'libnetfilter-log', which does not exist
WARNING: Makefile 'package/feeds/packages/ulogd/Makefile' has a build dependency on 'libnetfilter-log', which does not exist
WARNING: Makefile 'package/feeds/packages/umurmur/Makefile' has a dependency on 'libconfig', which does not exist
WARNING: Makefile 'package/feeds/packages/umurmur/Makefile' has a dependency on 'libconfig', which does not exist
WARNING: Makefile 'package/feeds/packages/unbound/Makefile' has a dependency on 'libnghttp2', which does not exist
WARNING: Makefile 'package/feeds/packages/wg-installer/Makefile' has a dependency on 'owipcalc', which does not exist
WARNING: Makefile 'package/feeds/packages/wg-installer/Makefile' has a dependency on 'owipcalc', which does not exist
WARNING: Makefile 'package/feeds/packages/wg-installer/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/xmlrpc-c/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/ykclient/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/ykclient/Makefile' has a build dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/ykpers/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/yubico-pam/Makefile' has a dependency on 'curl', which does not exist
time: target/linux/prereq#0.33#0.02#0.35
 make[1] world
 make[2] target/compile
 make[3] -C target/linux compile
 make[2] buildinfo
 make[3] diffconfig buildversion feedsversion
 make[2] package/cleanup
 make[2] package/compile
 make[3] -C package/libs/libjson-c host-compile
 make[3] -C package/libs/libubox host-compile
 make[3] -C package/system/opkg host-compile
 make[3] -C package/libs/toolchain compile
 make[3] -C package/libs/libjson-c compile
 make[3] -C package/utils/lua compile
 make[3] -C package/libs/libubox compile
 make[3] -C package/system/ubus compile
 make[3] -C package/system/uci compile
 make[3] -C package/easycwmp-openwrt-1.8.6/easycwmp compile
    ERROR: package/easycwmp-openwrt-1.8.6/easycwmp failed to build.
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
make: *** [/home/vizoso/openwrt/include/toplevel.mk:230: world] Error 1


This is everything from when you command to compile the package to the error.

vizoso@vizoso-dynabook-Satellite-Pro-L50-G-132:~/openwrt$ make package/easycwmp/compile
WARNING: Makefile 'package/feeds/packages/afuse/Makefile' has a dependency on 'libfuse', which does not exist
WARNING: Makefile 'package/feeds/packages/afuse/Makefile' has a dependency on 'fuse-utils', which does not exist
WARNING: Makefile 'package/feeds/packages/aircrack-ng/Makefile' has a dependency on 'usbutils', which does not exist
WARNING: Makefile 'package/feeds/packages/apache/Makefile' has a dependency on 'libnghttp2', which does not exist
WARNING: Makefile 'package/feeds/packages/apache/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/apcupsd/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/telephony/asterisk/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/avrdude/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/backuppc/Makefile' has a dependency on 'iputils-ping', which does not exist
WARNING: Makefile 'package/feeds/packages/bind/Makefile' has a dependency on 'libnghttp2', which does not exist
WARNING: Makefile 'package/feeds/packages/bind/Makefile' has a build dependency on 'nghttp2', which does not exist
WARNING: Makefile 'package/feeds/packages/boinc/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/btrfs-progs/Makefile' has a dependency on 'liblzo', which does not exist
WARNING: Makefile 'package/feeds/packages/clamav/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/clamav/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/collectd/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/collectd/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/collectd/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/collectd/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/collectd/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/collectd/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/conntrack-tools/Makefile' has a dependency on 'libnetfilter-cttimeout', which does not exist
WARNING: Makefile 'package/feeds/packages/conntrack-tools/Makefile' has a dependency on 'libnetfilter-cthelper', which does not exist
WARNING: Makefile 'package/feeds/packages/conntrack-tools/Makefile' has a dependency on 'libnetfilter-queue', which does not exist
WARNING: Makefile 'package/feeds/packages/conntrack-tools/Makefile' has a dependency on 'libnetfilter-cttimeout', which does not exist
WARNING: Makefile 'package/feeds/packages/conntrack-tools/Makefile' has a dependency on 'libnetfilter-cthelper', which does not exist
WARNING: Makefile 'package/feeds/packages/conntrack-tools/Makefile' has a dependency on 'libnetfilter-queue', which does not exist
WARNING: Makefile 'package/feeds/packages/czmq/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/davfs2/Makefile' has a dependency on 'libfuse', which does not exist
WARNING: Makefile 'package/feeds/packages/ddns-scripts/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/ddns-scripts/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/ddns-scripts/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/ddns-scripts/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/ddns-scripts/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/ddns-scripts/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/ddns-scripts/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/digitemp/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/domoticz/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/easycwmp-openwrt-1.8.6/easycwmp/Makefile' has a dependency on 'libmicroxml', which does not exist
WARNING: Makefile 'package/easycwmp-openwrt-1.8.6/easycwmp/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/easycwmp-openwrt-1.8.6/easycwmp/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/elektra/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/eoip/Makefile' has a dependency on 'liblzo', which does not exist
WARNING: Makefile 'package/feeds/packages/esniper/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/etherwake-nfqueue/Makefile' has a dependency on 'libnetfilter-queue', which does not exist
WARNING: Makefile 'package/feeds/packages/forked-daapd/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/freeradius3/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/telephony/freeswitch/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/fwknop/Makefile' has a dependency on 'libnetfilter-queue', which does not exist
WARNING: Makefile 'package/feeds/packages/gammu/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/git/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/gnunet-fuse/Makefile' has a dependency on 'libfuse', which does not exist
WARNING: Makefile 'package/feeds/packages/gnupg/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/gnupg2/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/hcxtools/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/hs20/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/https-dns-proxy/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/hub-ctrl/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/icecast/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/idevicerestore/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/ipfs-http-client/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/ipfs-http-client/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/telephony/kamailio/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/telephony/kamailio/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/telephony/kamailio/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/telephony/kamailio/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/knot-resolver/Makefile' has a dependency on 'libnghttp2', which does not exist
WARNING: Makefile 'package/feeds/packages/lcd4linux/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/lcd4linux/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/lcdproc/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/leech/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/libftdi/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/libgphoto2/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/libgphoto2/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/libmariadb/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/libmariadb/Makefile' has a build dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/libnpupnp/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/libulfius/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/libulfius/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/linknx/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/luarocks/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/mocp/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/mpd/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/mpd/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/mpd/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/routing/naywatch/Makefile' has a dependency on 'owipcalc', which does not exist
WARNING: Makefile 'package/feeds/packages/netifyd/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/netopeer2/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/node/Makefile' has a dependency on 'libnghttp2', which does not exist
WARNING: Makefile 'package/feeds/packages/ntfs-3g/Makefile' has a dependency on 'libfuse', which does not exist
WARNING: Makefile 'package/feeds/packages/nut/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/open-vm-tools/Makefile' has a dependency on 'libfuse', which does not exist
WARNING: Makefile 'package/feeds/packages/openocd/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/openwisp-config/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/openwisp-config/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/openwisp-config/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/openwisp-config/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/owfs/Makefile' has a dependency on 'libfuse', which does not exist
WARNING: Makefile 'package/feeds/packages/owfs/Makefile' has a dependency on 'fuse-utils', which does not exist
WARNING: Makefile 'package/feeds/packages/owfs/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/pdns/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/pdns/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/perl-device-usb/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/perl-www-curl/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/php7/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/php7-pecl-http/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/php8/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/python-curl/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/rclone/Makefile' has a dependency on 'fuse-utils', which does not exist
WARNING: Makefile 'package/feeds/packages/rtorrent/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/rtorrent/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/seafile-server/Makefile' has a dependency on 'libfuse', which does not exist
WARNING: Makefile 'package/feeds/packages/serdisplib/Makefile' has a build dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/shairport-sync/Makefile' has a dependency on 'libconfig', which does not exist
WARNING: Makefile 'package/feeds/packages/shairport-sync/Makefile' has a dependency on 'libconfig', which does not exist
WARNING: Makefile 'package/feeds/packages/shairport-sync/Makefile' has a dependency on 'libconfig', which does not exist
WARNING: Makefile 'package/feeds/packages/sispmctl/Makefile' has a dependency on 'libusb-compat', which does not exist
WARNING: Makefile 'package/feeds/packages/snort/Makefile' has a dependency on 'libnghttp2', which does not exist
WARNING: Makefile 'package/feeds/packages/squashfs-tools/Makefile' has a dependency on 'liblzo', which does not exist
WARNING: Makefile 'package/feeds/packages/squashfs-tools/Makefile' has a dependency on 'liblzo', which does not exist
WARNING: Makefile 'package/feeds/packages/sslh/Makefile' has a dependency on 'libconfig', which does not exist
WARNING: Makefile 'package/feeds/packages/strongswan/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/syslog-ng/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/tinc/Makefile' has a dependency on 'liblzo', which does not exist
WARNING: Makefile 'package/feeds/packages/tinc/Makefile' has a build dependency on 'lzo', which does not exist
WARNING: Makefile 'package/feeds/packages/transmission/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/transmission/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/transmission/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/travelmate/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/uacme/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/ulogd/Makefile' has a dependency on 'libnetfilter-log', which does not exist
WARNING: Makefile 'package/feeds/packages/ulogd/Makefile' has a dependency on 'libnetfilter-log', which does not exist
WARNING: Makefile 'package/feeds/packages/ulogd/Makefile' has a build dependency on 'libnetfilter-log', which does not exist
WARNING: Makefile 'package/feeds/packages/umurmur/Makefile' has a dependency on 'libconfig', which does not exist
WARNING: Makefile 'package/feeds/packages/umurmur/Makefile' has a dependency on 'libconfig', which does not exist
WARNING: Makefile 'package/feeds/packages/unbound/Makefile' has a dependency on 'libnghttp2', which does not exist
WARNING: Makefile 'package/feeds/packages/wg-installer/Makefile' has a dependency on 'owipcalc', which does not exist
WARNING: Makefile 'package/feeds/packages/wg-installer/Makefile' has a dependency on 'owipcalc', which does not exist
WARNING: Makefile 'package/feeds/packages/wg-installer/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/xmlrpc-c/Makefile' has a dependency on 'libcurl', which does not exist
WARNING: Makefile 'package/feeds/packages/ykclient/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/ykclient/Makefile' has a build dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/ykpers/Makefile' has a dependency on 'curl', which does not exist
WARNING: Makefile 'package/feeds/packages/yubico-pam/Makefile' has a dependency on 'curl', which does not exist
 make[1] package/easycwmp/compile
 make[2] -C package/libs/toolchain 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/ubus compile
 make[2] -C package/system/uci compile
 make[2] -C package/easycwmp-openwrt-1.8.6/easycwmp compile
    ERROR: package/easycwmp-openwrt-1.8.6/easycwmp failed to build.
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/vizoso/openwrt/include/toplevel.mk:230: package/easycwmp/compile] Error 1
Additional Information: In the box above is placed what the terminal shows after executing the commands make and make package/easycwmp/compile
Attached Files:
There are no notes attached to this issue.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
443 [easycwmp] Enhancement feature N/A 2022-07-13 14:48 2022-07-13 14:57
Reporter: luis-messias-b Platform: Raspberry PI3 B+ RDK  
Assigned To: OS: RDK  
Priority: normal OS Version: RDK-B  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Add support for the RDK system, with firmware upgrade support
Description: The RDK is a system with TR-069 support (https://wiki.rdkcentral.com/display/RDK/TR69) and firmware upgrade features already implemented (https://wiki.rdkcentral.com/display/ASP /RDK-B+ARB+-+Firmware+Upgrade). That way easycwmp could make use of these features to extend its support to RDK-B devices, just like it has OpenWRT support. What is the feasibility of doing this?
Tags: download, firmware
Steps To Reproduce:
Additional Information: Important links:
https://wiki.rdkcentral.com/display/RDK/TR69
https://wiki.rdkcentral.com/display/ASP/RDK-B+ARB+-+Firmware+Upgrade
https://wiki.rdkcentral.com/display/RDK/FwUpgradeManager+Support++in+RDKB+RPI+-+Broadband+-+User+Manual+-+2021+-+M8
Attached Files:
There are no notes attached to this issue.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
442 [easycwmp] Question minor always 2022-06-21 08:53 2022-06-21 08:53
Reporter: steven.shen@msa.hinet.net 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:  
e-mail notification:
Summary: Why --getrpcmethod be called when restart easycwmpd?
Description: Hi,

Just curiously, why the daemon restart with Periodic event code in the script in init.d?
When the ACS URL changed, the PERIODIC and BOOTSTRAP event code will be applied together.
Is it necessary to do something for this case?



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:
438 [easycwmp] Help block always 2021-12-15 17:42 2022-03-26 08:57
Reporter: jcarraro 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:  
e-mail notification:
Summary: I can't send IP through device options
Description: I have the following settings for device config in easycwmp file:

config device
    option manufacturer 'Man'
    option oui 'f80332'
    option product_class 'Product'
    option serial_number '146117'
    option ip_address '192.168.0.200'
    option hardware_version 'V1'
    option software_version 'master'

I'm using genieACS and I can receive all parameters except the IP address. I didn't find in the documentation how I would send the IP via options. Could someone help me to be able to send the IP address and it appears as a value in InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress?

Thanks in advance!
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0001044)
zhangbo   
2022-03-26 08:57   
Maybe it's a bug of OpenWrt, Pls check whether ip is in /var/state/network.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
439 [easycwmp] Bug major always 2022-03-24 02:36 2022-03-24 02:36
Reporter: wqtest 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:  
e-mail notification:
Summary: openwrt [easycwmp] CRITICAL - error occured when trying to write to the pipe
Description: root@OpenWrt:/# /home/bin/easycwmpd -f -b
2022-03-24 09:04:16 [easycwmp] NOTICE - add event '0 BOOTSTRAP'
2022-03-24 09:04:16 [easycwmp] NOTICE - add event '1 BOOT'
2022-03-24 09:04:16 [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.189:3333
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
2022-03-24 09:04:16 [easycwmp] NOTICE - init periodic inform: reference time = n/a, interval = 100
2022-03-24 09:04:16 [easycwmp] NOTICE - external: execute update_value_change
2022-03-24 09:04:16 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2022-03-24 09:04:16 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2022-03-24 09:04:16 [easycwmp] NOTICE - daemon started
2022-03-24 09:04:16 [easycwmp] NOTICE - external: execute inform device_id
2022-03-24 09:04:16 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2022-03-24 09:04:16 [easycwmp] CRITICAL - error occured when trying to write to the pipe
cwmp_init_deviceid(642): in device you must define product_class
2022-03-24 09:04:16 [easycwmp] NOTICE - external script exit
2022-03-24 09:04:16 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2022-03-24 09:04:16 [easycwmp] NOTICE - add event '1 BOOT'
2022-03-24 09:04:16 [easycwmp] NOTICE - interface eth0 has ip 192.168.1.204
+++ HTTP SERVER CONFIGURATION +++
ip: '192.168.1.204'
port: '7547'
--- HTTP SERVER CONFIGURATION ---
2022-03-24 09:04:16 [easycwmp] NOTICE - http server initialized
2022-03-24 09:04:16 [easycwmp] NOTICE - entering main loop
2022-03-24 09:04:16 [easycwmp] NOTICE - start session
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(50):: url: http://192.168.1.189:3333
http_client_init(56):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
2022-03-24 09:04:16 [easycwmp] NOTICE - configured acs url http://192.168.1.189:3333
2022-03-24 09:04:16 [easycwmp] NOTICE - external script init
rpc_inform(208): Inform xml message creating failed
2022-03-24 09:04:16 [easycwmp] NOTICE - sending Inform failed
2022-03-24 09:04:16 [easycwmp] NOTICE - external: execute apply service
2022-03-24 09:04:16 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2022-03-24 09:04:16 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2022-03-24 09:04:16 [easycwmp] NOTICE - external script exit
2022-03-24 09:04:16 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2022-03-24 09:04:16 [easycwmp] NOTICE - end session failed
2022-03-24 09:04:16 [easycwmp] NOTICE - retry session in 7 sec, RetryCount = 1
^C2022-03-24 09:04:17 [easycwmp] NOTICE - exiting
Tags:
Steps To Reproduce: easycwmp version: 1.5.2
root@OpenWrt:/# /home/bin/easycwmp.sh --json-input
easycwmp>
{"command": "inform", "class": "device_id"}
{ "manufacturer": "easycwmp", "oui": "FFFFFF", "product_class": "easycwmp", "serial_number": "FFFFFF123456" }


root@OpenWrt:/# /home/bin/easycwmp.sh get value
{ "parameter": ".DeviceInfo.SpecVersion", "value": "1.0" }
{ "parameter": ".DeviceInfo.ProvisioningCode", "value": "" }
{ "parameter": ".DeviceInfo.Manufacturer", "value": "easycwmp" }
{ "parameter": ".DeviceInfo.ManufacturerOUI", "value": "FFFFFF" }
{ "parameter": ".DeviceInfo.ProductClass", "value": "easycwmp" }
{ "parameter": ".DeviceInfo.SerialNumber", "value": "FFFFFF123456" }
{ "parameter": ".DeviceInfo.HardwareVersion", "value": "example_hw_version" }
{ "parameter": ".DeviceInfo.SoftwareVersion", "value": "example_sw_version" }
{ "parameter": ".DeviceInfo.UpTime", "value": "56031", "type": "xsd:unsignedInt" }
{ "parameter": ".DeviceInfo.DeviceLog", "value": "" }
{ "parameter": ".DeviceInfo.MemoryStatus.Total", "value": "125944" }
{ "parameter": ".DeviceInfo.MemoryStatus.Free", "value": "63312" }
{ "parameter": ".ManagementServer.URL", "value": "http:\/\/192.168.1.189:3333" }
{ "parameter": ".ManagementServer.Username", "value": "" }
{ "parameter": ".ManagementServer.Password", "value": "" }
{ "parameter": ".ManagementServer.PeriodicInformEnable", "value": "1", "type": "xsd:boolean" }
{ "parameter": ".ManagementServer.PeriodicInformInterval", "value": "100", "type": "xsd:unsignedInt" }
{ "parameter": ".ManagementServer.PeriodicInformTime", "value": "0001-01-01T00:00:00Z", "type": "xsd:dateTime" }
{ "parameter": ".ManagementServer.ConnectionRequestURL", "value": "http:\/\/192.168.1.204:7547\/" }
{ "parameter": ".ManagementServer.ConnectionRequestUsername", "value": "easycwmp" }
{ "parameter": ".ManagementServer.ConnectionRequestPassword", "value": "" }
{ "parameter": ".ManagementServer.ParameterKey", "value": "" }

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 2022-01-22 03: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:  
e-mail notification:
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: DMC, دانلود
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:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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: user13 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:  
e-mail notification:
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)
user13   
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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
png
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:  
e-mail notification:
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)
user13   
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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)
user13   
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:  
e-mail notification:
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)
user13   
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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: user13 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:  
e-mail notification:
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
jpg
Notes
(0000075)
user13   
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:  
e-mail notification:
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:  
e-mail notification:
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:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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
png
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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
jpg

source code.jpg (32,141 bytes) 2018-07-12 05:26
https://support.easycwmp.org/file_download.php?file_id=120&type=bug
jpg
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:  
e-mail notification:
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
jpg

openacs.jpg (38,755 bytes) 2018-05-09 12:47
https://support.easycwmp.org/file_download.php?file_id=116&type=bug
jpg

valuetree.jpg (37,051 bytes) 2018-05-09 12:47
https://support.easycwmp.org/file_download.php?file_id=117&type=bug
jpg
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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)
user13   
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: user13 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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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: user13 OS:  
Priority: normal OS Version:  
Status: feedback Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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)
user13   
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)
user13   
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)
user13   
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)
user13   
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)
user13   
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)
user13   
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)
user13   
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)
user13   
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)
user13   
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)
user13   
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)
user13   
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)
user13   
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)
user13   
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)
user13   
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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)
user13   
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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: user13 Platform:  
Assigned To: user13 OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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: user13 OS: linux  
Priority: immediate OS Version: linux  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
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: user13 OS: Ubuntu  
Priority: high OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
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)
user13   
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)
user13   
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)
user13   
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)
user13   
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)
user13   
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: user13 OS: linux  
Priority: immediate OS Version: linux  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
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)
user13   
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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: user13 Platform:  
Assigned To: user13 OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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: user13 Platform:  
Assigned To: user13 OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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: user4 OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
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: user13 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:  
e-mail notification:
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
jpg
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)
user13   
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)
user13   
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: user13 Platform:  
Assigned To: user13 OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
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)
user13   
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:  
e-mail notification:
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:  
e-mail notification:
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:
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:  
e-mail notification:
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:  
e-mail notification:
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:  
e-mail notification:
Summary: How to access easyCwmp UI ?
Description: I have successfully installed easyCwmp. As I beginner so I don't know how to use it. Is there any GUI for access easycwmp ? how can I create demo application using this ? Please guide me
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000591)
hkachhia   
2016-12-02 09:54   
Is there any tutorial for use for create demo using easycwmp ?
(0000592)
user13   
2016-12-02 10:19   
there is easycwmp Commands (for data model handling)
easycwmp -h for help
(0000593)
hkachhia   
2016-12-02 10:42   
easycwmp -h for help getting below response

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
invalid action '-h'

how can i use it ?
(0000594)
user13   
2016-12-02 11:46   
(Last edited: 2016-12-02 11:52)
for example easycwmp get value ==> show you all the data model tree

(0000595)
hkachhia   
2016-12-02 12:19   
In get value I have found below value. What is the use below URL ?

{ "parameter": "Device.ManagementServer.URL", "value": "http:\/\/192.168.1.110:8080\/openacs\/acs" }


Is there any GUI for easycwmp ? or tutorial for beginner then provide me
(0000596)
user13   
2016-12-02 13:31   
yes easycwmp have a GUI : type the @ip address of your device on your browser and then you get the authentication page.
(0000597)
hkachhia   
2016-12-02 13:55   
Which device ?
(0000598)
user13   
2016-12-02 13:56   
where you installed the easycwmp
(0000599)
hkachhia   
2016-12-05 06:33   
I have tried to access using the IP address but It does not open. Is it run on specific port ?

I have tried to access below IP as well as my machine IP.
{ "parameter": "Device.ManagementServer.URL", "value": "http:\/\/192.168.1.110:8080\/openacs\/acs" }

In my machine I have already installed Apache webserver, so is it conflict with it ?
(0000600)
user13   
2016-12-05 18:12   
if you want to configure the parameters related to the easycwmp:
edit the file /etc/config/easycwmp.

the http://192.168.1.110:8080/openacs/acs is the ACS URL and you can change it.
(0000601)
hkachhia   
2016-12-09 09:30   
Getting below error:

* Hostname was NOT found in DNS cache
* Trying 192.168.1.110...
* Connection timed out after 30001 milliseconds
* Closing connection 2
2016-12-09 08:27:31 [easycwmp] NOTICE - LibCurl Error: Connection timed out after 30001 milliseconds
2016-12-09 08:27:31 [easycwmp] NOTICE - sending http message failed
rpc_inform(218): sending Inform http message failed
2016-12-09 08:27:31 [easycwmp] NOTICE - sending Inform failed
2016-12-09 08:27:31 [easycwmp] NOTICE - external: execute apply service
2016-12-09 08:27:31 [easycwmp] NOTICE - external script exit
2016-12-09 08:27:31 [easycwmp] NOTICE - end session failed
2016-12-09 08:27:31 [easycwmp] NOTICE - retry session in 30 sec, RetryCount = 3

my machine IP address is : 10.0.2.15 why it's trying to connect 192.168.1.110 ?
(0000602)
user13   
2016-12-09 10:14   
192.168.1.110 is ACS URL you have to change it by the ip address of your ACS URL.
To do that you have to edit the file /etc/config/easycwmp.

what is your address URL ?
and which ACS do you use ?

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
188 [easycwmp] Question trivial N/A 2016-12-09 07:37 2017-01-27 15:56
Reporter: poori401 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:  
e-mail notification:
Summary: Need info about config update.
Description: Hi Team,

The question is as follows

My CWMP binary relies on my configuration, i.e if some configuration is made then my CWMP binary gets notified.

Lets say my configuration be as follows
a = {}
b = {some value} /* if there is a change in this object CWMP get notified */
c = {some value} /* if there is a change in this object CWMP get notified */
d = {}

So far so good, say I have downloaded some configuration, let the downloaded configuration be as follows
a = {}
b = {new value}
c = {new value}
d = {}

If I apply the new configuration, CWMP binary will get notified. Some how handling update on object c is casuing some erraneous behavior to apply object d.

So my question is
1. Should I not handle the update on objects c and d, till the whole configuration is saved.
2. OR should I handle the updates explicitly.

Does ammendment mention any of the above case or is it just implementation specific.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000603)
mohamed.kallel   
2016-12-10 11:58   
your question is not clear, could you explain with real example from your config.

EasyCwmp will detect any value change of parameters with notif = 2 or 1. And it does not make any update on the config upon get notified. So it does not cause any error on your config

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
190 [easycwmp] General major always 2016-12-18 10:01 2017-01-27 15:54
Reporter: Ajay Platform: Raspberry pi 3 (bcm2710)  
Assigned To: mohamed.kallel OS: openwrt image  
Priority: immediate OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Not able build easycwmp-1.4.1 into openwrt image
Description: Not able build easycwmp into openwrt build system. Enabled package in menuconfig and attempted to compile full build

Installed libmicroxml and libubox latest version.

Following is the compilation error:

make[2]: Leaving directory `/home/admin/pi3/openwrt/package/system/uci'
make[2]: Entering directory `/home/admin/pi3/openwrt/package/easycwmp'
CFLAGS="-Os -pipe -march=armv8-a -mtune=cortex-a53 -mfpu=neon-vfpv4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -iremap /home/admin/pi3/openwrt/build_dir/target-arm_cortex-a53+neon-vfpv4_musl-1.1.15_eabi/easycwmp/easycwmp-1.4.1:easycwmp-1.4.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -D_GNU_SOURCE -I/home/admin/pi3/openwrt/staging_dir/target-arm_cortex-a53+neon-vfpv4_musl-1.1.15_eabi/usr/include -I/home/admin/pi3/openwrt/staging_dir/target-arm_cortex-a53+neon-vfpv4_musl-1.1.15_eabi/include -I/home/admin/pi3/openwrt/staging_dir/toolchain-arm_cortex-a53+neon-vfpv4_gcc-5.3.0_musl-1.1.15_eabi/usr/include -I/home/admin/pi3/openwrt/staging_dir/toolchain-arm_cortex-a53+neon-vfpv4_gcc-5.3.0_musl-1.1.15_eabi/include/fortify -I/home/admin/pi3/openwrt/staging_dir/toolchain-arm_cortex-a53+neon-vfpv4_gcc-5.3.0_musl-1.1.15_eabi/include " CXXFLAGS="-Os -pipe -march=armv8-a -mtune=cortex-a53 -mfpu=neon-vfpv4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -iremap /home/admin/pi3/openwrt/build_dir/target-arm_cortex-a53+neon-vfpv4_musl-1.1.15_eabi/easycwmp/easycwmp-1.4.1:easycwmp-1.4.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -D_GNU_SOURCE -I/home/admin/pi3/openwrt/staging_dir/target-arm_cortex-a53+neon-vfpv4_musl-1.1.15_eabi/usr/include -I/home/admin/pi3/openwrt/staging_dir/target-arm_cortex-a53+neon-vfpv4_musl-1.1.15_eabi/include -I/home/admin/pi3/openwrt/staging_dir/toolchain-arm_cortex-a53+neon-vfpv4_gcc-5.3.0_musl-1.1.15_eabi/usr/include -I/home/admin/pi3/openwrt/staging_dir/toolchain-arm_cortex-a53+neon-vfpv4_gcc-5.3.0_musl-1.1.15_eabi/include/fortify -I/home/admin/pi3/openwrt/staging_dir/toolchain-arm_cortex-a53+neon-vfpv4_gcc-5.3.0_musl-1.1.15_eabi/include " LDFLAGS="-L/home/admin/pi3/openwrt/staging_dir/target-arm_cortex-a53+neon-vfpv4_musl-1.1.15_eabi/usr/lib -L/home/admin/pi3/openwrt/staging_dir/target-arm_cortex-a53+neon-vfpv4_musl-1.1.15_eabi/lib -L/home/admin/pi3/openwrt/staging_dir/toolchain-arm_cortex-a53+neon-vfpv4_gcc-5.3.0_musl-1.1.15_eabi/usr/lib -L/home/admin/pi3/openwrt/staging_dir/toolchain-arm_cortex-a53+neon-vfpv4_gcc-5.3.0_musl-1.1.15_eabi/lib -znow -zrelro -Wl,-rpath-link=/home/admin/pi3/openwrt/staging_dir/target-arm_cortex-a53+neon-vfpv4_musl-1.1.15_eabi/usr/lib " make -j1 -C /home/admin/pi3/openwrt/build_dir/target-arm_cortex-a53+neon-vfpv4_musl-1.1.15_eabi/easycwmp/easycwmp-1.4.1/. AR="arm-openwrt-linux-muslgnueabi-gcc-ar" AS="arm-openwrt-linux-muslgnueabi-gcc -c -Os -pipe -march=armv8-a -mtune=cortex-a53 -mfpu=neon-vfpv4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -iremap /home/admin/pi3/openwrt/build_dir/target-arm_cortex-a53+neon-vfpv4_musl-1.1.15_eabi/easycwmp/easycwmp-1.4.1:easycwmp-1.4.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -D_GNU_SOURCE" LD=arm-openwrt-linux-muslgnueabi-ld NM="arm-openwrt-linux-muslgnueabi-gcc-nm" CC="arm-openwrt-linux-muslgnueabi-gcc" GCC="arm-openwrt-linux-muslgnueabi-gcc" CXX="arm-openwrt-linux-muslgnueabi-g++" RANLIB="arm-openwrt-linux-muslgnueabi-gcc-ranlib" STRIP=arm-openwrt-linux-muslgnueabi-strip OBJCOPY=arm-openwrt-linux-muslgnueabi-objcopy OBJDUMP=arm-openwrt-linux-muslgnueabi-objdump SIZE=arm-openwrt-linux-muslgnueabi-size CROSS="arm-openwrt-linux-muslgnueabi-" ARCH="arm" ;
make[3]: Entering directory `/home/admin/pi3/openwrt/build_dir/target-arm_cortex-a53+neon-vfpv4_musl-1.1.15_eabi/easycwmp/easycwmp-1.4.1'
make[3]: *** No targets specified and no makefile found. Stop.
make[3]: Leaving directory `/home/admin/pi3/openwrt/build_dir/target-arm_cortex-a53+neon-vfpv4_musl-1.1.15_eabi/easycwmp/easycwmp-1.4.1'
make[2]: *** [/home/admin/pi3/openwrt/build_dir/target-arm_cortex-a53+neon-vfpv4_musl-1.1.15_eabi/easycwmp/easycwmp-1.4.1/.built] Error 2
make[2]: Leaving directory `/home/admin/pi3/openwrt/package/easycwmp'
make[1]: *** [package/easycwmp/compile] Error 2
make[1]: Leaving directory `/home/admin/pi3/openwrt'
make: *** [package/easycwmp/compile] Error 2
Tags:
Steps To Reproduce: 1) Downloaded easycwmp-openwrt package version 1.4.1 and un-tar it in openwrt/package directory.

2) Go to openwrt directory and do make menuconfig.

3) Enabled easycwmp in menuconfig as built-in

4) Compile openwrt image as make V=99

5) Compilation stops with error "No targets specified and no makefile found"
Additional Information: Inside build_dir/targets/easycwmp 2 directories are found

1) easycwmp-1.4.1 -- > empty

2) easycwmp-EasyCwmp-1.4.1 --> following files found:

AUTHORS bin ChangeLog configure.ac COPYING ext Makefile.am NEWS README src

copying files from easycwmp-EasyCwmp-1.4.1 to easycwmp-1.4.1 didn't solve the problem
Attached Files: latest.png (346,852 bytes) 2016-12-18 10:01
https://support.easycwmp.org/file_download.php?file_id=77&type=bug
Notes
(0000604)
scramatte2   
2016-12-28 10:22   
Same issue here. I'm unable to build EasyCWMP with the Openwrt 15.x
Regards
(0000615)
mohamed.kallel   
2017-01-27 15:54   
the issue was in the download web page, fixed

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
189 [easycwmp] Enhancement tweak always 2016-12-16 15:08 2016-12-16 15:08
Reporter: feckert Platform: Mips  
Assigned To: OS: openwrt  
Priority: high OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Make backup.xml directory configurable
Description: On every Inform a backup.xml write is performed. If we have an embedded device with NAND flash then on every write a whole erase page is written. This will decrease the livetime of the NAND flash.
For now the backup.xml write goes to /etc. On embeded device this should go to /tmp.

My suggestion is to make the backup.xml write directory configurable on compile 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:
183 [easycwmp] Bug major always 2016-11-25 17:17 2016-11-30 10:06
Reporter: dgr999 Platform: VM  
Assigned To: mohamed.kallel OS: Ubuntu Server  
Priority: high OS Version: 16.04 LTS  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: ACS Retry timeout incorrect
Description: I was testing the retry and noticed that sometimes when watching the easycwmpd output on the console, there was no timeout. So I allowed it go on for 10 retries and could also see that the timeouts were too short when they are longer than 60 seconds. I've tried this a number of times and it always happens. I believe the problem could be the Periodic Interval timeout which I've left as 100 seconds. The maximium timeout I'm seeing is 70 seconds which with the timeout of 30 seconds curl timeout is the 100 seconds timeout. I'm also seeing timeout of zero seconds, see attached syslog and here are the results of my last test.
Retry 1 - 8 seconds
Retry 2 - 15 seconds
Retry 3 - 0 (zero) seconds
Retry 4 - 60 seconds
Retry 5 - 0 (zero) seconds
Retry 6 - 70 seconds
Retry 7 - 70 seconds
Retry 8 - 70 seconds
Retry 9 - 70 seconds
Retry 10 70 seconds
I took the measurement between the lines "retry session" and "start session" in the syslog.
Tags:
Steps To Reproduce: Turn off ACS
Start easycwmpd -f -b
After 10 Retries stop easycwmpd and collect syslog
Additional Information:
Attached Files: cwmp-retry-error.txt (9,878 bytes) 2016-11-25 17:17
https://support.easycwmp.org/file_download.php?file_id=75&type=bug
Notes
(0000575)
mohamed.kallel   
2016-11-29 10:13   
this because you are using a small periodic interval. The "start session" causes are the periodic events and not related to the retry. Please set a big periodic interval in the /etc/config/easycwmp and you will see the right timeout of retry interval.
(0000576)
dgr999   
2016-11-29 11:12   
I don't see changing the retry interval to a larger one as a fix, it should be able to handle any length of periodic interval.

What should be done in the code is to cancel the periodic interval if the curl timeout has occurred.
or
Only start the periodic interval when the communications with ACS has finished successfully.

Then it wouldn't matter what the periodic interval was.
(0000577)
mohamed.kallel   
2016-11-29 11:49   
(Last edited: 2016-11-29 11:52)
Please note it's not a bug! It's a normal behaviour and it's compliant with the standrad. And I suggested to set a big periodic interval in order to see the right retry timeout and not to fix it.

Sorry, but your both proposals are not compliant with the TR-069 standard. You can always customize your easycwmp version according to your need. But please note that they are out of the standard

(0000578)
dgr999   
2016-11-29 14:18   
OK,

Can you let me know where this is in the standard?

Page number would be helpful.

Thanks
(0000579)
mohamed.kallel   
2016-11-29 16:44   
From the Standard: https://www.broadband-forum.org/technical/download/TR-069_Amendment-5.pdf
Page 34 (3.2.1.1 Session Retry Policy):

"A CPE MUST retry a failed Session after waiting for an interval of time specified in Table 3 or when a new event occurs, whichever comes first."

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
175 [easycwmp] Question major always 2016-11-04 03:22 2016-11-18 09:31
Reporter: leaf_ee Platform: Openwrt 12.09  
Assigned To: mohamed.kallel OS: linux  
Priority: urgent OS Version: 3.3.8  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Booting problem with easycwmp-1.1.3
Description: I made an image on openwrt 12.09, everything is fine.
But later on I added easycwmp-1.1.3, there are some problems.


The boot info without easycwmp-1.1.3:

//////
Starting kernel ...

[ 0.000000] Linux version 3.3.8 (leaf@leaf) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) 0000002 Wed Sep 21 14:28:35 CST 2016
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 0001974c (MIPS 74Kc)
.
.
.
[ 3.020000] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[ 3.030000] Freeing unused kernel memory: 212k freed
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
[ 8.120000] JFFS2 notice: (459) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 12 of xref (0 dead, 2 orphan) found.
switching to jffs2
- init -

Please press Enter to activate this console. [ 9.810000] register chrdev for leds success!!!
[ 9.920000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
[ 9.930000] Backport generated by backports.git backports-20140320-37-g5c33da0
[ 10.080000] cfg80211: Calling CRDA to update world regulatory domain
.
.
.
[ 11.520000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
.
[ 11.630000] nf_conntrack version 0.5.0 (963 buckets, 3852 max)
[ 11.920000] xt_time: kernel timezone is -0000
.
[ 23.060000] br-lan: port 2(wlan0) entered forwarding state
[ 25.060000] br-lan: port 2(wlan0) entered forwarding state

Linkpower login: root
//////



The boot info with easycwmp-1.1.3:

//////
Starting kernel ...

[ 0.000000] Linux version 3.3.8 (leaf@leaf) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) 0000002 Wed Sep 21 14:28:35 CST 2016
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 0001974c (MIPS 74Kc)
.
.
.
[ 3.020000] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[ 3.030000] Freeing unused kernel memory: 212k freed
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
[ 8.000000] JFFS2 notice: (458) jffs2_build_xattr_subsystem: complete building xattr subsystem, 2 of xdatum (0 unchecked, 2 orphan) and 2 of xref (0 dead, 2 orphan) found.
switching to jffs2
- init -

Please press Enter to activate this console. Nov 4 04:11:09 crond[547]: crond: crond (busybox 1.19.4) started, log level 5

(none) login: root
//////



We can see, if boot without easycwmp-1.1.3,
leds,
Backport,
cfg80211,
PPP,
tun,
ip_tables,
NET,
ehci(usb host),
hub(usb),
nf_conntrack,
xt_time,
mmc,
eth0,
eth1,
cfg80211,
br-lan,
all packages/modules will be inited successfully.


but if boot with easycwmp-1.1.3, initing is stuck/or skipped at here:
Nov 4 04:11:09 crond[547]: crond: crond (busybox 1.19.4) started, log level 5



The openwrt is 12.09.
Could anyone help to solve it?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000571)
leaf_ee   
2016-11-16 10:53   
Now I try to restore my openwrt system to the state before installing easycwmp.
 
I deselected easycwmp and deselected its supported libs - libcurl and libmicroxml (other supported libs are shared with other packages and cannot be deselected). then run "make menuconfig clean" "make".
 
but booting is still stucked at here:

Nov 4 04:11:09 crond[547]: crond: crond (busybox 1.19.4) started, log level 5

Obviously, easycwmp does not directly cause the problem. and our openwrt system cannot be restore, its image size is 64KB larger than once before installing easycwmp.

It should be in the course of installing easycwmp, some unknowed soft module/package was quietly introduced (i.e. busybox function.. just for example). Since I did not save ".config" before installing easycwmp, so I entered menuconfig but cannot find any clue.

How to "make menuconfig" to solve it or any other quick solution?
(0000572)
leaf_ee   
2016-11-17 04:12   
Per my checking with older ".config", three modules were possibly added:

kmod-lib-crc-itu-t
kmod-lib-crc7
zlib

I wonder if zlib couses that problem?
(0000573)
leaf_ee   
2016-11-18 08:26   
Solved!

There is nothing wrong with EasyCwmp.

I copied a script 'boot' from Windows 7 OS, coincidentally in the moment of adding eacycwmp package.

See also:

https://forum.openwrt.org/viewtopic.php?id=49718

Never copy a linux script directly from Windows OS! Though both look like exactly the same.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
162 [easycwmp] Help major always 2016-09-07 14:06 2016-10-28 11:32
Reporter: satirus Platform: Linux  
Assigned To: OS: ubuntu  
Priority: normal OS Version: 14.04  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: I cannot community between easyCWMP and freeACS
Description: I consist two virtualbox for test in Windows.
난 윈도우에 두개의 버추얼box를 구성했다.

one(I'll call this A) is ubuntu 14.04 for running easycwmp.
other(I'll call this B) is ubuntu 14.04 server for running freeACS.

Windows network ip is 192.168.1.145
A's network is bridge mode, and IP is 192.168.2.145 static.
B's network is bridge mode, and IP is 192.168.3.145 static.
Windows, A, B all move ping well. so network is OK among them.

when run freeACS, I can see acs login web-page 192.168.3.145
so I think freeACS is running.

and I run easycwmp with configuration for freeACS.
but I met issue exactly same with http://support.easycwmp.org/view.php?id=80

my easycwmp configuration is below
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 '1234567890'
#Logging levels: Critic=0, Warning=1, Notice=2, Info=3, Debug=4
    option logging_level '3'

config acs
    option url http://192.168.3.145:80/web
    option username admin
    option password xaps
    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 FFFFFFFF
    option product_class easycwmp
    option serial_number FFFFFF123456
    option hardware_version example_hw_version
    option software_version example_sw_version

question.
1. for running easycwmp, do I make Data modeling in freeACS and config in easycwmp?
2. How Can I community easycwmp and freeACS well?
3. How Can I see freeACS log?

thanks for read my issue.
Tags:
Steps To Reproduce: install freeACS
1. run install-or-update-freeacs-ubuntu.sh
2. config with Fusion Installation.pdf
3. service tomcat7 restart for starting freeACS in Linux
(account is root)

install easycwmp
1. download easycwmp-1.3.4.tar.gz
2. install things with README file in easycwmp src
3. easycwmpd -f -b
(account is root)
Additional Information: I attatched Fusion Installation.pdf and README files in ZIP
Attached Files: files.zip (442,803 bytes) 2016-09-07 14:06
https://support.easycwmp.org/file_download.php?file_id=73&type=bug
easycwmp.log (18,103 bytes) 2016-09-07 14:16
https://support.easycwmp.org/file_download.php?file_id=74&type=bug
Notes
(0000545)
satirus   
2016-09-07 14:17   
I attached easycwmp log
(0000546)
mohamed.kallel   
2016-09-07 15:58   
The communication is up between freeACS and EasyCwmp, but the answer of the inform is not valid from the freeACS! Please contact the freeACS community to see this issue.
(0000561)
satirus   
2016-10-26 04:32   
I found what is wrong.
I fixed the source of easycwmp.
I remove my source, then It works normally.
(0000564)
mohamed.kallel   
2016-10-26 10:09   
what's wrong?

What did you fix in the easycwmp to get it work?

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
169 [easycwmp] Question minor have not tried 2016-10-25 16:57 2016-10-26 09:54
Reporter: alicher Platform:  
Assigned To: mohamed.kallel OS: Linux Mint  
Priority: normal OS Version: 18  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Can't usbus notify
Description: I can't notify by call:
user@user ~ $ ubus call tr069 notify { "parameter": "Device.DeviceInfo.Manufacturer", "value": "test" }

Return:
Failed to connect to ubus

But usbusd is running:
user@user ~ $ sudo ubusd -s /var/run/ubus.sock

And easycwmp is running too:
user@user ~ $ sudo /usr/sbin/easycwmpd -f -b
2016-10-25 17:31:32 [easycwmp] NOTICE - add event '0 BOOTSTRAP'
2016-10-25 17:31:32 [easycwmp] NOTICE - add event '1 BOOT'
2016-10-25 17:31:32 [easycwmp] NOTICE - add event '2 PERIODIC'
2016-10-25 17:31:32 [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.3: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-10-25 17:31:32 [easycwmp] NOTICE - init periodic inform: reference time = -62135605817, interval = 100
2016-10-25 17:31:32 [easycwmp] NOTICE - external: execute update_value_change
2016-10-25 17:31:32 [easycwmp] NOTICE - daemon started
2016-10-25 17:31:32 [easycwmp] NOTICE - external: execute inform device_id
2016-10-25 17:31:32 [easycwmp] NOTICE - external script exit
2016-10-25 17:31:32 [easycwmp] NOTICE - add event '1 BOOT'
+++ HTTP SERVER CONFIGURATION +++
NOT BOUND TO IP
port: '7547'
--- HTTP SERVER CONFIGURATION ---
2016-10-25 17:31:32 [easycwmp] NOTICE - http server initialized
2016-10-25 17:31:32 [easycwmp] NOTICE - entering main loop
2016-10-25 17:31:32 [easycwmp] NOTICE - start session
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(50):: url: http://192.168.1.3:8080/openacs/acs
http_client_init(56):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
2016-10-25 17:31:32 [easycwmp] NOTICE - configured acs url http://192.168.1.3:8080/openacs/acs
2016-10-25 17:31:32 [easycwmp] NOTICE - external script init
2016-10-25 17:31:32 [easycwmp] NOTICE - external: execute inform parameter
2016-10-25 17:31:32 [easycwmp] NOTICE - send Inform
+++ SEND HTTP REQUEST +++
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000560)
mohamed.kallel   
2016-10-25 18:31   
(Last edited: 2016-10-25 18:32)
for the ubus call notify, you do not have to specify the parameter neither the value, you have just to call:

sudo ubus call tr069 notify

And then it's up to the easycwmp to detect if any paramarmeter has changed.


For you issue of ubus command failing, please execute the command

sudo ubus call -v list

and share your output.

It's recommanded to execute all ubusd, ubus and easycwmp under root (su) and not with sudo

(0000562)
alicher   
2016-10-26 08:55   
Thanks!
Very simple :)

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
168 [easycwmp] Bug major always 2016-10-19 09:24 2016-10-20 08:43
Reporter: geek007 Platform: Openwrt CC 15.05 easycwmp 1.3.4.  
Assigned To: mohamed.kallel OS: Openwrt - Linux  
Priority: high OS Version: 3.18.27  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: "3 Vendor Configuration FIle" set failed
Description: I tried to test 3 Vendor configuration file event.
I could see below log:

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


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

void cwmp_download_launch(struct uloop_timeout *timeout)

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

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

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

may be simple popen and reboot after 5 seconds or so
Additional Information:
Attached Files:
Notes
(0000556)
mohamed.kallel   
2016-10-19 10:42   
The easycwmp does not support the config format openwrt *.tar.gz.
EasyCwmp support the config file that exported with "uci export >config" command.

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

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
167 [easycwmp] Help minor have not tried 2016-10-19 08:08 2016-10-20 08:42
Reporter: mtvs Platform: Oracle VM VirtualBox  
Assigned To: mohamed.kallel OS: OpenWrt  
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:  
e-mail notification:
Summary: Problem with installation of the EasyCwmp on an OpenWrt box
Description: I'm trying to install EasyCwmp on an OpenWrt installation running as a virtual box, make is used in the installation process.

but when I type make in the shell, it says /bin/ash: make: not found

so I downloaded gnu make and extracted it, but in its installation guide inside its INSTALL file it says:

Type 'make' to compile the package.
and obviously currently there is no make to compile the package.

I also don't get the /path/to/openwrt/package/ in EasyCwmp installation.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000557)
mohamed.kallel   
2016-10-19 10:44   
What is the system that you are using to build EasyCwmp? are you building EasyCwmp directly on your OpenWRT?
(0000558)
mtvs   
2016-10-19 11:17   
yes, OpenWRT is running inside an Oracle VM VirtualBOx
(0000559)
mohamed.kallel   
2016-10-19 11:27   
you can not build directly on OpenWRT.

You to build on your Linux PC (like Ubuntu) and then copy the package easycwmp to your OpenWRT system and then install it. You have to teach yourself about OpenWRT building

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
164 [easycwmp] Enhancement minor have not tried 2016-09-27 16:12 2016-10-08 15:39
Reporter: mohamed.kallel Platform:  
Assigned To: user4 OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Supporting TR-098 and TR-181 in easycwmp
Description: - Supporting TR-098 and TR-181 in easycwmp
- should choose in the make menuconfig to build TR-098 or TR-181
- Add Device.IP. data model parameters for TR-181
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000551)
user13   
2016-10-04 11:07   
fixed in EasyCwmp-1.4.0

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
158 [easycwmp] Enhancement minor have not tried 2016-07-29 17:02 2016-10-04 11:06
Reporter: mohamed.kallel Platform:  
Assigned To: user13 OS:  
Priority: low OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: source code indent and clean
Description: check the source code indent ( C + scripts )

example of line not well indented in the config.c:

if (!strcmp((uci_to_option(e1))->e.name, "logging_level")) {
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000550)
user13   
2016-10-04 11:06   
fixed in EasyCwmp-1.4.0

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
160 [easycwmp] Question minor N/A 2016-08-17 14:26 2016-08-19 11:14
Reporter: jaisal Platform: openWRT  
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:  
e-mail notification:
Summary: Cant install on OpenWRT
Description: Hi,
I am new here.
How can i install easycwmp on OpenWRT ?

whe i try to install i get error not found
-------------
easycwmp

EasyCwmp is mainly developed and tested with OpenWRT Linux platform.

Download:

cd /path/to/openwrt/package/
wget http://easycwmp.org/download/easycwmp-openwrt.tar.gz
tar -xzvf easycwmp-openwrt.tar.gz
cd ..
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000530)
mohamed.kallel   
2016-08-18 10:18   
You are unable to download the package easycwmp-openwrt from http://easycwmp.org/download/easycwmp-openwrt.tar.gz ?

If yes, Please try again another time, maybe the link was unreacheable for some reasons.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
159 [easycwmp] Help minor always 2016-08-16 11:38 2016-08-17 07:41
Reporter: chen_0627 Platform: X86 PC  
Assigned To: mohamed.kallel OS: Ubuntu Server 32bit  
Priority: high OS Version: 14.04  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Can't run easycwmp successfully
Description: I followed the every step on http://www.easycwmp.org/index.php/manual and installed the easycwmp well. But it can not run sucessfully when I call "/usr/sbin/easycwmpd -f -b" as root. And error logs are shown below:

============================================
2016-08-16 17:01:18 [easycwmp] NOTICE - external script init
2016-08-16 17:01:18 [easycwmp] CRITICAL - configuration (re)loading failed, exit daemon
config_load(335): configuration (re)loading failed
============================================


And config file of mine is shown below:
/etc/config/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
    option logging_level '4'

config acs
    option http://10.118.81.82:8080/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 Arcadyan
    option oui 5DDC96
    option product_class LIPTON
    option serial_number J525183553
    option hardware_version 0.1
    option software_version 1.1
=====================================================


/usr/share/easycwmp/defaults
===========================================================
#!/bin/sh
# Copyright (C) 2011-2012 Luka Perkov <freecwmp@lukaperkov.net>

# set these to appropriate values and remove comment if you want to use them

default_management_server_acs_hostname="http://10.118.81.82:8080/acs"
default_management_server_connection_request_url="http://10.118.81.82:7547/ConnectionRequest"
#default_wan_device_mng_interface_ip=""
#default_wan_device_mng_interface_mac=""
#default_device_hosts_dnsmasq_leases_file=""
=============================================================



Some questions:
1. I printed debug log in easycwmp source code, and found that it was fail while calling function uci_load(). Is it the libuci issue?
2. I downloaded and decompressed the easycwmp on path which was not on "/opt/dev/" but on my own home path. Is it the reason why I run the process fail?
But I have copied the whole folder easycwmp to "/opt/dev" after compiled it and retry to run, the result was the same.


Could you please help me to check why it always runs fail, and provide me some suggestion?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000526)
mohamed.kallel   
2016-08-16 11:56   
what is the output of the command

sudo uci show
(0000528)
chen_0627   
2016-08-17 03:41   
Result of "sudo uci show" is :
uci: Parse error (invalid character in name field) at line 15, byte 37
(0000529)
chen_0627   
2016-08-17 04:33   
(Last edited: 2016-08-17 04:51)
Ok, I have found the root cause. It's my mistake when I modify the .../ext/openwrt/config/easycwmp, I deleted the key word "url" in line 15.

Thank you.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
157 [easycwmp] Bug minor always 2016-07-29 11:10 2016-08-16 14:28
Reporter: andy_yang Platform: huawei itms,  
Assigned To: mohamed.kallel OS: ubuntu  
Priority: high OS Version: ubuntu  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: sending http message failed when I use huawei's itms not openacs
Description: 1. my easycwmp configure is as following:
root@andy:/home/andy# cat /etc/config/easycwmp

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

config acs
        option url 'http://192.168.4.11:9090/ACS-server/ACS'
        option username 'acs'
        option password 'password'
        option periodic_enable '1'
        option periodic_time '0001-01-01T00:00:00Z'
        option periodic_interval '1800'
        option parameter_key 'unsetCommandKey'
Tags:
Steps To Reproduce: 1. /usr/sbin/ubusd -s /var/run/ubus.sock
2./usr/sbin/easycwmpd -f -b
Additional Information:
Attached Files: error_log_and_pcap.rar (3,107 bytes) 2016-07-29 11:10
https://support.easycwmp.org/file_download.php?file_id=72&type=bug
Notes
(0000519)
mohamed.kallel   
2016-07-29 16:52   
(Last edited: 2016-07-29 16:53)
According to the log and the capture, It looks that your ACS is not answering to the Inform sent by the EasyCwmp. that's why the EasyCwmp return http message failed after a timeout of 30 seconds.

The reason could be that your ACS does not recognize the "expect 100 continue" http option.
You can avoid the "expect 100 continue" in the http messages sent by EasyCwmp by setting the config:

uci set easycwmp.@acs[0].http100continue_disable=1
uci commit

(0000520)
andy_yang   
2016-08-01 03:25   
I have try this method ,but the result is the same error! I think the reason could be the inform content that not meet ACS's report requirement.
(0000521)
andy_yang   
2016-08-01 03:30   
By the way, I can use easycwmp to communication with openacs
(0000522)
mohamed.kallel   
2016-08-01 10:08   
Is it possible to check your ACS log. And see why the ACS is rejecting the easycwmp inform?
(0000524)
andy_yang   
2016-08-04 03:55   
Ok,thanks!

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
156 [easycwmp] Help major always 2016-07-29 10:45 2016-08-16 13:00
Reporter: andy_yang Platform: ubuntu  
Assigned To: mohamed.kallel OS: ubuntu  
Priority: high OS Version: ubuntu  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: How to enable Digest auth on the easycwmp
Description: Hi,guy
  I have a question that how to configure our eascwmp to enable Digest Auth. In other words,whether we have a swith to enable or disable it by CPE
  My configure is as following:

root@andy:/home/andy# cat /etc/config/easycwmp

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

config acs
        option url 'http://192.168.20.88:8080/openacs/acs'
        option username 'acs'
        option password 'password'
        option periodic_enable '1'
        option periodic_time '0001-01-01T00:00:00Z'
        option periodic_interval '1800'
        option parameter_key 'unsetCommandKey'

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'
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000517)
andy_yang   
2016-07-29 10:47   
for exampel the command:
  uci set easycwmp.@local[0].digest_enable='1'
(0000518)
mohamed.kallel   
2016-07-29 16:43   
1) If you mean digest authentication requested by the ACS, then you have only to set the user name and the password and then the CPE will send them upon the ACS request of digest authentication

2) If you mean digest authentication requested by the CPE upon a connection request, then you can enable the digest authentication by setting username and password and disable the authentication request by removing the options @local[0].username and @local[0].password
(0000523)
andy_yang   
2016-08-04 03:55   
Ok,thanks!

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
155 [easycwmp] Question major always 2016-07-26 14:55 2016-07-29 10:25
Reporter: Tyler-PN 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:  
e-mail notification:
Summary: easycwmp and session cookies
Description: Hi!

We are testing mutual authentication based on certificates between easycwmp on OpenWRT against F5 reverse proxy implementing APM.
Mutual certificate authentication seems to work fine, the F5 reverse proxy issues a session cookie, but seems that easycwmp is not using this session cookie in the HTTP communication (that is used to identify the client).
Moreover, cannot find anything in /tmp/easycwmp_cookies

At the end of the session, I find
* SSL read: error:00000000:lib(0):func(0):reason(0), errno 104

But this should be the result of the TCP reset sent from the F5.
Looking F5 logs, the client is correctly passing its own cert.

Am using latest version : easycwmp-1.3.4
Tags:
Steps To Reproduce:
Additional Information: Here the whole log (some info shadowed)
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(50):: url: https://someurl.somedomain.net
http_client_init(52):: ssl_cert: /home/anakin/client0.pem
http_client_init(54):: ssl_cacert: /etc/ssl/certs/infrastructure_ca.cert.pem
http_client_init(56):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
2016-07-26 14:46:58 [easycwmp] NOTICE - configured acs url https://someurl.somedomain.net
2016-07-26 14:46:58 [easycwmp] NOTICE - external script init
2016-07-26 14:46:58 [easycwmp] NOTICE - external: execute inform parameter
2016-07-26 14:46:58 [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">8</cwmp:ID>
  </soap_env:Header>
 
BLA
BLA
BLA

--- SEND HTTP REQUEST ---
* Rebuilt URL to: https://someurl.somedomain.net/
* Trying [F5 IP Address]...
* Connected to someurl.somedomain.net ([F5 IP Address]) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/infrastructure_ca.cert.pem
  CApath: /etc/ssl/certs
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-SHA384
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: O=corporate; OU=Some Stuff; CN=someurl.somedomain.net; subjectAltName=someurl.somedomain.net
* start date: Jul 20 10:04:08 2016 GMT
* expire date: Jul 20 10:04:08 2018 GMT
* common name: someurl.somedomain.net (matched)
* issuer: O=corporate; OU=Some Stuff; CN=Infrastructure CA
* SSL certificate verify result: self signed certificate in certificate chain (19), continuing anyway.
> POST / HTTP/1.1
Host: someurl.somedomain.net
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 3051
Expect: 100-continue

* Done waiting for 100-continue
* We are completely uploaded and fine
* HTTP 1.0, assume close after body
< HTTP/1.0 302 Found
< Server: BigIP
< Connection: Close
< Content-Length: 0
< Location: /my.policy
* Added cookie LastMRH_Session="098bff1a" for domain someurl.somedomain.net, path /, expire 0
< Set-Cookie: LastMRH_Session=098bff1a; domain=someurl.somedomain.net;path=/;secure
* Added cookie MRHSession="c9e1e92e3394affa2a2dc975098bff1a" for domain someurl.somedomain.net, path /, expire 0
< Set-Cookie: MRHSession=c9e1e92e3394affa2a2dc975098bff1a; domain=someurl.somedomain.net;path=/;secure
* Added cookie MRHSHint="deleted" for domain someurl.somedomain.net, path /, expire 1
< Set-Cookie: MRHSHint=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/
<
* Closing connection 0
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(50):: url: https://someurl.somedomain.net/my.policy
http_client_init(52):: ssl_cert: /home/anakin/client0.pem
http_client_init(54):: ssl_cacert: /etc/ssl/certs/infrastructure_ca.cert.pem
http_client_init(56):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
2016-07-26 14:46:59 [easycwmp] NOTICE - configured acs url https://someurl.somedomain.net/my.policy
+++ 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">8</cwmp:ID>
  </soap_env:Header>
  <soap_env:Body>
   <cwmp:Inform>
     
BLA
BLA
BLA
    </ParameterList>
   </cwmp:Inform>
  </soap_env:Body>
 </soap_env:Envelope>
--- SEND HTTP REQUEST ---
* Trying [F5 IP Address]...
* Connected to someurl.somedomain.net ([F5 IP Address]) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/infrastructure_ca.cert.pem
  CApath: /etc/ssl/certs
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-SHA384
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: O=corporate; OU=Some Stuff; CN=someurl.somedomain.net; subjectAltName=someurl.somedomain.net
* start date: Jul 20 10:04:08 2016 GMT
* expire date: Jul 20 10:04:08 2018 GMT
* common name: someurl.somedomain.net (matched)
* issuer: O=corporate; OU=Some Stuff; CN=Infrastructure CA
* SSL certificate verify result: self signed certificate in certificate chain (19), continuing anyway.
> POST /my.policy HTTP/1.1
Host: someurl.somedomain.net
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 3051
Expect: 100-continue

* Done waiting for 100-continue
* We are completely uploaded and fine
* HTTP 1.0, assume close after body
< HTTP/1.0 302 Found
< Server: BigIP
< Connection: Close
< Content-Length: 0
< Location: /my.logout.php3?errorcode=20
* Added cookie LastMRH_Session="" for domain someurl.somedomain.net, path /, expire 0
< Set-Cookie: LastMRH_Session=; domain=someurl.somedomain.net;path=/;secure
* Added cookie MRHSession="" for domain someurl.somedomain.net, path /, expire 0
< Set-Cookie: MRHSession=; domain=someurl.somedomain.net;path=/;secure
<
* Closing connection 0
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(50):: url: https://someurl.somedomain.net/my.logout.php3?errorcode=20
http_client_init(52):: ssl_cert: /home/anakin/client0.pem
http_client_init(54):: ssl_cacert: /etc/ssl/certs/infrastructure_ca.cert.pem
http_client_init(56):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
2016-07-26 14:47:01 [easycwmp] NOTICE - configured acs url https://someurl.somedomain.net/my.logout.php3?errorcode=20
+++ 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">8</cwmp:ID>
  </soap_env:Header>
BLA
BLA
BLA
   </cwmp:Inform>
  </soap_env:Body>
 </soap_env:Envelope>
--- SEND HTTP REQUEST ---
* Trying [F5 IP Address]...
* Connected to someurl.somedomain.net ([F5 IP Address]) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/infrastructure_ca.cert.pem
  CApath: /etc/ssl/certs
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-SHA384
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: O=corporate; OU=Some Stuff; CN=someurl.somedomain.net; subjectAltName=someurl.somedomain.net
* start date: Jul 20 10:04:08 2016 GMT
* expire date: Jul 20 10:04:08 2018 GMT
* common name: someurl.somedomain.net (matched)
* issuer: O=corporate; OU=Some Stuff; CN=Infrastructure CA
* SSL certificate verify result: self signed certificate in certificate chain (19), continuing anyway.
> POST /my.logout.php3?errorcode=20 HTTP/1.1
Host: someurl.somedomain.net
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 3051
Expect: 100-continue

* Done waiting for 100-continue
* We are completely uploaded and fine
* SSL read: error:00000000:lib(0):func(0):reason(0), errno 104
Attached Files:
Notes
(0000513)
mohamed.kallel   
2016-07-26 17:00   
Concerning the :

* SSL read: error:00000000:lib(0):func(0):reason(0), errno 104


Is it a normal behviour since your server is sending TCP connection reset ?

If not, Could you please share your libcurl version and the openSSL version if your libcurl is using OpenSSL?
(0000514)
Tyler-PN   
2016-07-27 08:39   
Hi,
* SSL read: error:00000000:lib(0):func(0):reason(0), errno 104
is thrown by the web frontend when mutual authentication does not succeed.
Anyhow am using libcurl 7.47.0 and openssl 1.0.2g-1ubuntu4.1

Today did a further test, as I feel that session cookies are not used by easycwmp after 302 redirect to my.policy.
I've enabled "a so called "clientless mode" on the F5, that avoids 302 redirect to my.policy and picks up mutual authentication, and this is working!

Is this easycwmp behaviour something by design?

Many thanks for prompt reply
(0000515)
Tyler-PN   
2016-07-28 09:14   
For your reference, here a HTTP conversation that works fine (disabling redirects):
--- SEND HTTP REQUEST ---
* Trying xxx.xxx.xxx.xxx...
* Connected to somename.somedomain.net (xxx.xxx.xxx.xxx) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/corp_ca.cert.pem
  CApath: /etc/ssl/certs
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-SHA384
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: O=SomeCorp; OU=Some Connected Stuff; CN=somename.somedomain.net; subjectAltName=somename.somedomain.net
* start date: Jul 20 10:04:08 2016 GMT
* expire date: Jul 20 10:04:08 2018 GMT
* common name: somename.somedomain.net (matched)
* issuer: O=SomeCorp; OU=Some Connected Stuff; CN=Infrastructure CA
* SSL certificate verify result: self signed certificate in certificate chain (19), continuing anyway.
> POST / HTTP/1.1
Host: somename.somedomain.net
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 2849
Expect: 100-continue

* Done waiting for 100-continue
* We are completely uploaded and fine
< HTTP/1.1 100 Continue
< HTTP/1.1 401 Unauthorized
< Server: Apache-Coyote/1.1
* Added cookie JSESSIONID="97FF36953C1B2580E3376BD723C5C44B" for domain somename.somedomain.net, path /, expire 0
< Set-Cookie: JSESSIONID=97FF36953C1B2580E3376BD723C5C44B; Path=/
< WWW-Authenticate: Basic realm="xaps"
< Content-Type: text/html;charset=utf-8
< Content-Language: en
< Date: Wed, 27 Jul 2016 06:19:13 GMT
< Connection: close
* Added cookie LastMRH_Session="d8c1ea54" for domain somename.somedomain.net, path /, expire 0
< Set-Cookie: LastMRH_Session=d8c1ea54; domain=somename.somedomain.net;path=/;secure
* Added cookie MRHSession="9b84d47ae2df45f78dea111bd8c1ea54" for domain somename.somedomain.net, path /, expire 0
< Set-Cookie: MRHSession=9b84d47ae2df45f78dea111bd8c1ea54; domain=somename.somedomain.net;path=/;secure
< Expires: Thu, 01 Dec 1994 16:00:00 GMT
< Transfer-Encoding: chunked
<
* Closing connection 0
* Issue another request to this URL: 'https://somename.somedomain.net/'
* Hostname somename.somedomain.net was found in DNS cache
* Trying xxx.xxx.xxx.xxx...
* Connected to somename.somedomain.net (xxx.xxx.xxx.xxx) port 443 (#1)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/corp_ca.cert.pem
  CApath: /etc/ssl/certs
* SSL re-using session ID
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-SHA384
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: O=SomeCorp; OU=Some Connected Stuff; CN=somename.somedomain.net; subjectAltName=somename.somedomain.net
* start date: Jul 20 10:04:08 2016 GMT
* expire date: Jul 20 10:04:08 2018 GMT
* common name: somename.somedomain.net (matched)
* issuer: O=SomeCorp; OU=Some Connected Stuff; CN=Infrastructure CA
* SSL certificate verify result: self signed certificate in certificate chain (19), continuing anyway.
* Server auth using Basic with user '213213-NIU_NIUX-921382913789'
> POST / HTTP/1.1
Host: somename.somedomain.net
Authorization: Basic Nzg0NTYxLU5JVV9OSVVYLTc4NDU2MTFGQkIwNzozMmJ5dGVzZ2VuZXJhdGlhY2FzbzAxMjM0NTY3ODkyMQ==
Cookie: JSESSIONID=97FF36953C1B2580E3376BD723C5C44B; LastMRH_Session=d8c1ea54; MRHSession=9b84d47ae2df45f78dea111bd8c1ea54
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
Content-Length: 2849
Expect: 100-continue

* Done waiting for 100-continue
* We are completely uploaded and fine
< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< SOAPAction:
< Content-Type: text/xml;charset=ISO-8859-1
< Content-Length: 491
< Date: Wed, 27 Jul 2016 06:19:14 GMT
< Expires: Thu, 01 Dec 1994 16:00:00 GMT
<
* Connection #1 to host somename.somedomain.net left intact
+++ RECEIVED HTTP RESPONSE +++
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="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">
<soapenv:Header>
        <cwmp:ID soapenv:mustUnderstand="1">1</cwmp:ID>
</soapenv:Header>
<soapenv:Body>
                <cwmp:InformResponse>
                        <MaxEnvelopes>1</MaxEnvelopes>
                </cwmp:InformResponse>
</soapenv:Body>
</soapenv:Envelope>
--- RECEIVED HTTP RESPONSE ---
2016-07-27 08:19:14 [easycwmp] NOTICE - receive InformResponse from the ACS
2016-07-27 08:19:14 [easycwmp] NOTICE - send empty message to the ACS
+++ SEND EMPTY HTTP REQUEST +++
* Found bundle for host somename.somedomain.net: 0x94200e8 [can pipeline]
* Re-using existing connection! (#1) with host somename.somedomain.net
* Connected to somename.somedomain.net (xxx.xxx.xxx.xxx) port 443 (#1)
* Server auth using Basic with user '213213-NIU_NIUX-921382913789'
> POST / HTTP/1.1
Host: somename.somedomain.net
Authorization: Basic Nzg0NTYxLU5JVV9OSVVYLTc4NDU2MTFGQkIwNzozMmJ5dGVzZ2VuZXJhdGlhY2FzbzAxMjM0NTY3ODkyMQ==
Cookie: JSESSIONID=97FF36953C1B2580E3376BD723C5C44B; LastMRH_Session=d8c1ea54; MRHSession=9b84d47ae2df45f78dea111bd8c1ea54
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
Content-Length: 0

< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< SOAPAction:
< Content-Type: text/xml;charset=ISO-8859-1
< Content-Length: 2504
< Date: Wed, 27 Jul 2016 06:19:14 GMT
< Expires: Thu, 01 Dec 1994 16:00:00 GMT
<
* Connection #1 to host somename.somedomain.net left intact
--- SEND HTTP REQUEST ---
* Found bundle for host somename.somedomain.net: 0x94200e8 [can pipeline]
* Re-using existing connection! (#1) with host somename.somedomain.net
* Connected to somename.somedomain.net (xxx.xxx.xxx.xxx) port 443 (#1)
* Server auth using Basic with user '213213-NIU_NIUX-921382913789'
> POST / HTTP/1.1
Host: somename.somedomain.net
Authorization: Basic Nzg0NTYxLU5JVV9OSVVYLTc4NDU2MTFGQkIwNzozMmJ5dGVzZ2VuZXJhdGlhY2FzbzAxMjM0NTY3ODkyMQ==
Cookie: JSESSIONID=97FF36953C1B2580E3376BD723C5C44B; LastMRH_Session=d8c1ea54; MRHSession=9b84d47ae2df45f78dea111bd8c1ea54
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 4262
Expect: 100-continue
(0000516)
mohamed.kallel   
2016-07-29 10:18   
(Last edited: 2016-07-29 10:25)
Your issue is related to the HTTP redirect.
HTTP redirect is not well supported by Libcurl, so it was implemented by easycwmp team in the cwmp stack. May be our implementation is not fully compliant with the HTTP standard.
I can not treat the issue in the near future since it takes time and I m busy these days. Please feel free to check the source code and fix it. Please share your patch with the community.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
153 [easycwmp] Enhancement minor always 2016-07-16 12:50 2016-07-16 21:24
Reporter: user13 Platform: ubuntu  
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:  
e-mail notification:
Summary: remove null from log message of external
Description: remove null from log message of external:
==> execute update_value_change (null)
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000510)
mohamed.kallel   
2016-07-16 21:24   
delivered in EasyCwmp-1.3.4

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
152 [easycwmp] Bug minor have not tried 2016-07-15 13:25 2016-07-16 21:24
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:  
e-mail notification:
Summary: ipping diagnostic does not work properly in Ubuntu
Description: ipping diagnostic does not work properly in Ubuntu
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000509)
mohamed.kallel   
2016-07-16 21:24   
delivered in EasyCwmp-1.3.4

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
151 [easycwmp] Bug crash have not tried 2016-07-15 13:24 2016-07-16 21: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:  
e-mail notification:
Summary: crash in ubuntu when launching download with invalid url
Description: crash in ubuntu when launching download with invalid url

Most probably the crash cause is related to read/write to pipe and the pipe is closed. The pipe could be closed for an error script in the download part.

The following link explain how to control pipe before read/write: http://stackoverflow.com/questions/19020857/how-to-check-if-the-pipe-is-opend-before-writing
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000508)
mohamed.kallel   
2016-07-16 21:23   
delivered in EasyCwmp-1.3.4

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
150 [easycwmp] Enhancement minor have not tried 2016-07-15 10:30 2016-07-16 21: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:  
e-mail notification:
Summary: All scripts should be 'chmod +x' in the install
Description: All scripts should be 'chmod +x' in the install

--> Update the install page and the Readme
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000507)
mohamed.kallel   
2016-07-16 21:23   
delivered in EasyCwmp-1.3.4

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
149 [easycwmp] Enhancement minor have not tried 2016-07-14 16:42 2016-07-14 18:03
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:  
e-mail notification:
Summary: Launch data mdel command directly with /usr/sbin/easycwmp instead of using /bin/sh
Description: Enhancement launch data mdel command directly with /usr/sbin/easycwmp instead of using /bin/sh
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000506)
mohamed.kallel   
2016-07-14 18:03   
Enhancement in EasyCwmp-1.3.3

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
142 [easycwmp] Help major always 2016-06-23 08:39 2016-07-14 18:02
Reporter: superkid Platform:  
Assigned To: mohamed.kallel OS:  
Priority: high OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: my openwrt router connects intermittently to freeACS
Description: my openwrt router can connect to my ACS for the first time then fails to connect after some time (Inform failed as you can see on the additional information). Why does it happen and what's the fix for this? I'm using easycwmp version 1.3.1


I've attached the syslog from my router
Tags:
Steps To Reproduce:
Additional Information: Thu Jun 23 14:32:36 2016 daemon.notice easycwmpd: external script init
Thu Jun 23 14:32:36 2016 daemon.notice easycwmpd: external: execute inform parameter
Thu Jun 23 14:32:36 2016 daemon.notice easycwmpd: send Inform
Thu Jun 23 14:32:37 2016 daemon.notice easycwmpd: sending http message failed
Thu Jun 23 14:32:37 2016 daemon.notice easycwmpd: sending Inform failed
Thu Jun 23 14:32:37 2016 daemon.notice easycwmpd: external: execute apply service
Thu Jun 23 14:32:37 2016 daemon.notice easycwmpd: external script exit
Thu Jun 23 14:32:37 2016 daemon.notice easycwmpd: end session failed
Thu Jun 23 14:32:37 2016 daemon.notice easycwmpd: retry session in 960 sec, RetryCount = 8
Attached Files: syslog (19,103 bytes) 2016-06-23 08:39
https://support.easycwmp.org/file_download.php?file_id=70&type=bug
Notes
(0000488)
mohamed.kallel   
2016-06-23 13:25   
looks like a connectivity problem and not an easucwmpd problem.

Could you send traffic capture to confirm that
(0000489)
mohamed.kallel   
2016-06-23 13:27   
Suggestion to easycwmp team for the enhancement of the easycwmpd log:
Add libcurl log to the syslog message of easycwmpd in order to know the cause of the cause of the http send message fails in the future.
(0000505)
mohamed.kallel   
2016-07-14 18:02   
Suggestion taken account in EasyCwmp-1.3.3

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
140 [easycwmp] Bug crash sometimes 2016-06-10 16:01 2016-07-14 15:50
Reporter: okraits Platform: Linux  
Assigned To: mohamed.kallel OS: OpenWRT  
Priority: urgent OS Version: ChaosCalmer  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: easycwmp crashes with Segmentation Fault
Description: 2 of our devices crashed with segmentation fault. One ran for ~ 24h and then crashed, the other one ran for ~ 10 min and then crashed.

On both devices /etc/easycwmp/.backup.xml has a size of 0 bytes after the crash. Because of that, easycwmd crashes again with segmentation fault if you try to run it again. Same effect as in http://support.easycwmp.org/view.php?id=32

easycwmp version is 1.3.1.

I think one can trace back the error to this line (see strace log):

https://github.com/pivasoftware/easycwmp/blob/master/src/backup.c#L57

I guess that this is the last open call in the strace log.
Tags:
Steps To Reproduce: I don't know exactly what caused the initial crash (i guess some issue in the xml handling) but you can make easycwmpd crash again by running it when the backup file has still a size of 0 bytes.
Additional Information: The last lines of "strace -f -v easycwmpd -f" are:

open("/var/run/easycwmp.pid", O_RDWR|O_CREAT, 0644) = 3
flock(3, LOCK_EX|LOCK_NB) = 0
fcntl64(3, F_GETFD) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
umask(037) = 022
getuid() = 0
brk(0) = 0xa2c000
brk(0xa2d000) = 0xa2d000
epoll_create(32) = 4
fcntl64(4, F_GETFD) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
access("/etc/easycwmp", F_OK) = 0
access("/etc/easycwmp/.backup.xml", F_OK) = 0
open("/etc/easycwmp/.backup.xml", O_RDONLY) = 5
ioctl(5, TIOCNXCL, 0x7fc50770) = -1 ENOTTY (Inappropriate ioctl for device)
brk(0xa2e000) = 0xa2e000
read(5, "", 4096) = 0
close(5) = 0
open("/etc/easycwmp/.backup.xml", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 5
ioctl(5, TIOCNXCL, 0x7fc50718) = -1 ENOTTY (Inappropriate ioctl for device)
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
+++ killed by SIGSEGV +++
Segmentation fault
Attached Files:
Notes
(0000503)
mohamed.kallel   
2016-07-14 15:50   
fixed in EasyCwmp-1.3.2

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
146 [easycwmp] Enhancement minor have not tried 2016-07-13 12:17 2016-07-14 15: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:  
e-mail notification:
Summary: Enhancement launch of easycwmp script could be done with --json-input instead of json_input argument
Description: Enhancement launch of easycwmp script could be done with --json-input instead of json_input argument
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000502)
mohamed.kallel   
2016-07-14 15:49   
Enhancement in EasyCwmp-1.3.2

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
147 [easycwmp] Enhancement minor have not tried 2016-07-13 12:18 2016-07-14 15: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:  
e-mail notification:
Summary: Enhancement Add ipping_stop function to ipping_launch script
Description: Enhancement Add ipping_stop function to ipping_launch script
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000501)
mohamed.kallel   
2016-07-14 15:49   
Enhancement in EasyCwmp-1.3.2

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
148 [easycwmp] Bug minor have not tried 2016-07-13 12:19 2016-07-14 15:48
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:  
e-mail notification:
Summary: memory leak: should call blob_buf_free() after calling blob_buf_init()
Description: memory leak: should call blob_buf_free() after calling blob_buf_init()
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000500)
mohamed.kallel   
2016-07-14 15:48   
fixed in EasyCwmp-1.3.2

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
143 [easycwmp] Help minor always 2016-07-05 16:34 2016-07-14 15:47
Reporter: mar Platform:  
Assigned To: user13 OS: Linux  
Priority: normal OS Version: Ubuntu 16.04  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Can't call the ubus call tr069 notify
Description: I got this error :
"Command failed: Not found"

Furthermore ubus -s /tmp/.ubus.sock list doesn't display anything
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000490)
mohamed.kallel   
2016-07-11 10:26   
in what mode ubisd is launched ?

ubusd should be launched in super user mode(root).

sudo ubusd.

an also the ubus command shoulb called in super user mode
(0000492)
mar   
2016-07-11 11:33   
I launched both in super user mode.
I can call the command 'ubus listen &' but 'call tr069 notify' is reported as unknown command
(0000496)
user13   
2016-07-13 12:49   
try to launch ubusd with the following socket path:

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

and then check it with netstat command :

#netstat -anp |grep -i ubus
(0000497)
mar   
2016-07-13 14:47   
Thks a lot, it's now working. I had to connect to the /var/run/ubus.sock socket instead of the /tmp/.ubus.sock socket.
(0000498)
mohamed.kallel   
2016-07-13 15:00   
@Anis Update the Readme with the last version of the install page
(0000499)
mohamed.kallel   
2016-07-14 15:47   
Readme updated in EasyCwmp-1.3.2 and Install web page updated too

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
125 [easycwmp] Help feature N/A 2016-04-06 12:45 2016-07-14 10:39
Reporter: andy_yang Platform: pbx  
Assigned To: mohamed.kallel OS: linux  
Priority: high OS Version: 2.6  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Discussion about how to combine our easycwmp design with REST API Web Serive to support better service
Description: I know that the EasyCwmp design includes 2 parts: EasyCwmp core and EasyCwmp DataModel. This is the same as our current project on the openwrt platform. As we all know, Google and Yahoo and other Internet giants released Web Service API, REST is favored by the more internet companies. It seems to have been on the rise all night.

So, it's time to Dissuss how to combine our easycwmp design with REST API for developers.
Tags:
Steps To Reproduce:
Additional Information: We can learn REST API basic knowledge and design idea by Google Engine or other methods. Now, I prefer to get that more idea and suggestion will be put forward from our easycwmp team.
Attached Files:
Notes
(0000414)
mohamed.kallel   
2016-04-08 10:31   
It's intersting, please let me know about details

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
144 [easycwmp] Help minor N/A 2016-07-10 12:04 2016-07-14 10:37
Reporter: federicod Platform: x86  
Assigned To: mohamed.kallel OS: openwrt  
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:  
e-mail notification:
Summary: need help getting some voip values from acs server
Description: Hi all,

I succesfully set up easycwmp on openwrt, it connects to the commercial server in https (log is attached). now I would like to retrieve two parameters from the server:

InternetGatewayDevice.Services.VoiceService.1.VoiceProfile.1.Line.1.SIP.AuthPassword
InternetGatewayDevice.Services.VoiceService.1.VoiceProfile.1.Line.1.SIP.AuthUserName

could someone guide me through the easiest way of doing so? I guess a script should be written for this purpose, but I am unable to figure out how.
Thanks
Tags:
Steps To Reproduce:
Additional Information: 2016-07-10 10:01:06 [easycwmp] NOTICE - add event '2 PERIODIC'
2016-07-10 10:01:06 [easycwmp] NOTICE - start session
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(50):: url: https://91.80.32.241:7006/cwmpWeb/CPEMgt
http_client_init(56):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
2016-07-10 10:01:06 [easycwmp] NOTICE - configured acs url https://91.80.32.241:7006/cwmpWeb/CPEMgt
2016-07-10 10:01:06 [easycwmp] NOTICE - external script init
2016-07-10 10:01:06 [easycwmp] NOTICE - external: execute inform parameter
2016-07-10 10:01: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">7</cwmp:ID>
  </soap_env:Header>
  <soap_env:Body>
   <cwmp:Inform>
    <DeviceId>
     <Manufacturer>V0d@fone</Manufacturer>
     <OUI>90356E</OUI>
     <ProductClass>Vox2.5</ProductClass>
     <SerialNumber>D140900xxxxx</SerialNumber>
    </DeviceId>
    <Event soap_enc:arrayType="cwmp:EventStruct[1]">
     <EventStruct>
      <EventCode>2 PERIODIC</EventCode>
      <CommandKey />
     </EventStruct>
    </Event>
    <MaxEnvelopes>1</MaxEnvelopes>
    <CurrentTime>2016-07-10T10:01:06+00:00</CurrentTime>
    <RetryCount>0</RetryCount>
    <ParameterList soap_enc:arrayType="cwmp:ParameterValueStruct[11]">
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.HardwareVersion</Name>
      <Value xsi:type="xsd:string">ADB 963168_ADBVOX25</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.Manufacturer</Name>
      <Value xsi:type="xsd:string">V0d@fone</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.ManufacturerOUI</Name>
      <Value xsi:type="xsd:string">90356E</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.ProductClass</Name>
      <Value xsi:type="xsd:string">Vox2.5</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">D14090000148048</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.SoftwareVersion</Name>
      <Value xsi:type="xsd:string">5.4.8.1.160.12.67.1.35</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://192.168.1.3: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">192.168.1.10</Value>
     </ParameterValueStruct>
    </ParameterList>
   </cwmp:Inform>
  </soap_env:Body>
 </soap_env:Envelope>
--- SEND HTTP REQUEST ---
* Error reading ca cert path /etc/ssl/certs - PolarSSL: (-0x2900) X509 - Read/write of file failed
> POST /cwmpWeb/CPEMgt HTTP/1.1
Host: 91.80.32.241:7006
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 3107
Expect: 100-continue

< HTTP/1.1 401 Unauthorized
< Date: Sun, 10 Jul 2016 10:01:07 GMT
< Content-Length: 1518
< Content-Type: text/html; charset=UTF-8
< WWW-Authenticate: Basic realm="default"
< X-Powered-By: Servlet/2.5 JSP/2.1
<
* Error reading ca cert path /etc/ssl/certs - PolarSSL: (-0x2900) X509 - Read/write of file failed
> POST /cwmpWeb/CPEMgt HTTP/1.1
Authorization: Basic YWRtaW46YWRtaW4=
Host: 91.80.32.241:7006
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
Content-Length: 3107
Expect: 100-continue

< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
< Date: Sun, 10 Jul 2016 10:01:09 GMT
< Content-Length: 532
< Content-Type: text/xml; charset=UTF-8
< Set-Cookie: JSESSIONID=tLD2XCcFGp0WNS2ffyGStLzL212Lbxrc2pf9C7jT9wTLfhnhYTLM!1311065348; path=/
< X-Powered-By: Servlet/2.5 JSP/2.1
<
+++ RECEIVED HTTP RESPONSE +++
<soapenv:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:cwmp="urn:dslforum-org:cwmp-1-2" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Header>
        <cwmp:ID soapenv:mustUnderstand="1">7</cwmp:ID>
    </soapenv:Header>
    <soapenv:Body>
        <cwmp:InformResponse>
            <MaxEnvelopes>1</MaxEnvelopes>
        </cwmp:InformResponse>
    </soapenv:Body>
</soapenv:Envelope>
--- RECEIVED HTTP RESPONSE ---
2016-07-10 10:01:09 [easycwmp] NOTICE - receive InformResponse from the ACS
2016-07-10 10:01:09 [easycwmp] NOTICE - send empty message to the ACS
+++ SEND EMPTY HTTP REQUEST +++
> POST /cwmpWeb/CPEMgt HTTP/1.1
Authorization: Basic YWRtaW46YWRtaW4=
Host: 91.80.32.241:7006
Cookie: JSESSIONID=tLD2XCcFGp0WNS2ffyGStLzL212Lbxrc2pf9C7jT9wTLfhnhYTLM!1311065348
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
Content-Length: 0

< HTTP/1.1 204 No Content
< Date: Sun, 10 Jul 2016 10:01:09 GMT
< Content-Length: 0
< Content-Type: text/xml; charset=UTF-8
< X-Powered-By: Servlet/2.5 JSP/2.1
<
+++ RECEIVED EMPTY HTTP RESPONSE +++
2016-07-10 10:01:09 [easycwmp] NOTICE - receive empty message from the ACS
2016-07-10 10:01:09 [easycwmp] NOTICE - external: execute apply service
2016-07-10 10:01:09 [easycwmp] NOTICE - external script exit
2016-07-10 10:01:09 [easycwmp] NOTICE - end session success
Attached Files:
Notes
(0000491)
mohamed.kallel   
2016-07-11 11:01   
You have to develop the script for voice parameters.
You can follow the existing data model parameters already implemented like lan_device script. Or you can refer to the commercial support service to guide you in the implementation or you can refer to refer to the commercial service to implement your voice parameters

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
139 [easycwmp] Help minor always 2016-06-07 04:52 2016-07-14 10:36
Reporter: jrcartmell Platform: TP-Link  
Assigned To: mohamed.kallel OS: OpenWRT  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Cant get easycwmp package to run
Description: I am able to build the easycwmp package and get it to successfully install on the AP. However, when I run it it doesn't appear to start. I enter:
/etc/init.d/easycwmpd start but it does not seem to start. I have also tried restart, boot and enable. I see no logs written. I am logged in as root.

I have setup /etc/config/easycwmp to point to my ACS and when I run easycwmp I see nothing from the laptop onto the Ethernet towards the ACS.

I am sure something is misconfigured, but after playing with this for several days I am stuck. Any help would be more then appreciated.

Thanks.

Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000482)
mohamed.kallel   
2016-06-07 08:58   
did you configure the right interface in the /etc/config/easycwmp.

You can see the log by activating the syslog on your openWRT

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
136 [easycwmp] Enhancement minor have not tried 2016-05-17 16:31 2016-05-26 10:11
Reporter: mohamed.kallel 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:  
e-mail notification:
Summary: use mxmlGetNextSibling() in xml_get_value_with_whitespace()
Description: According to an EasyCwmp contributor, it's better to use mxmlGetNextSibling() in
xml_get_value_with_whitespace() in this way:

char *xml_get_value_with_whitespace(mxml_node_t **b)
{
    //b is a TEXT and it is the first child in the ELEMENT
    //If a string has spaces, it is represented as multiple TEXT siblings.

    char * value = calloc(1, sizeof(char));
    do {
        value = realloc(value, strlen(value) + strlen((*b)->value.text.string) + 2);
 
        /*handle leading space before this string*/
        if ((*b)->value.text.whitespace == 1)
            strcat(value, " ");

        strcat(value, (*b)->value.text.string);

     } while ((*b = mxmlGetNextSibling(*b)) &&
                   (*b)->type == MXML_TEXT);
  return value;
}

attached test.c and test.xml
Tags:
Steps To Reproduce:
Additional Information:
Attached Files: test.c (1,182 bytes) 2016-05-17 16:32
https://support.easycwmp.org/file_download.php?file_id=68&type=bug
test.xml (79 bytes) 2016-05-17 16:32
https://support.easycwmp.org/file_download.php?file_id=69&type=bug
Notes
(0000478)
mohamed.kallel   
2016-05-26 10:11   
this issue is uselss since the use of mxmlGetNextSibling() could cause many cases to take in account. So we keep the current solution for the moment

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
134 [easycwmp] Enhancement minor have not tried 2016-05-11 16:37 2016-05-11 17:31
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:  
e-mail notification:
Summary: Enhancement Add IPPingDiagnostic parameters
Description: Enhancement Add IPPingDiagnostic parameters
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000476)
mohamed.kallel   
2016-05-11 17:31   
Delivered in EasyCwmp-1.3.1

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
133 [easycwmp] Enhancement minor have not tried 2016-05-11 15:00 2016-05-11 15:23
Reporter: mohamed.kallel Platform: OpenWRT  
Assigned To: mohamed.kallel OS: OpenWRT  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Enhancement of the data model instances browsing
Description: Enhancement of the data model instances browsing

The instance browsing should be defined in a separate function and not in the entry functions (in which we define the parameters)
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000475)
mohamed.kallel   
2016-05-11 15:23   
fixed in EasyCwmp-1.3.0

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
112 [easycwmp] Bug minor always 2016-01-11 23:57 2016-05-11 13:05
Reporter: tarakt Platform: EasyCWMP 1.2.2  
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:  
e-mail notification:
Summary: Service trigger does not work
Description: In the easycwmpd init script service trigger does not work when full path of easycwmp config file is mentioned as below

service_triggers()
{
        procd_add_reload_trigger "/etc/config/easycwmp"
}


Instead, if the full path is replaced by just the config filename as below then service trigger works.

service_triggers()
{
        procd_add_reload_trigger easycwmp
}


Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000372)
mohamed.kallel   
2016-01-12 09:17   
Thanks, I will fix that in the next delivery
(0000474)
mohamed.kallel   
2016-05-11 13:05   
fixed in EasyCwmp-1.2.8

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
115 [easycwmp] General minor always 2016-02-04 10:08 2016-05-11 13:04
Reporter: feckert Platform:  
Assigned To: mohamed.kallel OS:  
Priority: high OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Update Nand (wearout) on every restart
Description: Hello,

during the latested update there was added a new function "init_device_info()" in "etc/init.d/easycwmpd".

If we start and stop very often (every boot) This function writes always to the persistent data. If we have a harddisk I think there is not a problem.
But if we have a nand storage this could be a problem if the start and stop script always write the values to the config.

I think we should read the value at first and if there is a difference (for example a software update) only than the system should update this values.

Kind Regards

Flo
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000391)
mohamed.kallel   
2016-02-05 09:20   
Ok this issue will be treated in a future delivery (inchallah)
(0000473)
mohamed.kallel   
2016-05-11 13:04   
fixed in EasyCwmp-1.2.8

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
120 [easycwmp] Question minor always 2016-02-25 03:43 2016-05-11 13:04
Reporter: wonderlive Platform: AT91SAM9  
Assigned To: mohamed.kallel OS: Linux  
Priority: normal OS Version: 2.6.39  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Can EasyCwmp parse InformResponse xml message with header soapenv from ACS
Description: My CPE received the InformResponse message from ACS.The message like the fowllowing:
--------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <cwmp:InformResponse xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
            <MaxEnvelopes>1</MaxEnvelopes>
            <SOAP-ENV:SoapHeader xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
                <cwmp:ID SOAP-ENV:mustUnderstand="1">6</cwmp:ID>
            </SOAP-ENV:SoapHeader>
        </cwmp:InformResponse>
    </soapenv:Body>
</soapenv:Envelope>
-----------------------------------------------------------
It's so different from the one in the cwmp_response_message.xml file:

<?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"/>
    </soap_env:Header>
    <soap_env:Body/>
</soap_env:Envelope>
Tags:
Steps To Reproduce:
Additional Information:
Attached Files: cpe.pcapng (14,008 bytes) 2016-02-25 03:43
https://support.easycwmp.org/file_download.php?file_id=60&type=bug
Notes
(0000400)
mohamed.kallel   
2016-02-25 23:21   
it looks an interoperability bug.

What's your ACS?
(0000402)
wonderlive   
2016-02-26 08:51   
Hi mohamed.kallel,

Do you mean the InformResponse message may be invalid format?
My ACS is eSight.It's a paid software.I haven't got easycwmp's log now.I think it would be helpful,and I will attach it later.

Thanks.
(0000403)
mohamed.kallel   
2016-02-26 09:27   
yes, Its better to attach the easycwmp log
(0000404)
wonderlive   
2016-03-02 07:25   
The problem is resolved.the ACS needs Content-Type to be 'text/xml' in the http post header,like the following:

POST /comserver/node1/tr069 HTTP/1.1

Host: 192.168.12.74:38445

User-Agent: easycwmp

Content-Type: text/xml; charset="utf-8"

SOAPAction:

Content-Length: 4305

thank you very much.
(0000472)
mohamed.kallel   
2016-05-11 13:03   
According to the standard easycwmp should have the following content type

Content-Type: text/xml; charset="utf-8"

fixed in EasyCwmp-1.2.8

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
131 [easycwmp] Bug minor always 2016-05-02 23:12 2016-05-11 13:02
Reporter: nriedel 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:  
e-mail notification:
Summary: Incorrect use of comma operator in loops in xml.c
Description: My understanding of the comma operator is that it evaluates from left to right, and returns the last (right-most) result. In xml.c at around line 132 in the function xml_free_ns() we have:

    FREE(ns.cwmp);
    for (i = 0; i < ARRAY_SIZE(ns.soap_env), ns.soap_env[i]; i++) {
        FREE(ns.soap_env[i]);
    }

The first conditional of the for loop end condition (i < ARRAY_SIZE(ns.soap_env)) has no effect. This is a problem if the ns.soap_env[] array is every full. I think the correct code is:
    FREE(ns.cwmp);
    for (i = 0; i < ARRAY_SIZE(ns.soap_env) && ns.soap_env[i]; i++) {
        FREE(ns.soap_env[i]);
    }

The same problem occurs in xml_mxml_find_note_by_env_type() at line 196.

Tags:
Steps To Reproduce: Code inspection.
Additional Information:
Attached Files:
Notes
(0000429)
mohamed.kallel   
2016-05-03 13:03   
Yes, you are right

This issue will be fixed in the next delivery inchallah
(0000471)
mohamed.kallel   
2016-05-11 13:02   
fixed in EasyCwmp-1.2.8

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
123 [easycwmp] Help minor always 2016-03-18 04:04 2016-05-11 13:02
Reporter: wonderlive Platform: AT91SAM9  
Assigned To: mohamed.kallel OS: Linux  
Priority: high OS Version: 2.6.39  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: HTTP SERVER CONNECTION FAILED
Description: 2016-03-18 10:11:50 [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=/tmp/ubus.sock
config_init_local(71):: easycwmp.@local[0].username=acs
config_init_local(77):: easycwmp.@local[0].password=Sct123
config_init_local(94):: easycwmp.@local[0].logging_level=4
config_init_acs(165):: easycwmp.@acs[0].username=acs
config_init_acs(190):: easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z
config_init_acs(196):: easycwmp.@acs[0].http100continue_disable=1
config_init_acs(177):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(171):: easycwmp.@acs[0].password=Sct123
config_init_acs(159):: easycwmp.@acs[0].url=http://192.168.169.108:80/acs
config_init_acs(183):: easycwmp.@acs[0].periodic_interval=60
2016-03-18 10:11:51 [easycwmp] NOTICE - init periodic inform: reference time = n/a, interval = 60
2016-03-18 10:11:51 [easycwmp] NOTICE - external: execute update_value_change (null)
2016-03-18 10:11:53 [easycwmp] NOTICE - daemon started
2016-03-18 10:11:53 [easycwmp] NOTICE - external: execute inform device_id
2016-03-18 10:11:53 [easycwmp] NOTICE - external script exit
2016-03-18 10:11:53 [easycwmp] NOTICE - interface eth0 has ip 192.168.169.251
+++ HTTP SERVER CONFIGURATION +++
ip: '192.168.169.251'
port: '7547'
--- HTTP SERVER CONFIGURATION ---
2016-03-18 10:11:53 [easycwmp] NOTICE - http server initialized
2016-03-18 10:11:53 [easycwmp] NOTICE - entering main loop
+++ RECEIVED HTTP REQUEST +++
http_digest_auth_fail_response(335):: http_digest_auth_fail_response: header: Digest realm="realm@easycwmp",qop="auth",nonce="599002c19a8b35fe2970182c51d9a2a20000023f",opaque="328458fab28345ae87ab3210a8513b14eff452a2"--- RECEIVED HTTP REQUEST ---
+++ RECEIVED HTTP REQUEST +++
http_digest_auth_check(378):: http_digest_auth_check: header: username="acs", realm="realm@easycwmp", nonce="599002c19a8b35fe2970182c51d9a2a20000023f", uri="/", response="a3b97c6940a45876f571fe01c09e5eb3", qop=auth, nc=00000001, cnonce="981184409bb5d7096782306681f35a08", 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="6f70de597eb161e72e21e5e65677106d00000267",opaque="328458fab28345ae87ab3210a8513b14eff452a2"--- RECEIVED HTTP REQUEST ---
+++ RECEIVED HTTP REQUEST +++
http_digest_auth_check(378):: http_digest_auth_check: header: username="acs", realm="realm@easycwmp", nonce="6f70de597eb161e72e21e5e65677106d00000267", uri="/", response="6f17488506469e6d9625827e283ea2af", qop=auth, nc=00000001, cnonce="e6d291990a740d6d03ea59ce3d984e59", opaque="328458fab28345ae87ab3210a8513b14eff452a2"

--- RECEIVED HTTP REQUEST ---
+++ HTTP SERVER CONNECTION FAILED +++
Tags:
Steps To Reproduce: 1.run easycwmpd
2.acs initiate the connection actively
Additional Information: in http.c,i found this method,but i dont know how the condiction is false.

static void
http_del_client(struct uloop_process *uproc, int ret)
{
    wait(0);
    FREE(uproc);

    /* child terminated ; check return code */
    if (WIFEXITED(ret) && WEXITSTATUS(ret) == 0) {
        DDF("+++ HTTP SERVER CONNECTION SUCCESS +++\n");
        log_message(NAME, L_NOTICE, "acs initiated connection\n");
        cwmp_connection_request(EVENT_CONNECTION_REQUEST);
    } else {
        DDF("+++ HTTP SERVER CONNECTION FAILED +++\n");
    }
}
Attached Files: cpe_passive.pcapng (1,192 bytes) 2016-03-18 04:04
https://support.easycwmp.org/file_download.php?file_id=61&type=bug
id_rsa.pub (414 bytes) 2016-05-10 10:19
https://support.easycwmp.org/file_download.php?file_id=66&type=bug
http.c (8,570 bytes) 2016-05-10 13:46
https://support.easycwmp.org/file_download.php?file_id=67&type=bug
Notes
(0000408)
mohamed.kallel   
2016-03-18 23:17   
try to remove the FREE(uproc); in the line 299

done_child:
              fclose(fp);
              FREE(uproc); //<============== remove this line
              DDF("--- RECEIVED HTTP REQUEST ---\n");
              exit(status);
         }

and tes if your problem is fixed. Please let me know about the result
(0000409)
wonderlive   
2016-03-21 02:26   
hello mohamed.kallel,
i remove the line which you told me,and it seems not fixed.i print out the value of 'ret' and 'status' in the following,would it help?

+++ RECEIVED HTTP REQUEST +++
http_digest_auth_check(378):: http_digest_auth_check: header: username="acs", realm="realm@easycwmp", nonce="a852e1b405e404976c784bb1009745c90000011e", uri="/",
 response="b3ac3973abf96a1f86b13f8611eb088c", qop=auth, nc=00000001, cnonce="3d715b89c264584f49a72e8330cf4f7d", opaque="328458fab28345ae87ab3210a8513b14eff452a2
"
--- RECEIVED HTTP REQUEST ---status 0
--- http_del_client ---ret 3328
(0000411)
okraits   
2016-04-03 12:15   
I think i am experiencing the same issue, at least it's the same error message "HTTP SERVER CONNECTION FAILED" and thus same line of code.

I was testing the reliability of connection requests sent from GenieACS to easycwmp and i noticed that in quite a few cases easycwmp simply didn't initiate the requested connection and i didn't find a reason why. I already discussed this topic on the GenieACS mailinglist and the developer thinks it's an easycwmp issue:

http://lists.genieacs.com/pipermail/users/2016-March/000677.html
(0000412)
okraits   
2016-04-03 12:18   
BTW, i got the same return value as wonderlive. If needed, i can provide easycwmp debug logs and a tcp dump.
(0000413)
mohamed.kallel   
2016-04-04 11:59   
Lokks like a bug. I have to investigate more in order to confirm it.
Sorry, I can not do it right now since I m taken by other projects.
I will let you know when I will fix it
(0000437)
mohamed.kallel   
2016-05-04 15:46   
It's not reporduced for me.
Could you add more debug message inorder to follow the reason.

Please add the following debug line in the http_new_client() function:

 else if (auth_digest = strstr(buffer, "Authorization: Digest ")) {
    if (http_digest_auth_check("GET", "/", auth_digest + strlen("Authorization: Digest "), REALM, username, password, 300) == MHD_YES)
            auth_status = 1;
    else
        auth_status = 0;
}
DDF("--- MORE DEBUG(1) auth_status = %d ---\n", auth_status); //<---- Add this line
(0000438)
mohamed.kallel   
2016-05-04 15:53   
What's your linux system?
(0000439)
mohamed.kallel   
2016-05-04 15:57   
Please try to remove the FREE(uproc); in the done_child: label

done_child:
            fclose(fp);
            FREE(uproc); //<---- remove this line
            DDF("--- RECEIVED HTTP REQUEST ---\n");
            exit(status);

 and remove also the FREE(uproc); from the http_del_client() function


http_del_client(struct uloop_process *uproc, int ret)
{
    wait(0);
    FREE(uproc); //<------ remove this line

    /* child terminated ; check return code */


And then check if your problem is reproduced
(0000442)
okraits   
2016-05-09 14:45   
+++ RECEIVED EMPTY HTTP RESPONSE +++
+++ RECEIVED HTTP REQUEST +++
--- MORE DEBUG(1) auth_status = 0 ---
--- MORE DEBUG(1) auth_status = 0 ---
--- MORE DEBUG(1) auth_status = 0 ---
--- MORE DEBUG(1) auth_status = 0 ---
http_digest_auth_fail_response(335):: http_digest_auth_fail_response: header: Digest realm="realm@easycwmp",qop="auth",nonce="",opaque=""--- RECEIVED HTTP REQUEST ---
+++ RECEIVED HTTP REQUEST +++
--- MORE DEBUG(1) auth_status = 0 ---
http_digest_auth_check(378):: http_digest_auth_check: header: username="tdt",realm="realm@easycwmp",nonce="",uri="/",qop=auth,nc=00000001,cnonce="",response="",opaque=""
--- MORE DEBUG(1) auth_status = 1 ---
--- MORE DEBUG(1) auth_status = 1 ---
--- MORE DEBUG(1) auth_status = 1 ---
--- MORE DEBUG(1) auth_status = 1 ---
--- RECEIVED HTTP REQUEST ---
+++ HTTP SERVER CONNECTION FAILED +++
(0000443)
okraits   
2016-05-09 14:52   
(Last edited: 2016-05-09 14:53)
I commented out the FREE calls you mentioned and the issue still occurs.

I run easycwmp on OpenWRT chaos calmer.

(0000444)
mohamed.kallel   
2016-05-09 15:48   
This is wierd,
I use also OpenWRT chaos calmer. And I did not get a such behaviour.
Could you provide to me a remote access to your equipment for tests. And also the make config to build the package according to your hardware
(0000445)
mohamed.kallel   
2016-05-09 17:44   
does the problem always reproduced? Or it's rarely reproduced?
(0000446)
okraits   
2016-05-10 08:45   
The problem occurs with varying intensity. With a script, i create every 10 seconds a task in GenieACS which asks for a connection request to set a parameter. Here's my debugging output of the GenieACS REST interface:

10 May 08:27:37 - processed
10 May 08:27:48 - processed
10 May 08:27:59 - processed
10 May 08:28:10 - processed
10 May 08:28:23 - processed
10 May 08:28:38 - queued
10 May 08:28:49 - processed
10 May 08:29:03 - queued
10 May 08:29:17 - queued
10 May 08:29:28 - processed
10 May 08:29:39 - processed
10 May 08:29:53 - queued
10 May 08:30:04 - processed
10 May 08:30:15 - processed
10 May 08:30:26 - processed
10 May 08:30:37 - processed
10 May 08:30:51 - queued
10 May 08:31:05 - queued
10 May 08:31:16 - processed
10 May 08:31:31 - queued
10 May 08:31:42 - processed
10 May 08:31:56 - queued
10 May 08:32:07 - processed
10 May 08:32:21 - queued
10 May 08:32:32 - processed
10 May 08:32:43 - processed
10 May 08:32:54 - processed
10 May 08:33:08 - queued
10 May 08:33:22 - queued
10 May 08:33:36 - queued
10 May 08:33:47 - processed
10 May 08:33:58 - processed

All lines with "queued" are the cases in which the problem occurs.
(0000447)
okraits   
2016-05-10 08:50   
I can provide you remote access to the CPE. Could you please send me your public SSH key?
(0000448)
mohamed.kallel   
2016-05-10 10:20   
public key attached
(0000449)
mohamed.kallel   
2016-05-10 10:25   
what you get when you make Connection Request with your browser (FirFox, Chrome...).

Do you get the same error?


You can make Connection Request from your browser with the URL:

http://<address of your router>:7547
(0000450)
okraits   
2016-05-10 10:51   
The error doesn't occur when i connect to easycwmp with a browser.

Can you please give me your mail address so i can send you the connection details for the CPE?
(0000451)
mohamed.kallel   
2016-05-10 11:14   
my email address is in the headers of the source file of easycwmp
(0000452)
mohamed.kallel   
2016-05-10 11:16   
could you remove the following line too and retry

http_del_client(struct uloop_process *uproc, int ret)
{
    wait(0); //<------ remove this line
    FREE(uproc); //<------ remove this line

    /* child terminated ; check return code */
(0000453)
okraits   
2016-05-10 12:50   
(Last edited: 2016-05-10 12:54)
I removed the comments in front of the FREE calls and commented out the wait call in http_del_client().

THe problem didn't occur then. I tried for > 30 min in 10 second intervals as i mentioned above.

Should i send you the connection details for the CPE so you can do tests on it?

(0000454)
mohamed.kallel   
2016-05-10 13:02   
OK, so the problem is solved when you removed the wait(0) ?!

So as summary to fix the problem you have to remove the following 2 lines:

1)

done_child:
              fclose(fp);
              FREE(uproc); //<============== remove this line
              DDF("--- RECEIVED HTTP REQUEST ---\n");
              exit(status);
         }

2)

http_del_client(struct uloop_process *uproc, int ret)
{
    wait(0); //<------ remove this line
    FREE(uproc);

And the problme will be solved.
Could you confirm that

I will add that in the future deliveries.

And Thanks I do not need the Device connection details if the problem is solved
(0000455)
okraits   
2016-05-10 13:13   
To fix the issue, you have to remove only the "wait(0);" in http_del_client(). The FREE calls at the done_child: label and in http_del_client() are active again.
(0000456)
mohamed.kallel   
2016-05-10 13:27   
You have to keep all FREE except this one

done_child:
              fclose(fp);
              FREE(uproc); //<============== remove this line
              DDF("--- RECEIVED HTTP REQUEST ---\n");
              exit(status);
         }


You have to remove it. It's buggy FREE. It could cause problems.

Could you please remove it and test again and provide the result of your test
(0000457)
okraits   
2016-05-10 13:27   
But can we safely remove the call of "wait(0);"? We don't wait for the child process to terminate then and the return value is not valid.

If yes, then why did that line exist in the first place?
(0000458)
okraits   
2016-05-10 13:48   
I removed the FREE call at the done_child: label and the "wait(0);" call in http_del_client() and the problem doesn't occur.

For reference i've attached the http.c i'm using and which works.
(0000459)
okraits   
2016-05-10 14:03   
See also https://github.com/pivasoftware/easycwmp/pull/24.
(0000460)
mohamed.kallel   
2016-05-10 15:00   
You can safely remove the call of "wait(0);".
It's a typo from old versions.
in fact the wait of child is done by the libubox functions.
(0000461)
mohamed.kallel   
2016-05-10 15:01   
I merged your pull. Thank you for your contrbution!
(0000462)
okraits   
2016-05-10 15:04   
Thank you - you're welcome.
(0000470)
mohamed.kallel   
2016-05-11 13:02   
fixed in EasyCwmp-1.2.8

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
132 [easycwmp] Bug minor always 2016-05-02 23:22 2016-05-10 23:36
Reporter: nriedel 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:  
e-mail notification:
Summary: Nonce private key not properly initialized
Description: In the function http_digest_init_nonce_priv_key() in digestauth.c, the NONCE_PRIV_KEY[] array is initialized from /dev/urandom, but then the results are overwritten with what is effectively a fixed string:

    char *possible = STRING_POSSIBLE;
    int dev_random = open("/dev/urandom", O_RDONLY);
    int result = read(dev_random, NONCE_PRIV_KEY, sizeof(NONCE_PRIV_KEY) - 1);
    for(i = 0; i < (sizeof(NONCE_PRIV_KEY) - 1); i++) {
        NONCE_PRIV_KEY[i] = possible[NONCE_PRIV_KEY[i] % (sizeof(STRING_POSSIBLE) - 1)];
    }

Should we check result here and execute the for loop only if the result indicates a failure?


Tags:
Steps To Reproduce: Code inspection.
Additional Information:
Attached Files:
Notes
(0000428)
mohamed.kallel   
2016-05-03 12:55   
No, the behaviour is correct.

The goal is to generate a NONCE_PRIV_KEY[] array containing only charchters from the following list "abcdefghijkl0123456789mnopqrstuvwxyz" (POSIIBLE_STRING).

The read(dev_random, NONCE_PRIV_KEY, sizeof(NONCE_PRIV_KEY) - 1) fill the array NONCE_PRIV_KEY[] with charachter out of "abcdefghijkl0123456789mnopqrstuvwxyz"

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
121 [easycwmp] Question text N/A 2016-03-04 14:12 2016-05-04 15:21
Reporter: WifiHead Platform: Openwrt  
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:  
e-mail notification:
Summary: Easycwmp in Openwrt + GenieACS
Description: Hi,

I have compiled a firmware version Chaos calmer 15.05 + easycwmp package and I have changed the file /etc/config/easycwmp, like this:

# easycwmp uci configuration
config local
option interface eth1
option port 7547
option ubus_socket /var/run/ubus.sock
option date_format %FT%T%z

config acs
option scheme http
option username cwmp
option password cwmp
option hostname 192.168.1.250
option port 7547
option path /
option parameter_key '1'
option periodic_enable 'true'
option periodic_interval '180'
option periodic_time '1'

config device
option manufacturer easycwmp
option oui FFFFFF
option product_class mycwmp
option serial_number FFFFFF122256
option hardware_version example_hw_3.4
option software_version example_sw_3.4

config scripts
# load OpenWrt generic network functions
list location /lib/functions/network.sh
# load easycwmp common functions
list location /usr/share/easycwmp/functions/common
# easycwmp specific functions
list location /usr/share/easycwmp/functions/device_info
list function device_info
list location /usr/share/easycwmp/functions/lan_device
list function lan_device
list location /usr/share/easycwmp/functions/management_server
list function management_server
list location /usr/share/easycwmp/functions/wan_device

But, if I execute /etc/init.d/easycwmp start, nothing happens:

root@openwrt:~# /etc/init.d/easycwmpd reload
root@openwrt:~#

Looks like the service doesn't start & I cannot communicate with genieACS server. Do you know where the issue could be? Thanks in advance.

Tags:
Steps To Reproduce:
Additional Information: I tried firmware version Chaos calmer 15.05 + freecwmp package, with the same config & same ACS and It works:

root@OpenWrt:~# /etc/init.d/freecwmpd start
config_init_local(59):: freecwmp.@local[0].interface=eth1
config_init_local(69):: freecwmp.@local[0].port=7547
config_init_local(93):: freecwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(75):: freecwmp.@local[0].date_format=%FT%T%z
config_init_acs(180):: freecwmp.@acs[0].scheme=http
config_init_acs(186):: freecwmp.@acs[0].username=cwmp
config_init_acs(192):: freecwmp.@acs[0].password=cwmp
config_init_acs(198):: freecwmp.@acs[0].hostname=192.168.1.250
config_init_acs(208):: freecwmp.@acs[0].port=7547
config_init_acs(214):: freecwmp.@acs[0].path=/
config_init_device(318):: freecwmp.@device[0].manufacturer=freecwmp
config_init_device(324):: freecwmp.@device[0].oui=FFFFFF
config_init_device(330):: freecwmp.@device[0].product_class=freecwmp
config_init_device(336):: freecwmp.@device[0].serial_number=FFFFFF123318
config_init_device(342):: freecwmp.@device[0].hardware_version=example_hw_0.3
config_init_device(348):: freecwmp.@device[0].software_version=example_sw_3.4
root@OpenWrt:~# +++ HTTP SERVER CONFIGURATION +++
ip: '192.168.1.1'
port: '7547'
--- HTTP SERVER CONFIGURATION ---
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(62):: url: http://freecwmp:freecwmp@192.168.1.250:7547/
http_client_init(68):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
> POST / HTTP/1.1
Authorization: Basic ZnJlZWN3bXA6ZnJlZWN3bXA=

....
Attached Files:
Notes
(0000407)
mohamed.kallel   
2016-03-17 21:38   
Looks like you are using an old version of easycwmp. what version you are using? try to use the latest version.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
122 [easycwmp] Help minor have not tried 2016-03-07 14:40 2016-05-03 16:49
Reporter: stone1223 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:  
e-mail notification:
Summary: EasyCwmp on Openwrt 12.09 (Attitude Adjustment)
Description: Hi, it's my first time to play with CWMP. The system I use is Openwrt 12.09.
I managed to compile EasyCwmp and install it on the system. But I am not sure if it runs correctly. I think if I run easycwmpd foregroud, i.e. "easycwmp -f" or "easycwmp -f -b", there should be some log printed. But it shows nothing at all. I can see the process is running if I do 'ps'.
BTW, I use the default config file and change nothing there. I don't find useful docs to configure easycwmp in Openwrt in order to reach ACS.
Tags:
Steps To Reproduce: easycwmp -f -b
Additional Information: System: Openwrt 12.09
Json-c version: 0.9
Attached Files:
Notes
(0000405)
stone1223   
2016-03-07 14:44   
Sorry for typing error in the text above.
The command I used was "easycwmpd -f -b"
(0000406)
mohamed.kallel   
2016-03-17 21:33   
sorry for my late answer,
in fact your easycwmpd is atutomatically started in the system startup. So that's why when you try to launch a second time with "easycwmpd -f -b" it does not run. the easycwmpd allow to run only one time.

You can stop the first instance with /etc/easycwmpd stop
and then start it with easycwmpd -f -b
(0000418)
stone1223   
2016-04-18 14:49   
I compiled it in Dev level and it showed the log. I don't know if it is the reason, because if I don't compile it in Dev level it shows as well now.
(0000419)
mohamed.kallel   
2016-04-18 15:47   
Please share the log. and provide more details. It's not clear your last post

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
128 [easycwmp] General minor have not tried 2016-04-18 15:08 2016-05-03 16:00
Reporter: stone1223 Platform:  
Assigned To: mohamed.kallel OS: Ubuntu + OpenWRT  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: How to get/set specific parameters remotely?
Description: A newbie question.

I have GenieACS on Ubuntu and Easycwmp on Openwrt. The device can be discovered by GenieACS, but I don't know how to get/set parameters, such as SSID, from ACS remotely. It shows no option about it on GenieACS web.

I read http://support.easycwmp.org/view.php?id=12. I can do it on OpenWRT locally by
easycwmp --json set value InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID SSID12.
Though it only applies when I reboot WIFI.

I also read genieacs API ref https://github.com/zaidka/genieacs/wiki/API-Reference. It helps a little, but I still could not read and write SSID.

I wonder know how to get/set parameters remotely. And also, how to add make further development on Easycwmp to get/set specific parameters what I defined?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000420)
mohamed.kallel   
2016-04-18 16:17   
(Last edited: 2016-04-18 16:18)
I do not have a much experience with GenieAcs. But I tested EasyCwmp with GenieACS and I can saw the traffic between ACS and CPE. If you have any question about GenieACS how it can make set/get please refer to Zaid the person behind GenieACS.

About you question of apply SSID values, If you are setting SSID parameter with the ACS then the easycwmp will restart WiFi at the end of the session with ACS. And if you are setting SSID parameter with easycwmp command then you have to restart wifi manually.


If you wan to develop more parameters, you can refer to the existing parameters and follow them, It's easy to implement new params

(0000431)
stone1223   
2016-05-03 15:47   
Thank you Kallel. I figure out some of the reasons were my GenieACS installation, though I don't know the specific reason. I just reinstalled it and it works.

However, it took me a little time to find out easycwmp/ext/openwrt/script/functions is the part of example code related to openwrt configuations. I hadn't find some tutorials to get start learning easycwmp from beginning. :)

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
12 [easycwmp] Help minor always 2014-09-25 00:40 2016-04-18 14:51
Reporter: CwmpUser Platform: openwrt  
Assigned To: mohamed.kallel OS: ubuntu  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Unable to set parameter value remotely
Description:        I use genieacs to set parameter of SSID remotely and on server side, it says 202(task accepted and will be executed later). But on the AP side, I got the following info:

+++ RECEIVED HTTP REQUEST +++
http_digest_auth_fail_response(322):: http_digest_auth_fail_response: header: Digest realm="realm@easycwmp",qop="auth",nonce="32774ffb30cb825ba5c1e48bec3259e9000022ef",opaque="328458fab28345ae87ab3210a8513b14eff452a2"--- RECEIVED HTTP REQUEST ---
+++ HTTP SERVER CONNECTION FAILED +++
+++ RECEIVED HTTP REQUEST +++
http_digest_auth_fail_response(322):: http_digest_auth_fail_response: header: Digest realm="realm@easycwmp",qop="auth",nonce="b45f58b3b96b680f3acc208b189b64220000231f",opaque="328458fab28345ae87ab3210a8513b14eff452a2"--- RECEIVED HTTP REQUEST ---
+++ HTTP SERVER CONNECTION FAILED +++

I use 'easycwmp --json get value' to get the SSID, nothing changes.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files: wireless (1,126 bytes) 2014-09-25 17:05
https://support.easycwmp.org/file_download.php?file_id=16&type=bug
AP30.pcap (27,179 bytes) 2014-09-25 22:19
https://support.easycwmp.org/file_download.php?file_id=17&type=bug
Notes
(0000051)
user13   
2014-09-25 16:37   
(Last edited: 2014-09-25 17:18)
I use these steps to reproduce your problem
* set parameter value of SSID remotely with openacs : "InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID"

* get parameter value remotely with ACS and get value using CLI

your issue is not reproduced when I follow those steps !

could you provide me the configuration file of wifi under "/etc/conf/wireless"

could you reproduce this problem using the following CLI ?

root@OpenWrt:~# easycwmp --json set value InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID SSID12
root@OpenWrt:~# easycwmp --json apply
{ "status": "1" }
root@OpenWrt:~# easycwmp --json get value InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID
{ "parameter": "InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID", "fault_code": "", "value": "SSID12", "type": "xsd:string" }
root@OpenWrt:~#

(0000052)
CwmpUser   
2014-09-25 17:09   
Wireless has been uploaded. If I use CLI to set/get, it works fine. Now I think it may be genieACS's issue. I will keep track of it. Btw, my boss won't let me use openACS but genieACS.
(0000053)
mohamed.kallel   
2014-09-25 21:43   
Could you provide a traffic capture (wireshark) of the cwmp session between genieACS and the easycwmp
(0000054)
CwmpUser   
2014-09-25 22:22   
Updated. Here is what I did. Do a tcpdump on AP first and then send a setParameterValue request from ACS server. After confirm that the request is completed from server side, I stop the tcpdump. But the package looks a little weird since it seems nothing there about setParameterValues request.
(0000055)
CwmpUser   
2014-09-26 21:40   
I figure it out. It's server's problem. Sorry about that.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
126 [easycwmp] Help block always 2016-04-11 02:54 2016-04-12 23:03
Reporter: andy_yang Platform: Ubuntu12.4  
Assigned To: mohamed.kallel OS: Ubuntu  
Priority: urgent OS Version: Ubuntu12.4  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Sending Inform http message failed when Start easycwmp
Description: Sending Inform http message failed when Start easycwmp. I make sure http://192.168.4.11:9090/ACS-server/ACS is right and network is OK!
Howerer, I notity from log that ubus initialization failed. I don't konw what for it ?
Tags:
Steps To Reproduce: 1. according to http://www.easycwmp.org/index.php/manual install easycwmp for other Linux distributions
2. modify /etc/config/easycwmp configuration url : http://192.168.4.11:9090/ACS-server/ACS
3. /usr/sbin/ubusd -s /tmp/ubus.sock
4. /usr/sbin/easycwmpd -f -b
Additional Information: root@andy:/opt/git/json-c# /usr/sbin/easycwmpd -f -b
2016-04-11 08:50:58 [easycwmp] NOTICE - add event '0 BOOTSTRAP'
2016-04-11 08:50:58 [easycwmp] NOTICE - add event '1 BOOT'
2016-04-11 08:50:58 [easycwmp] NOTICE - add event '2 PERIODIC'
2016-04-11 08:50:58 [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.4.11:9090/ACS-server/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-04-11 08:50:58 [easycwmp] NOTICE - init periodic inform: reference time = n/a, interval = 100
2016-04-11 08:50:58 [easycwmp] NOTICE - external: execute update_value_change (null)
2016-04-11 08:50:58 [easycwmp] NOTICE - daemon started
2016-04-11 08:50:58 [easycwmp] NOTICE - external: execute inform device_id
2016-04-11 08:50:58 [easycwmp] NOTICE - external script exit
2016-04-11 08:50:58 [easycwmp] NOTICE - add event '1 BOOT'
2016-04-11 08:50:58 [easycwmp] NOTICE - interface eth0 has ip 192.168.20.74
main(320): ubus initialization failed
+++ HTTP SERVER CONFIGURATION +++
ip: '192.168.20.74'
port: '7547'
--- HTTP SERVER CONFIGURATION ---
2016-04-11 08:50:58 [easycwmp] NOTICE - http server initialized
2016-04-11 08:50:58 [easycwmp] NOTICE - entering main loop
2016-04-11 08:50:58 [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 ---
2016-04-11 08:50:58 [easycwmp] NOTICE - configured acs url http://192.168.4.11:9090/ACS-server/ACS
2016-04-11 08:50:58 [easycwmp] NOTICE - external script init
2016-04-11 08:50:58 [easycwmp] NOTICE - external: execute inform parameter
2016-04-11 08:50:58 [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[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>2016-04-11T08:50:58+08:00</CurrentTime>
    <RetryCount>0</RetryCount>
    <ParameterList soap_enc:arrayType="cwmp:ParameterValueStruct[11]">
     <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://192.168.20.74: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 ---
* About to connect() to 192.168.4.11 port 9090 (#0)
* Trying 192.168.4.11... * connected
> POST /ACS-server/ACS HTTP/1.1
Host: 192.168.4.11:9090
User-Agent: easycwmp
Content-Type: text/html; charset="utf-8"
Content-Length: 3287
Expect: 100-continue

* Done waiting for 100-continue
* Operation timed out after 30005 milliseconds with 0 bytes received
* Closing connection #0
* Timeout was reached
2016-04-11 08:51:28 [easycwmp] NOTICE - sending http message failed
rpc_inform(218): sending Inform http message failed
2016-04-11 08:51:28 [easycwmp] NOTICE - sending Inform failed
2016-04-11 08:51:28 [easycwmp] NOTICE - external: execute apply service
2016-04-11 08:51:28 [easycwmp] NOTICE - external script exit
2016-04-11 08:51:28 [easycwmp] NOTICE - end session failed
2016-04-11 08:51:28 [easycwmp] NOTICE - retry session in 7 sec, RetryCount = 1
Attached Files: star_easycmp_failed.pcap (4,641 bytes) 2016-04-11 03:11
https://support.easycwmp.org/file_download.php?file_id=62&type=bug
Notes
(0000415)
andy_yang   
2016-04-11 03:13   
In the Packet, client ip addr is 192.168.20.74 and server acs ip addr is 192.168.4.11
(0000416)
andy_yang   
2016-04-11 04:37   
Now, I hava fixed my issue, please close this ticket.
Thanks!
my peleasure.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
124 [easycwmp] Question trivial have not tried 2016-03-29 03:41 2016-03-31 09:22
Reporter: superkid Platform: Linux  
Assigned To: OS: Openwrt Bleeding Edge  
Priority: normal OS Version:  
Status: new Product Version:  
Product Build: Resolution: open  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: can easycwmp support file transfer to ACS server
Description: i want to send file from easycwmp unit to ACS server,
   e.g i want to send logs from my CPE to ACS

is this possible and by what means?

Thanks a lot
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000410)
mohamed.kallel   
2016-03-31 09:22   
EasyCwmp does not support in the current versions the Upload method.
This method will be supported in a future release

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
117 [easycwmp] Question major always 2016-02-11 10:31 2016-02-26 09:56
Reporter: superkid Platform: linux  
Assigned To: mohamed.kallel OS: openwrt  
Priority: immediate OS Version: 4.4.0  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: factory reset and firmware update not working
Description: factory reset does not wipe /etc/config files but it reboots the unit

firmware update can download file but doesn't update


easycwmp version 1.2.7
Tags: firmware, provision
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000394)
mohamed.kallel   
2016-02-18 08:22   
Try to execute the following commnds and provide the output

easycwmp download <url> "1 Firmware Upgrade Image" "0" <user_name> <password>
easycwmp apply download "1 Firmware Upgrade Image"

use the right <url>, <user_name>, <password>
(0000395)
mohamed.kallel   
2016-02-18 08:32   
(Last edited: 2016-02-18 08:32)
Try to execute the following commnds and provide the output

easycwmp factory_reset


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
118 [easycwmp] Help major always 2016-02-18 04:57 2016-02-26 09:55
Reporter: superkid Platform: Linux  
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:  
e-mail notification:
Summary: firmware update, download encounters error
Description: kindly help me on this issue, thanks

firmware download on my device encounters internal error as shown in the attached file
easycwmp version 1.2.7,
Tags:
Steps To Reproduce:
Additional Information:
Attached Files: syslog_error (2,520 bytes) 2016-02-18 04:57
https://support.easycwmp.org/file_download.php?file_id=58&type=bug
Notes
(0000392)
mohamed.kallel   
2016-02-18 08:09   
(Last edited: 2016-02-18 08:10)
Try to execute the following commnds and provide the output

easycwmp download <url> "1 Firmware Upgrade Image" "0" <user_name> <password>
easycwmp apply download "1 Firmware Upgrade Image"

use the right <url>, <user_name>, <password>

(0000397)
superkid   
2016-02-19 02:56   
my device's product class is "Generic" and I uploaded an update with v14.07

I found out that the reason it fails is because it was trying to download from this url,

http://192.168.1.200:80/tr069/file/SOFTWARE/14.07/"Generic"/easycwmp

Fixed by changing product class to Generic and uploading a new file for it,

Can you enlighten mo to why it fails to download if product class is "Generic" instead of Generic? Thanks
(0000398)
mohamed.kallel   
2016-02-19 08:25   
maybe url containing double quote (") could be the cause of the problem.
Could you confirm that

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
119 [easycwmp] Bug major always 2016-02-25 02:12 2016-02-26 09:26
Reporter: dev.opz.69 Platform: Ubuntu  
Assigned To: mohamed.kallel OS: 14  
Priority: normal OS Version: 14.04 LTS  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: ./configure error (see: http://support.easycwmp.org/print_bug_page.php?bug_id=93)
Description: I am receiving the identical error from ./configure reported here: http://support.easycwmp.org/print_bug_page.php?bug_id=93


ubuntu@ubuntu:/opt/dev/easycwmp$ autoreconf -V
autoreconf (GNU Autoconf) 2.69


ubuntu@ubuntu:/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-d6l49 -
p libcurl-ocaml-dev - OCaml libcurl bindings (Development package)
p libcurl-ocaml-dev:i386 - OCaml libcurl bindings (Development package)
v libcurl-ocaml-dev-d6l49 -
v libcurl-ocaml-dev-ephj1:i386 -
v libcurl-ocaml-ephj1:i386 -
v libcurl-ssl-dev -
v libcurl-ssl-dev:i386 -
i 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 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
i 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:
Attached Files: configure.ac (2,312 bytes) 2016-02-25 02:13
https://support.easycwmp.org/file_download.php?file_id=59&type=bug
Notes
(0000399)
mohamed.kallel   
2016-02-25 23:16   
May be you have missed package in your ubuntu.

Install the following packages:

    - pkg-config
    - libssl-dev

and then retry the ./configure
(0000401)
dev.opz.69   
2016-02-25 23:24   
Excellent, libssl-dev was missing.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
116 [easycwmp] Help trivial always 2016-02-11 10:26 2016-02-18 08:44
Reporter: superkid Platform:  
Assigned To: mohamed.kallel OS: openwrt  
Priority: urgent OS Version: 4.4.0  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: easycwmp commands
Description: would like to ask for documents on how to use easycwmp commands such as get/set/add/delete and inform. I can't find any good reference about it and I am planning to add paramaters such as RSRP, RSRQ for status monitoring with ACS.
Tags: add, delete, get, inform, set
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000396)
mohamed.kallel   
2016-02-18 08:43   
you can check that in easycwmp.sh file. There is no docs about data model commands. the commands are used for developers to check the parameters they implement.

example of commands:

easycwmp get value <parameter>
easycwmp get name <parameter> <next_level>
easycwmp get name <parameter> 0
easycwmp get name <parameter> 1
easycwmp get notification <parameter>

easycwmp set value <parameter> <value>
easycwmp apply value


You can check the rest of the commands from the easycwmp.sh script

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
113 [easycwmp] Question minor always 2016-01-13 08:47 2016-01-26 11:13
Reporter: swcims Platform: OpenWRT  
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:  
e-mail notification:
Summary: How to set ssl related configuration in easycwmp?
Description: I want to test SSL encryption and certificate in easycwmp.
I have set ACS url with "https://", but don't know how to configure the "ssl_cert", "ssl_cacert" and "ssl_verify" options.
In openwrt, there are /etc/uhttpd.crt and /etc/uhttpd.key files, they work properly for https visiting.
Can I use them for easycwmp?How to configue in easycwmp?
Is there any example to configure these options?
Thanks!
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000374)
mohamed.kallel   
2016-01-13 09:36   
you have to configure the following parameters in your easycwmp config file:
easycwmp.@acs[0].ssl_cert : path of the ssl cert file
easycwmp.@acs[0].ssl_cacert : path of the ssl cacert file
easycwmp.@acs[0].ssl_verify : should be set to enabled value if you wan easycwmp make ssl peer verification otherwise the easycwmp will not make the ssl peer verification
(0000375)
swcims   
2016-01-13 09:56   
Hi Manager,
  I configure them as following:
  easycwmp.@adcs[0].ssl_cert='/ect/uhttpd.cert'
  easycwmp.@acs[0].ssl_cacert='/ect/uhttpd.cert'
  easycwmp.@acs[0].ssl_verify='1'
  restart easycwmpd, it displayed: unable to use client certificate (no key found or wrong pass ph rase?)
  If I only configured
  easycwmp.@acs[0].ssl_verify='1'
  It displayed: ssl problem:self signed certificate in certificate chain
  Would you please provide your advice? Thanks!
(0000376)
mohamed.kallel   
2016-01-13 10:28   
for easycwmp.@acs[0].ssl_verify='1'
it should be easycwmp.@acs[0].ssl_verify='enabled'
(0000377)
swcims   
2016-01-13 11:11   
Yes, I set "enabled" in /etc/config.(It will interpret to be '1' )
Would you please provide advice for the error messages? Thanks!
(0000378)
mohamed.kallel   
2016-01-13 11:29   
There is some improvement that I can do concerning the ssl part. But I can not do it right now since I m involved on other issues. You can refer to our commercial services to get a quick improvement for this issue or you can play wil libcurl options to get the ssl working.
(0000379)
swcims   
2016-01-13 11:59   
Got it, thanks!
(0000380)
swcims   
2016-01-19 05:20   
Modified curl and fixed.
(0000383)
mohamed.kallel   
2016-01-19 09:07   
(Last edited: 2016-01-19 09:50)
Could you please share what you have modified

(0000390)
swcims   
2016-01-26 10:53   
Actually, curl-7.43.0 can resolve this issue.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
109 [easycwmp] Question major always 2016-01-06 07:22 2016-01-25 09:22
Reporter: swcims Platform: OpenWRT  
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:  
e-mail notification:
Summary: Can easycwmp support cookie?
Description: Hi Manager,
   It seems that easycwmp does not support cookie.
   We have one test: CPE sends inform packet to ACS, ACS will send InformRespose packet with cookies msg(for example,Set-Cookie2: session="xxxxxx"; Version="1"; Discard).Then CPE need to send the cookie information in all subsequent HTTP requests within the same CWMP session, including any final empty posts used to indicate session termination.
  But easycwmp does not response with the cookie.And I cannot get the cookie information from "/tmp/easycwmp_cookies". Is it the issue on curl configuration with COOKIE option ?
  Thanks!
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000363)
mohamed.kallel   
2016-01-06 09:22   
EasyCwmp supports cookies.
May be it's a libcurl issue.
What libcur version are you using?
I m using libcurl7.43.0 and the cookies work properly!
(0000366)
swcims   
2016-01-07 11:24   
(Last edited: 2016-01-07 11:25)
It seems that curl does not handle "Set-Cookie2" information, only handle "Set-Cookie". Would you please provide advice? Thanks!

(0000367)
swcims   
2016-01-08 05:24   
Modify curl and fixed this issue.
(0000368)
mohamed.kallel   
2016-01-08 11:18   
Could you share what you have fixed in libcurl and what's the libcurl version
(0000381)
swcims   
2016-01-19 05:23   
curl-7.29, Here is the patch:
--- curl-7.29.0.org/lib/http.c 2013-01-18 05:40:43.000000000 +0800
+++ curl-7.29.0/lib/http.c 2016-01-08 11:38:24.588468943 +0800
@@ -3405,6 +3405,20 @@ CURLcode Curl_http_readwrite_headers(str
                       data->state.path);
       Curl_share_unlock(data, CURL_LOCK_DATA_COOKIE);
     }
+ else if(data->cookies &&
+ checkprefix("Set-Cookie2:", k->p)) {
+ Curl_share_lock(data, CURL_LOCK_DATA_COOKIE,
+ CURL_LOCK_ACCESS_SINGLE);
+ Curl_cookie_add(data,
+ data->cookies, TRUE, k->p+12,
+ /* If there is a custom-set Host: name, use it
+ here, or else use real peer host name. */
+ conn->allocptr.cookiehost?
+ conn->allocptr.cookiehost:conn->host.name,
+ data->state.path);
+ Curl_share_unlock(data, CURL_LOCK_DATA_COOKIE);
+ }
+
 #endif
     else if(checkprefix("Last-Modified:", k->p) &&
             (data->set.timecondition || data->set.get_filetime) ) {
(0000382)
swcims   
2016-01-19 05:35   
This patch can handle packet with "Set-Cookie2" info.
But there is still one issue.
If the cookie messages are without "Path", for example:
        Set-Cookie2: session="xxxxxx"; Version="1"; Discard
  or
        Set-Cookie: session="xxxxxxx"; Max-Age="600"; Version="1"
easycwmp can send the correct cookie info in the subsequent empty post packet.
However, if the cookie msgs are with "Path", for example:
       Set-Cookie2: session="xxxxxxx"; Version="1"; Discard; Path="/"
  or
       Set-Cookie: session="xxxxxxx"; Max-Age="600"; Version="1"; Path="/"
easycwmp will not send the cookie info in the empty post packet.
     It seems that eascycwmp(?curl?) has some problem to handle cookie info with Path.
   Would you please provide your advice? Thanks!
(0000386)
mohamed.kallel   
2016-01-19 09:55   
I did not play with set-cookie neither with set-cookie2 in libcurl. I can not make any advice here. But I have a question: Does a such problem appear with the newest version of libcurl?

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
114 [easycwmp] Help minor always 2016-01-19 05:28 2016-01-20 11:11
Reporter: wonderlive Platform: AT91SAM9  
Assigned To: mohamed.kallel OS: Linux  
Priority: high OS Version: 2.6.39  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: sending http message failed
Description: I use VigorACS.When I started up easycwmpd,my CPE appeared in VigorACS.But the ACS server's CPU used increased 25% everytime my CPE sent Inform.Then I use another kind of CPE, the CPU seems to be normal.And I found that,my CPE always 'sending http message failed',because the ACS didn't return http code 200.
My question is,did I have any problem in my config,or Send Inform message?

2007-01-11 16:11:30 [easycwmp] NOTICE - add event '0 BOOTSTRAP'
2007-01-11 16:11:30 [easycwmp] NOTICE - add event '1 BOOT'
2007-01-11 16:11:30 [easycwmp] NOTICE - add event '2 PERIODIC'
2007-01-11 16:11:30 [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=/tmp/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=4
config_init_acs(159):: easycwmp.@acs[0].url=http://192.168.169.128:8080/ACSServer/services/UnAuthACSServlet
config_init_acs(165):: easycwmp.@acs[0].username=acs
config_init_acs(171):: easycwmp.@acs[0].password=password
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
2007-01-11 16:11:30 [easycwmp] NOTICE - init periodic inform: reference time = n/a, interval = 100
2007-01-11 16:11:30 [easycwmp] NOTICE - external: execute update_value_change (null)
2007-01-11 16:11:32 [easycwmp] NOTICE - daemon started
2007-01-11 16:11:32 [easycwmp] NOTICE - external: execute inform device_id
2007-01-11 16:11:32 [easycwmp] NOTICE - external script exit
2007-01-11 16:11:32 [easycwmp] NOTICE - add event '1 BOOT'
2007-01-11 16:11:32 [easycwmp] NOTICE - interface eth0 has ip 192.168.169.251
+++ HTTP SERVER CONFIGURATION +++
ip: '192.168.169.251'
port: '7547'
--- HTTP SERVER CONFIGURATION ---
2007-01-11 16:11:32 [easycwmp] NOTICE - http server initialized
2007-01-11 16:11:32 [easycwmp] NOTICE - entering main loop
2007-01-11 16:11:32 [easycwmp] NOTICE - start session
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(50):: url: http://192.168.169.128:8080/ACSServer/services/UnAuthACSServlet
http_client_init(56):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
2007-01-11 16:11:32 [easycwmp] NOTICE - configured acs url http://192.168.169.128:8080/ACSServer/services/UnAuthACSServlet
2007-01-11 16:11:32 [easycwmp] NOTICE - external script init
2007-01-11 16:11:32 [easycwmp] NOTICE - external: execute inform parameter
2007-01-11 16:11:33 [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>SCT</Manufacturer>
     <OUI>654323</OUI>
     <ProductClass>tau</ProductClass>
     <SerialNumber>654321123452</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>2007-01-11T16:11:32+08:00</CurrentTime>
    <RetryCount>0</RetryCount>
    <ParameterList soap_enc:arrayType="cwmp:ParameterValueStruct[11]">
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.HardwareVersion</Name>
      <Value xsi:type="xsd:string">1.0</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.Manufacturer</Name>
      <Value xsi:type="xsd:string">SCT</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.ManufacturerOUI</Name>
      <Value xsi:type="xsd:string">654323</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.ProductClass</Name>
      <Value xsi:type="xsd:string">tau</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">654321123452</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.SoftwareVersion</Name>
      <Value xsi:type="xsd:string">1.2</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://192.168.169.251: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 ---
* Trying 192.168.169.128...
* Connected to 192.168.169.128 (192.168.169.128) port 8080 (#0)
> POST /ACSServer/services/UnAuthACSServlet HTTP/1.1

Host: 192.168.169.128:8080

User-Agent: easycwmp

Content-Type: text/html; charset="utf-8"

SOAPAction:

Content-Length: 3239

Expect: 100-continue



< HTTP/1.1 100 Continue

* We are completely uploaded and fine
* Operation timed out after 30001 milliseconds with 0 bytes received
* Closing connection 0
2007-01-11 16:12:03 [easycwmp] NOTICE - sending http message failed
rpc_inform(218): sending Inform http message failed
2007-01-11 16:12:03 [easycwmp] NOTICE - sending Inform failed
2007-01-11 16:12:03 [easycwmp] NOTICE - external: execute apply service
2007-01-11 16:12:03 [easycwmp] NOTICE - external script exit
2007-01-11 16:12:03 [easycwmp] NOTICE - end session failed
2007-01-11 16:12:03 [easycwmp] NOTICE - retry session in 7 sec, RetryCount = 1
Tags:
Steps To Reproduce:
Additional Information:
Attached Files: tau_cwmp.pcap (4,280 bytes) 2016-01-20 02:44
https://support.easycwmp.org/file_download.php?file_id=56&type=bug
ar_cwmp_ok.pcap (93,012 bytes) 2016-01-20 03:17
https://support.easycwmp.org/file_download.php?file_id=57&type=bug
Notes
(0000384)
mohamed.kallel   
2016-01-19 09:23   
Could you please attach the traffic capture (a pcap file).
(0000385)
mohamed.kallel   
2016-01-19 09:28   
(Last edited: 2016-01-19 09:49)
Could you try to add the following config in your easycwmp config:

uci set easycwmp.@acs[0].http100continue_disable=1

And check if your problem is reproduced.

(0000387)
wonderlive   
2016-01-20 03:15   
Thanks for your help.the pcap is uploaded.

i have tried uci set easycwmp.@acs[0].http100continue_disable=1,it didn't work.
i think this might be the acs's problem.i tried OpenACS,but it didn't go well,some exceptions occured,the acs response http error 500.Dont't mind,i will try it later.

i found a simulator acs,and tried it.
When cpe received < HTTP/1.1 401 Unauthorized,why cpe close the connection 0,and create another?the simulator acs refused the second connection.

log:
* Connected to 192.168.169.108 (192.168.169.108) port 9099 (#0)
> POST /acs HTTP/1.1
Host: 192.168.169.108:9099
User-Agent: easycwmp
Content-Type: text/html; charset="utf-8"
SOAPAction:
Content-Length: 3138
                                                                                
* upload completely sent off: 3138 out of 3138 bytes
< HTTP/1.1 401 Unauthorized
< Date: Wed, 20-Jan-16 10:05:46 GMT
< Server: NCSA/1.3
< MIME-version: 1.0
< Content-type: text/html
< WWW-Authenticate: Digest realm="ACSSimTool",nonce="VHVlIE5vdiAyOCAxNDo0Nzo1MC
AyMDA2MS4xLjEuMTI1",opaque="5ccc069c403ebaf9f0171e9517f40e41",qop="auth"
* no chunk, no close, no size. Assume close to signal end
<
* Closing connection 0
* Issue another request to this URL: 'http://192.168.169.108:9099/acs'
* Hostname 192.168.169.108 was found in DNS cache
* Trying 192.168.169.108...
* connect to 192.168.169.108 port 9099 failed: Connection refused
* Failed to connect to 192.168.169.108 port 9099: Connection refused
* Closing connection 1
(0000388)
wonderlive   
2016-01-20 03:26   
tau_cwmp.pcap,packets between easycwmp and VigorACS

ar_cwmp_ok.pcap,another cpe,using their own cwmp client.it can received http code 200 after sending Inform.
(0000389)
wonderlive   
2016-01-20 08:27   
I have found the cause of the problem,it's my ACS.
I use xacs,and it works.
Thanks for helping.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
110 [easycwmp] Question major always 2016-01-06 12:05 2016-01-13 09:36
Reporter: oleal 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:  
e-mail notification:
Summary: Not able to get information from ExternalIPAddress
Description: Hi,

I have tried to use EasyCwmp-1.2.6 on Lubunto distro but I'm not able to put it working to send the External IP.
I have followed all steps on "http://www.easycwmp.org/index.php/manual - EasyCwmp install for other Linux distributions" in order to compile all dependencies.

This process was ok and I didn't get errors during the compilation.

The problem is that the easycwmp is not able to get information from ExternalIPAddress.

Below you can see the result from InternetGatewayDevice

# bash /usr/sbin/easycwmp get value InternetGatewayDevice.
{ "parameter": "InternetGatewayDevice.DeviceInfo.SpecVersion", "value": "1.0" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.ProvisioningCode", "value": "" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.Manufacturer", "value": "HUAWEI" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.ManufacturerOUI", "value": "00259E" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.ProductClass", "value": "HG8000H" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.SerialNumber", "value": "FFFFFF123456" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.HardwareVersion", "value": "HW_v01" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.SoftwareVersion", "value": "R16M01D5" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.UpTime", "value": "283", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.DeviceLog", "value": "" }
{ "parameter": "InternetGatewayDevice.ManagementServer.URL", "value": "http:\/\/192.168.1.75:7547" }
{ "parameter": "InternetGatewayDevice.ManagementServer.Username", "value": "cwmp" }
{ "parameter": "InternetGatewayDevice.ManagementServer.Password", "value": "" }
{ "parameter": "InternetGatewayDevice.ManagementServer.PeriodicInformEnable", "value": "1", "type": "xsd:boolean" }
{ "parameter": "InternetGatewayDevice.ManagementServer.PeriodicInformInterval", "value": "30", "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": "admin" }
{ "parameter": "InternetGatewayDevice.ManagementServer.ConnectionRequestPassword", "value": "" }
{ "parameter": "InternetGatewayDevice.ManagementServer.ParameterKey", "value": "" }
{ "parameter": "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ConnectionStatus", "value": "Connected" }
{ "parameter": "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress", "value": "" }
{ "parameter": "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.MACAddress", "value": "" }
{ "parameter": "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANPPPConnection.1.Enable", "value": "", "type": "xsd:boolean" }
{ "parameter": "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANPPPConnection.1.Username", "value": "" }
{ "parameter": "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANPPPConnection.1.Password", "value": "" }
#

Can you please help me on this?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000364)
oleal   
2016-01-06 12:09   
I forgot to add the following information:

Platform - Lubunto
OS - Linux
OS Version - 4.2.0-16-generic
(0000365)
mohamed.kallel   
2016-01-07 09:21   
You should edit the wan_device script (under /usr/share/easycwmp/functions/) according to your network config.

The function wan_device_get_interface_maps() should return the right wan interfaces. And the wan_device_get_ipcx_ipaddr()should return the right ip address.

The existing data model in EasyCwmp are provided as example to show to developers how to implement Data Model prameters. These example are developed based on OpenWRT linux systems. You have to adapt the data model scripts according to your Linux system. (You do not need to edit easycwmp.sh neither common scripts).
(0000369)
oleal   
2016-01-08 15:14   
Hi,


The "enp0s3" is the name of my wan interface.

In the function "wan_device_get_ipcx_ipaddr()" I have changed the line "network_get_ipaddr val "$iface" " to "network_get_ipaddr val enp0s3" and it is not working.

Below the function.

wan_device_get_ipcx_ipaddr() {
    local val iface="$1"
    network_get_ipaddr val enp0s3
    echo "$val"
}

Are you able to identify the problem?
The "network_get_ipaddr" it is part of other package?

Thanks.
(0000370)
mohamed.kallel   
2016-01-08 15:34   
network_get_ipaddr() is an openWRT predefined functions. You can not use it for your Linux system. You have to develop your own script to retrieve the ipaddress.

you can call ifconfig with awk, grep , sed... to fetch the ip address

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
111 [easycwmp] Question minor always 2016-01-11 09:43 2016-01-13 08:37
Reporter: swcims Platform: OpenWRT  
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:  
e-mail notification:
Summary: Will easycwmp support ChangeDUState method?
Description: From TR-069_Amendment-3.pdf: A.4.1.10 ChangeDUState.
Is there any plan to support ChangeDUState?
Thanks!
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000371)
mohamed.kallel   
2016-01-11 13:39   
EasyCwmp is amendment 2
There is a plan to bring EasyCwmp to amendment 5 and support ChangeDUState (inchallah). But not in the near future
(0000373)
swcims   
2016-01-13 08:37   
Got it, thanks!

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
108 [easycwmp] Bug minor sometimes 2016-01-05 06:44 2016-01-05 14:59
Reporter: swcims Platform: OpenWRT  
Assigned To: mohamed.kallel OS: Linux  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: handling arguments with white spaces (schedule inform CommandKey as example)
Description: Hi Manager,
    I encounter one issue on hanlding scheduleInform message:
    when ACS sends schedule inform msg with commandkey "ScheduleInform test", easycwmp will responds with commandky "test" . It means xml handling function separates the original command key by the whitespace. Here is my patch, please check it:
@@ -1470,7 +1488,12 @@ static int xml_handle_schedule_inform(mx
             b->value.text.string &&
             b->parent->type == MXML_ELEMENT &&
             !strcmp(b->parent->value.element.name, "CommandKey")) {
- command_key = b->value.text.string;
+ //command_key = b->value.text.string;
+ int len;
+ command_key = xml_get_value_with_whitespace(&b, body_in);
+ len = strlen(command_key);
+ if(command_key[len - 1] == ' ')
+ command_key[len - 1] = '\0';
         }
         if (b && b->type == MXML_ELEMENT &&
             !strcmp(b->value.element.name, "CommandKey") &&

Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000356)
mohamed.kallel   
2016-01-05 09:15   
why you have added these line

+ len = strlen(command_key);
+ if(command_key[len - 1] == ' ')
+ command_key[len - 1] = '\0';
(0000357)
swcims   
2016-01-05 11:34   
Function xml_get_value_with_whitespace(&b, body_in) will append a whitespace in order to link the strings. So need to strip the last whitespace.
(0000359)
mohamed.kallel   
2016-01-05 11:48   
xml_get_value_with_whitespace() does not append white space at the end of the string.
it appends white space at the end of the string only if the original string contains space at the end
(0000362)
mohamed.kallel   
2016-01-05 14:59   
fixed in EasyCwmp-1.2.7

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
106 [easycwmp] Bug major always 2015-12-29 10:56 2016-01-05 14:59
Reporter: swcims Platform: OpenWRT  
Assigned To: mohamed.kallel OS: Linux  
Priority: high OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Supporting HTTP 302, 307 status code in EasyCwmp
Description: From TR-069_Amendment-3, p35:
A CPE MUST support the 302 (Found) and 307 (Temporary Redirect) HTTP status codes.
The CPE MUST allow redirection to occur at any point during a session (including
the Inform response), and the ACS MAY issue a redirect at any point during a
session.
• If the CPE is redirected, it MUST attempt to continue the session using the URL
provided in the HTTP redirect response. Specifically, the CPE MUST re-send the
HTTP POST that resulted in the redirect response to the ACS at the redirected URL,
and the CPE MUST then attempt to proceed with the session exactly as if no
redirection had occurred
It seems that easycwmp does not support this requirement now.Is there any plan to implement it?
Thanks!
Tags:
Steps To Reproduce:
Additional Information:
Attached Files: http302-easycwmp.cap (77,119 bytes) 2015-12-31 09:17
https://support.easycwmp.org/file_download.php?file_id=55&type=bug
Notes
(0000350)
mohamed.kallel   
2015-12-30 11:52   
(Last edited: 2015-12-30 12:08)
EasyCwmp does not support the 302 (Found) and 307 (Temporary Redirect) HTTP status codes because the libcurl does not support them.

We have a plan to implement this feature.

If you have any patch proposal, please do no hesitate to share it.

(0000352)
swcims   
2015-12-31 09:18   
(Last edited: 2015-12-31 09:30)
Hi manager,

   I have some debugging information, hope it can be of help.
   1) I add "curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);" in http.c.curl would send "GET" packet to the redirect url; then the redirect url sent "Authorization Required" to easycwmp, but easycwmp did not sent authorization packet and still sent "GET" packet. Please see the packets. I do not why curl in easycwmp sent "GET" not "Post" packet to redirect url, and how to do authorization with this redirect url?
   2) I add "char *redirect_url;curl_easy_getinfo(curl, CURLINFO_REDIRECT_URL, &redirect_url);". It is able to get the redirect url from http 302 packet. So it seems need to write special sending packets function to redirect url, but I am not so familiar with the packet sending/receiving flow/mechanism.
   Is it possible to do improvement on 1)? Would you please provide advice? Thanks!
   (In packet captured, ip address 6.0.0.1 is ACS server, 10.0.0.2 is device with easycwmp , the redirect url is 192.168.201.1)

(0000353)
mohamed.kallel   
2015-12-31 09:58   
(Last edited: 2015-12-31 09:59)
Does the http digest authentication work without redirect?

(0000354)
swcims   
2015-12-31 10:50   
(Last edited: 2015-12-31 10:53)
Http digest authentication worked when easycwmp interacted with ACS Server at the beginning of this test.easycwmp worked well with ACS.
Then ACS send the http 302 packet with redirect url.If "CURLOPT_FOLLOWLOCATION was set", curl in easycwmp sent "GET" packet to the redirect url. And then redirect url sent "Authorization Required" to easycwmp. This authentication failed.
(In this test, ACS server and redirect url are in the same PC, they are simulated by the test tool, for example, CDRouter test tool from QACAF)

(0000355)
mohamed.kallel   
2016-01-04 14:35   
fixed in EasyCwmp-1.2.6
(0000358)
swcims   
2016-01-05 11:47   
(Last edited: 2016-01-05 11:48)
Hi Manager,
   There should have one error.http_client_exit() should behind of strdup().
   In your patch,http_redirect_url will be freed because http_client_exit() will call curl_easy_cleanup().Here is the new patch:

+ if (httpCode == 302 || httpCode == 307) {
+ curl_easy_getinfo(curl, CURLINFO_REDIRECT_URL, &http_redirect_url);
+ if ((http_redirect_url = strdup(http_redirect_url)) == NULL)
+ return -1;
+ http_client_exit();

(0000360)
mohamed.kallel   
2016-01-05 12:02   
Yes, you are right. Thank you.
I will apply your patch
(0000361)
mohamed.kallel   
2016-01-05 14:59   
fixed in EasyCwmp-1.2.7

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
105 [easycwmp] Question major N/A 2015-12-28 22:23 2015-12-31 09:02
Reporter: sgupta Platform:  
Assigned To: mohamed.kallel OS:  
Priority: urgent OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Is TR-196 supported? If not, is there any plan to add support for it?
Description: Is TR-196 supported?
If not, is there any plan to add support for it?
If yes, how do I import my custom TR-196 based Device Model?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000349)
mohamed.kallel   
2015-12-29 10:13   
The EasyCwmp is designed to support the implementation of any kind of data model.
The TR-196 parameters (FAPService Data model) could be implemented by following the examples of already implemented parameters in the shell script files.

You can implement yourself or you can refer to our commercial services to implement them.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
107 [easycwmp] Enhancement minor have not tried 2015-12-30 11:55 2015-12-30 12:27
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:  
e-mail notification:
Summary: Support '8 DIAGNOSTICS COMPLETE' event in the command ubus call tr069 inform
Description: Support '8 DIAGNOSTICS COMPLETE' event in the command ubus call tr069 inform
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000351)
mohamed.kallel   
2015-12-30 12:27   
fixed in EasyCwmp-1.2.5

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
104 [easycwmp] Bug major always 2015-12-24 09:08 2015-12-28 10:14
Reporter: swcims Platform: easycwmp  
Assigned To: mohamed.kallel OS: openwrt  
Priority: high OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Connection Request failed when the WAN ipaddress is changed
Description: Hi All,
   I use easycwmp on router device.The test is:change WAN ip address, easycwmp should send inform with value changed, then ACS server send connection request to easycwmp, but connection is failed.
I traced the source code and found something:
1.http_server_init() create socket bindding the local->ip and run only one time on the beginning.
2. When the ipaddress is changed, easycwmp_netlink_interface() will add "EVENT_VALUE_CHANGE". but http_server does not restart and re-bind the new ipaddress.
Do you think it is a bug?
Any advice is highly appreciated.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000347)
mohamed.kallel   
2015-12-28 09:07   
It's a bug
It will be fixed in the next delivery inchallah
(0000348)
mohamed.kallel   
2015-12-28 10:14   
fixed in EasyCwmp-1.2.4

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
102 [easycwmp] Bug trivial always 2015-12-09 10:32 2015-12-17 14:27
Reporter: imuneer Platform: Opewrt  
Assigned To: mohamed.kallel OS: Openwrt  
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:  
e-mail notification:
Summary: Firmware download fails
Description: I have setup FreeACS server to work with EasyCWMP. EasyCWMP is installed in my OpenWRT based CPE. I applied one firmware image from FreeACS to my unit. The problem is, download never completes, the CPE keep failing and creating a loop.

Below is logs from CPE.


=======================
Wed Dec 9 09:29:08 2015 daemon.notice easycwmpd: external script exit
Wed Dec 9 09:29:08 2015 daemon.notice easycwmpd: start session
Wed Dec 9 09:29:08 2015 daemon.notice easycwmpd: configured acs url http://192.168.123.197/tr069
Wed Dec 9 09:29:08 2015 daemon.notice easycwmpd: external script init
Wed Dec 9 09:29:08 2015 daemon.notice easycwmpd: external: execute inform parameter
Wed Dec 9 09:29:08 2015 daemon.notice easycwmpd: send Inform
Wed Dec 9 09:29:09 2015 daemon.notice easycwmpd: receive InformResponse from the ACS
Wed Dec 9 09:29:09 2015 daemon.notice easycwmpd: send RPC ACS TransferComplete
Wed Dec 9 09:29:09 2015 daemon.notice easycwmpd: receive TransferCompleteResponse from the ACS
Wed Dec 9 09:29:09 2015 daemon.notice easycwmpd: send empty message to the ACS
Wed Dec 9 09:29:09 2015 daemon.notice easycwmpd: received GetParameterValues method from the ACS
Wed Dec 9 09:29:09 2015 daemon.notice easycwmpd: external: execute get value InternetGatewayDevice.DeviceInfo.SoftwareVersion
Wed Dec 9 09:29:09 2015 daemon.notice easycwmpd: external: execute get value InternetGatewayDevice.DeviceInfo.VendorConfigFile.
Wed Dec 9 09:29:09 2015 daemon.notice easycwmpd: external: execute get value InternetGatewayDevice.ManagementServer.ConnectionRequestPassword
Wed Dec 9 09:29:09 2015 daemon.notice easycwmpd: external: execute get value InternetGatewayDevice.ManagementServer.ConnectionRequestURL
Wed Dec 9 09:29:09 2015 daemon.notice easycwmpd: external: execute get value InternetGatewayDevice.ManagementServer.ConnectionRequestUsername
Wed Dec 9 09:29:09 2015 daemon.notice easycwmpd: external: execute get value InternetGatewayDevice.ManagementServer.PeriodicInformInterval
Wed Dec 9 09:29:09 2015 daemon.notice easycwmpd: send GetParameterValuesResponse to the ACS
Wed Dec 9 09:29:09 2015 daemon.notice easycwmpd: received Download method from the ACS
Wed Dec 9 09:29:09 2015 daemon.notice easycwmpd: add download: delay = 0 sec, url = http://192.168.123.197:80/tr069/file/SOFTWARE/3.00/Generic/OpenWrt-FFFFFF123456, FileType = '1 Firmware Upgrade Image ', CommandKey = '3.00'
Wed Dec 9 09:29:09 2015 daemon.notice easycwmpd: send DownloadResponse to the ACS
Wed Dec 9 09:29:09 2015 daemon.notice easycwmpd: receive empty message from the ACS
Wed Dec 9 09:29:09 2015 daemon.notice easycwmpd: external: execute apply service
Wed Dec 9 09:29:09 2015 daemon.notice easycwmpd: external script exit
Wed Dec 9 09:29:09 2015 daemon.notice easycwmpd: end session success
Wed Dec 9 09:29:09 2015 daemon.notice easycwmpd: start download url = http://192.168.123.197:80/tr069/file/SOFTWARE/3.00/Generic/OpenWrt-FFFFFF123456, FileType = '1 Firmware Upgrade Image ', CommandKey = '3.00'
Wed Dec 9 09:29:09 2015 daemon.notice easycwmpd: external script init
Wed Dec 9 09:29:09 2015 daemon.notice easycwmpd: external: execute download
Wed Dec 9 09:29:10 2015 daemon.notice easycwmpd: add event '7 TRANSFER COMPLETE'
Wed Dec 9 09:29:10 2015 daemon.notice easycwmpd: add event 'M Download'
Wed Dec 9 09:29:10 2015 daemon.notice easycwmpd: external: execute apply download 1 Firmware Upgrade Image
Wed Dec 9 09:29:10 2015 daemon.notice easycwmpd: download error: 'Invalid arguments'
========================


Problem is, this becomes loop and never ends.

My trouble shootings:
---------------------
I tried downloading the firmware using above mentioned URL with WGET command, it works.
I did a firmware upgrade with the same image using sysupgrade, it works.
Tags: firmware, provision
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000341)
mohamed.kallel   
2015-12-09 11:16   
For the issue: "Problem is, this becomes loop and never ends.":

explaination:
1) each time the session finish and then a download failure occur it causes a new event '7 TRANSFER COMPLETE'.
2) the new event will triggir a new session with FreeACS
3) in the new session the FreeACS will ask easycwmp for the download ==> and then repeat the step 1

How to fix it?
You have to configure your ACS to not send a Download request to the easycwmp in the 2nd session
(0000342)
imuneer   
2015-12-09 11:37   
OK. I will check in FreeACS if there is any option to disable it.

By the way, what it could be the cause for download failure as long as I can manually download using wget and upgrade using sysupgrade?
(0000343)
mohamed.kallel   
2015-12-09 11:38   
(Last edited: 2015-12-09 11:41)
There is a space at the end of the FileType argument of the download request from the ACS:

'1 Firmware Upgrade Image '

you have to chang it in your ACS

'1 Firmware Upgrade Image'

(0000344)
imuneer   
2015-12-09 13:57   
Yes it is,, It does upgrade now. :)

Thank you,

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
101 [easycwmp] Bug major always 2015-12-06 08:32 2015-12-17 14:26
Reporter: imuneer Platform: linux  
Assigned To: mohamed.kallel OS: openwrt  
Priority: normal OS Version: 15.04  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: GIT repo not found
Description: I downloaded the 'http://easycwmp.org/download/easycwmp-openwrt.tar.gz' and enabled the package with 'make menuconfig'. When I executed the 'make' the whole things break when the compiler tries to clone the following repo 'git://dev.freecwmp.org/microxml'

It says 'fatal: unable to connect to dev.freecwmp.org'
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000337)
mohamed.kallel   
2015-12-07 09:12   
the same question of the issue 0000100
(0000338)
mohamed.kallel   
2015-12-07 09:13   
(Last edited: 2015-12-07 09:14)
You have to change the git repo url of libmicroxml package. you can use the following git url: https://github.com/pivasoftware/microxml.git [^]

Please change the Makefile of microxml. It's under:
feeds/management/libmicroxml

Use the following parameters in the Makefile of microxml:



PKG_NAME:=libmicroxml
PKG_VERSION:=2015-03-18 <====== change this
PKG_RELEASE=$(PKG_SOURCE_VERSION)

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/pivasoftware/microxml.git [^] <====== change this
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=caa8d3e6887f5c70e54df555dd78e4e45cfa74cc <====== change this
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz

(0000339)
imuneer   
2015-12-07 10:24   
(Last edited: 2015-12-07 10:25)
OK. Thanks Brother, The above fix works.

By the way, Will it not be changed in installation guide?

(0000340)
mohamed.kallel   
2015-12-07 10:31   
We are waiting the git repo of microxml to return up.

If the server does not up again in couple days then we will make some changes to fix this issue
(0000345)
imuneer   
2015-12-09 13:58   
Good.

Thank you.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
103 [easycwmp] Question minor have not tried 2015-12-09 15:14 2015-12-17 10:08
Reporter: kbessas Platform:  
Assigned To: mohamed.kallel OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: suspended  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: TR-143
Description: Is TR-143 supported? If not, is there any plan to add support for it?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000346)
mohamed.kallel   
2015-12-09 16:09   
TR-143 is not supported yet. And it's not in our road map for the moment.

You can refer to our Commercial service If you want to implement itquickly

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
95 [easycwmp] Bug block always 2015-11-13 07:49 2015-12-17 10:06
Reporter: swcims Platform:  
Assigned To: mohamed.kallel OS:  
Priority: urgent OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: This is http_digest_auth_fail_response issue on easycwmp 1.2.1
Description: We use private ACS tool to test easycwmp. This ACS tool will first send connection request, then send informrpc to CPE; and then CPE will send inform to ACS.

Now on easycwmp version 1.2.1, easycwmp will show http_digest_auth_fail_response after receive ACS send connection request.

I debug the source and found two places cause this issue:
1.First,this issue is caused by " *end != '\0'".
    I can check:nc=00000001, nci=1, but I don't know why the "end" value is wrong.
    nci = strtoul(nc, &end, 16);
        if (('\0' != *end) || ((LONG_MAX == nci) && (ERANGE == errno)))
        {
            DD("Authentication failed, invalid format.");
            return MHD_NO; /* invalid nonce format */
        }

2. I comment the adjustment of "*end",and go on, but digest auth is still failed on comparing "response" and "respexp":
    return (0 == strcmp(response, respexp)) ? MHD_YES : MHD_NO;

I am not sure whether it is related to libcurl and openssl, here is the information about curl, it seems that curl is compiled with openssl:
   curl -V
   curl 7.29.0 (arm-openwrt-linux-gnu) libcurl/7.29.0 OpenSSL/1.0.1e zlib/1.2.7
   Protocols: file ftp ftps http https imap imaps pop3 pop3s rtsp smtp smtps tftp
   Features: IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP
   Any suggestion is highly appreciated! Thanks!
Tags:
Steps To Reproduce:
Additional Information:
Attached Files: Unauthorized.pcapng (9,244 bytes) 2015-11-19 10:58
https://support.easycwmp.org/file_download.php?file_id=54&type=bug
Notes
(0000322)
mohamed.kallel   
2015-11-16 17:46   
This is not reproduced for us. May be the problem cause is your private ACS tool. Or may be you configured your private ACS tool with a wrong login/password of Connection Request

Could you please send traffic capture.
(0000323)
swcims   
2015-11-19 11:00   
(Last edited: 2015-11-19 11:01)
Hi Manager, thanks!
Please check the packets. The CPE's IP is 10.128.32.162, the ACS tool's IP is 10.128.32.58. You can see that ACS tool first sent connection requestion, then CPE responsed by seding "Unauthorized" packet;and then ACS tool continue to sent connection requestion, but CPE sent "FIN ACK" packet. Then the connection was failed.

(0000324)
mohamed.kallel   
2015-11-19 12:09   
(Last edited: 2015-11-19 12:09)
I have a doubt that your cnonce in the http get (from your ACS tool) is not good.

Could you please make Connection Request with your web browser to your equipment and check if the digest works. Just in your browser type:

http://<equipment_ip_address>:7547

and then enter the right username/passworf of the Connection request.

The username/password of the connection request are saved in the config under:
easycwmp.@local[0].username
easycwmp.@local[0].password

(0000325)
swcims   
2015-11-25 08:25   
Hi manager, from equipment's wan side, I typed this hyperlink in browser, but could not open this GUI at all. Then I flushed iptables and typed the link, browser displayed blank page,there was no any content. Would you please provide advice? Thanks!
(0000326)
mohamed.kallel   
2015-11-25 09:21   
(Last edited: 2015-11-25 09:22)
You should not get any GUI. your browser send Connection request and the equipment accepts the request by sending http 1.1 200 OK without content.

So after you make the Connection request from your web browser you should see easycwmpd starting tr-069 session

what's your login/password of connection request? could you send your easycwmpd config.
What's the config of your ACS tool? could you send it? what is the login/passsword that your ACS tool use in the Connection Request?

(0000335)
swcims   
2015-12-02 11:34   
Hi Manager, please help check, thanks!

Here is the easycwmpd config

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

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

config device
        option manufacturer 'Test-device'
        option oui 'FFFFFF'
        option product_class 'easycwmp'
        option serial_number 'ABC123456'
        option hardware_version 'hw_ver-1.0'
        option software_version 'sw_ver-2.0'

Here is the config of acs tool:
disableAuth=false
xmlValidation=true
license=51745e0a18351d48456666e1e015b49554e515b5a4b797a6b7a636477
needConnRequest=true
cwmpComplianceSOAPArray=false
cwmpOldStyleCookie=true

# The host name or IP address of the ACS server.
acsHost=10.128.32.58

# The port number the ACS server is listening on.
acsPort=9999

# The port number the HTTP file server is listening on.
fileServerPort=9797

# The uri of the ACS server.
uri=/acs

cpeUsername=admin

cpePassword=admin

cpeHost=10.128.32.101

cpePort=7547

# username for the connection request.
connectionReqUsername=root

# passwd for the connection request.
connectionReqPassword=admin

#the time delay of CPE messages.
socketTimeout=60
(0000336)
mohamed.kallel   
2015-12-02 13:11   
Your configs look good. Since the connection request works with your web browser then it s a quite difficult to find out the cause without your acts tool.
Could u please provide us your acts tool or a remote access to reproduce the issue?

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
100 [easycwmp] Help block always 2015-11-27 09:43 2015-12-07 09:15
Reporter: andy_yang Platform: openwrt 15.05 branch  
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:  
e-mail notification:
Summary: Failed for EasyCwmp install for OpenWRT Linux
Description: I want to installl EasyCwmp for my OpenWRT Linux. But it failed. I refer to following link: http://www.easycwmp.org/index.php/manual
Tags:
Steps To Reproduce: 2. EasyCwmp install for OpenWRT Linux
Download:

cd /path/to/openwrt/package/
wget http://easycwmp.org/download/easycwmp-openwrt.tar.gz
tar -xzvf easycwmp-openwrt.tar.gz
cd ..

Build as built-in

make menuconfig #(And then select the package as <*>)
make
Additional Information: make[3]: Entering directory `/home/andy/develop/openwrt/package/boot/grub2'
make[3]: Leaving directory `/home/andy/develop/openwrt/package/boot/grub2'
make[3]: Entering directory `/home/andy/develop/openwrt/package/boot/grub2'
make[3]: Leaving directory `/home/andy/develop/openwrt/package/boot/grub2'
make[3]: Entering directory `/home/andy/develop/openwrt/feeds/management/libmicroxml'
mkdir -p /home/andy/develop/openwrt/dl
echo "Checking out files from the git repository..."; mkdir -p /home/andy/develop/openwrt/tmp/dl && cd /home/andy/develop/openwrt/tmp/dl && rm -rf libmicroxml-2012-06-11 && [ \! -d libmicroxml-2012-06-11 ] && git clone git://dev.freecwmp.org/microxml libmicroxml-2012-06-11 --recursive && (cd libmicroxml-2012-06-11 && git checkout 72965423184f24cc0b963d91c2d1863cdb01b6aa && git submodule update) && echo "Packing checkout..." && rm -rf libmicroxml-2012-06-11/.git && tar czf /home/andy/develop/openwrt/tmp/dl/libmicroxml-2012-06-11-72965423184f24cc0b963d91c2d1863cdb01b6aa.tar.gz libmicroxml-2012-06-11 && mv /home/andy/develop/openwrt/tmp/dl/libmicroxml-2012-06-11-72965423184f24cc0b963d91c2d1863cdb01b6aa.tar.gz /home/andy/develop/openwrt/dl/ && rm -rf libmicroxml-2012-06-11;
Checking out files from the git repository...
Cloning into 'libmicroxml-2012-06-11'...
fatal: unable to connect to dev.freecwmp.org:
dev.freecwmp.org[0: 217.115.15.24]: errno=Connection timed out

make[3]: *** [/home/andy/develop/openwrt/dl/libmicroxml-2012-06-11-72965423184f24cc0b963d91c2d1863cdb01b6aa.tar.gz] Error 128
make[3]: Leaving directory `/home/andy/develop/openwrt/feeds/management/libmicroxml'
make[2]: *** [package/feeds/management/libmicroxml/compile] Error 2
make[2]: Leaving directory `/home/andy/develop/openwrt'
make[1]: *** [/home/andy/develop/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/andy/develop/openwrt'
make: *** [world] Error 2
andy@andy:~/develop/openwrt$ ping 217.115.15.24
Attached Files:
Notes
(0000330)
andy_yang   
2015-11-27 09:45   
I know the website dev.freecwmp.org, can't access!!!!!!
So, how can I fix the issue to continue.
(0000331)
mohamed.kallel   
2015-11-27 11:10   
You can use the following git repo url: https://github.com/pivasoftware/microxml.git

Please change the Makefile of microxml. It's under:
feeds/management/libmicroxml

Use the following parameters in the Makefile of microxml:



PKG_NAME:=libmicroxml
PKG_VERSION:=2015-03-18 <====== change this
PKG_RELEASE=$(PKG_SOURCE_VERSION)

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/pivasoftware/microxml.git <====== change this
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=caa8d3e6887f5c70e54df555dd78e4e45cfa74cc <====== change this
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
(0000334)
pedro.sanchez   
2015-11-30 08:54   
Thanks mohamed.

I overcame this error downloading the following file http://downloads.aredn.org/sources/libmicroxml-2012-06-11-72965423184f24cc0b963d91c2d1863cdb01b6aa.tar.gz to openwrt/dl folder.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
98 [easycwmp] Bug minor have not tried 2015-11-26 09:02 2015-11-27 11:57
Reporter: pedro.sanchez 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:  
e-mail notification:
Summary: /usr/sbin/easycwmp: line 1: syntax error: unterminated quoted string
Description: On openWRT easycwmp throws error

root@openwrt:/# easycwmp inform
/usr/sbin/easycwmp: line 1: syntax error: unterminated quoted string
Tags:
Steps To Reproduce: Compile openwrt with easycwmp package and when the openwrt system boots up, execute command 'easycwmp inform'
Additional Information: I can fix the error adding a double quote near the end of line 276 of file /usr/sbin/easycwmp

From

[ "$__arg4" != "" -o "$__arg5" != "" ] && dw_url=`echo "$__arg1" | sed -e "s@://@://$__arg4:$__arg5\@@g`

to

[ "$__arg4" != "" -o "$__arg5" != "" ] && dw_url=`echo "$__arg1" | sed -e "s@://@://$__arg4:$__arg5\@@g"`
Attached Files:
Notes
(0000333)
mohamed.kallel   
2015-11-27 11:57   
Thank you for your contribution
Fixed in EasyCwmp-1.2.3

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
99 [easycwmp] Bug minor have not tried 2015-11-26 09:23 2015-11-27 11:56
Reporter: pedro.sanchez 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:  
e-mail notification:
Summary: Multiple uci errors on file /etc/init.d/easycwmpd
Description: On OpenWRT, when i start easycwmpd i see the file /etc/config/easycwmp does not changes.

If I remove -q from lines 9 and 10 (UCI_SET and UCI_COMMIT), "command /etc/init.d/easycwmpd start" shows multiple times UCI usage.

It work when I wrap

$val

in double quotes

xxx="$val"
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000332)
mohamed.kallel   
2015-11-27 11:56   
Thank you for your contribution
Fixed in EasyCwmp-1.2.3

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
73 [easycwmp] Enhancement feature N/A 2015-07-30 14:07 2015-11-25 16:08
Reporter: feckert 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:  
e-mail notification:
Summary: procd
Description: Hello

Openwrt is using for alle new services the new init system the procd.
Easycwmp for now uses the old init system in openwrt. Is it possible that we can switch to the new init system?

Why?

I have written an luci module for openwrt (maybe you want to have it?). If I change some parameters i have to manual reload the service and if i dont want to do this i have to set an etry into /etc/config/ucitrack to reload the service if something changed.
This could be simplifed if the /etc/init.d/easycwmp tracks the /etc/config/easycwmp with procd. Every time the config changed procd will trigger the function service_triggers() in the init script and there we can make a /etc/init/easycwmp restart

Kind regards

Flo
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000256)
mohamed.kallel   
2015-07-30 14:48   
(Last edited: 2015-07-30 14:50)
Does the service_triggers() will be triggered by procd if the easycwmp config is changed by the easycwmpd itself or by the easycwmp script?.

Because I do no want to restart the easycwmpd service if the config if changed by the easycwmpd or by the script

(0000257)
mohamed.kallel   
2015-07-30 23:46   
Thank you Flo for the issue. this issue will be treated in the future. Not sure to be available for the next delivery.

Please you have a patch to support the procd, you are welcome to share it in this issue
(0000329)
mohamed.kallel   
2015-11-25 16:08   
delivered in EasyCwmp-1.2.2

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
96 [easycwmp] Enhancement minor have not tried 2015-11-24 14:24 2015-11-25 16:08
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:  
e-mail notification:
Summary: make the syslog message displayed in the output
Description: make the syslog message displayed in the output
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000328)
mohamed.kallel   
2015-11-25 16:07   
delivered in EasyCwmp-1.2.2

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
97 [easycwmp] Bug minor have not tried 2015-11-25 14:18 2015-11-25 16:07
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:  
e-mail notification:
Summary: build error: undefined reference to cwmp_add_inform_timer
Description: this bug is issued by Pedro by email:

Hi,

 I've donwloaded last version of easycwmp and i've an error when I try to compile it.

pedro@wm-pp-ubuntu:~/Escritorio/openwrt$ make package/easycwmp/{clean,compile} package/index V=s
...
...
...
mv -f ../src/.deps/easycwmpd-xml.Tpo ../src/.deps/easycwmpd-xml.Po
arm-openwrt-linux-muslgnueabi-gcc -I/home/pedro/Escritorio/openwrt/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/usr/include -I/home/pedro/Escritorio/openwrt/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/usr/include -I/home/pedro/Escritorio/openwrt/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/usr/include -I/home/pedro/Escritorio/openwrt/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/usr/include -I/home/pedro/Escritorio/openwrt/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/usr/include -Os -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3-d16 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -D_GNU_SOURCE -L/home/pedro/Escritorio/openwrt/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/usr/lib -L/home/pedro/Escritorio/openwrt/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/lib -L/home/pedro/Escritorio/openwrt/staging_dir/toolchain-arm_cortex-a8+vfpv3_gcc-5.2.0_musl-1.1.11_eabi/usr/lib -L/home/pedro/Escritorio/openwrt/staging_dir/toolchain-arm_cortex-a8+vfpv3_gcc-5.2.0_musl-1.1.11_eabi/lib -znow -zrelro -Wl,-rpath-link=/home/pedro/Escritorio/openwrt/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/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 -luci -lubox -lubus -L/home/pedro/Escritorio/openwrt/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/usr/lib -lmicroxml -L/home/pedro/Escritorio/openwrt/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/usr/lib -lcurl -ljson-c
../src/easycwmpd-easycwmp.o: In function `netlink_new_msg':
easycwmp.c:(.text+0x228): undefined reference to `cwmp_add_inform_timer'
../src/easycwmpd-easycwmp.o: In function `main':
easycwmp.c:(.text.startup+0x1b8): undefined reference to `cwmp_add_inform_timer'
easycwmp.c:(.text.startup+0x1e0): undefined reference to `cwmp_add_inform_timer'
../src/easycwmpd-backup.o: In function `backup_add_acsurl':
backup.c:(.text+0xdc): undefined reference to `cwmp_add_inform_timer'
../src/easycwmpd-backup.o: In function `backup_load_event':
backup.c:(.text+0x102c): undefined reference to `cwmp_add_inform_timer'
collect2: error: ld returned 1 exit status
make[4]: *** [easycwmpd] Error 1
make[4]: Leaving directory `/home/pedro/Escritorio/openwrt/build_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/easycwmp/easycwmp-1.2.1/bin'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/pedro/Escritorio/openwrt/build_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/easycwmp/easycwmp-1.2.1'
make[2]: *** [/home/pedro/Escritorio/openwrt/build_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/easycwmp/easycwmp-1.2.1/.built] Error 2
make[2]: Leaving directory `/home/pedro/Escritorio/openwrt/package/easycwmp'
make[1]: *** [package/easycwmp/compile] Error 2
make[1]: Leaving directory `/home/pedro/Escritorio/openwrt'
make: *** [package/easycwmp/compile] Error 2

I can compile it if i add the following line
void cwmp_add_inform_timer();
before
static void cwmp_periodic_inform(struct uloop_timeout *timeout);
in file cwmp.h

¿Is this the right solution?
¿Does cwmp.h file needs to be updated on next version?

Thanks a lot.
Best Regards,

--
Pedro
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000327)
mohamed.kallel   
2015-11-25 16:07   
fixed in EasyCwmp-1.2.2

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
93 [easycwmp] Bug major always 2015-10-09 10:02 2015-10-22 21:59
Reporter: kp.seeker Platform: Linux x64  
Assigned To: mohamed.kallel OS: Ubuntu  
Priority: normal OS Version: ubuntu 14.04.3  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Can't install libubox
Description: Hi,
I can't install libubox. After 'make' I have error (see prntscrn in attache)
Tags:
Steps To Reproduce: Installation proceeds according manual on http://www.easycwmp.org/index.php/manual
Additional Information: installed dependences: curl, libtool, autoconf, git, cmake
Attached Files: libubox.png (71,851 bytes) 2015-10-09 10:02
https://support.easycwmp.org/file_download.php?file_id=53&type=bug
png
Notes
(0000307)
mohamed.kallel   
2015-10-09 23:02   
this issue is the same of 0000078

This is because you are building libubox with a newest version of json-c.
try to rebuild json-c with version 0.11
(0000308)
kp.seeker   
2015-10-12 18:59   
Thanks, it passed. But I have error after 'make' in section "easycwmp". There's

>>> 'make: *** No targets specified and no makefile found. Stop.'
(0000310)
mohamed.kallel   
2015-10-13 10:28   
check if you have selected easycwmp in the make menuconfig (under utilities)
(0000311)
kp.seeker   
2015-10-13 10:46   
I have the same error for 'make menuconfig'. Version easycwmp-1.2.0
(0000312)
kp.seeker   
2015-10-13 10:48   
'make: *** No rule to make target 'menuconfig'. Stop.'
(0000313)
mohamed.kallel   
2015-10-13 11:03   
(Last edited: 2015-10-13 11:03)
Forget "make menuconfig". It's for openwrt. you are building for ubuntu.

to build easycwmp, check if you are under easycwmp folder. and check if you called the following commands before make

Generate configuration files:

autoreconf -i

Configure:

./configure --enable-debug --enable-devel --enable-acs=multi --enable-jsonc=1

Please follow carefully the instructions under http://easycwmp.org/index.php/manual

(0000314)
kp.seeker   
2015-10-13 12:44   
Yes, I do all operation according to manual. There aren't errors on each steps early.
(0000315)
mohamed.kallel   
2015-10-13 15:49   
What is the output of the commands (for easycwmp build)

autoreconf -i
./configure --enable-debug --enable-devel --enable-acs=multi --enable-jsonc=1
(0000317)
kp.seeker   
2015-10-14 08:34   
Hello, I tried to install new version 1.2.1 and got error:

tr069@ip-dev-nb:/opt/dev/easycwmp$ autoreconf -i
configure.ac:20: installing './compile'
configure.ac:2: installing './install-sh'
configure.ac:2: installing './missing'
Makefile.am: installing './INSTALL'
bin/Makefile.am: installing './depcomp' - Everything is OK

tr069@ip-dev-nb:/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!

I have CURL-utility
(0000318)
mohamed.kallel   
2015-10-14 10:45   
you have to install libcurl and libcurl-dev
(0000319)
kp.seeker   
2015-10-14 11:40   
All packages installed in system

kirill@ip-dev-nb:~$ aptitude search libcurl
v libcurl-dev
v libcurl-dev:i386
p libcurl-ocaml
p libcurl-ocaml:i386
v libcurl-ocaml-d6l49
p libcurl-ocaml-dev
p libcurl-ocaml-dev:i386
v libcurl-ocaml-dev-d6l49
v libcurl-ocaml-dev-ephj1:i386
v libcurl-ocaml-ephj1:i386
v libcurl-ssl-dev
v libcurl-ssl-dev:i386
i libcurl3
p libcurl3:i386
p libcurl3-dbg
p libcurl3-dbg:i386
v libcurl3-dev
v libcurl3-dev:i386
i libcurl3-gnutls
p libcurl3-gnutls:i386
v libcurl3-gnutls-dev
v libcurl3-gnutls-dev:i386
p libcurl3-nss
p libcurl3-nss:i386
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
p libcurl4-gnutls-dev
p libcurl4-gnutls-dev:i386
p libcurl4-nss-dev
p libcurl4-nss-dev:i386
p libcurl4-openssl-dev
p libcurl4-openssl-dev:i386
p libcurlpp-dev
p libcurlpp-dev:i386
p libcurlpp0
p libcurlpp0:i386
(0000320)
mohamed.kallel   
2015-10-15 11:09   
could you provide the generated file ./configure
(0000321)
mohamed.kallel   
2015-10-15 11:13   
(Last edited: 2015-10-15 11:15)
What's the version of your autoreconf

autoreconf -V

I m uusing autoreconf 2.69 and it works without any problem


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
94 [easycwmp] Bug minor have not tried 2015-10-13 15:59 2015-10-13 17:45
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:  
e-mail notification:
Summary: warning in 'autoreconf -i': option 'subdir-objects' is disabled
Description: warning in "autoreconf -i" command when building easycwmp: option 'subdir-objects' is disabled


bin/Makefile.am:3: warning: source file '../src/backup.c' is in a subdirectory,
bin/Makefile.am:3: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled. For now, the corresponding output
automake: object file(s) will be placed in the top-level directory. However,
automake: this behaviour will change in future Automake versions: they will
automake: unconditionally cause object files to be placed in the same subdirectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
bin/Makefile.am:3: warning: source file '../src/config.c' is in a subdirectory,
bin/Makefile.am:3: but option 'subdir-objects' is disabled
bin/Makefile.am:3: warning: source file '../src/cwmp.c' is in a subdirectory,
bin/Makefile.am:3: but option 'subdir-objects' is disabled
bin/Makefile.am:3: warning: source file '../src/digestauth.c' is in a subdirectory,
bin/Makefile.am:3: but option 'subdir-objects' is disabled
bin/Makefile.am:3: warning: source file '../src/external.c' is in a subdirectory,
bin/Makefile.am:3: but option 'subdir-objects' is disabled
bin/Makefile.am:3: warning: source file '../src/easycwmp.c' is in a subdirectory,
bin/Makefile.am:3: but option 'subdir-objects' is disabled
bin/Makefile.am:3: warning: source file '../src/http.c' is in a subdirectory,
bin/Makefile.am:3: but option 'subdir-objects' is disabled
bin/Makefile.am:3: warning: source file '../src/json.c' is in a subdirectory,
bin/Makefile.am:3: but option 'subdir-objects' is disabled
bin/Makefile.am:3: warning: source file '../src/log.c' is in a subdirectory,
bin/Makefile.am:3: but option 'subdir-objects' is disabled
bin/Makefile.am:3: warning: source file '../src/md5.c' is in a subdirectory,
bin/Makefile.am:3: but option 'subdir-objects' is disabled
bin/Makefile.am:3: warning: source file '../src/time.c' is in a subdirectory,
bin/Makefile.am:3: but option 'subdir-objects' is disabled
bin/Makefile.am:3: warning: source file '../src/ubus.c' is in a subdirectory,
bin/Makefile.am:3: but option 'subdir-objects' is disabled
bin/Makefile.am:3: warning: source file '../src/xml.c' is in a subdirectory,
bin/Makefile.am:3: but option 'subdir-objects' is disabled
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000316)
mohamed.kallel   
2015-10-13 17:45   
fixed in EasyCwmp-1.2.1

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
92 [easycwmp] Bug minor always 2015-10-07 21:28 2015-10-13 10:29
Reporter: tarakt Platform: OpenWRT  
Assigned To: mohamed.kallel OS:  
Priority: normal OS Version: easycwmp-1.1.6  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: HTTP Digest authenication fails
Description: EasyCWMP closes session when the ACS send a response as HTTP1.1/ 401 Authorization required for the initial inform sent by CPE. According to HTTP standards the CPE needs to respond by resending the inform message with the digest authentication details.

Tags:
Steps To Reproduce:
Additional Information: Follow the message exchange between 6.0.0.1(ACS) and 192.168.200.2(CPE) in the attached packet capture trace.
Attached Files: 400 Failure -wan-m.cap (55,257 bytes) 2015-10-07 21:28
https://support.easycwmp.org/file_download.php?file_id=52&type=bug
Notes
(0000306)
mohamed.kallel   
2015-10-07 22:57   
(Last edited: 2015-10-07 23:00)
did you build libcurl with polarssl dependency?
If it 's the case. then it's recommended to use openssl.

The digest authentication with ACS server will not work if you build libcurl with PolarSSL.

you can see this remark in http://easycwmp.org/index.php/manual

(0000309)
tarakt   
2015-10-12 19:44   
Yes, we were using polarssl. After build with openssl we do not see the problem.
Thanks for the help.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
59 [easycwmp] Bug minor have not tried 2015-06-09 16:41 2015-10-07 19:58
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:  
e-mail notification:
Summary: change the date of "* EasyCwmp-1.1.3 (date of 9th of March 2015)" in the ChangeLog
Description: Change the date of "* EasyCwmp-1.1.3 (date of 9th of March 2015)" in the ChangeLog to "* EasyCwmp-1.1.3 (date of 9th of June 2015)"
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000245)
mohamed.kallel   
2015-07-13 17:48   
fixed in EasyCwmp-1.1.4

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
57 [easycwmp] Enhancement minor have not tried 2015-06-03 10:57 2015-10-07 19:58
Reporter: mohamed.kallel 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:  
e-mail notification:
Summary: The data model engine should pass the ref param as a last arg to the get and set functions
Description: pass the ref param as a last arg to the get and set functions.

We should be able to retrieve the ref param in the get and set functions of each param.

Be careful for the defined get functions like

"echo 1.2"

we should think to use a customized echo function for this case

"common_echo 1.2"

common_echo() {
    echo "$1"
}
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000288)
mohamed.kallel   
2015-10-05 12:42   
For the moment there is no need (neither a request) to have the refparam in the get/set value function.

So skip this issue. This issue could be reopened in the future if there is a need of it

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
86 [easycwmp] Enhancement minor have not tried 2015-10-03 11:29 2015-10-07 19:56
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:  
e-mail notification:
Summary: update documentation
Description: Update documentation:
- Digest authentication does not work if we build libcurl with polarssl. It's recommanded to use openssl since easycwmp is mainly tested with openssl

- Add the usage of the ubus call notify from applications

-Remove the shflags dependencie
Should update the dependencies in the documentation (install page)
Should update the command "easycwmp --json" in the documentation (install page)
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000305)
mohamed.kallel   
2015-10-07 19:56   
fixed in EasyCwmp-1.2.0

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
87 [easycwmp] Enhancement minor have not tried 2015-10-03 12:00 2015-10-07 19:56
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:  
e-mail notification:
Summary: enhancement of the ubus call notify
Description: Enhancement the ubus call notify.
The call of the ubus notify should be without paremeters neither the value.
3rd party application should call ubus call notify in order to trigger a check process in easycwmpd which will be in charge to look if there is a parmeter with active or passive attribute that have a value change.
It's up to the easycwmpd to findout the changed parameters (only active and passive parameters) when the ubus call notify is triggered.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000304)
mohamed.kallel   
2015-10-07 19:56   
fixed in EasyCwmp-1.2.0

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
88 [easycwmp] Enhancement minor have not tried 2015-10-05 11:24 2015-10-07 18:56
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:  
e-mail notification:
Summary: Enhancement: cwmp inform should loop only method objects which contain forced inform params
Description: Enhancement: cwmp inform should loop only method objects which contain forced inform params
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000303)
mohamed.kallel   
2015-10-07 18:56   
fixed in EasyCwmp-1.2.0

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
89 [easycwmp] Bug minor have not tried 2015-10-05 15:47 2015-10-07 18:55
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:  
e-mail notification:
Summary: Add uci commit in the funcition init device info in init.d
Description: Add uci commit in the funcition init device info in init.d
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000302)
mohamed.kallel   
2015-10-07 18:55   
fixed in EasyCwmp-1.2.0

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
90 [easycwmp] Bug major have not tried 2015-10-05 18:04 2015-10-07 18:55
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:  
e-mail notification:
Summary: check acs url in set parameter value does not work properly
Description: check acs url in set parameter value does not work properly

change

local chk=`echo $val | grep "[a-zA-Z0-9_]\+://.*"`

by

local chk=`echo $val | grep "[a-zA-Z0-9_]://.*"`
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000301)
mohamed.kallel   
2015-10-07 18:55   
fixed in EasyCwmp-1.2.0

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
91 [easycwmp] Enhancement minor have not tried 2015-10-06 22:11 2015-10-07 18:55
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:  
e-mail notification:
Summary: The services to restart at the end session should be found automatically by uci change
Description: The services to restart at the end session should be found automatically by uci change
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000300)
mohamed.kallel   
2015-10-07 18:55   
fixed in EasyCwmp-1.2.0

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
66 [easycwmp] Enhancement feature N/A 2015-07-03 12:33 2015-10-05 14:41
Reporter: feckert 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:  
e-mail notification:
Summary: pull request on github
Description: I have made some improvments in your custom script.
For example get the target values not from configuration tag in /etc/easycwmp, but rather from files in /etc/deviceinfo which are generated from the build environment in openwrt. So no one can change the device values.

What do you think?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000233)
mohamed.kallel   
2015-07-04 21:51   
I checked your pull request.

1) I will accept your common_set_list() function in the next release (nchallah)

2) for getting device infos from /etc/deviceinfo. I m not sure if all systems get a such infos from this files. even for OpenWRT, based on my experience each manufacturer(who use OpenWRT in their equipments) is using a customized way to get device infos. Any way the scripts published within EasyCwmp repo are published as examples in order to help peoples to develop their own data model
(0000235)
feckert   
2015-07-05 01:08   
Hello Mohamed,

1) Thank you for integrating this Enhancement

2) In the openwrt build environment "make menuconfig" you can set the device information. They are written during the build process to 3 files:

- device_info
DEVICE_MANUFACTURER='OpenWrt'
DEVICE_PRODUCT='Generic'
DEVICE_REVISION='v0'
- openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='Bleeding Edge'
DISTRIB_REVISION='r45250'
DISTRIB_CODENAME='chaos_calmer'
DISTRIB_TARGET='omap/generic'
DISTRIB_DESCRIPTION='OpenWrt Chaos Calmer r45250'
DISTRIB_TAINTS='no-all'
- openwrt_verions
r45250

This files specifies the device. I think this parameters which are unique for each device model or product class should not be editable. It should be read from the rom or any other non volatile memory and it should normaly not be configurable (some one can pretend the device).

I am using your scripts as it is. My suggesten is that it should be possible to use callback function. If they are not set (not defined) than the configurable values from /etc/easycwmp should be used and if this function are set during the build process of openwrt then this function could evaluate the device parameters from this files or from any other place. It is up to the developer to get the parameters. The Serial number for example should be unique for each device and should not be set into the firmware. For my device it is the mac address of the eth0.

What do you think?

Kind regards Flo
(0000299)
mohamed.kallel   
2015-10-05 14:41   
fixed in EasyCwmp-1.1.7

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
72 [easycwmp] Enhancement minor have not tried 2015-07-23 12:40 2015-10-05 14:41
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:  
e-mail notification:
Summary: Add a configuration option to enable/disable the expect 100 continue in the http header
Description: Add a configuration option to enable/disable the expect 100 continue in the http header
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000298)
mohamed.kallel   
2015-10-05 14:41   
fixed in EasyCwmp-1.1.7

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
65 [easycwmp] Bug minor always 2015-07-03 12:29 2015-10-05 14:40
Reporter: feckert Platform:  
Assigned To: mohamed.kallel OS:  
Priority: urgent OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: http_digest_auth_fail_response with easycwmp
Description: Hello,

i am using easycwmp on the cpe side and genieacs on the acs side. If we set a password on the cpe side the acs cannot make a connection request to the cpe. Only if the cpe makes a connection request the task will be started.

I have asked the geniacs developer if his software is responsible for the failer. So i made a tcpdump and send it to him.
His answer was:

"I may have found the cause of the problem. The client is sending a response without Content-Length header or a terminating CRLF sequence (in case of chunked encoding) which Node.js interprets, correctly so, as invalid HTTP response. Working around this involves implementing HTTP GET on top of Node.js sockets which isn't trivial. I suspect it worked using a web browser because browsers always seem to be more lenient towards this kind of quirks. I suggest you contact EasyCWMP guys to investigate."

Tags:
Steps To Reproduce: Use eascwmp on the cpe side
Use genieacs on the acs side
Set a password on the easycwmp side for connection request from acs to cpe

Nothing will happen if you make a request. The request will be served when the cpe makes a request to the acs
Additional Information: tcpdump of the connection request

on failer with geniacs and easycwmp
on success with browser and easycwmp
Attached Files: tcpdump (25,067 bytes) 2015-07-03 12:29
https://support.easycwmp.org/file_download.php?file_id=43&type=bug
Notes
(0000232)
mohamed.kallel   
2015-07-04 21:40   
change the following lines in the http.c file:

http_end_child:
            fflush(fp);
            if (auth_status) {
                status = 0;
                fputs("HTTP/1.1 200 OK\r\n", fp);
            } else {
                status = EACCES;
                fputs("HTTP/1.1 401 Unauthorized\r\n", fp);
                fputs("Connection: close\r\n", fp);
                http_digest_auth_fail_response(fp, "GET", "/", REALM, OPAQUE);
            }
            fputs("\r\n", fp);



by the following lines:


http_end_child:
            fflush(fp);
            if (auth_status) {
                status = 0;
                fputs("HTTP/1.1 200 OK\r\n", fp);
                fputs("Content-Length: 0\r\n", fp);
            } else {
                status = EACCES;
                fputs("HTTP/1.1 401 Unauthorized\r\n", fp);
                fputs("Content-Length: 0\r\n", fp);
                fputs("Connection: close\r\n", fp);
                http_digest_auth_fail_response(fp, "GET", "/", REALM, OPAQUE);
            }
            fputs("\r\n", fp);

I will update the easycwmp code with that in the next delivery
(0000234)
feckert   
2015-07-05 00:40   
(Last edited: 2015-07-05 00:41)
Hello Mohamed,

thank you for bug fixing.
I will upgrade my easycwmp to the newest version where this is fixed :-)

Kind regards flo

(0000236)
feckert   
2015-07-07 10:44   
Hello Mohamed,

we have tested it but its alread not working. The genieacs developer checked it again and figured out the Problem. You have to added an single additional "\r\n" in the of your headers.

Following lind are from the developer of genieacs:
------
Looking at the response, it seems that it's still the CRLF missing at
the end of the response. This is a valid response:

    HTTP/1.1 405 Method Not Allowed\r\nAllow: POST\r\nContent-Length: 0:
    Content-Length: 0\r\nDate: Mon, 06 Jul 2015 22:39:34
    GMT\r\nConnection: close\r\n\r\n

And this is the response form your CPE which is invalid:

    HTTP/1.1 401 Unauthorized\r\nContent-Length: 0\r\nConnection:
    close\r\nWWW-Authenticate: Digest
    realm=\"realm@easycwmp\",qop=\"auth\",nonce=\"16694e41cf86d490e3b9a12a256476bd000094a1\",opaque=\"328458fab28345ae87ab3210a8513b14eff452a2\"\r\n


Note in the first one there are two pairs of CRLF. One to indicate the
end of a particular header, and one to indicate the end of the headers
section. Sorry, I should have made that clearer in my original comment.

Please keep me posted on this progress of this with EasyCWMP.
----

Please add this to your next version
(0000237)
mohamed.kallel   
2015-07-07 12:39   
please provide your http.c with patch applied
(0000238)
feckert   
2015-07-07 13:54   
Hello Mohamed,

that are the changes we have made to http.c to get it working with the newest easycwmp 1.1.3

Index: src/http.c
===================================================================
--- src.orig/http.c
+++ src/http.c
@@ -254,11 +254,14 @@ http_end_child:
             if (auth_status) {
                 status = 0;
                 fputs("HTTP/1.1 200 OK\r\n", fp);
+ fputs("Content-Length: 0\r\n", fp);
             } else {
                 status = EACCES;
                 fputs("HTTP/1.1 401 Unauthorized\r\n", fp);
+ fputs("Content-Length: 0\r\n", fp);
                 fputs("Connection: close\r\n", fp);
                 http_digest_auth_fail_response(fp, "GET", "/", REALM, OPAQUE);
+ fputs("\r\n", fp);
             }
             fputs("\r\n", fp);
             goto done_child;
===================================================================
(0000239)
mohamed.kallel   
2015-07-07 14:09   
so it works now with this patch?
(0000240)
feckert   
2015-07-07 14:19   
(Last edited: 2015-07-07 14:23)
Yes thats right,

as noted in 0000236 the last "CRLN" is for "to indicate the end of the headers
section".
It is because genieacs is written in node.js and it wants an valid http respond. If this is not so the whole message is discard.

Flo

(0000253)
feckert   
2015-07-28 14:01   
Hello,

I have downloaded the newest version of easycwmp but as i saw the patch of this issue was not applied!

Do you need any test?

Kind regards

flo
(0000254)
mohamed.kallel   
2015-07-28 18:05   
Hi Flo

Sorry, I m really busy
I will try to merge your patch as soon as possible

Regards
(0000255)
feckert   
2015-07-30 13:59   
Hello Mohamed,

thank you :-)
(0000297)
mohamed.kallel   
2015-10-05 14:40   
fixed in EasyCwmp-1.1.7

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
71 [easycwmp] Bug minor have not tried 2015-07-18 01:44 2015-10-05 14:40
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:  
e-mail notification:
Summary: compilation error of easycwmp in the last version of openwrt: tunknown type name 'time_t'
Description: compilation error of easycwmp in the last version of openwrt:

src/backup.c
In file included from ../src/backup.c:14:0:
../src/config.h:31:2: error: unknown type name 'time_t'
  time_t periodic_time;
  ^
make[5]: *** [easycwmpd-backup.o] Error 1
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000275)
rnarld   
2015-09-19 13:15   
There's a missing include:

--- a/src/config.h
+++ b/src/config.h
@@ -15,6 +15,7 @@
 
 #include <uci.h>
 
+#include <sys/time.h>
 #include "easycwmp.h"
 
 void config_exit(void);
(0000277)
mohamed.kallel   
2015-09-21 22:26   
thanks for the patch
I will try to fix that in the source code as soon as possible
(0000296)
mohamed.kallel   
2015-10-05 14:40   
fixed in EasyCwmp-1.1.7

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
81 [easycwmp] Bug major always 2015-09-10 08:54 2015-10-05 14:39
Reporter: feckert Platform:  
Assigned To: mohamed.kallel OS:  
Priority: high OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Firmware update failes
Description: Hello,

During a firmware update over an acs the test to verify the size of free disk space in easycwmp.sh fails!

Reason:
The shell command in line 272 in easycwmp.sh fails if you get more lines as expected because of more /tmp directories.
--------------------------
root@OpenWrt:~# df
On my machine i get with the df command
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 58048 1852 56196 3% /
/dev/root 7680 7680 0 100% /rom
tmpfs 127456 13040 114416 10% /tmp
tmpfs 127456 268 127188 0% /tmp/root
tmpfs 512 0 512 0% /dev
/dev/mtdblock1 58048 1852 56196 3% /overlay
overlayfs:/overlay 58048 1852 56196 3% /
--------------------------
On my system i get two lines because of the wrong regex.
--------------------------
dl_size=`df |grep /tmp | awk '{print $4;}'`
114416
127188
--------------------------
I fixed it with this regex to get only the /tmp directory we interested in
--------------------------
dl_size=`df |grep "/tmp$" | awk '{print $4;}'`
114416

Please add this bugfix to your trunk. I have added the patch

Kind Regards

Flo
Tags:
Steps To Reproduce:
Additional Information:
Attached Files: system_easycwmp_patches_005-TDT-Bugfix-easycwmp-download-size-calculation.patch (594 bytes) 2015-09-10 08:54
https://support.easycwmp.org/file_download.php?file_id=49&type=bug
Notes
(0000279)
mohamed.kallel   
2015-09-21 22:43   
Thank you for the contribution and the patch.
I will fix that in the future versions of easycwmp
(0000295)
mohamed.kallel   
2015-10-05 14:39   
fixed in EasyCwmp-1.1.7

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
83 [easycwmp] Bug minor N/A 2015-09-24 09:45 2015-10-05 14:39
Reporter: feckert Platform:  
Assigned To: mohamed.kallel OS:  
Priority: high OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: factory reset does not work anymore on CC
Description: Hello easycwmp Team,

Factory reset is not working anymore for all devices.
jffs2_mark_erase was removed in Changeset 40410 by nbd on 2014-04-07T12:29:42+02:00 (18 months ago).

I think we have to use jffs2mark. I have applied a patch for this.

Kind regards

Flo
Tags:
Steps To Reproduce:
Additional Information:
Attached Files: 006-TDT-Bugfix-factory-reset.patch (967 bytes) 2015-09-24 09:45
https://support.easycwmp.org/file_download.php?file_id=51&type=bug
Notes
(0000281)
mohamed.kallel   
2015-09-26 12:18   
Thank you Fekert for your contribution. We will apply this patch in the future vesions (inchallah)
(0000294)
mohamed.kallel   
2015-10-05 14:39   
fixed in EasyCwmp-1.1.7

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
84 [easycwmp] Enhancement minor have not tried 2015-09-30 13:07 2015-10-05 14:39
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:  
e-mail notification:
Summary: Remove the shflags dependencie
Description: Remove the shflags dependencie
Should update the dependencies in the documentation (install page)
Should update the command "easycwmp --json" in the documentation (install page)
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000293)
mohamed.kallel   
2015-10-05 14:39   
fixed in EasyCwmp-1.1.7

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
76 [easycwmp] Question trivial N/A 2015-08-24 10:37 2015-10-05 14:39
Reporter: feckert Platform:  
Assigned To: mohamed.kallel OS:  
Priority: none OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: NONCE_PRIV_KEY
Description: Hello,

could you please explain why the value NONCE_PRIV_KEY in digestauth.c is not randomized during runtime with /dev/random?

Kind regards Flo
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000271)
mohamed.kallel   
2015-08-26 10:16   
The digest source code was originally imported from libmicrohttpd open source (as indicated in the top of the digestauth.c). we did not spend much time in order to improve it. Please feel free to make any suggesstion (patch) to generate randomly the NONCE_PRIV_KEY.
(0000284)
mohamed.kallel   
2015-10-01 19:02   
The NONCE_PRIV_KEY is not the real nonce sent in the digest authentication packet. this constant string is used as constant to generate a random nonce by the function

static void calculate_nonce(uint32_t nonce_time, const char *method,
        const char *rnd, unsigned int rnd_size, const char *uri,
        const char *realm, char *nonce)

So in the reality the nonce in the packet is random and it's not constant. You can check that in the traffic.

So nothing to do for this issue
(0000285)
mohamed.kallel   
2015-10-02 10:27   
From feckert (by email)

That is not completly right, its maybe unrealisitc but if some one
knows the NONCE_PRIV_KEY (get source code and time )! See explanation
in source

/*
         * Second level vetting for the nonce validity
         * if the timestamp attached to the nonce is valid
         * and possibly fabricated (in case of an attack)
         * the attacker must also know the random seed to be
         * able to generate a "sane" nonce, which if he does
         * not, the nonce fabrication process going to be
         * very hard to achieve.
         */

I think it will be more save 99,99% if we can get the NONCE_PRIV_KEY
from /dev/urandom (unblocking read)) or /dev/random (blocking read).
If the service starts he will look in this device and get a random
number only valid for this server session run. And if the service will
restart a new one will be read from the decvice. Because it is a
service we should use unblocking read.

Wenn the service starts we will open urandom and get fill NONCE_PRIV_KEY

Pseode c code
--------
int dev_random= open("/dev/random", O_RDONLY);
char nonce_priv_key[28];
size_t length = 0;
while (randomDataLen < sizeof nonce_priv_key)
{
    ssize_t result = read( dev_random, nonce_priv_key + length,
(sizeof nonce_priv_key) - length);
    if (result < 0)
    {
        // error, unable to read /dev/random
    }
    length += result;
}
close(dev_random);
(0000286)
mohamed.kallel   
2015-10-02 11:51   
(Last edited: 2015-10-02 11:53)
Thanks feckert for your reply!
May be a Connection request does not need a such seurity level especially if your device is configured with a firewall that allow only CR coming from ACS. I think a random nonce based on time is sufficient.

But your answer and remark are interesting and good!
I will try to add your patch suggestion in a future delivery (inchallah).

(0000287)
mohamed.kallel   
2015-10-02 12:07   
(Last edited: 2015-10-02 12:08)
The "/dev/random" is better than "/dev/urandom" for the security purpose, but since the "/dev/random" is a blocking read then It's better to use "/dev/urandom".

(0000292)
mohamed.kallel   
2015-10-05 14:39   
fixed in EasyCwmp-1.1.7

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
62 [easycwmp] Bug minor have not tried 2015-06-25 19:54 2015-10-05 14:38
Reporter: mohamed.kallel 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:  
e-mail notification:
Summary: Support SOAPAction in the http header
Description: Support SOAPAction in the http header
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000291)
mohamed.kallel   
2015-10-05 14:38   
fixed in EasyCwmp-1.1.7

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
85 [easycwmp] Bug minor have not tried 2015-10-01 15:18 2015-10-05 14:38
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:  
e-mail notification:
Summary: wrong declaration of the variable old_addr in easycwmp.c
Description: wrond declaration of the variable old_addr in easycwmp.c

in the function:
static void easycwmp_netlink_interface(struct nlmsghdr *nlh)
static old_addr=0;

it should be

static uint32_t old_addr = 0;
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000290)
mohamed.kallel   
2015-10-05 14:38   
fixed in EasyCwmp-1.1.7

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
68 [easycwmp] Bug minor have not tried 2015-07-13 17:51 2015-10-05 14:37
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:  
e-mail notification:
Summary: build error (is_error() in json.c) when compiling with the last version of json-c
Description: is_error() function is a cause of a build error when compiling easycwmp with the last version of json-c
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000283)
mohamed.kallel   
2015-09-30 18:54   
in the old version of json. The is_error is defined in this way:

#define is_error(ptr) (ptr == NULL).

So we can remove the check of is_error in easycwmp
(0000289)
mohamed.kallel   
2015-10-05 14:37   
fixed in EasyCwmp-1.1.7

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
80 [easycwmp] Help minor always 2015-09-01 15:44 2015-09-29 17:51
Reporter: Indu 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:  
e-mail notification:
Summary: Easycwmp is unable to send inform message to the freeACS server
Description: We are using FreeACS as ACS server (ubuntu) and easycwmp as TR-069 client on centos.

Started ubus via command:
/usr/sbin/ubusd -s /tmp/ubus.sock

Ran easycwmp using command:
/usr/sbin/easycwmpd -f -b

The client is connected to the server but not sending inform message. The connection is closed with the error message:
mxml: Mismatched close tag </head> under parent <link>!
rpc_inform(230): parse Inform xml message from ACS failed
* Closing connection #0

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

[root@localhost easycwmp]# vi /etc/config/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
        option logging_level '3'

config acs
# option url http://192.168.1.110:8080/openacs/acs
        option url http://10.19.147.11/web/login
        option username "admin"
        option password "xaps"
# option parameter_key ''
        option periodic_enable 'true'
        option periodic_interval '180'
        option periodic_time '0001-01-01T00:00:00Z'

config device
        option manufacturer easycwmp
        option oui jwnr2000
        option product_class easycwmp
        option serial_number FFFFFF123456
        option hardware_version example_hw_version
        option software_version example_sw_version
        option username easycwmp
        option password easycwmp
~
 

Logs:
[root@localhost log]# /usr/sbin/easycwmpd -f -g
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://10.19.147.11:80/login
config_init_acs(165):: easycwmp.@acs[0].username=admin
config_init_acs(177):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(183):: easycwmp.@acs[0].periodic_interval=100
config_init_acs(189):: easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z
main(287): ubus initialization failed
+++ HTTP SERVER CONFIGURATION +++
NOT BOUND TO IP
port: '7547'
--- HTTP SERVER CONFIGURATION ---
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(43):: url: http://10.19.147.11:80/login
http_client_init(49):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
* About to connect() to 10.19.147.11 port 80 (#0)
* Trying 10.19.147.11... * connected
* Connected to 10.19.147.11 (10.19.147.11) port 80 (#0)
> POST /login HTTP/1.1
Host: 10.19.147.11
User-Agent: easycwmp
Content-Type: text/html; charset=utf-8
Content-Length: 3190
Expect: 100-continue

< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
* Added cookie JSESSIONID="3BE6A8AC3168EEAEDCC24637E5720D7D" for domain 10.19.147.11, path /, expire 0
< Set-Cookie: JSESSIONID=3BE6A8AC3168EEAEDCC24637E5720D7D; Path=/; HttpOnly
< Content-Type: text/html;charset=utf-8
< Transfer-Encoding: chunked
< Date: Mon, 31 Aug 2015 12:58:59 GMT
<
+++ RECEIVED HTTP RESPONSE (PART) +++
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
        <head>
                <title>FreeACS Web Web | login</title>
                <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
                <link rel="icon" type="image/png" href="images/fusion.ico">
                <link rel="stylesheet" type="text/css" href="css/xapsweb.css" />
                <link rel="stylesheet" type="text/css" href="css/context.css" />
                <link rel="stylesheet" type="text/css" href="css/colors/default.css" />
                <link rel="stylesheet" href="css/smoothness/jquery-ui-1.8.11.custom.css" type="text/css" />
                <script src="javascript/jquery-1.4.4.js"></script>
                <script src="javascript/jquery.sha1.js"></script>
                <script>
                        jQuery(document).ready(function($){
                                $("input[type='text']:first", document.form1).focus();
                                $("#loginForm").submit(function(){
                                        $loginPassword = $("input[name='password']:first");
                                        if($loginPassword.val()!=""){
                                                $loginPassword.val($.sha1($loginPassword.val()));
                                                return true;
                                        }
                                        return false;
                                });
                        });
                </script>
        </head>
        <body>
                <center>
                        <div class="center_box" id="bodylogon">
                                <form ac--- RECEIVED HTTP RESPONSE (PART) ---
+++ RECEIVED HTTP RESPONSE (PART) +++
tion="/web/login" id="loginForm" method="post" class="unit">
                                        <fieldset id="logondiv">
                                                <legend>FreeACS</legend>
                                                <table>
                                                        <tr>
                                                                <td align="right">
                                                                        User:
                                                                </td>
                                                                <td>
                                                                        <input name="username" type="text" maxlength="50" style="width:120px;" />
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td align="right">
                                                                        Password:
                                                                </td>
                                                                <td>
                                                                        <input name="password" type="password" maxlength="50" style="width:120px;" />
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td align="right" colspan="2">
                                                                        <input name="login" type="submit" value="Login" />
                                                                </td>
                                                        </tr>
                                                </table>
                                        </fieldset>
                                        <font color="red"></font>
                                </form>
                        </div>
                </center>
        </body>
</html>
--- RECEIVED HTTP RESPONSE (PART) ---
* Connection #0 to host 10.19.147.11 left intact
+++ RECEIVED HTTP RESPONSE +++
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
        <head>
                <title>FreeACS Web Web | login</title>
                <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
                <link rel="icon" type="image/png" href="images/fusion.ico">
                <link rel="stylesheet" type="text/css" href="css/xapsweb.css" />
                <link rel="stylesheet" type="text/css" href="css/context.css" />
                <link rel="stylesheet" type="text/css" href="css/colors/default.css" />
                <link rel="stylesheet" href="css/smoothness/jquery-ui-1.8.11.custom.css" type="text/css" />
                <script src="javascript/jquery-1.4.4.js"></script>
                <script src="javascript/jquery.sha1.js"></script>
                <script>
                        jQuery(document).ready(function($){
                                $("input[type='text']:first", document.form1).focus();
                                $("#loginForm").submit(function(){
                                        $loginPassword = $("input[name='password']:first");
                                        if($loginPassword.val()!=""){
                                                $loginPassword.val($.sha1($loginPassword.val()));
                                                return true;
                                        }
                                        return false;
                                });
                        });
                </script>
        </head>
        <body>
                <center>
                        <div class="center_box" id="bodylogon">
                                <form action="/web/login" id="loginForm" method="post" class="unit">
                                        <fieldset id="logondiv">
                                                <legend>FreeACS</legend>
                                                <table>
                                                        <tr>
                                                                <td align="right">
                                                                        User:
                                                                </td>
                                                                <td>
                                                                        <input name="username" type="text" maxlength="50" style="width:120px;" />
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td align="right">
                                                                        Password:
                                                                </td>
                                                                <td>
                                                                        <input name="password" type="password" maxlength="50" style="width:120px;" />
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td align="right" colspan="2">
                                                                        <input name="login" type="submit" value="Login" />
                                                                </td>
                                                        </tr>
                                                </table>
                                        </fieldset>
                                        <font color="red"></font>
                                </form>
                        </div>
                </center>
        </body>
</html>
--- RECEIVED HTTP RESPONSE ---
mxml: Mismatched close tag </head> under parent <link>!
rpc_inform(230): parse Inform xml message from ACS failed
* Closing connection #0
Tags:
Steps To Reproduce: 1) Run FreeAcs server.
2)Start ubus via command:
/usr/sbin/ubusd -s /tmp/ubus.sock
3)Run easycwmp using command:
/usr/sbin/easycwmpd -f -b
Additional Information:
Attached Files:
Notes
(0000276)
mohamed.kallel   
2015-09-21 22:21   
Your free acs does not return a valid inform response message.

Please check if you have put a valid url in the easycwmp config

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
82 [easycwmp] Enhancement feature N/A 2015-09-10 10:19 2015-09-26 12:12
Reporter: feckert Platform:  
Assigned To: mohamed.kallel OS:  
Priority: urgent OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Username and Password send during file download
Description: Hello,

I am using the genieacs as acs. I have set up auth for download files from the acs. But the acs does not send any password and username in it soap message. I saw in the source code that easycwmp extract this information for donwloading
request from the soap message.
I dont know if this is the default standard as written in the tr069 specification. I made an enhancement to use username and passowrd from acs.config section to send this password and username if the soap message does not have any values. I have also tested it and it works. I have added a patch.

Kind regards

Flo
Tags:
Steps To Reproduce:
Additional Information:
Attached Files: system_easycwmp_patches_004-TDT-add-username-password-on-file-download.patch (925 bytes) 2015-09-10 10:19
https://support.easycwmp.org/file_download.php?file_id=50&type=bug
Notes
(0000278)
mohamed.kallel   
2015-09-21 22:37   
This out of the standard. I can not merge it.
According to the standard, If you want to us authentication in the download then the ACS should send credentials in the Download message to the CPE
(0000280)
feckert   
2015-09-24 09:49   
OK we could close this issue :-(

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
79 [easycwmp] General minor always 2015-08-27 18:49 2015-09-21 22:44
Reporter: mariofur 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:  
e-mail notification:
Summary: When trying with the web example fails
Description: Hello new.

I'm afraid to be stupid, but trying with the last step to get the desired message I get another error like this:

flags:WARN getopt: wrong choice <<s>>(translated form the spanish, may be is not exact)
getopt: wrong choice -- <<o>>
getopt: wrong choice -- <<n>>
-j -- 'get' 'value' 'InternetGatewayDevice.'
flags:FATAL unable to parse provided options with getopt.
Tags:
Steps To Reproduce: If everything is configured properly when you run:

bash /usr/sbin/easycwmp -–json get value InternetGatewayDevice.

You should see some output like this:

{ "parameter": "InternetGatewayDevice.DeviceInfo.Manufacturer", "fault_code": "", "value": "easycwmp", "type": "xsd:string" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.ManufacturerOUI", "fault_code": "", "value": "FFFFFF", "type": "xsd:string" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.ProductClass", "fault_code": "", "value": "easycwmp", "type": "xsd:string" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.SerialNumber", "fault_code": "", "value": "FFFFFF123456", "type": "xsd:string" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.HardwareVersion", "fault_code": "", "value": "example_hw_version", "type": "xsd:string" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.SoftwareVersion", "fault_code": "", "value": "example_sw_version", "type": "xsd:string" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.UpTime", "fault_code": "", "value": "429120", "type": "xsd:string" }

Of course, I can't see this output...
Additional Information: Thanx for your time....
Attached Files:
Notes
(0000274)
mohamed.kallel   
2015-08-27 22:15   
see the issue 0000077. It could hep you.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
78 [easycwmp] General minor have not tried 2015-08-26 17:00 2015-08-27 22:18
Reporter: mariofur 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:  
e-mail notification:
Summary: Error when "make" libubox.
Description: Hi All.
I've been trying to install like documentation says, but I get an error when I try to "make" the "libubox". This error says specifically this:" In function '__blobmsg_add_json':" and in the next line I see:"error: implicit declaration of funcition 'is_error' [-Werror=implicit-function-declaration]"

Could someone help me???

Thanks in advance.
Tags:
Steps To Reproduce: general

easycwmp will be placed in /opt/dev/ directory. All other dependencies will be installed in /opt/git/ directory.

Configure USER and GROUP variables that we are going to use:

USER=your_user
GROUP=your_group

Create directories:

sudo mkdir -p /opt/{dev,git}
sudo chown -R $USER:$GROUP /opt/{dev,git}

 

curl

Your distribution should already have curl development package. Use that for now.

 

json-c

git clone git://github.com/json-c/json-c.git /opt/git/json-c
cd /opt/git/json-c/

Generate configuration files:

autoreconf -i

Configure:

./configure --prefix=/usr

Build:

make

Install:

sudo make install
sudo ln -sf /usr/include/json-c /usr/include/json

 

libubox

Get the sources:

git clone git://nbd.name/luci2/libubox.git /opt/git/libubox
cd /opt/git/libubox/

Configure:

cmake CMakeLists.txt -DBUILD_LUA=OFF

Build:

make
Additional Information:
Attached Files:
Notes
(0000272)
mohamed.kallel   
2015-08-26 23:41   
This is because you are building libubox with a newest version of json-c.
try to rebuild json-c with version 0.11
or contact the libubox guys
(0000273)
mariofur   
2015-08-27 17:13   
That's it. Thanx for your help!

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
77 [easycwmp] Help major always 2015-08-24 15:08 2015-08-26 10:12
Reporter: kewal agrawal Platform: linux  
Assigned To: mohamed.kallel OS: ubuntu  
Priority: high OS Version: 14.04 LTS  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: error with bash /usr/sbin/easycwmp -–json get value InternetGatewayDevice. command
Description: I get the following error while running the command

bash /usr/sbin/easycwmp -–json get value InternetGatewayDevice.

flags:WARN getopt: invalid option -- '�'
getopt: invalid option -- '�'
getopt: invalid option -- '�'
getopt: invalid option -- 's'
getopt: invalid option -- 'o'
getopt: invalid option -- 'n'
 -j -- 'get' 'value' 'InternetGatewayDevice.'
flags:FATAL unable to parse provided options with getopt.
Tags:
Steps To Reproduce: I performed all the steps given in http://www.easycwmp.org/index.php/manual and when i tried bash /usr/sbin/easycwmp -–json get value InternetGatewayDevice. I got that message.
Additional Information: Also when I tried running MAKE inside cd /opt/dev/easycwmp/ folder I got the following output

Making all in bin
make[1]: Entering directory `/opt/dev/easycwmp/bin'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/dev/easycwmp/bin'
make[1]: Entering directory `/opt/dev/easycwmp'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/opt/dev/easycwmp'


Is this right? I think there is some problem while running the make
Attached Files:
Notes
(0000267)
mohamed.kallel   
2015-08-24 21:03   
remove the "--json" from the command. it's useless in the newest version. I have to update the manual.

bash /usr/sbin/easycwmp get value InternetGatewayDevice.
(0000268)
kewal agrawal   
2015-08-25 07:29   
Thanks for such a prompt reply mohamed..it worked..just out of curiosity is the makefile inside easycwmp supposed to give the same output as I mentioned above??
(0000269)
mohamed.kallel   
2015-08-25 11:04   
(Last edited: 2015-08-25 11:05)
If the easycwmp is already compiled then yes I get the same output:

user@user /opt/dev/easycwmp $ make
Making all in bin
make[1]: Entering directory `/opt/dev/easycwmp/bin'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/dev/easycwmp/bin'
make[1]: Entering directory `/opt/dev/easycwmp'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/opt/dev/easycwmp'






If the easycwmp is not already compiled then I get the following output:

user@user /opt/dev/easycwmp $ make clean
Making all in bin
make[1]: Entering directory `/opt/dev/easycwmp/bin'
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.6\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.6\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.6\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-backup.o -MD -MP -MF .deps/easycwmpd-backup.Tpo -c -o easycwmpd-backup.o `test -f '../src/backup.c' || echo './'`../src/backup.c
mv -f .deps/easycwmpd-backup.Tpo .deps/easycwmpd-backup.Po
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.6\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.6\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.6\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-config.o -MD -MP -MF .deps/easycwmpd-config.Tpo -c -o easycwmpd-config.o `test -f '../src/config.c' || echo './'`../src/config.c
mv -f .deps/easycwmpd-config.Tpo .deps/easycwmpd-config.Po
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.6\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.6\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.6\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-cwmp.o -MD -MP -MF .deps/easycwmpd-cwmp.Tpo -c -o easycwmpd-cwmp.o `test -f '../src/cwmp.c' || echo './'`../src/cwmp.c
mv -f .deps/easycwmpd-cwmp.Tpo .deps/easycwmpd-cwmp.Po
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.6\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.6\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.6\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-digestauth.o -MD -MP -MF .deps/easycwmpd-digestauth.Tpo -c -o easycwmpd-digestauth.o `test -f '../src/digestauth.c' || echo './'`../src/digestauth.c
mv -f .deps/easycwmpd-digestauth.Tpo .deps/easycwmpd-digestauth.Po
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.6\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.6\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.6\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-external.o -MD -MP -MF .deps/easycwmpd-external.Tpo -c -o easycwmpd-external.o `test -f '../src/external.c' || echo './'`../src/external.c
mv -f .deps/easycwmpd-external.Tpo .deps/easycwmpd-external.Po
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.6\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.6\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.6\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-easycwmp.o -MD -MP -MF .deps/easycwmpd-easycwmp.Tpo -c -o easycwmpd-easycwmp.o `test -f '../src/easycwmp.c' || echo './'`../src/easycwmp.c
mv -f .deps/easycwmpd-easycwmp.Tpo .deps/easycwmpd-easycwmp.Po
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.6\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.6\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.6\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-http.o -MD -MP -MF .deps/easycwmpd-http.Tpo -c -o easycwmpd-http.o `test -f '../src/http.c' || echo './'`../src/http.c
../src/http.c: In function ‘http_get_response’:
../src/http.c:121:2: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=]
  DDF("%.*s", size * rxed, buffer);
  ^
../src/http.c:121:2: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘void *’ [-Wformat=]
mv -f .deps/easycwmpd-http.Tpo .deps/easycwmpd-http.Po
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.6\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.6\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.6\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-json.o -MD -MP -MF .deps/easycwmpd-json.Tpo -c -o easycwmpd-json.o `test -f '../src/json.c' || echo './'`../src/json.c
../src/json.c: In function ‘json_common_get_string’:
../src/json.c:30:2: warning: ‘json_object_object_get’ is deprecated (declared at /usr/include/json-c/json_object.h:295) [-Wdeprecated-declarations]
  js_tmp = json_object_object_get(js_obj, key);
  ^
mv -f .deps/easycwmpd-json.Tpo .deps/easycwmpd-json.Po
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.6\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.6\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.6\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-log.o -MD -MP -MF .deps/easycwmpd-log.Tpo -c -o easycwmpd-log.o `test -f '../src/log.c' || echo './'`../src/log.c
mv -f .deps/easycwmpd-log.Tpo .deps/easycwmpd-log.Po
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.6\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.6\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.6\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-md5.o -MD -MP -MF .deps/easycwmpd-md5.Tpo -c -o easycwmpd-md5.o `test -f '../src/md5.c' || echo './'`../src/md5.c
mv -f .deps/easycwmpd-md5.Tpo .deps/easycwmpd-md5.Po
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.6\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.6\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.6\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-time.o -MD -MP -MF .deps/easycwmpd-time.Tpo -c -o easycwmpd-time.o `test -f '../src/time.c' || echo './'`../src/time.c
mv -f .deps/easycwmpd-time.Tpo .deps/easycwmpd-time.Po
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.6\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.6\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.6\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-ubus.o -MD -MP -MF .deps/easycwmpd-ubus.Tpo -c -o easycwmpd-ubus.o `test -f '../src/ubus.c' || echo './'`../src/ubus.c
mv -f .deps/easycwmpd-ubus.Tpo .deps/easycwmpd-ubus.Po
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.6\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.6\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.6\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-xml.o -MD -MP -MF .deps/easycwmpd-xml.Tpo -c -o easycwmpd-xml.o `test -f '../src/xml.c' || echo './'`../src/xml.c
mv -f .deps/easycwmpd-xml.Tpo .deps/easycwmpd-xml.Po
gcc -D_THREAD_SAFE -D_REENTRANT -g -O2 -o easycwmpd easycwmpd-backup.o easycwmpd-config.o easycwmpd-cwmp.o easycwmpd-digestauth.o easycwmpd-external.o easycwmpd-easycwmp.o easycwmpd-http.o easycwmpd-json.o easycwmpd-log.o easycwmpd-md5.o easycwmpd-time.o easycwmpd-ubus.o easycwmpd-xml.o -luci -lubox -lubus -lmicroxml -lpthread -lcurl -ljson-c
make[1]: Leaving directory `/opt/dev/easycwmp/bin'
make[1]: Entering directory `/opt/dev/easycwmp'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/opt/dev/easycwmp'
user@user /opt/dev/easycwmp $

(0000270)
kewal agrawal   
2015-08-25 14:19   
oh yes I had already compiled it...thanks again mohamed..

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
75 [easycwmp] Help trivial N/A 2015-08-19 08:30 2015-08-25 11:08
Reporter: javed Platform: linux  
Assigned To: mohamed.kallel OS: ubuntu  
Priority: high OS Version: 14.04  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: disabling inform response in perl-acs
Description: I want disable inform-response from perl-acs,
Since I'm not used to perl,one quick thing which i tried was commenting all occurrences of "Inform response" form perl-acs.

After this I'm getting inform response but not in right format(inform retry is happening),
But I want to block inform-response completely.Can anyone help me in this?
Tags:
Steps To Reproduce: -
Additional Information: -
Attached Files:
Notes
(0000264)
mohamed.kallel   
2015-08-21 12:24   
If you want to avoid the check of the inform response message in easycwmp, then just you have to add "return 0;" at the beginning of the function:
int xml_parse_inform_response_message(char *msg_in) in the xml.c file

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
70 [easycwmp] Bug minor always 2015-07-16 21:19 2015-07-23 13:03
Reporter: tarakt Platform: OpenWRT  
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:  
e-mail notification:
Summary: Event code responded after firmware upgrade is not accurate
Description: In EasyCWMP-1.1.5 version the CPE does not respond with the right event code after firmware upgrade. The CPE receives the request for firmware upgrade, successfully upgrades but after the upgrade the '7 Transfer complete' event code and 'M Download' event code is missing from the inform.

The inform response from CPE after firmware upgrade is below. Event codes are not correct

<?xml version="1.0" encoding="UTF-8"?><cwmp:Inform xmlns:cwmp="urn:dslforum-org:cwmp-1-2" 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"><DeviceId><Manufacturer>SmartRG</Manufacturer>
<OUI>00236A</OUI>
<ProductClass>SR400ac</ProductClass>
<SerialNumber>00236AA37BC5</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>2015-07-16T12:09:02-07:00</CurrentTime>
<RetryCount>2</RetryCount>
<ParameterList soap_enc:arrayType="cwmp:ParameterValueStruct[18]"><ParameterValueStruct><Name>Device.DeviceInfo.Description</Name>
<Value xsi:type="xsd:string">Gigabit Residential Gateway</Value>
</ParameterValueStruct><ParameterValueStruct><Name>Device.DeviceInfo.DeviceCategory</Name>
<Value xsi:type="xsd:string">Router</Value>
</ParameterValueStruct><ParameterValueStruct><Name>Device.DeviceInfo.HardwareVersion</Name>
<Value xsi:type="xsd:string">B2</Value>
</ParameterValueStruct><ParameterValueStruct><Name>Device.DeviceInfo.Manufacturer</Name>
<Value xsi:type="xsd:string">SmartRG</Value>
</ParameterValueStruct>

Tags:
Steps To Reproduce: Try firmware upgrade.
Additional Information: The log on CPE

Thu Jul 16 12:03:27 2015 daemon.notice easycwmpd: add event '2 PERIODIC'
Thu Jul 16 12:03:27 2015 daemon.notice easycwmpd: start session
Thu Jul 16 12:03:27 2015 daemon.notice easycwmpd: configured acs url http://test52.acs.smartrg.com/
Thu Jul 16 12:03:27 2015 daemon.notice easycwmpd: external script init
Thu Jul 16 12:03:27 2015 daemon.notice easycwmpd: external: execute inform parameter
Thu Jul 16 12:03:28 2015 daemon.notice easycwmpd: send Inform
Thu Jul 16 12:03:28 2015 daemon.notice easycwmpd: receive InformResponse from the ACS
Thu Jul 16 12:03:28 2015 daemon.notice easycwmpd: send empty message to the ACS
Thu Jul 16 12:03:28 2015 daemon.notice easycwmpd: received Download method from the ACS
Thu Jul 16 12:03:28 2015 daemon.notice easycwmpd: add download: delay = 3 sec, url = http://192.168.1.20/sr400, FileType = '1 Firmware Upgrade Image', CommandKey = '6'
Thu Jul 16 12:03:28 2015 daemon.notice easycwmpd: send DownloadResponse to the ACS
Thu Jul 16 12:03:32 2015 daemon.notice easycwmpd: receive empty message from the ACS
Thu Jul 16 12:03:32 2015 daemon.notice easycwmpd: external: execute apply service
Thu Jul 16 12:03:32 2015 daemon.notice easycwmpd: external script exit
Thu Jul 16 12:03:32 2015 daemon.notice easycwmpd: end session success
Thu Jul 16 12:03:32 2015 daemon.notice easycwmpd: start download url = http://192.168.1.20/sr400, FileType = '1 Firmware Upgrade Image', CommandKey = '6'
Thu Jul 16 12:03:32 2015 daemon.notice easycwmpd: external script init
Thu Jul 16 12:03:32 2015 daemon.notice easycwmpd: external: execute download
Thu Jul 16 12:03:33 2015 daemon.notice easycwmpd: add event '7 TRANSFER COMPLETE'
Thu Jul 16 12:03:33 2015 daemon.notice easycwmpd: add event 'M Download'
Thu Jul 16 12:03:33 2015 daemon.notice easycwmpd: external: execute apply download 1 Firmware Upgrade Image
Jul 16 12:03:34 udpxy[2281]: udpxy 1.0-23.9 (prod) standard [Linux 3.10.49 armv7l] is exiting with rc=[0]
Attached Files: Firmware_1.1.5 (59,595 bytes) 2015-07-17 21:37
https://support.easycwmp.org/file_download.php?file_id=45&type=bug
After_Firmware_1.1.5 (54,624 bytes) 2015-07-17 21:37
https://support.easycwmp.org/file_download.php?file_id=46&type=bug
Download1.pdf (77,635 bytes) 2015-07-17 21:38
https://support.easycwmp.org/file_download.php?file_id=47&type=bug
Download1_complete.pdf (70,798 bytes) 2015-07-17 21:39
https://support.easycwmp.org/file_download.php?file_id=48&type=bug
Notes
(0000247)
tarakt   
2015-07-16 21:23   
The correct inform after firmware upgrade should have below event codes.

<OUI>00904C</OUI>
<ProductClass>SR400ac</ProductClass>
<SerialNumber>00904C0FF4B3</SerialNumber>
</DeviceId>
<Event soap_enc:arrayType="cwmp:EventStruct[3]">
<EventStruct>
<EventCode>7 TRANSFER COMPLETE</EventCode>
<CommandKey/>
</EventStruct>
<EventStruct>
<EventCode>M Download</EventCode>
<CommandKey>A</CommandKey>
</EventStruct>
<EventStruct>
<EventCode>1 BOOT</EventCode>
<CommandKey/>
</EventStruct>
</Event>
<MaxEnvelo
(0000248)
mohamed.kallel   
2015-07-17 15:36   
Traffic capture please
did you test this issue with old version? does this issue occur in the old version like version 1.1.2?
(0000249)
tarakt   
2015-07-17 21:43   
Yes, in the earlier version of EC i.e., 1.1.2 version firmware upgrade worked fine. You can see in the traffic capture log Download1.pdf and Download1_complete.pdf .

But in the current version 1.1.5 you can see the return event codes after firmware download is not right. Log Firmware_1.1.5.pdf and After_Firmware_1.1.5.pdf shows the missing event code.
(0000250)
mohamed.kallel   
2015-07-20 16:26   
Do you have the same problem with the file type "3 Vendor Configuration File"?
(0000251)
tarakt   
2015-07-21 00:04   
I have not test "3 Vendor Configuration File".
(0000252)
mohamed.kallel   
2015-07-23 13:03   
fixed in EasyCwmp-1.1.6

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
46 [easycwmp] Question minor always 2015-03-30 21:47 2015-07-21 10:36
Reporter: adamfox Platform: ARM  
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:  
e-mail notification:
Summary: easycwmpd: error occured when trying to write to the pipe
Description: I am posting this as a question, in case others have run into (and perhaps solved?) this issue already.

I am running easycwmpd on OpenWRT (Barrier Breaker), using the OpenWRT init script provided in the easycwmp package:

boot() {
        service_start /usr/sbin/easycwmpd --boot
}

start() {
    service_start /usr/sbin/easycwmpd --getrpcmethod
}

stop() {
    service_stop /usr/sbin/easycwmpd
}



When I run this script manually from the command-line, easycwmpd starts up normally and informs to my ACS.

However, when this init script is executed by UCI (either at boot time, or following a re-config), easycwmpd fails to inform to ACS (due to a failure writing to pipe):


Thu Mar 26 11:33:36 2015 daemon.notice easycwmpd: add event '2 PERIODIC'
Thu Mar 26 11:33:36 2015 daemon.notice easycwmpd: start session
Thu Mar 26 11:33:36 2015 daemon.notice easycwmpd: configured acs url http://test.acs.fudor.com/v1/
Thu Mar 26 11:33:36 2015 daemon.notice easycwmpd: external script init
Thu Mar 26 11:33:36 2015 daemon.notice easycwmpd: sending Inform failed
Thu Mar 26 11:33:36 2015 daemon.notice easycwmpd: external: execute apply service
Thu Mar 26 11:33:36 2015 daemon.crit easycwmpd: error occured when trying to write to the pipe
Thu Mar 26 11:33:36 2015 daemon.crit easycwmpd: error occured when trying to write to the pipe
Thu Mar 26 11:33:36 2015 daemon.notice easycwmpd: external script exit
Thu Mar 26 11:33:36 2015 daemon.crit easycwmpd: error occured when trying to write to the pipe
Thu Mar 26 11:33:36 2015 daemon.notice easycwmpd: end session failed
Thu Mar 26 11:33:36 2015 daemon.notice easycwmpd: retry session in 3840 sec, RetryCount = 692

Tags:
Steps To Reproduce: 1) integrate easycwmp into OpenWRT per PIVA instructions (http://easycwmp.org/index.php/manual)
2) reboot device
3) logread | grep easycwmp
Additional Information:
Attached Files:
Notes
(0000152)
adamfox   
2015-04-02 06:40   
On the pipe write failure, errno gets set to 32 (Broken Pipe). I added a signal handler, which shows a SIGCHLD prior to the pipe write failure. So it looks like the child is dying right after the exec. I don't know yet what UCI is doing to cause this. From the log:

Wed Apr 1 14:13:38 2015 daemon.notice easycwmpd: add event '1 BOOT'
Wed Apr 1 14:13:38 2015 daemon.notice easycwmpd: configuration (re)load
Wed Apr 1 14:13:38 2015 user.emerg syslog: config_init_local(54):: easycwmp.@local[0].interface=eth0.2
Wed Apr 1 14:13:38 2015 user.emerg syslog: config_init_local(82):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
Wed Apr 1 14:13:38 2015 user.emerg syslog: config_init_local(64):: easycwmp.@local[0].port=7574
Wed Apr 1 14:13:38 2015 user.emerg syslog: config_init_local(76):: easycwmp.@local[0].password=admin
Wed Apr 1 14:13:38 2015 user.emerg syslog: config_init_local(70):: easycwmp.@local[0].username=admin
Wed Apr 1 14:13:38 2015 user.emerg syslog: config_init_acs(177):: easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z
Wed Apr 1 14:13:38 2015 user.emerg syslog: config_init_acs(147):: easycwmp.@acs[0].url=http://test.acs.fudor.com/v1/
Wed Apr 1 14:13:38 2015 daemon.notice easycwmpd: daemon started
Wed Apr 1 14:13:38 2015 user.emerg syslog: config_init_acs(159):: easycwmp.@acs[0].password=admin123
Wed Apr 1 14:13:38 2015 user.emerg syslog: config_init_acs(153):: easycwmp.@acs[0].username=admin123
Wed Apr 1 14:13:38 2015 daemon.notice easycwmpd: external: execute inform device_id
Wed Apr 1 14:13:38 2015 daemon.crit easycwmpd: sig_handler(): rx signo 17
Wed Apr 1 14:13:38 2015 daemon.crit easycwmpd: error occured when trying to write to the pipe (errno=32): Broken pipe
Wed Apr 1 14:13:38 2015 daemon.notice easycwmpd: external script exit
Wed Apr 1 14:13:38 2015 daemon.crit easycwmpd: error occured when trying to write to the pipe (errno=32): Broken pipe


Are there many others running easycwmp in a recent release of OpenWRT?
(0000153)
mohamed.kallel   
2015-04-02 17:31   
(Last edited: 2015-04-02 17:32)
could you provide more information.
change this line in the /usr/sbin/easycwmp script:
handle_action 2>/dev/null
to
handle_action

and then execute the command:
easycwmp json_input

what's the output of this command?

(0000154)
adamfox   
2015-04-02 20:34   
I have modified /usr/sbin/easycwmp as requested.

SR400-linux: # easycwmp json_input
easycwmp>
(0000155)
adamfox   
2015-04-03 21:02   
I am able to reproduce the problem on the command-line with the following init script:

SR400-linux: ~ # cat /etc/init.d/easycwmpd
#!/bin/sh /etc/rc.common
# Copyright (C) 2012-2014 OpenWrt.org

START=99
STOP=50
USE_PROCD=1

start_service() {
    procd_open_instance
    procd_set_param command /usr/sbin/easycwmpd -f --boot
    procd_close_instance
}

SR400-linux: ~ #


I then start the daemon with:

SR400-linux: ~ #
SR400-linux: ~ # /etc/init.d/easycwmpd start
SR400-linux: ~ #


In the log:

Fri Apr 3 11:57:53 2015 daemon.notice easycwmpd: start session
Fri Apr 3 11:57:53 2015 daemon.notice easycwmpd: configured acs url http://test52.acs.smartrg.com/v1/
Fri Apr 3 11:57:53 2015 daemon.crit easycwmpd: external_init(): execvp: /bin/sh /usr/sbin/easycwmp --json json_input
Fri Apr 3 11:57:53 2015 daemon.notice easycwmpd: sending Inform failed
Fri Apr 3 11:57:53 2015 daemon.notice easycwmpd: external: execute apply service
Fri Apr 3 11:57:53 2015 daemon.crit easycwmpd: error occured when trying to write to the pipe (errno=32): Broken pipe
Fri Apr 3 11:57:53 2015 daemon.crit easycwmpd: error occured when trying to write to the pipe (errno=32): Broken pipe
Fri Apr 3 11:57:53 2015 daemon.notice easycwmpd: external script exit
Fri Apr 3 11:57:53 2015 daemon.crit easycwmpd: error occured when trying to write to the pipe (errno=32): Broken pipe
Fri Apr 3 11:57:53 2015 daemon.notice easycwmpd: end session failed
(0000156)
mohamed.kallel   
2015-04-04 19:19   
(Last edited: 2015-04-04 19:22)
why you have added
 procd_open_instance
and
 procd_close_instance

They could be the cause of the problem
Try to start without them and see if you got the same problem

(0000157)
adamfox   
2015-04-06 19:51   
The problem exists with the /etc/init.d/easycwmpd that is included with easycwmp-1.1.1.

During my investigation, I found that I was able to reproduce the issue on the command-line by using procd_open_instance and procd_close_instance. I included that info in case it was useful to someone else investigating this same problem.

I will continue investigating.
(0000158)
mohamed.kallel   
2015-04-06 22:48   
Is it possible to have remote access to your equipment for investigation.

you can send ip address and credentials to my email address.

you can find my email address in the source code
(0000159)
adamfox   
2015-04-07 19:27   
I suspect that the issue is caused by a bug in procd on Barrier Breaker. I see that procd has been modified substantially in Chaos Calmer. I will try building the newer version of procd and see if it helps.
(0000160)
mohamed.kallel   
2015-04-08 11:12   
(Last edited: 2015-04-08 11:19)
I tried to run easycwmpd on your router with "/usr/sbin/easycwmpd --getrpcmethod" and the easycwmpd run properly without any problem (there is no broken pipe problem)

I tried also with the current /etc/init.d/easycwmpd script on your router and it works also (except the logger problem)

SO the problem is out of easycwmpd. The cause could be from the procd. May be procd is avoiding easycwmpd to open pipe to shell script execution. You can see that in external.c in the external_init() function. This function make a fork and open a pipe in and pipe out to communicate with shell scripts of easycwmp. May be the procd is causing some problem to the fork or to the pipes. You can contact procd maintainers for more info. Please keep me involved with your investigation results.

Please think to use easycwmp-1.1.2 instead of easycwmp-1.1.1
Please think to use a cache solution for a big data model especially when the GetParameterValue of the whole data model tree become more and more slow

(0000161)
mohamed.kallel   
2015-04-08 15:28   
(Last edited: 2015-04-08 15:29)
By the way you have a bug

SR400ac-linux: ~ # easycwmp get name "Device.ManagementServer." 0
{ "parameter": "Device.", "writable": "0" } <<============= Not good, Should not be displayed
{ "parameter": "Device.RootDataModelVersion", "writable": "0" } <<============= Not good, Should not be displayed
{ "parameter": "Device.InterfaceStackNumberOfEntries", "writable": "0" } <<============= Not good, Should not be displayed
{ "parameter": "Device.ManagementServer.", "writable": "0" }
{ "parameter": "Device.ManagementServer.EnableCWMP", "writable": "1" }
{ "parameter": "Device.ManagementServer.URL", "writable": "1" }
{ "parameter": "Device.ManagementServer.Username", "writable": "1" }
{ "parameter": "Device.ManagementServer.Password", "writable": "1" }
{ "parameter": "Device.ManagementServer.PeriodicInformEnable", "writable": "1" }
{ "parameter": "Device.ManagementServer.PeriodicInformInterval", "writable": "1" }
{ "parameter": "Device.ManagementServer.PeriodicInformTime", "writable": "1" }
{ "parameter": "Device.ManagementServer.ConnectionRequestURL", "writable": "0" }
{ "parameter": "Device.ManagementServer.ConnectionRequestUsername", "writable": "1" }
{ "parameter": "Device.ManagementServer.ConnectionRequestPassword", "writable": "1" }
{ "parameter": "Device.ManagementServer.ParameterKey", "writable": "0" }


This is because you have added params under root (Device.) in the device_root script. The following line was edited by you inorder to support parameters under the root (Device.):

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

The above line should be edited in this way

 case "$1" in ""|"$DMROOT."|"$DMROOT."*[^.])

in order to support params under the root (Device.)

(0000163)
mohamed.kallel   
2015-04-08 16:59   
The name of the entry function of the device_root script should not be

entry_execute_method_root_Device()

it should be

entry_execute_method_root()

You should not change it
(0000164)
mohamed.kallel   
2015-04-08 17:00   
Also you have to change the mechanisme of the script ( because you have added parameter under root(Device.) ), otherwise you will get wrong output in the:

easycwmp get name "" 1
(0000165)
adamfox   
2015-04-09 00:33   
Yes, the problem only occurs when easycwmpd is started by procd. I will try to test with the latest version of procd and see if the problem remains.

Do you know of others running easycwmpd in OpenWRT? If the issue is caused by procd, I would expect that all OpenWRT users would be affected.

Thanks for finding the bugs in my data model and scripts. I will fix them.
(0000185)
adamfox   
2015-04-14 02:19   
I made a build with the last version of freecwmp, and I do not see this problem. Obviously the easycwmpd code has diverged significantly since then. I will continue investigating.

Are other people successfully running easycwmpd in OpenWRT? If so, I would like to know the working version of procd.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
61 [easycwmp] Question major always 2015-06-24 19:48 2015-07-13 17:40
Reporter: lferrarotti 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:  
e-mail notification:
Summary: Parse Inform xml message from ACS failed
Description: When we connect to an ACS server that is using basic authentication, after authorization we received a parse error.
The FaultCode is 8003 with an invalid arguments.
The problem is related to an error in configuration of easycwmp or the ACS server.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files: easycwmp-soap.txt (3,336 bytes) 2015-06-24 19:48
https://support.easycwmp.org/file_download.php?file_id=32&type=bug
capture.pcap (40,732 bytes) 2015-06-25 01:27
https://support.easycwmp.org/file_download.php?file_id=33&type=bug
capture3.pcap (10,237 bytes) 2015-06-25 11:22
https://support.easycwmp.org/file_download.php?file_id=34&type=bug
capture4.pcap (20,118 bytes) 2015-06-25 12:28
https://support.easycwmp.org/file_download.php?file_id=35&type=bug
capture5.pcap (14,742 bytes) 2015-06-25 21:50
https://support.easycwmp.org/file_download.php?file_id=36&type=bug
tr069-cli-log.txt (5,142 bytes) 2015-06-29 18:43
https://support.easycwmp.org/file_download.php?file_id=40&type=bug
capture6.pcap (11,450 bytes) 2015-06-29 18:43
https://support.easycwmp.org/file_download.php?file_id=41&type=bug
Notes
(0000207)
mohamed.kallel   
2015-06-25 00:48   
Could you attach a traffic capture of your issue
(0000208)
lferrarotti   
2015-06-25 01:27   
We have attached the capture
(0000209)
mohamed.kallel   
2015-06-25 10:08   
The OUI and the serial number are empty in your inform message. and this is the cause of the fault you got from the ACS. you have to put them in the easycwmp config or you should update your data model scripts.
(0000210)
lferrarotti   
2015-06-25 11:22   
Thanks, I've checked the data model source code and corrected. Now in the tcpdump both the value were passed with data. But at the end we received the same error. You can check on the new capture uploaded. Thanks
(0000211)
mohamed.kallel   
2015-06-25 12:06   
it's not empty for params, but it's still empty for DeviceId

<DeviceId>
     <Manufacturer>GL-CONNECT</Manufacturer>
     <OUI></OUI>
     <ProductClass>gl-inet</ProductClass>
     <SerialNumber></SerialNumber>
</DeviceId>

You have to update also the function "common_get_inform_deviceid()" in the common script
(0000212)
lferrarotti   
2015-06-25 12:27   
Thankd for your support. I changed also that part, and now the last message received from the server is different.
+++ RECEIVED HTTP RESPONSE (PART) +++
<env:Envelope xmlns:cwmp="urn:dslforum-org:cwmp-1-2" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header></env:Header><env:Body><cwmp:InformResponse xmlns:cwmp="urn:dslforum-org:cwmp-1-2"><MaxEnvelopes>1</MaxEnvelopes></cwmp:InformResponse></env:Body></env:Envelope>
--- RECEIVED HTTP RESPONSE (PART) ---
+++ RECEIVED HTTP RESPONSE +++
<env:Envelope xmlns:cwmp="urn:dslforum-org:cwmp-1-2" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header></env:Header><env:Body><cwmp:InformResponse xmlns:cwmp="urn:dslforum-org:cwmp-1-2"><MaxEnvelopes>1</MaxEnvelopes></cwmp:InformResponse></env:Body></env:Envelope>
--- RECEIVED HTTP RESPONSE ---
rpc_inform(228): parse Inform xml message from ACS failed

Still parse problem, but different from before.
You can also check everything in the new capture file : capture4.pcap
(0000213)
mohamed.kallel   
2015-06-25 13:18   
(Last edited: 2015-06-25 17:58)
I m not sure if it's a bug or an interoperability problem. I do not have the time now to investigate this problem. I will check it when I will treat the next release. as a quik solution you can avoid the check of the received inform response. Just add return 0 at the beginning of the function:

int xml_parse_inform_response_message(char *msg_in)

This should fix your problem but not in a proper way

(0000214)
lferrarotti   
2015-06-25 18:04   
After applied that fix you suggested, we are able to make a step forward on the xml process of the tr-069 transaction.
Now we received this error :
rpc_get_rpc_methods(188): parse GetRPCMethods xml message from ACS failed
But it is always related to the SOAPAction that we received from the ACS server.
Comparing the capture between the same CPE and different ACS server, we saw this difference :
1) receiveing from ACS SOAPAction: is working
2) receiveing from ACS SOAPAction: "" is not working
(0000215)
mohamed.kallel   
2015-06-25 19:47   
(Last edited: 2015-06-25 21:18)
This issue will be treated in the next release (inchea allah)

But I have a quick solution to fix this las problem. Like the inform, you can avoid the GgetRpcMethodResponse check by adding a return 0 at the beginning of the function:

int xml_parse_get_rpc_methods_response_message(char *msg_in)

(0000216)
lferrarotti   
2015-06-25 21:50   
I know that you do not have time for investigation. After applying both the two fixes suggested, we made a step over.

We are able to receive these data from the server :

<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-2" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Header>
<cwmp:ID env:mustUnderstand="1">6357545</cwmp:ID>
</env:Header>
<env:Body>
<cwmp:SetParameterValues xmlns:cwmp="urn:dslforum-org:cwmp-1-2">
<ParameterList SOAP-ENC:arrayType="cwmp:ParameterValueStruct[4]" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<ParameterValueStruct>
<Name>InternetGatewayDevice.ManagementServer.PeriodicInformEnable</Name>
<Value xsi:type="xsd:boolean">1</Value>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.ManagementServer.PeriodicInformInterval</Name>
<Value xsi:type="xsd:unsignedInt">300</Value>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.ManagementServer.ConnectionRequestUsername</Name>
<Value xsi:type="xsd:string">ftacs</Value>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.ManagementServer.ConnectionRequestPassword</Name>
<Value xsi:type="xsd:string">ftacs</Value>
</ParameterValueStruct>
</ParameterList>
<ParameterKey>6357545</ParameterKey>
</cwmp:SetParameterValues>
</env:Body>
</env:Envelope>

At the end we had still some errors :

cwmp_handle_messages(369): acs response message is empty
cwmp_inform(314): handling xml message failed

Could be still something wrong at the server side?
In attachment the last capture.
Thanks
(0000217)
mohamed.kallel   
2015-06-26 01:12   
looks the same problem. looks an interoperability problem. looks an xml parse problem. I will investigate the problem in the next release
(0000221)
lferrarotti   
2015-06-29 10:37   
(Last edited: 2015-06-29 10:38)
Thanks for your response. Could you please confirm me that this last part in not related to the http but to the cwmp protocol? In case of positive response I think would be necessary to manage this response inside the cwmp.c.
Best Regards

(0000223)
lferrarotti   
2015-06-29 18:43   
I had applied the same approach also on the cwmp.c file with a return 0 at the beginning of the function:
int cwmp_handle_messages(void)
At the end of the transaction I received this at cli session :
Mon Jun 29 16:33:46 2015 daemon.debug easycwmpd: receive InformResponse from the ACS
Mon Jun 29 16:33:46 2015 daemon.debug easycwmpd: external: execute apply service
Mon Jun 29 16:33:46 2015 daemon.debug easycwmpd: external script exit
Mon Jun 29 16:33:46 2015 daemon.debug easycwmpd: end session success

Could you please confirm that could be a possible fix, for the moment?
In addition I also uploaded both cli logs and capture from the device.
(0000225)
mohamed.kallel   
2015-06-30 13:03   
I can not confirm if it's a http problem or xml parser problem now, I have to investigate. But it's very likely an xml parser problem. And you can noht fix the problem wirth the same way (by adding return 0) because the cwmp should parse the cwmp request from the acs.
(0000227)
lferrarotti   
2015-06-30 16:20   
Thanks for the update. If you will want to test this release or the next one here the references of the demo/test server that you can use for verifying interoperability:

http://testacs.friendly-tech.com:8080/ftacs-basic/ACS

login : luca
password : luca

Thanks and Regards
(0000241)
mohamed.kallel   
2015-07-13 17:40   
fixed in EasyCwmp-1.1.4

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
64 [easycwmp] Question minor have not tried 2015-06-28 04:18 2015-06-30 13:04
Reporter: linpf 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:  
e-mail notification:
Summary: Trying to use freecwmp and encounter problem maybe related to "NextLevel" tag not recognized by freecwmp. Will EasyCwmp work?
Description: I have posted my problem in the freeacs forum. Here is the link to save me time to repeat the situation I encounter.
http://freeacs.freeforums.org/test-with-freecwmp-t141.html.

This seems to related to "NextLevel" tag problem of freecwmp. If that is the case, can I get patch for freecwmp to fix this specific problem?

Will EasyCWMP work with freeacs? as I also have not successfully compiled it yet.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000218)
mohamed.kallel   
2015-06-28 18:06   
The GetParameterName works properly with NextLevel = false (or true) in EasyCwmp. EasyCwmp is a complete CWMP client fully compliant with TR-069 amendment 2.
freecwmp is not complete and the GetParameterNames does not work properly yet in freecwmp

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
63 [easycwmp] Help minor have not tried 2015-06-28 03:58 2015-06-30 12:59
Reporter: linpf Platform: Linux  
Assigned To: mohamed.kallel OS: Ubuntu  
Priority: normal OS Version: 14.04.1  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Trying to compile easycwmp
Description: Hello,

I am new to easycwmp and I need your help in order to try EasyCwmp.

Got this following error message while compiling OpenWrt firmware.

In file included from ../src/cwmp.c:17:0:
../src/json.h:16:26: fatal error: json-c/json.h: No such file or directory

Search the web and find the exact same issue as http://support.easycwmp.org/view.php?id=9 and also can not quite follow the provided answer.

The main problem is that I can not go to Library and select libjson-c.

I provided the screenshot for your reference. Thanks.
Tags:
Steps To Reproduce:
Additional Information: Only libjson libary is there. No libjson-c
Attached Files: Screenshot from 2015-06-28 09:48:15.png (226,783 bytes) 2015-06-28 03:58
https://support.easycwmp.org/file_download.php?file_id=37&type=bug
png

Screenshotmakemenuconfiglibjsonc.png (128,026 bytes) 2015-06-28 19:16
https://support.easycwmp.org/file_download.php?file_id=38&type=bug
png
Notes
(0000219)
mohamed.kallel   
2015-06-28 18:12   
(Last edited: 2015-06-28 19:58)
you have to download libjson-c package from the OpenWRT svn repository. If you do not find how to get or build the libjson-c, please post your question on openwrt forum (it s the adequate place for a such question) and you will got answer (inchallah ;-))

(0000220)
mohamed.kallel   
2015-06-28 19:16   
It works for me

As indicated in the official openwrt dev website ( https://dev.openwrt.org/wiki/GetSource ), I get the OpenWRT (attitude adjusment) with:

git clone git://git.openwrt.org/12.09/openwrt.git



and then I can see the libjosn-c in the make menuconfig (see attached screen shot).

may be you have made some wrong manip some where. may be you have to start form a clean version
(0000224)
linpf   
2015-06-29 23:22   
Hi Kallel,

Thank you for your help. I certainly have followed your advice and sucessfully built easycwmp.
The thing is it can not build right firmware for me to load as I am supposed to use QSDK ( https://www.codeaurora.org/xwiki/bin/QSDK/WebHome )to build code for the firmware. Maybe to run easycwmp I will need to fix Makefile as now it seems two packages both want to either go to same folder or the same Makefile. It is too complex and confusing for me to "configure it all out". I have already post my problem to the OpenWrt forum and hope someone knows the answer will response.

Regards,

Lin.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
58 [easycwmp] Help minor always 2015-06-05 16:30 2015-06-12 20:03
Reporter: abkhan Platform: OpenWRT  
Assigned To: mohamed.kallel OS: Linux  
Priority: normal OS Version: OpenWRT14.07  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Data model
Description: I am new to easyCWMP.
The data model that I get with getValue on InternetGatewayDevice. would need to be extended for my application.
Also, I don't get the right values for "WANConnectionDevice.X.WANIPConnection.Y.ExternalIPAddress and MACAddress.

So my question is;
Is there some documentation to help in extending the data model?
A documentation on how and where the datamodel is converted to UCI data so that I can check what might be going when not getting the correct values.
Tags:
Steps To Reproduce: Built openWRT 14.07 with easyCwmp for x86 and ran it on VirtualBox.

Used command;
sh /usr/sbin/easycwmp --json get value InternetGatewayDevice.

Additional Information:
Attached Files:
Notes
(0000201)
user55   
2015-06-09 17:50   
The existing data model scripts are not complete for openwrt neither for other linux systems. The existing data model are just an example to see how to develop a customized data model.

There is no guide documentation for data model development, you can follow the existing data model scripts to develop you own data model. It's very easy.

If you need professional support to develop you data model, please refer to our commercial offers.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
51 [easycwmp] Question major N/A 2015-04-30 08:59 2015-06-09 17:51
Reporter: shiven Platform: linux  
Assigned To: user55 OS: UBUNTU  
Priority: urgent OS Version: 12.04  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: CPE Could not communicate with Libreacs
Description: We have configured the EasyCWMP and Libreacs on same PC.we haven't given any config script into it.we download the CPE from "http://www.easycwmp.org/index.php/manual"

when we give the command :-
bash /usr/sbin/easycwmp -–json get value InternetGatewayDevice.
No output seen.

how can we configure to communicate EasyCWMP and libreacs.What all configuration done for it.
Tags:
Steps To Reproduce:
Additional Information: when run command for Easycwmp:-
root@labuser-OptiPlex-GX620:/etc/config# /usr/sbin/easycwmpd -f -b
config_init_local(55):: easycwmp.@local[0].interface=eth0
config_init_local(65):: easycwmp.@local[0].port=8080
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://172.18.4.100:8080/liberacs
config_init_acs(165):: easycwmp.@acs[0].username=labuser
config_init_acs(171):: easycwmp.@acs[0].password=abc123
config_init_acs(177):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(183):: easycwmp.@acs[0].periodic_interval=100
config_init_acs(189):: easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z



when run command:-
labuser@labuser-OptiPlex-GX620:~$ bash /usr/sbin/easycwmp --json get value InternetGatewayDevice.


No output.
Attached Files:
Notes
(0000189)
mohamed.kallel   
2015-04-30 12:09   
what's your easycwmp version
(0000191)
mohamed.kallel   
2015-05-01 15:28   
(Last edited: 2015-05-01 15:29)
try to run

 bash /usr/sbin/easycwmp --json inform

If you did not get output

try to change the following line in the /usr/sbin/easycwmp

handle_action 2>/dev/null

to

handle_action # 2>/dev/null

and see if you got error in the command:

 bash /usr/sbin/easycwmp --json inform


it's possible that your data model scripts are not installed

Please check the folder /usr/share/easycwmp/functions
and see if you find the date model scripts (device_info, management_server, root, common, lan_device, wan_device)

(0000193)
shiven   
2015-05-04 12:00   
Thanks kallel for quick reply.

what's your easycwmp version-->The version used is 1.0 but schema version is 1-2.

How can I find easyCWMP with schema version 1-1 ?
Also how can we get the schema version of libreacs.
(0000195)
mohamed.kallel   
2015-05-04 19:42   
what is the schema version?

to find the easycwmp version, type the following command
easycwmpd -v

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
56 [easycwmp] Enhancement minor have not tried 2015-06-03 10:48 2015-06-09 17:39
Reporter: mohamed.kallel Platform:  
Assigned To: user55 OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: define add object and delete object functions as arguments in "common_execute_method_obj"
Description: define add object and delete object functions when calling "common_execute_method_obj"

examples:

common_execute_method_obj "$DMROOT.LANDevice.1.WLANConfiguration." "1" "lan_device_add_wlan"


common_execute_method_obj "$DMROOT.LANDevice.1.WLANConfiguration.$j." "1" "" "lan_device_delete_wlan"
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000200)
user55   
2015-06-09 17:39   
fixed in EasyCwmp-1.1.3

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
55 [easycwmp] Enhancement minor have not tried 2015-06-03 09:43 2015-06-09 17:38
Reporter: mohamed.kallel Platform:  
Assigned To: user55 OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Supporting parameters under root path
Description: Supporting parameters under root path. like Device.RootDataModelVersion
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000199)
user55   
2015-06-09 17:38   
fixed in EasyCwmp-1.1.3

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
54 [easycwmp] General minor always 2015-05-20 11:59 2015-06-09 17:38
Reporter: shasta Platform:  
Assigned To: user55 OS:  
Priority: low OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Some issues in script file lan_device
Description: I want to add TR-181 data models, so I studied lan_device to understand how to add data models.

Here are some issues I met during study:

1. Cannot add more than one LANDevice.1.WLANConfiguration. object
because in function
lan_device_get_wlan_max_instance() {
    local max=`$UCI_SHOW wireless | grep "wireless\.@wifi-iface\[[0-9]\+\].instance=" | cut -d'=' -f2 | sort -ru | head -1`
    echo ${max:-0}
}

If LANDevice.1. exists, max's value is '1', not 1; and
instance=`lan_device_get_wlan_max_instance`
$UCI_SET wireless.$iface.instance=$((++instance))
won't work correctly when I try to add another LANDevice..1.WLANConfiguration. object.

solution:
local max=`$UCI_SHOW wireless | grep "wireless\.@wifi-iface\[[0-9]\+\].instance=" | cut -d'=' -f2 | sort -ru | head -1 | sed 's/.//;s/.$//'`
Just cut first and last charactor to make $((++instance)) work.

2. Cannot delete LANDevice.1.WLANConfiguration. object
because in
lan_device_delete_wlan_iface() {
    local instance="$1"
    local iface=`$UCI_SHOW wireless | grep "wireless\.@wifi-iface\[[0-9]\+\].instance=$instance$" | head -1 | cut -d'.' -f2`
    [ -z "$iface" ] && return $E_INVALID_PARAMETER_NAME
    $UCI_DELETE wireless.$iface
    $UCI_COMMIT
    common_execute_command_in_apply_service "wifi"
    return 0
}

local iface=`$UCI_SHOW wireless | grep "wireless\.@wifi-iface\[[0-9]\+\].instance=$instance$" | head -1 | cut -d'.' -f2`
I found iface is null, so I modified it to
local iface=`$UCI_SHOW wireless | grep "wireless\.@wifi-iface\[[0-9]\+\].instance='$instance'$" | head -1 | cut -d'.' -f2`
to solve it.

3. Sort problem when add more than ten LANDevice.1.WLANConfiguration. object
If I added 10 object, and try to add one more object,
local max=`$UCI_SHOW wireless | grep "wireless\.@wifi-iface\[[0-9]\+\].instance=" | cut -d'=' -f2 | sort -ru | head -1 | sed 's/.//;s/.$//'`
max's value is not correct.
Sort -v option solves the problem but my busybox doesn't support this option, so I use for loop to find max instance number...

local instance instances=`$UCI_SHOW wireless | grep "wireless\.@wifi-iface\[[0-9]\+\].instance=" | cut -d'=' -f2 | sed 's/.//;s/.$//'`
    for instance in $instances; do
        if [ "$instance" -gt "$max" ]; then
            max=$instance
        fi
    done
Tags:
Steps To Reproduce: 1. Add LANDevice.1.WLANConfiguration. issue:
>bash /usr/sbin/easycwmp --json add object InternetGatewayDevice.LANDevice.1.WLANConfiguration.
{ "status": "1", "instance": "1" }
>bash /usr/sbin/easycwmp --json add object InternetGatewayDevice.LANDevice.1.WLANConfiguration.
{ "status": "1" }
>uci -c ${UCI_CONFIG_DIR} show wireless
wireless.@wifi-iface[0]=wifi-iface
wireless.@wifi-iface[0].device='wl0'
wireless.@wifi-iface[0].encryption='none'
wireless.@wifi-iface[0].mode='ap'
wireless.@wifi-iface[0].ssid='DefaultSSID'
wireless.@wifi-iface[0].instance='1'
wireless.@wifi-iface[1]=wifi-iface
wireless.@wifi-iface[1].device='wl0'
wireless.@wifi-iface[1].encryption='none'
wireless.@wifi-iface[1].mode='ap'
wireless.@wifi-iface[1].ssid='DefaultSSID'
//option "wireless.@wifi-iface[1].instance" doesn't exist and that's why how many times I tried to add object it always returns '1'

2. Cannot delete InternetGateway.LANDevice.1.WLANConfiguration.1.
>bash /usr/sbin/easycwmp --json add object InternetGatewayDevice.LANDevice.1.WLANConfiguration.
{ "status": "1", "instance": "1" }
>bash /usr/sbin/easycwmp --json delete object InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.
{ "fault_code": "9005" }

3. After issue 1 is fixed, do
>bash /usr/sbin/easycwmp --json add object InternetGatewayDevice.LANDevice.1.WLANConfiguration.
11 times:

>bash /usr/sbin/easycwmp --json add object InternetGatewayDevice.LANDevice.1.WLANConfiguration.
{ "status": "1", "instance": "1" }
>bash /usr/sbin/easycwmp --json add object InternetGatewayDevice.LANDevice.1.WLANConfiguration.
{ "status": "1", "instance": "2" }
>bash /usr/sbin/easycwmp --json add object InternetGatewayDevice.LANDevice.1.WLANConfiguration.
{ "status": "1", "instance": "3" }
>bash /usr/sbin/easycwmp --json add object InternetGatewayDevice.LANDevice.1.WLANConfiguration.
{ "status": "1", "instance": "4" }
>bash /usr/sbin/easycwmp --json add object InternetGatewayDevice.LANDevice.1.WLANConfiguration.
{ "status": "1", "instance": "5" }
>bash /usr/sbin/easycwmp --json add object InternetGatewayDevice.LANDevice.1.WLANConfiguration.
{ "status": "1", "instance": "6" }
>bash /usr/sbin/easycwmp --json add object InternetGatewayDevice.LANDevice.1.WLANConfiguration.
{ "status": "1", "instance": "7" }
>bash /usr/sbin/easycwmp --json add object InternetGatewayDevice.LANDevice.1.WLANConfiguration.
{ "status": "1", "instance": "8" }
>bash /usr/sbin/easycwmp --json add object InternetGatewayDevice.LANDevice.1.WLANConfiguration.
{ "status": "1", "instance": "9" }
>bash /usr/sbin/easycwmp --json add object InternetGatewayDevice.LANDevice.1.WLANConfiguration.
{ "status": "1", "instance": "10" }
>bash /usr/sbin/easycwmp --json add object InternetGatewayDevice.LANDevice.1.WLANConfiguration.
{ "status": "1", "instance": "10" }
// instance always = 10 when add more than 10 objects
Additional Information:
Attached Files:
Notes
(0000198)
user55   
2015-06-09 17:38   
fixed in EasyCwmp-1.1.3

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
45 [easycwmp] Bug feature always 2015-03-24 04:25 2015-06-09 17:37
Reporter: adamfox Platform: ARM  
Assigned To: user55 OS: OpenWRT  
Priority: normal OS Version: linux-3.10.49  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Handling of ParameterKey Containing Whitespace
Description: I am testing EasyCWMP with the Cisco PrimeHome ACS. During Initial Configuration, the ACS sends a SPV on the ManagementServer object with a ParameterKey of "1AAABTEkmgwES test52 E". EasyCWMP stores this ParameterKey to its config file as "E". Perhaps EasyCWMP does not expect whitespace in the ParameterKey, so only stores the last word of the value supplied by ACS?

I will attach a pdf containing the SOAP trace.
Tags:
Steps To Reproduce: 1) Configure your ACS to send a ParameterKey containing whitespace
2) Check the ParameterKey saved by EasyCWMP.
Additional Information:
Attached Files: cph_mgmt_server_sync.pdf (51,724 bytes) 2015-03-24 04:25
https://support.easycwmp.org/file_download.php?file_id=27&type=bug
Notes
(0000151)
mohamed.kallel   
2015-03-24 06:50   
(Last edited: 2015-03-24 15:31)
I confirm It's a bug, EasyCwmp does not support ParameterKey containing white space.

It will be fixed in the next version (nchallah)

(0000197)
user55   
2015-06-09 17:37   
fixed in EasyCwmp-1.1.3

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
44 [easycwmp] Enhancement minor have not tried 2015-03-17 10:19 2015-06-09 17:36
Reporter: mohamed.kallel Platform:  
Assigned To: user55 OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Change the usage of the case_param function. Use "&& {...}" instead of "|| return"
Description: Change the usage of the function case_param.

The old way is:

case_param "$1" belongto "$DMROOT.WANDevice.1.WANConnectionDevice.$j." || return

The new way:


case_param "$1" belongto "$DMROOT.WANDevice.1.WANConnectionDevice.$j." && {
    ......
    ......
}
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000196)
user55   
2015-06-09 17:36   
fixed in EasyCwmp-1.1.3

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
48 [easycwmp] Help minor sometimes 2015-04-22 07:47 2015-05-08 19:21
Reporter: linhe Platform: FL2440  
Assigned To: mohamed.kallel OS: linux  
Priority: normal OS Version: Linux3.0  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: can't found value tree、can't upgrade firmware.
Description: I can found my easycwmp on openacs,but I click details it shows:
Serial number: qwerty54321 Hardware: test Current software: test Current config: Last inform at: 2015-04-22 13:35:01.0
Customer ID:
Connection request URL:
http://192.168.1.21:8080/openacs/acs
Last Conreq: unknown
Go to CPE web UI
(this will mark CPE for reboot and try to request connection.)
ConfigurationName: Default current version: update attempted at: 2015-04-22 13:35:01.0 result: No such entity!
SoftwareCurrent version: test Update attempted at: 2015-04-22 13:35:01.0 result:
LineModulation: Status:
Line parameters Current rate (Kbps) Max rate (Kbps) Attenuation (db) Noise margin (db) Power (dBmV)
Downstream:
--------------------------------------------------------------------------------
but when I click cwmp values tree,it shows:
No saved values found. Check settings in profile or wait for device contacting ACS.

when I try to upgrade my firmware ,is failure.can you give me some suggestions on those problems and some suggestions on how to learn the easycwmp,I am a newer,thanks a lot!
Tags:
Steps To Reproduce:
Additional Information: acs: openacs-0.5.0.3
cpe:easycwmp-1.0.5
cross-compiler:gcc version 4.5.4 (Buildroot 2012.08)
Attached Files:
Notes
(0000187)
mohamed.kallel   
2015-04-22 10:19   
For the ACS tree, I can not say what exaxtelly your problem. May be it's a config problem or ACS problem. You can check if the easycwmp side works properly by making a traffic capture and check if easycwmp send the right traffic to the ACS.

For the firmware upgrade, you have to upload the upgrade function in the easycwmp script according to your system (Software and Hardware).

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
49 [easycwmp] General feature N/A 2015-04-25 14:50 2015-05-08 19:20
Reporter: feckert Platform:  
Assigned To: mohamed.kallel OS:  
Priority: none OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Management Feed
Description: Hallo

Easycwmp is a fork of freecwmp; right?
We use openwrt for our router platfrom and want to use easycwmp for TR069 with genieacs.

Wy did you not integrate your easycwmp Makefile to the management feed of openwrt like the freecwmp. I have asked the feed owner and he says if I want I can do that. Wy did you not integrate your easycwmp Makefile to the management feed of openwrt?

Kind regards

Flo
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000188)
mohamed.kallel   
2015-04-26 00:58   
Yes EasyCwmp is a fork of freecwmp as indicated in the main page of www.easycwmp.org

I tried my self to integrate EasyCwmp in the management feed of openwrt one year ago but I did not get enought support for that
Please feel free to integrate it.
You can find the Makefile (OpenWRT) and the Config.in in the easycwmp-openwrt.tar.gz in http://www.easycwmp.org/index.php/downloads

Please keep me updated if you integrate it.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
52 [easycwmp] Question major N/A 2015-04-30 13:04 2015-05-08 19:19
Reporter: shiven Platform: Linux  
Assigned To: mohamed.kallel OS: UBUNTU  
Priority: urgent OS Version: 12.04  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Facing problem while running Easycwmp
Description: when i run command:-
/usr/sbin/easycwmpd -f -b

Following is the output of the command
tailf /var/log/syslog

labuser@labuser-OptiPlex-GX620:/etc/config$ tailf /var/log/syslog
Apr 30 07:13:18 labuser-OptiPlex-GX620 easycwmpd: external script init
Apr 30 07:13:18 labuser-OptiPlex-GX620 easycwmpd: external: execute inform device_id
Apr 30 07:13:18 labuser-OptiPlex-GX620 easycwmpd: external script exit
Apr 30 07:17:01 labuser-OptiPlex-GX620 CRON[15009]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Apr 30 07:20:14 labuser-OptiPlex-GX620 easycwmpd: add event '0 BOOTSTRAP'
Apr 30 07:20:14 labuser-OptiPlex-GX620 easycwmpd: init periodic inform: reference time = n/a, interval = 100
Apr 30 07:20:14 labuser-OptiPlex-GX620 easycwmpd: daemon started
Apr 30 07:20:14 labuser-OptiPlex-GX620 easycwmpd: external script init
Apr 30 07:20:14 labuser-OptiPlex-GX620 easycwmpd: external: execute inform device_id
Apr 30 07:20:14 labuser-OptiPlex-GX620 easycwmpd: external script exit

and CPE not woring.Can please more elaborate the parameter of
file /etc/config/easycwmp

1.we run Libreacs server
./run.sh -b 0.0.0.0
2.we run EasyCwmp
/usr/sbin/ubusd -s /tmp/ubus.sock-->running
/usr/sbin/easycwmpd -f -b
3.how can we findout if there is an activity between server and Easycwmp?
4.how can we the problem in Easycwmp(logs location)
5.Is any other configuration to be done which not given in
http://www.easycwmp.org/index.php/manual


Please help here.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000192)
mohamed.kallel   
2015-05-01 15:34   
You can use wireshark (traffic sniffer) in order to see activity between ACS and easycwmp. You can see also the sylogd messages to see the activity betwwen ACS and easycwmp, if you did not got syslogd messages then there is problem in your easycwmp.

And check in /etc/config/easycwmp if you have configured the right ACS URL.

This issue is duplicated with 0000051

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
53 [easycwmp] Help trivial have not tried 2015-05-04 17:11 2015-05-08 19:18
Reporter: feckert Platform:  
Assigned To: mohamed.kallel OS:  
Priority: none OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: notify
Description: Hi

I have some questions.

1. Notifing an acs that a value has changed
-------------------------
For Example if I edit an paramter over the webgui on the cpe i have to notify the tr069 that this value has changed.
How do i do this?

I think i have to call
- `ubus call tr069 notify '{"parameter":"String","value":"String","type":"String"}`
What are the valid atributes for this call?

If i call
`ubus call tr069 notify '{"parameter":"Device.WiFi.AccessPoint.2.MacAddresses","value":"0"}'`

In the log i see:
Mon May 4 14:38:17 2015 daemon.notice easycwmpd: triggered ubus notification parameter Device.WiFi.AccessPoint.2.MacAddresses
Mon May 4 14:38:17 2015 daemon.notice easycwmpd: external script init
Mon May 4 14:38:17 2015 daemon.notice easycwmpd: external: execute get notification Device.WiFi.AccessPoint.2.MacAddresses
Mon May 4 14:38:17 2015 daemon.notice easycwmpd: external script exit

Nothing happens on the ace side the value is not updated in his database

2. What does this function do?
--------------------------
In the directory funkctions in file common there are three function
1. "common_get_parameter_notification"
2. "common_remove_parameter_notification"
3. "common_set_parameter_notification"
what does they do. Do i have to add an notification config tag in the uci if i want to notify my acs?

3. ubus callbacks
---------------------------
Please can you give me an advice what this ubus messages do and what are there paramter values for them?
"inform":{"event":"String"}
"command":{"name":"String"}

Thank you for your help :-)

Kind regards

Flo
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000194)
mohamed.kallel   
2015-05-04 19:34   
(Last edited: 2015-05-04 19:35)
1- before executing the ubus call function, you have to set the notification attribute of you param to 2:

easycwmp set notification Device.WiFi.AccessPoint.2.MacAddresses 2
easycwmp apply notification


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
50 [easycwmp] Help text N/A 2015-04-28 14:59 2015-05-02 17:51
Reporter: feckert Platform:  
Assigned To: mohamed.kallel OS:  
Priority: none OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: common_execute_command_in_apply_service
Description: Hi,

I have set some own Parameters over genieacs into my router. The Parameters are my own.
Now i want to restart my service to get my changes applied.
I Could do this in every script with the "common_delay_service_restart_in_apply_service" cmd from /functions/common
But this is not very smart to restart the service at every function call when a lot of parameters are changed.
I saw that it is possible to call the function "common_execute_command_in_apply_service" but theres is now description how it works!

Do I have to send an apply_service action as seen in easycwmp.sh?
Do I have to write my own scripts?

Kind regards

Flo
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000190)
mohamed.kallel   
2015-05-01 12:47   
(Last edited: 2015-05-01 12:48)
You ca refer to the lan_device and wan_device scripts to see where to call the common_delay_service_restart_in_apply_service and common_execute_command_in_apply_service function.

These functions allow to specify the commands to execute and the services to restart at the end of the session with ACS and they do not execute them immediately.
And if you make set of many parameters that require the same service restart, then the service will restart only one time at the end of the session


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
35 [easycwmp] Enhancement major have not tried 2015-02-13 08:42 2015-04-23 17:57
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:  
e-mail notification:
Summary: improve the easycwmp scripts. make the implementation of new parameters more easier
Description: improve the easycwmp scripts. make the implementation of new parameters more easier
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000133)
mohamed.kallel   
2015-02-25 16:41   
Fixed in the version EasyCwmp-1.1.0

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
47 [easycwmp] Question minor always 2015-04-12 08:19 2015-04-13 17:48
Reporter: linhe Platform: FL2440  
Assigned To: mohamed.kallel OS: linux  
Priority: normal OS Version: Linux3.0  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: run easycwmpd and easycwmp.sh as root,but the results as if run as a normal user.
Description: I log in my fl2440 board as root,run easycwmpd -b -f or run easycwmp.sh,the results as if run as a normal user.
1)run as root in my fl2440:
./easycwmp.sh --json json_input
easycwmp>
{ "command": "inform", "class": "device_id" }<----------i enter
easycwmp>

/apps/easycwmp/bin >: ./easycwmpd -b -f
config_init_local(53):: easycwmp.@local[0].interface=eth0
config_init_local(63):: easycwmp.@local[0].port=7547
config_init_local(81):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(69):: easycwmp.@local[0].username=easycwmp
config_init_local(75):: easycwmp.@local[0].password=easycwmp
config_init_acs(149):: easycwmp.@acs[0].scheme=http
config_init_acs(155):: easycwmp.@acs[0].username=openacs
config_init_acs(161):: easycwmp.@acs[0].password=openacs
config_init_acs(167):: easycwmp.@acs[0].hostname=192.168.1.21
config_init_acs(177):: easycwmp.@acs[0].port=8080
config_init_acs(183):: easycwmp.@acs[0].path=/openacs/acs
config_init_acs(189):: easycwmp.@acs[0].periodic_enable=0
config_init_acs(195):: easycwmp.@acs[0].periodic_interval=180
config_init_acs(201):: easycwmp.@acs[0].periodic_time=1

2)run as a normal user on pc(centOS6.5):
[weishusheng@centOS6 ~]$ ll /usr/sbin/easycwmp
lrwxrwxrwx. 1 root root 75 1月 31 02:41 /usr/sbin/easycwmp -> /home/weishusheng/easycwmp_for_arm/easycwmp/ext/openwrt/scripts/easycwmp.sh
[weishusheng@centOS6 ~]$ easycwmp --json json_input
easycwmp>
{ "command": "inform", "class": "device_id" }
easycwmp>

[weishusheng@centOS6 ~]$ easycwmpd -b -f
main(245): open /var/run/easycwmp.pid false!
[weishusheng@centOS6 ~]$

so i know run easycwmpd and easycwmp.sh as root,but the results as if run as a normal user.

3)run as root on pc(centOS6.5):
[root@centOS6 weishusheng]# ll /usr/sbin/easycwmp
lrwxrwxrwx. 1 root root 75 1月 31 02:41 /usr/sbin/easycwmp -> /home/weishusheng/easycwmp_for_arm/easycwmp/ext/openwrt/scripts/easycwmp.sh
[root@centOS6 weishusheng]# easycwmp --json json_input
easycwmp>
{ "command": "inform", "class": "device_id" }<----------i enter
{ "manufacturer": "easycwmp", "oui": "FFFFFF", "product_class": "qinyuan", "serial_number": "FFFFFF123456" }

[root@centOS6 weishusheng]# easycwmpd -b -f
config_init_local(72):: easycwmp.@local[0].interface=eth0
config_init_local(82):: easycwmp.@local[0].port=7547
config_init_local(100):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_acs(168):: easycwmp.@acs[0].scheme=http
config_init_acs(186):: easycwmp.@acs[0].hostname=192.168.1.21
config_init_acs(196):: easycwmp.@acs[0].port=8080
config_init_acs(202):: easycwmp.@acs[0].path=/openacs/acs
config_init_acs(208):: easycwmp.@acs[0].periodic_enable=0
config_init_acs(220):: easycwmp.@acs[0].periodic_time=1
config_init_acs(214):: easycwmp.@acs[0].periodic_interval=1800
main(276): config_load() success!
external_init(225):: father process, the pid=4558, his child pid=4559
external_init(198):: child process!the child pid=4559, her father pid=4558
external_init(214):: before execute /home/weishusheng/easycwmp_for_arm/easycwmp/ext/openwrt/scripts/easycwmp.sh
cwmp_init_deviceid(658): before external_exit()
external_exit(244):: before while()
external_exit(245):: father process, the pid = 4558
external_exit(246):: now the Variable pid=4559
external_exit(256):: after while()
cwmp_init_deviceid(660): after external_exit()
main(279): cwmp_init_deviceid() success!
main(297): ubus initialization failed
+++ HTTP SERVER CONFIGURATION +++
ip: '192.168.1.21'
port: '7547'
--- HTTP SERVER CONFIGURATION ---
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(49):: url: http://(null):(null)@192.168.1.21:8080/openacs/acs
http_client_init(55):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
both of they run fine

why I run easycwmpd and easycwmp.sh as root on fl2440,but the results as if run as a normal user?
Tags:
Steps To Reproduce:
Additional Information: I try methos in Issues 0000038,it didn't work.
I have permission to write /var/run/*
Attached Files:
Notes
(0000166)
mohamed.kallel   
2015-04-13 10:49   
According to your output, you do not have the same result of user and root for both easycwmpd and easycwmp.sh
(0000167)
linhe   
2015-04-13 11:00   
Does the result must be the same?as I know ,easycwmp.sh is a shell script,but easycwmpd is a executable file.though easycwmpd will start up easycwmp.sh.
(0000168)
linhe   
2015-04-13 11:06   
Does anyfile(such as "uci or ubusd or defaults or functions.sh...")except easycwmpd must run as root?
(0000169)
mohamed.kallel   
2015-04-13 11:13   
easycwmpd is the daemon of the easycwmp TR-069 client

easycwmp.sh (which is under /usr/sbin/easycwmp) is a script. this script will be called by the daemon. This script contains the data model RPCs.

You should not call easycwmp.sh. To start easycwmp you should call only the easycwmpd (the daemon) as root. That's all. You have to call it in this way:

/usr/sbin/easycwmpd -b

Please refer to the install page on the web site (www.easycwmp.org) for more details
(0000170)
linhe   
2015-04-13 12:05   
I am gratef for your patience answer.I didn't call easycwmp.sh ,I use it for debug.I run easycwmpd as root by this way many times:
/usr/sbin/easycwmpd -b -f
finaly some ploblems forced it stop,so I track the problem and found it stop in easycwmp.sh.by compare the result between PC and FL2440,I guess it was permissions issue.I just can't get the device's inform like my first note.
(0000171)
mohamed.kallel   
2015-04-13 13:08   
Execute as root "easycwmp inform" and provide the output

Restart your system and execute /usr/sbin/easycwmpd -b as root only one time and then provide the output
(0000172)
linhe   
2015-04-13 14:24   
/ >: id
uid=0(root) gid=0(root) groups=0(root)
/ >: easycwmp inform
/ >:
/ >:
/ >:
/ >:

/ >: id
uid=0(root) gid=0(root) groups=0(root)
/ >: /usr/sbin/easycwmpd -b
config_init_local(53):: easycwmp.@local[0].interface=eth0
config_init_local(63):: easycwmp.@local[0].port=7547
config_init_local(81):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(69):: easycwmp.@local[0].username=easycwmp
config_init_local(75):: easycwmp.@local[0].password=easycwmp
config_init_acs(149):: easycwmp.@acs[0].scheme=http
config_init_acs(155):: easycwmp.@acs[0].username=easycwmp
config_init_acs(161):: easycwmp.@acs[0].password=easycwmp
config_init_acs(167):: easycwmp.@acs[0].hostname=192.168.1.110
config_init_acs(177):: easycwmp.@acs[0].port=8080
config_init_acs(183):: easycwmp.@acs[0].path=/openacs/acs
config_init_acs(189):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(195):: easycwmp.@acs[0].periodic_interval=100
config_init_acs(201):: easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z
it didn't go ahead by here,I run ps in another terminal,the result was:


/ >: ps
  PID USER VSZ STAT COMMAND
    1 root 1332 S init
    2 root 0 SW [kthreadd]
    3 root 0 SW [ksoftirqd/0]
    4 root 0 SW [kworker/0:0]
    5 root 0 SW [kworker/u:0]
    6 root 0 SW [rcu_kthread]
    7 root 0 SW< [khelper]
    8 root 0 SW [kworker/u:1]
  207 root 0 SW [sync_supers]
  209 root 0 SW [bdi-default]
  211 root 0 SW< [kblockd]
  221 root 0 SW [khubd]
  236 root 0 SW< [cfg80211]
  237 root 0 SW [kworker/0:1]
  322 root 0 SW< [rpciod]
  327 root 0 SW [kswapd0]
  328 root 0 SW [fsnotify_mark]
  329 root 0 SW< [nfsiod]
  330 root 0 SW< [crypto]
  393 root 0 SW [mtdblock0]
  398 root 0 SW [mtdblock1]
  403 root 0 SW [mtdblock2]
  408 root 0 SW [mtdblock3]
  413 root 0 SW [mtdblock4]
  418 root 0 SW [mtdblock5]
  423 root 0 SW [mtdblock6]
  428 root 0 SW [mtdblock7]
  433 root 0 SW [mtdblock8]
  532 root 0 SW [ubi_bgt7d]
  535 root 0 SW [mtdblock9]
  550 root 0 SW [ubifs_bgt7_0]
  558 root 0 SWN [jffs2_gcd_mtd8]
  575 root 1000 S /usr/bin/dropbear
  604 root 1952 S -sh
  605 root 1316 S /sbin/syslogd -n
  606 root 1312 S /sbin/klogd -n
  624 root 0 SW [flush-ubifs_7_0]
  633 root 3304 S /usr/sbin/easycwmpd -b
  634 root 2588 S /bin/sh /usr/sbin/easycwmp --json json_input
  678 root 1064 S /usr/bin/dropbear
  679 root 1944 S -sh
  684 root 1320 R ps
/ >:

The los is:
/ >: vi /var/log/messages
rn.notice kernel: UBI: available PEBs: 32
rn.notice kernel: UBI: total number of reserved PEBs: 287
rn.notice kernel: UBI: number of PEBs reserved for bad PEB handling: 3
rn.notice kernel: UBI: background thread "ubi_bgt7d" started, PID 532
rn.notice kernel: UBIFS: mounted UBI device 7, volume 0, name "apps"
rn.notice kernel: UBIFS: file system size: 34965504 bytes (34146 KiB, 33 MiB, 271 LEBs)
rn.notice kernel: UBIFS: journal size: 1806336 bytes (1764 KiB, 1 MiB, 14 LEBs)
rn.notice kernel: UBIFS: media format: w4/r0 (latest is w4/r0)
rn.notice kernel: UBIFS: default compressor: lzo
rn.notice kernel: UBIFS: reserved for root: 1651507 bytes (1612 KiB)
rn.info kernel: dm9000 dm9000.0: eth0: link up, 100Mbps, full-duplex, lpa 0x4DE1
th.info login[604]: root login on 'ttyS0'
emon.notice easycwmpd: daemon started
emon.notice easycwmpd: configuration (re)load
emon.notice easycwmpd: add event '0 BOOTSTRAP'
emon.notice easycwmpd: init periodic inform: reference time = n/a, interval = 100
emon.notice easycwmpd: external script init
emon.notice easycwmpd: external: execute inform device_id
emon.notice easycwmpd: external script exit
thpriv.info dropbear[678]: Child connection from 192.168.1.101:1582
thpriv.notice dropbear[678]: Password auth succeeded for 'root' from 192.168.1.101:1582
thpriv.warn dropbear[679]: lastlog_perform_login: Couldn't stat /var/log/lastlog: No such file
thpriv.warn dropbear[679]: lastlog_openseek: /var/log/lastlog is not a file or directory!
thpriv.warn dropbear[679]: wtmp_write: problem writing /var/log/wtmp: No such file or directory
(0000173)
mohamed.kallel   
2015-04-13 14:51   
what's your easycwmp version?
(0000174)
linhe   
2015-04-13 14:54   
The easycwmp version is easycwmp-1.0.5
(0000175)
mohamed.kallel   
2015-04-13 15:00   
so execute (for easycwmp-1.0.5 )
easycwmp --json inform
instead of
easycwmp inform
and then provide the output

And think to use easycwmp-1.1.2(last version) instead
(0000176)
linhe   
2015-04-13 15:05   
(Last edited: 2015-04-13 15:13)
/ >: id
uid=0(root) gid=0(root) groups=0(root)
/ >: easycwmp --json inform
/ >:


/ >: id
uid=0(root) gid=0(root) groups=0(root)
/ >: /usr/sbin/easycwmpd -b
config_init_local(53):: easycwmp.@local[0].interface=eth0
config_init_local(63):: easycwmp.@local[0].port=7547
config_init_local(81):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(69):: easycwmp.@local[0].username=easycwmp
config_init_local(75):: easycwmp.@local[0].password=easycwmp
config_init_acs(149):: easycwmp.@acs[0].scheme=http
config_init_acs(155):: easycwmp.@acs[0].username=easycwmp
config_init_acs(161):: easycwmp.@acs[0].password=easycwmp
config_init_acs(167):: easycwmp.@acs[0].hostname=192.168.1.110
config_init_acs(177):: easycwmp.@acs[0].port=8080
config_init_acs(183):: easycwmp.@acs[0].path=/openacs/acs
config_init_acs(189):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(195):: easycwmp.@acs[0].periodic_interval=100
config_init_acs(201):: easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z

The result was the same,I will try to use easycwmp-1.1.2.

(0000177)
mohamed.kallel   
2015-04-13 15:33   
what's the content of the directory "/usr/share/easycwmp/functions" ?
(0000178)
mohamed.kallel   
2015-04-13 15:48   
change this line (in /usr/sbin/easycwmp)
handle_action 2>/dev/null
to
handle_action

and re-execute the command "easycwmp --json inform"
(0000179)
linhe   
2015-04-13 15:58   
I did not creat the directory /usr/share/easycwmp/functions,because I modify easycwmp.sh in this way:
/apps/easycwmp/scripts >: vim easycwmp.sh
#!/bin/sh
# Copyright (C) 2012-2014 PIVA Software <www.pivasoftware.com>
# Author: MOHAMED Kallel <mohamed.kallel@pivasoftware.com>
# Author: AHMED Zribi <ahmed.zribi@pivasoftware.com>
# Author: ANIS ELLOUZE <anis.ellouze@pivasoftware.com>
# Copyright (C) 2011-2012 Luka Perkov <freecwmp@lukaperkov.net>

. /apps/easycwmp/scripts/functions.sh
. /apps/easycwmp/scripts/jshn.sh
. /apps/easycwmp/scripts/shflags.sh
. /apps/easycwmp/scripts/defaults

UCI_GET="/sbin/uci -q ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} get"
UCI_SET="/sbin/uci -q ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} set"
UCI_SHOW="/sbin/uci -q ${UCI_CONFIG_D

in /apps/easycwmp/scripts content of :
 /apps/easycwmp/scripts >: pwd
/apps/easycwmp/scripts
/apps/easycwmp/scripts >: ls
common easycwmp.sh management_server wan_device
defaults functions.sh network.sh
device_info jshn.sh shflags.sh
easycwmp lan_device uci.sh
/apps/easycwmp/scripts >:

I modify easycwmp in this way
/apps/easycwmp/scripts >: vim easycwmp
        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
                                     
config scripts
        # load OpenWrt generic network functions
        list location /apps/easycwmp/scripts/network.sh
        # load easycwmp common functions
        list location /apps/easycwmp/scripts/common
        # easycwmp specific functions
        list location /apps/easycwmp/scripts/device_info
        list function device_info
        list location /apps/easycwmp/scripts/lan_device
        list function lan_device
        list location /apps/easycwmp/scripts/management_server
        list function management_server
        list location /apps/easycwmp/scripts/wan_device
        list function wan_device
(0000180)
linhe   
2015-04-13 16:06   
after change the line
handle_action 2>/dev/null
to
handle_action ,the output was:
/apps/easycwmp/bin >: easycwmp --json inform
/usr/sbin/easycwmp: line 400: easycwmp_get_inform_parameters: command not found
/apps/easycwmp/bin >:
(0000181)
mohamed.kallel   
2015-04-13 16:15   
So you have to see what's wrong with your script modifications. your easycwmp script does not load the common script neither the other "functions" scripts.

=
(0000182)
linhe   
2015-04-13 16:26   
(Last edited: 2015-04-13 16:26)
I had config the path of common in easycwmp ,why easycwmp_get_inform_parameters was not found?

(0000184)
linhe   
2015-04-13 16:39   
thank you,I will check what is wromg with the modification.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
43 [easycwmp] Question minor N/A 2015-03-16 13:47 2015-03-18 09:04
Reporter: senthil 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:  
e-mail notification:
Summary: What would be the curl command to trigger a Getparametervalue from the alcatel HDM to an easycwmp CPE client instance?
Description: Hi,

  I heard that easycwmp is test and compatible with alcatel-Home Device Manager. Am currently working on a feasibility to automate TR69 based test scenarios between the HDM-ACS and a CPE.

What would be the curl command to trigger a sample "GetParameterValue" from alcatel-HDM to an Easycwmp CPE client?

Regards
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000150)
mohamed.kallel   
2015-03-16 14:23   
To make the EasyCwmp send a GPV response, there is no curl command for that

You should configure your ACS with the GPV.
And then send a Connectioin Request to the EasyCwmp from your ACS inorder to trigger EasyCwmp to open a TR-069 session with your ACS. Then your ACS will send a GPV and then EasyCwmp will send a GPV response.

GPV = GetParameterValue

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
32 [easycwmp] Bug minor have not tried 2015-01-19 07:42 2015-03-16 11:00
Reporter: sinkcup Platform: HC5661 ( hiwifi.com )  
Assigned To: mohamed.kallel OS: HiWiFi OS (base on openwrt 12.9)  
Priority: high OS Version: 0.9007.1.7117s  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: upgrade firmware return 0, but don't take effect, and make a new file /etc/easycwmp/.backup.xml
Description: I upgrade firmware from 0.9007 to 0.9008, then from 0.9008 to 0.9007, over and again.
easycwmp download the firmware to `/tmp/easycwmp_download`, than auto run `sysupgrade`, sometimes ok and auto reboot, sometimes return error 141, but at this time I manually run `/bin/sh /usr/sbin/easycwmp --json json_input` or `/sbin/sysupgrade /tmp/easycwmp_download` are all OK.

when display error, and there is a new file /etc/easycwmp/.backup.xml, and easycwmp auto exit, and can not start again. When I delete this file, easycwmp can start again.

detail at https://github.com/pivasoftware/easycwmp/issues/14
Tags:
Steps To Reproduce:
Additional Information:
Attached Files: 2015-01-19 10:16:44屏幕截图.png (124,324 bytes) 2015-01-19 07:42
https://support.easycwmp.org/file_download.php?file_id=26&type=bug
png
Notes
(0000124)
shasta   
2015-01-21 09:05   
If your .backup.xml looks like
<backup_file>
 <cwmp>
  <acs_url>http://easycwmp:easycwmp@192.168.0.70:7547/genieacs</acs_url>
  <transfer_complete>
   <command_key></command_key>
   <fault_code>0</fault_code>
   <fault_string></fault_string>
   <start_time>2015-01-21T12:00:23+00:00</start_time>
   <complete_time>0001-01-01T00:00:00Z</complete_time>
   <method_id>1</method_id>
  </transfer_complete>
  <event>
   <event_number>7</event_number>
  </event>
  <event>
   <event_number>13</event_number>
   <event_key></event_key>
   <event_method_id>1</event_method_id>
  </event>
 </cwmp>
</backup_file>

Add some check in backup.c backup_extract_transfer_complete()

n = mxmlFindElement(tree_m, tree_m, "CommandKey", NULL, NULL, MXML_DESCEND);
if (!n) goto error;
if(b->child)
{
    n = mxmlNewText(n, 0, b->child->value.text.string);
}
else
{
    n = mxmlNewText(n, 0, "");
}
if (!n) goto error;

And restart easycwmp should be fine
(0000148)
mohamed.kallel   
2015-03-16 10:59   
@shaste: Thank you for the remark and your contribution
(0000149)
mohamed.kallel   
2015-03-16 11:00   
fixed in the version EasyCwmp-1.1.2

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
39 [easycwmp] Enhancement minor always 2015-02-25 05:53 2015-03-16 10:58
Reporter: tomdjpn 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:  
e-mail notification:
Summary: Ability to reduce the amount of logging by easycwmpd
Description: Easycwmpd writes to syslog quite excessively.
Building without --enable-debug and --enable-devel doesn't seem to make much (any?) difference.

It would be good to be able to specify a config option to reduce the amount of logging to just errors, for example. Particularly for embedded devices with limited storage or limited write cycles.

For example, everything except L_CRIT and L_WARNING could be suppressed with a simple check in log_message (log.c)
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000135)
mohamed.kallel   
2015-02-25 16:46   
Interesting we will treat this issue as soon as possible.

For the moment, you can change the log_message() function in the log.c file. You can add some check on the priority at the beginning of the function
(0000138)
tomdjpn   
2015-02-26 01:38   
Many thanks. Your quick response is much appreciated
(0000147)
mohamed.kallel   
2015-03-16 10:58   
fixed in the version EasyCwmp-1.1.2

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
41 [easycwmp] Enhancement minor have not tried 2015-03-04 11:46 2015-03-16 10:58
Reporter: mohamed.kallel Platform: version 1.1.1  
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:  
e-mail notification:
Summary: remove the "$1" "$2" "$3" from the definition of data model parameters in the scripts
Description: Remove the "$1" "$2" "$3" from the definition of data model parameters in the scripts. And use global variable instead

Change the use of "$1" "$2" "$3" by using global variables

example: change the following lines:

case "$1" in ""|"$DMROOT."|"$DMROOT.DeviceInfo."*)
    common_execute_method_obj "$1" "$2" "$3" "$DMROOT.DeviceInfo." "0"
    common_execute_method_param "$1" "$2" "$3" "$DMROOT.DeviceInfo.SpecVersion" "0" "echo 1.0" "" "" "1"

BY

case "$1" in ""|"$DMROOT."|"$DMROOT.DeviceInfo."*)
    common_execute_method_obj "$DMROOT.DeviceInfo." "0"
    common_execute_method_param "$DMROOT.DeviceInfo.SpecVersion" "0" "echo 1.0" "" "" "1"
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000146)
mohamed.kallel   
2015-03-16 10:58   
fixed in the version EasyCwmp-1.1.2

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
30 [easycwmp] Bug minor always 2014-12-29 15:32 2015-03-16 10:58
Reporter: imen.bhiri Platform: Linux  
Assigned To: mohamed.kallel OS: OpenWrt  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: no type provided for the paramters added to inform message when notification is activated
Description: The field type is not provided for parameter added to parametr list of the inform message when the value off the parameter change and notification is active/passive.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000145)
mohamed.kallel   
2015-03-16 10:58   
fixed in the version EasyCwmp-1.1.2

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
42 [easycwmp] Question minor have not tried 2015-03-04 20:31 2015-03-05 09:44
Reporter: tarakt Platform: OpenWRT  
Assigned To: mohamed.kallel OS: Barrier Breaker  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: SetParameterAttributes
Description: Does easycwmp support SetParameterAttribute ? If yes, then does it support both Active and Passive notification?

Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000144)
mohamed.kallel   
2015-03-05 09:35   
(Last edited: 2015-03-05 09:44)
Yes EasyCwmp supports SetParameterAttributes with the related possible value (0:None, 2:Active, 1:Passive).

EasyCwmp daemon does not detect the change the parameter values of other application or daemon. you have to inform the easycwmpd of the change of the parameters

You have to call
 
ubus call tr069 notify '{"parameter": "A.B.1.C.2.D", "value": "newvalue"}' when your parametr is changed in other application. and then easycwmp daemon will check the attribute of the requested param. If it's:

2, then it will launch immediatly a session with the acs
1, then it will send the param in the inform of the next session with the acs
0, does nothing


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
40 [easycwmp] Question minor have not tried 2015-03-03 17:27 2015-03-05 09:38
Reporter: tarakt Platform: OpenWRT  
Assigned To: mohamed.kallel OS: barrier breaker  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Delete object or Addobject
Description: Hello Easycwmp team,

We are planning to incorporate EasyCwmp in one of our OpenWRT projects. So we are in the process of evaluation of EasyCwmp over other TR-069 client. We had a question about handling of instance number in EasyCwmp. If you could clarify that it would be great for our evaluation.

The question we have is related to Add and Delete Object. We wanted to know if the instance number is maintained by TR-069 client. Below is the scenario.

There are 4 instances added for a object

A.B.1.C.1.D
A.B.1.C.2.D
A.B.1.C.3.D
A.B.1.C.4.D

ACS sends a delete object on "A.B.1.C.3.D" i.e., ACS is asking CPE to delete the third instance. So now there are 3 objects left. After delete object the ACS sends a GetParameterName request on object A.B.1. What will be the CPE response for GetParameterName request from the below two response option?

A.B.1.C.1.D
A.B.1.C.2.D
A.B.1.C.4.D

or

A.B.1.C.1.D
A.B.1.C.2.D
A.B.1.C.3.D

If you need more clarification on the above question then please let us know.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000142)
mohamed.kallel   
2015-03-04 11:56   
(Last edited: 2015-03-04 11:57)
According to the TR-069 standard, If the ACS send a delete object of

A.B.1.C.3.D

The CWMP should return an Invalid parameter name fault. Because the "A.B.1.C.3.D" is a parameter and not an object instance.

The right way is: The ACS should send a delete Object of "A.B.1.C.3.".

So based on the above condition, if you have 4 instances objects:

A.B.1.C.1.
A.B.1.C.2.
A.B.1.C.3.
A.B.1.C.4.

And you want to delete the "A.B.1.C.3.", you will get:

A.B.1.C.1.
A.B.1.C.2.
A.B.1.C.4.

as required by the TR-069 standard.

You can find an example for that in the lan_device script. Just add a wireless config on your openwrt and then add some wireless interface to the lan and then you can play with wireless instances

(0000143)
tarakt   
2015-03-04 17:39   
Thanks for the response. Will check with the script you have suggested.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
31 [easycwmp] Help minor always 2015-01-16 09:44 2015-03-02 09:01
Reporter: sinkcup 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:  
e-mail notification:
Summary: I fork this repo on github.com, and change some code, want merge to master, is this github repo active?
Description: is this github repo active?
https://github.com/pivasoftware/easycwmp/

I have write a lot of issue, and complete most of them, want merge to master
https://github.com/pivasoftware/easycwmp/issues

Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000136)
mohamed.kallel   
2015-02-25 17:42   
Dear sinckup

I answered to your issues and patch request on github.

Please Put your new issues in the futur on this site.
And send your patches to team@easycwmp.org
(0000139)
sinkcup   
2015-02-26 02:57   
github use "fork" and "pull request" for opensource project.
you can find link in every issue. it's the code. you apply it, it will merge into the master.
don't need send the code, you can see it at https://github.com/sinkcup/easycwmp
(0000141)
mohamed.kallel   
2015-02-27 15:15   
We made an overview on your changes.
Please find here after our remarks:

1) For the InternetGatewayDevice.User.{i}. We can accept the new User data model, but you have 2 parameters which are not defined in the TR-098. Please change their name by adding a propietary prefix X_EASYCWMP_ORG_EncryptedPassword and X_EASYCWMP_ORG_LastChange
2) /init.d/easycwmpd: for the change_config is customized to your hiwifi router and could not be common for all hardware configs and OpenWRT version. So we can not accept a such modif.
3) common
* We can accept change made to get version and oui but you have to provide a patch based on our latest version (1.1.1).
* The change made to get manufacturer can't be accepted since it use command not common for all hardwares. you are free to adapt the script according to your hardware configuration and the OpenWRT Version. The goal of EasyCwmp Design is to make easy for end-user to make a such modification.

4) device_info
* We can accept change made to add 'InternetGatewayDevice.DeviceInfo.MACAddress' but you have to rename the parameter to X_EASYCWMP_ORG_MACAddress since this param does not exist in the TR-098. And please provide a patch based on our last version 1.1.1
* The change made to get manufacturer, product_class ... can't be accepted since it's not common for all hardware and OpenWrt versions.
5) lan_device
* For the hiwifi code update in the lan is refused. since it's a propietary hiwifi config file and it's not common for all hardwares.

* may be accept get_lan_device_channel InternetGatewayDevice.LANDevice.$1.Channel but you have to add channel in the appropriate path (see TR-098) And please provide a patch based on our last version 1.1.1

6) wan_device
we may accept the function to get ip address and mac address but you have to provide a patch based on our last version 1.1.1

7) easycwmp.sh
* for download, we can exept the change "\tmp" --> "\tmp$". Please provide a patch based on our last version 1.1.1
* for download, we can't accept the change for import and commit ($ORG_FILE_NAME variable)
* For apply download, we can't accept the change (add cron task). We do not see any utility to launch the download after a time via crontab. If a such modif has utility for your hardware please feel free to adapt the script according to your hardware configuration and the OpenWRT Version,
The goal of EasyCwmp Design is to make easy for end-user to make a such modification.

8) General remarks:
* The tabulation and changing parm by param is refused for all. we have our own rules and reason to use tab and not spaces
* you are free to adapt the script according to your hardware configuration and the OpenWRT Version,
The goal of EasyCwmp Design is to make easy for end-user to make a such modification.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
37 [easycwmp] Bug block always 2015-02-23 07:48 2015-02-27 09:01
Reporter: tomdjpn Platform:  
Assigned To: mohamed.kallel OS: Debian  
Priority: high OS Version: Jessie  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: make fails with struct storage size of 'tm' isn't known
Description: Hi
When trying to build 1.0.4 or later on Debian, the make fails with the following (all prereqs are installed, and earlier versions build fine):

XXX:/opt/dev/easycwmp-1.1.0# make
Making all in bin
make[1]: Entering directory '/opt/dev/easycwmp-1.1.0/bin'
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.0\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.0\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.0\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-backup.o -MD -MP -MF .deps/easycwmpd-backup.Tpo -c -o easycwmpd-backup.o `test -f '../src/backup.c' || echo './'`../src/backup.c
mv -f .deps/easycwmpd-backup.Tpo .deps/easycwmpd-backup.Po
gcc -DPACKAGE_NAME=\"easycwmpd\" -DPACKAGE_TARNAME=\"easycwmpd\" -DPACKAGE_VERSION=\"1.1.0\" -DPACKAGE_STRING=\"easycwmpd\ 1.1.0\" -DPACKAGE_BUGREPORT=\"mohamed.kallel@pivasoftware.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"easycwmpd\" -DVERSION=\"1.1.0\" -DACS_MULTI=1 -DJSONC=1 -DDEBUG=1 -DDEVEL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -D_THREAD_SAFE -D_REENTRANT -g -O2 -MT easycwmpd-config.o -MD -MP -MF .deps/easycwmpd-config.Tpo -c -o easycwmpd-config.o `test -f '../src/config.c' || echo './'`../src/config.c
../src/config.c: In function ‘config_init_acs’:
../src/config.c:125:12: error: storage size of ‘tm’ isn’t known
  struct tm tm;
            ^
Makefile:454: recipe for target 'easycwmpd-config.o' failed
make[1]: *** [easycwmpd-config.o] Error 1
make[1]: Leaving directory '/opt/dev/easycwmp-1.1.0/bin'
Makefile:343: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
Tags:
Steps To Reproduce: as above
Additional Information:
Attached Files:
Notes
(0000129)
tomdjpn   
2015-02-25 05:42   
This can be fixed by:
(1) changing "struct tm tm" => "struct tm *tm" in config_init_acs in config.c
(2) removing the redundant "struct tm tm" in cwmp.c

Also, I was getting a build error due to undefined "is_error" in json-c.
This is apparently deprecated, and an apparent fix is to replace all is_error(XX) with !XX in json.c

After that, the build completed successfully and seems to be running fine
(0000131)
mohamed.kallel   
2015-02-25 16:40   
Fixed in the version EasyCwmp-1.1.1
(0000137)
tomdjpn   
2015-02-26 01:36   
Thanks for looking into this so quickly.
Perhaps I'm missing something, but I don't see any fixes for this in the commit for version 1-1.1
https://github.com/pivasoftware/easycwmp/commit/725310ddca570d914826562a361ed75eea55fc19
(0000140)
mohamed.kallel   
2015-02-26 10:22   
The fix is not on the commit (tagged 1.1.1). It's in the commit:
https://github.com/pivasoftware/easycwmp/commit/675641ce0e7174843ff98e4eedf1227a23ae51e5

Just 2 commit before the commit tagged 1.1.1

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
38 [easycwmp] Help minor always 2015-02-24 11:52 2015-02-26 10:24
Reporter: tomdjpn Platform:  
Assigned To: mohamed.kallel OS: Debian Jessie  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Can't run easycwmpd as non-root user
Description: Is it possible to run easycwmpd (the daemon) as a non-root user?
I would like to do this for obvious security reasons.

I've tried getting ubusd running as the same non-root user (works fine), giving full permissions on the entire /opt/dev/easycwmp folder, adding execute rights for scripts in the dependencies, giving write access to /var/log/syslog etc etc, but easycwmpd resolutely refuses to run unless root user.
Nothing is written to any log file as far as I can see, so it's hard to diagnose further.

(easycwmp the script works fine - it's just the daemon that won't run).
Tags:
Steps To Reproduce: as above
Additional Information:
Attached Files:
Notes
(0000128)
tomdjpn   
2015-02-25 05:39   
Looking at the source, I note main() does a check of the UID and fails if not 0 (root). This is understandable because daemon needs capabilities e.g. to open socket.
Could it be imagined to do something similar to apache/nginx where the master process runs as root but the workers are non-root?
(0000130)
mohamed.kallel   
2015-02-25 10:42   
You can run as non root only if you have permission on your non-root user to use sockets.
And also you need permissions to create file under /var/run

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
34 [easycwmp] Bug major have not tried 2015-02-11 18:28 2015-02-25 16:42
Reporter: mohamed.kallel Platform:  
Assigned To: user13 OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Avoid the inherit of opened sockets and opend files to the fork() child
Description: Avoid the inherit of opened sockets and opend files (like /var/run/easycwmp.pid) to the fork() child
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000134)
mohamed.kallel   
2015-02-25 16:42   
Fixed in the version EasyCwmp-1.1.1

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
36 [easycwmp] Enhancement minor have not tried 2015-02-13 16:48 2015-02-25 16:41
Reporter: mohamed.kallel Platform:  
Assigned To: user13 OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: acs url should be configured via only one option in the acs section
Description: acs url should be configured via only one option in the acs section
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000132)
mohamed.kallel   
2015-02-25 16:41   
Fixed in the version EasyCwmp-1.1.1

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
33 [easycwmp] Question major sometimes 2015-02-04 09:41 2015-02-13 08:42
Reporter: linhe Platform: centOS  
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:  
e-mail notification:
Summary: cross-compile
Description: I would like to cross-compile easycwmp,and run the program on fl240 board。if you have the relevant documents,can you give me a copy?than you!
Tags:
Steps To Reproduce:
Additional Information: The chip is s3c2440
Attached Files:
Notes
(0000126)
mohamed.kallel   
2015-02-11 18:38   
You can follow the manual in the Install page of the http://easycwmp.org with some modif in the ./configure and in the install of each package.
(0000127)
linhe   
2015-02-12 14:55   
ok,i will try,thank you.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
29 [easycwmp] Question major always 2014-12-29 08:30 2015-02-11 18:30
Reporter: linhe Platform: linux  
Assigned To: user13 OS: centOS  
Priority: normal OS Version: 6.5  
Status: resolved Product Version:  
Product Build: Resolution: no change required  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: openacs can not find easycwmp
Description: hi,Can you tell me how to configure /etc/config/easycwmp and /usr/share/easycwmp/defaults, I use OpenACS, but I don't know how to make CPE and ACS connection, how to add my own product configuration.thanks.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000112)
linhe   
2014-12-29 12:01   
when i run easycwmp with command:sudo /usr/sbin/easycwmpd start
it shows:
config_init_local(53):: easycwmp.@local[0].interface=eth0
config_init_local(63):: easycwmp.@local[0].port=7547
config_init_local(81):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(69):: easycwmp.@local[0].username=easycwmp
config_init_local(75):: easycwmp.@local[0].password=easycwmp
config_init_acs(149):: easycwmp.@acs[0].scheme=http
config_init_acs(155):: easycwmp.@acs[0].username=easycwmp
config_init_acs(161):: easycwmp.@acs[0].password=easycwmp
config_init_acs(167):: easycwmp.@acs[0].hostname=192.168.1.110
config_init_acs(177):: easycwmp.@acs[0].port=8080
config_init_acs(183):: easycwmp.@acs[0].path=/openacs/acs
config_init_acs(189):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(195):: easycwmp.@acs[0].periodic_interval=100
config_init_acs(201):: easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z
[weishusheng@localhost easycwmp]$
[weishusheng@localhost easycwmp]$
(0000117)
user13   
2014-12-29 18:15   
(Last edited: 2014-12-30 09:13)
You have to edit the ACS server parameters in config file '/etc/config/easycwmp' :

config acs
        option scheme 'http'
        option port '8080' --> the port used by your ACS server
        option path '/openacs/acs'--> the path in your ACS URL
        option hostname '192.168.1.77' --> should be the IP address of your ACS server
        option periodic_time '2014-01-01T00:01:21'
        option username 'easycwmp' --> the username if needed (secure ACS)
        option password 'pass' --> the password if needed (secure ACS)
        option periodic_enable 'true'
        option periodic_interval '180'
        option parameter_key 'commandKey'

(0000119)
linhe   
2015-01-13 07:17   
(Last edited: 2015-01-14 05:15)
Thank you to answer my question ,I follow your suggestions to configure my script,but the client starts to half and then get stucked,what should i do?Is ubusd gone wrong?Look forward to your advice!


notes;
[weishusheng@centOS6 ~]$ sudo easycwmpd start
config_init_local(54):: easycwmp.@local[0].interface=eth0
config_init_local(64):: easycwmp.@local[0].port=8080
config_init_local(82):: easycwmp.@local[0].ubus_socket=/tmp/ubus.sock
config_init_local(70):: easycwmp.@local[0].username=easycwmp
config_init_local(76):: easycwmp.@local[0].password=easycwmp
config_init_acs(150):: easycwmp.@acs[0].scheme=http
config_init_acs(156):: easycwmp.@acs[0].username=admin
config_init_acs(162):: easycwmp.@acs[0].password=openacs
config_init_acs(168):: easycwmp.@acs[0].hostname=192.168.1.3
config_init_acs(178):: easycwmp.@acs[0].port=8080
config_init_acs(184):: easycwmp.@acs[0].path=/openacs/acs
config_init_acs(190):: easycwmp.@acs[0].periodic_enable=0
config_init_acs(196):: easycwmp.@acs[0].periodic_interval=180
config_init_acs(202):: easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z

it stop here...

and the /var/log/messages shows:
Jan 14 19:55:05 centOS6 easycwmpd: daemon started
Jan 14 19:55:05 centOS6 easycwmpd: add event '0 BOOTSTRAP'
Jan 14 19:55:05 centOS6 easycwmpd: configuration (re)load
Jan 14 19:55:05 centOS6 easycwmpd: init periodic inform: reference time = n/a, interval = 180
Jan 14 19:55:05 centOS6 easycwmpd: external script init
Jan 14 19:55:05 centOS6 easycwmpd: external: execute inform device_id
Jan 14 19:55:05 centOS6 easycwmpd: external script exit

(0000122)
mohamed.kallel   
2015-01-16 10:55   
(Last edited: 2015-01-16 14:12)
In fact your easycwmpd is running. you can check that with "ps -aux | grep cwmp"

But it will never start a session because there is no event to trigger a session.

exemple of events that you can do:

1) enable periodic event and you will get a periodic TR-069 session with your ACS

        option periodic_enable 'true'
        option periodic_interval '180'

2) Send a connection request to your cwmp:
Open your web browser and type the address:
"http://<ip_address_of_your_cpe>:7547

be sure that the local port is already configure with
easycwmp.@local[0].port=7547

3) To trigger an event at the start of easycwmpd, start the easycwmpd with the -g option:

[weishusheng@centOS6 ~]$ sudo easycwmpd -g

(0000125)
linhe   
2015-02-04 09:44   
It is my server's problem, you can put off this post, sorry,and thank you.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
18 [easycwmp] Help minor always 2014-10-20 10:24 2015-01-26 04:17
Reporter: janmus Platform: ARMv5TEJ  
Assigned To: user13 OS: 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:  
e-mail notification:
Summary: Run the easycwmp support RPC method [Upload] problem from OpenACS
Description: The Default script as below:

logger("=======>Upload the configuration file<=======");
var response = cpe.Upload ("daCommand", "3 Vendor Configuration File", "http://192.168.0.140:8080/openacs/", "", "", 24, "upload.conf");
logger ("st =" + response.StartTime + "ct =" + response.CompleteTime + "status =" + response.Status);
logger("=======>END<=======");
--------------------------------------------------------------------------
The output from jboss :

INFO: Request is Inform
INFO: oui=FFFFFF sn=FFFFFF123456 oui=FFFFFF, sn=FFFFFF123456, URL=http://192.168.0.114:7547/, hw=v0.153, sw=v1.553, cfg=null, ProvisioningCode=
INFO: FFFFFF:FFFFFF123456 Configurator::run
INFO: FFFFFF:FFFFFF123456 Backup cwmp tree
INFO: FFFFFF:FFFFFF123456 Configurator::CheckParameters
INFO: oui=FFFFFF sn=FFFFFF123456 Request is GetParameterValuesResponse
INFO: oui=FFFFFF sn=FFFFFF123456 Request is Fault
15:05:32,138 INFO [STDOUT] Fault: CWMP fault cwmp: Invalid parameter name
SEVERE: FFFFFF:FFFFFF123456 FAULT: code=Client msg=CWMP fault ccode=9005 cmsg=Invalid parameter name
INFO: oui=FFFFFF sn=FFFFFF123456 Request is Fault
SEVERE: FFFFFF:FFFFFF123456 FAULT: code=Client msg=CWMP fault ccode=9005 cmsg=Invalid parameter name
INFO: =======>Upload the configuration file<=======
SEVERE: FFFFFF:FFFFFF123456 Run exception: [object Object] line: 0 column: 0


Tags:
Steps To Reproduce:
Additional Information:
Attached Files: test.conf (33 bytes) 2014-10-22 12:43
https://support.easycwmp.org/file_download.php?file_id=21&type=bug
Notes
(0000076)
mohamed.kallel   
2014-10-20 21:44   
(Last edited: 2014-10-20 21:44)
Upload method is not supported in easycwmp
Please refer to the http://www.easycwmp.org (chapter "EasyCwmp supported methods") to see all supported methods

(0000077)
janmus   
2014-10-21 04:25   
(Last edited: 2014-10-21 05:58)
OK, I see , Thank you very mush.

Then I try RPC method [download] that has support by easycwmp,
But get some error as below,
I can'nt see the download file(test.conf) from openacs to my device.
--------------------------------------------------------------------------
The Default script as below:

logger ("Configuration file Download STARTING");
var response = cpe.Download ("daCommand", "3 Vendor Configuration File","http://192.168.0.140:8080/openacs/firmware/test.conf", "", "",18,"test.conf");
logger ("st="+response.StartTime+" ct="+response.CompleteTime+" status="+response.Status);
logger ("Configuration file Download DONE");

--------------------------------------------------------------------------
The output from jboss :

INFO: Request is Inform
INFO: oui=FFFFFF sn=FFFFFF123456 oui=FFFFFF, sn=FFFFFF123456,
   URL=http://192.168.0.114:7547/, hw=v0.153, sw=v1.553, cfg=null,
   ProvisioningCode=
INFO: oui=FFFFFF sn=FFFFFF123456 Request is TransferComplete
INFO: oui=FFFFFF sn=FFFFFF123456 TransferComplete:
   cmdkey=daCommand faultcode=9018 faultstring=Download failure: file corrupted
INFO: FFFFFF:FFFFFF123456 Configurator::run
INFO: FFFFFF:FFFFFF123456 Backup cwmp tree
  WARNING: FFFFFF:FFFFFF123456 Configuration script 'OnTransferComplete' not found in db.
INFO: Configuration file Download STARTING
  INFO: oui=FFFFFF sn=FFFFFF123456 Request is DownloadResponse
  INFO: st=0001-01-01T00:00:00Z ct=0001-01-01T00:00:00Z status=1
INFO: Configuration file Download DONE
INFO: uri=/openacs/firmware/test.conf, size=18, ct=null

(0000078)
user13   
2014-10-22 11:02   
(Last edited: 2014-10-22 11:03)
Execute these command :

root@OpenWrt:~#wget -O test.conf http://192.168.0.140:8080/openacs/firmware
/test.conf

root@OpenWrt:~# /sbin/uci import < test.conf

Could you enclose the test.conf file

(0000079)
janmus   
2014-10-22 12:42   
Sure, Please see the attached file.

The test.conf content does not uci format,
So,I got some error as below :

# /sbin/uci import < test.conf
  /sbin/uci: Parse error (invalid command) at line 2, byte 0
(0000081)
user13   
2014-10-22 15:56   
So this is a normal behaviour of EasyCwmp according to TR069 standard.

Please use the right format of the configuration file

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
28 [easycwmp] Question minor have not tried 2014-12-26 07:57 2015-01-07 09:28
Reporter: meghamistry Platform:  
Assigned To: user13 OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: I am interested to understand parameter values sent by ACS server , where does it get stored ?
Description: I am interested to understand parameter values sent by ACS server , where does it get stored ?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000118)
user13   
2014-12-30 09:24   
(Last edited: 2014-12-30 09:25)
All parameters set by the ACS are stored in config file which the parameter belongs.
For example if you change the ip address of your ACS the new ip address is stored in config file /etc/config/easycwmp .

config acs
        option scheme 'http'
        option port '8080'
        option path '/openacs/acs'
        option hostname '192.168.1.x' <==


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
27 [easycwmp] Question minor have not tried 2014-12-26 07:56 2015-01-07 09:27
Reporter: meghamistry Platform:  
Assigned To: user13 OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: How does the initial message sequence work ?
Description: How does the initial message sequence work ? Can you please explain ?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000116)
user13   
2014-12-29 17:17   
(Last edited: 2014-12-30 08:43)
The communication between easycwmp core and scripts is done via the pipe created in the "external_init()" function. If this pipe is established, the easycwmp core can write command and read results via this pipe.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
26 [easycwmp] Question minor N/A 2014-12-26 07:55 2015-01-07 09:27
Reporter: meghamistry Platform:  
Assigned To: user13 OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Could you please let me know which entity calls scripts in easycwmp core ?
Description: Could you please let me know which entity calls scripts in easycwmp core ?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000115)
user13   
2014-12-29 14:56   
(Last edited: 2014-12-29 15:42)
In easycwmp core, the entity which calls the script is located in in external.c file, the initiation is done in 'int external_init()' function.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
25 [easycwmp] Bug crash always 2014-12-19 12:20 2014-12-29 12:19
Reporter: meghamistry Platform:  
Assigned To: mohamed.kallel OS: Ubuntu  
Priority: urgent OS Version: 12.04  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: easycwmp excutable carshes upon CTRL + C
Description: I have installed easycwmp on Ubuntu OS.

While testing I observer inform request/ response procedure exchange with ACS server.

After that to end the easycwmp process I give CTRL + C. This leads to segmentation faul.


Please find below log for the same :


< HTTP/1.1 204 No Content
< Server: Apache-Coyote/1.1
* Replaced cookie JSESSIONID="B9F2C76868B6C331AFB846C9BC7CA0D5" for domain 172.27.36.61, path /tr069/, expire 0
< Set-Cookie: JSESSIONID=B9F2C76868B6C331AFB846C9BC7CA0D5; Path=/tr069/; HttpOnly
< Connection: close
< Date: Thu, 18 Dec 2014 22:41:22 GMT
<
* Closing connection #0
+++ RECEIVED EMPTY HTTP RESPONSE +++













^CSegmentation fault (core dumped)



Tags:
Steps To Reproduce: Run easycwmp using
- /usr/sbin/ubusd -s /tmp/ubus.sock
- /usr/sbin/easycwmpd -f -b

Bring up ACS server

Observe Inform Request / Response procedure exchange

Then give CTRL + C command on the terminal easycwmp is running

you will observer segmentation fault

When I run this using gdb I don't observe segmentation fault.
Additional Information:
Attached Files:
Notes
(0000114)
mohamed.kallel   
2014-12-29 12:19   
resolved and delivered in easycwmp-1.0.5

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
24 [easycwmp] Enhancement minor have not tried 2014-11-24 12:05 2014-12-29 12:18
Reporter: user13 Platform: openwrt  
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:  
e-mail notification:
Summary: remove Accept and change content type of the HTTP header
Description: 1) remove Accept from the header

2) change content type to :
Content-Type: text/html; charset=utf-8
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000113)
mohamed.kallel   
2014-12-29 12:18   
resolved and delivered in easycwmp-1.0.5

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
23 [easycwmp] Enhancement minor N/A 2014-11-21 11:31 2014-11-24 12:01
Reporter: user13 Platform: OpenWrt  
Assigned To: user13 OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Add InternetGatewayDevice.ManagementServer.PeriodicInformTime parameter
Description: Add InternetGatewayDevice.ManagementServer.PeriodicInformTime parameter
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000111)
user13   
2014-11-24 09:48   
(Last edited: 2014-11-24 12:01)
delivered in version 1.0.4


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
21 [easycwmp] Question minor have not tried 2014-10-31 10:33 2014-11-05 09:00
Reporter: saleh Platform:  
Assigned To: user13 OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Work with genie acs and easycwmp
Description: Hello , i am working on implementation of tr069 acs, but i had a problem in remote access from connecting different router/gateway ,and i don't want to do port mapping. I implemented genie acs and i see my all parameters but i can't connect it from different router. I wonder can i implement genie acs for server side and easy cwmp for client side,is this work ? If so how can i do? May you help me on this issue ?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000104)
user13   
2014-10-31 11:14   
Yes, you can use EasyCwmp with genie acs.
concerning the install of easycwmp on your router, it depends of the linux system installed on your router.
Please refer to the install page (http://www.easycwmp.org/index.php/manual) and follow the steps related to your linux system.
(0000105)
saleh   
2014-10-31 12:28   
Do i have to set up easycwmp in EVERY modem to connect devices?Also in this link i couldn't find the set up of easycwmp for modem ?
(0000106)
user13   
2014-10-31 14:56   
If you have a device with easycwmp installed, and the device is behind a modem (with NAT configured), then you can not do a connection request from the ACS to the device. Because easycwmp doesn't support yet XMPP neither STUN.

The TR069 standard propose one of these protocols (XMPP or STUN) as a solution to make a connection request from an ACS to a device behind a NAT
(0000107)
saleh   
2014-11-03 13:31   
Thank you very much, i understand it.Can you help me is it necessary to genie acs have stun server support for remote access?Also for remote access i want to use udp, should i make a change in server, for requests coming from udp? At the end how will i know requests coming from udp ?
(0000108)
user13   
2014-11-03 14:53   
You have to look at genie acs wiki to know the stun server used with genie acs.

According to TR069 standard, the procedures for making use of STUN to allow the use of UDP Connection Requests to a CPE are summarized as follows:

*The ACS enables the use of STUN in the CPE (if it is not already enabled by
factory default) and designates the STUN server for the CPE to use.

*The CPE uses STUN to determine whether or not the CPE is behind a NAT
Gateway with a private allocated address.

*If the CPE is behind a NAT Gateway with a private allocated address, the CPE
uses the procedures defined in STUN to discover the binding timeout.

*The CPE sends periodic STUN Binding Requests at a sufficient frequency to keep
alive the NAT binding on which it listens for UDP Connection Requests.

*When the CPE determines the public IP address and port for the NAT binding on
which it is listening for UDP Connection Requests, and whenever it subsequently
changes, the CPE communicates this information to the ACS. Two means are
provided by which the ACS, at its discretion, can obtain this information—either
from information provided in the STUN Binding Request messages themselves,
or via Notification on changes to the UDPConnectionRequestAddress Parameter,
which the CPE will update to include the public Connection Request address and
port.

*Whenever the ACS wishes to establish a connection to the CPE, it can send a
UDP Connection Request to the CPE. To accommodate the broadest class
of NAT Gateways, this will be sent from the same source address and port as the
STUN server.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
22 [easycwmp] Question minor have not tried 2014-11-04 06:47 2014-11-05 08:59
Reporter: janmus Platform:  
Assigned To: user13 OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: TR-069 expansion agreements : TR-111 and TR-106
Description: Does easycwmp support the TR-069 expansion agreements like as TR-111 and TR-106 ?
how to implement them into to easycwmp ?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000109)
user13   
2014-11-04 17:17   
*) TR-106 specifies a baseline object structure to be supported by any TR -069-enabled device
*) TR-111 requires that the TR-069-enabled device supports stun for devices behind NAT
 TR-106 is supported
 TR-111 is not supported
(0000110)
janmus   
2014-11-05 04:00   
OK,Thank you very mush !

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
20 [easycwmp] Help minor always 2014-10-23 06:01 2014-10-29 14:13
Reporter: janmus Platform: ARMv5TEJ  
Assigned To: mohamed.kallel OS: 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:  
e-mail notification:
Summary: Run the easycwmp support RPC method [DeleteObject] problem from OpenACS
Description: The Default script as below:

logger("=======>DeleteObject<=======");
cpe.DeleteObject('InternetGatewayDevice.LANDevice.1.WLANConfiguration.', '');
logger("=======>END<=======");

--------------------------------------------------------------------------
The output from jboss :

INFO: Request is Inform
INFO: oui=FFFFFF sn=FFFFFF123456 oui=FFFFFF, sn=FFFFFF123456,
URL=http://192.168.0.118:7547/, hw=v0.153, sw=v1.553, cfg=null, ProvisioningCode=
INFO: FFFFFF:FFFFFF123456 Configurator::run
INFO: FFFFFF:FFFFFF123456 Backup cwmp tree
INFO: FFFFFF:FFFFFF123456 Configurator::CheckParameters
INFO: oui=FFFFFF sn=FFFFFF123456 Request is GetParameterValuesResponse
INFO: =======>DeleteObject<=======
11:34:28,148 INFO [STDOUT] Received: DeleteObject
11:34:28,161 INFO [STDOUT] End of processing
INFO: oui=FFFFFF sn=FFFFFF123456 Request is Fault
11:34:28,425 INFO [STDOUT] Fault: CWMP fault cwmp: Invalid parameter name
SEVERE: FFFFFF:FFFFFF123456 Run exception: [object Object] line: 0 column: 0
11:34:33,432 INFO [STDOUT] Received: null
11:34:33,434 INFO [STDOUT] End of processing
Tags:
Steps To Reproduce:
Additional Information:
Attached Files: scripts.rar (15,635 bytes) 2014-10-29 10:26
https://support.easycwmp.org/file_download.php?file_id=25&type=bug
Notes
(0000083)
user13   
2014-10-23 17:38   
(Last edited: 2014-10-23 17:39)
the RPC method [DeleteObject] required the number of the object instance to be deleted.

try with this (object instance 2 must exist):

logger("=======>DeleteObject<=======");
cpe.DeleteObject('InternetGatewayDevice.LANDevice.1.WLANConfiguration.2.', '');
logger("=======>END<=======");

(0000084)
janmus   
2014-10-24 06:03   
After testing, some errors occur :

INFO: =======>DeleteObject<=======
11:44:28,133 INFO [STDOUT] Received: DeleteObject
11:44:28,137 INFO [STDOUT] End of processing
INFO: oui=FFFFFF sn=FFFFFF123456 Request is Fault
11:44:28,808 INFO [STDOUT] Fault: CWMP fault cwmp: Invalid parameter name
SEVERE: FFFFFF:FFFFFF123456 Run exception: [object Object] line: 0 column: 0
11:44:33,815 INFO [STDOUT] Received: null
11:44:33,817 INFO [STDOUT] End of processing
----------------------------------------------------------------
Error messages seem to be almost as big as the previous.

How to add a new object like this: 'InternetGatewayDevice.LANDevice.1.WLANConfiguration.2.'

How to get the RPC method [DeleteObject] required the number of the object instance to be deleted ?
(0000088)
user13   
2014-10-27 09:12   
(Last edited: 2014-10-27 09:24)
You have to choose the right number of instance.

check it by this cmd :

easycwmp --json get name "" 0
.............
{ "parameter": "InternetGatewayDevice.LANDevice.1.WLANConfiguration.2.SSID", "fault_code": "", "writable": "1" }
...............

(0000091)
janmus   
2014-10-28 04:12   
(Last edited: 2014-10-28 04:13)
I cat not find the node :
"InternetGatewayDevice.LANDevice.1.WLANConfiguration.2.SSID"

The output as below
# /usr/sbin/easycwmp --json get name "" 0

{ "parameter": "InternetGatewayDevice.LANDevice.", "fault_code": "", "writable": "0" }
{ "parameter": "InternetGatewayDevice.LANDevice.1.", "fault_code": "", "writable": "0" }
{ "parameter": "InternetGatewayDevice.LANDevice.1.WLANConfiguration.", "fault_code": "", "writable": "1" }

(0000092)
user13   
2014-10-28 09:04   
you have to add instance and then after you can delete it

cpe.AddObject('InternetGatewayDevice.LANDevice.1.WLANConfiguration.', '');

Use the cmd " /usr/sbin/easycwmp --json get name "" 0 " to check the instance number to be deleted
(0000094)
janmus   
2014-10-28 09:46   
If use the Default script,
------------------------------------------------------------------------------
cpe.AddObject('InternetGatewayDevice.LANDevice.1.WLANConfiguration.', '');

then use cmd to check : Nothing changed as in previous.

------------------------------------------------------------------------------
If use the cmd :

# /usr/sbin/easycwmp --json add object "InternetGatewayDevice.LANDevice.1.WLANConfiguration."

There seems to be a response

{ "status": "1", "instance": "1" }


then use cmd to check : Still Nothing changed as in previous.

{ "parameter": "InternetGatewayDevice.LANDevice.", "fault_code": "", "writable": "0" }
{ "parameter": "InternetGatewayDevice.LANDevice.1.", "fault_code": "", "writable": "0" }
{ "parameter": "InternetGatewayDevice.LANDevice.1.WLANConfiguration.", "fault_code": "", "writable": "1" }
(0000095)
user13   
2014-10-28 16:47   
execute this cmd more than one time :

/usr/sbin/easycwmp --json add object "InternetGatewayDevice.LANDevice.1.WLANConfiguration."

and check if instance number is incremented
(0000096)
janmus   
2014-10-29 10:25   
The instance number is not incremented after I test.

Could you help me check the attached file (scripts.RAR),

Does the scripts of easycwmp-1.0.3 have any problems?
(0000097)
user13   
2014-10-29 10:58   
(Last edited: 2014-10-29 11:13)
what is your linux distribution?

Because scripts are developed and tested under Openwrt.
Please note that OpenWrt use uci configuration files.

If your linux is not OpenWRT, then you have to update the scripts according to your linux system

(0000098)
janmus   
2014-10-29 11:13   
In embedded linux system (MontaVista)

root # uname -a
Linux MontaVista 3.0.8 #1 Tue Aug 5 14:45:54 CST 2014 armv5tejl GNU/Linux

In x86 linux system (fedora)
# uname -r
2.6.35.6-45.fc14.i686

These platforms are the same test results.
(0000099)
mohamed.kallel   
2014-10-29 11:15   
Then you have to update the data model scripts according to your linux system configurations
(0000100)
janmus   
2014-10-29 11:26   
Does the easycwmp scripts can not developed and tested under general x86 linux ?

I do'nt clear,

Could you teach me, how to configure, Thank you !
(0000101)
mohamed.kallel   
2014-10-29 12:04   
easycwmp script can run on any linux distribution. But you have to update the set, get, addobject and delete object functions according to your linux system.

Example: if we take the "get_wlan_enable()" function. You have to update the command of getting value with the related command of your system.

So you have to change the following line with a command related to your linux system

val=`$UCI_GET wireless.wl0.disabled 2> /dev/null`
(0000103)
janmus   
2014-10-29 12:17   
OK, I will test, Thank you very mush.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
19 [easycwmp] Help minor always 2014-10-21 05:08 2014-10-28 14:03
Reporter: janmus Platform: ARMv5TEJ  
Assigned To: user13 OS: 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:  
e-mail notification:
Summary: Run the easycwmp support RPC method [AddOject] problem from OpenACS
Description: The Default script as below:

logger("=======>increase node AddOject<=======");
cpe.AddObject ('InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.PortMapping.','');
cpe.AddObject ('InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.','');
logger("=======>END<=======");
--------------------------------------------------------------------------
The output from jboss :

INFO: Request is Inform
INFO: oui=FFFFFF sn=FFFFFF123456 oui=FFFFFF, sn=FFFFFF123456, URL=http://192.168.0.114:7547/, hw=v0.153, sw=v1.553, cfg=null, ProvisioningCode=
INFO: FFFFFF:FFFFFF123456 Configurator::run
INFO: FFFFFF:FFFFFF123456 Backup cwmp tree
INFO: FFFFFF:FFFFFF123456 Configurator::CheckParameters
INFO: oui=FFFFFF sn=FFFFFF123456 Request is GetParameterValuesResponse
INFO: =======>increase node AddOject<=======
INFO: oui=FFFFFF sn=FFFFFF123456 Request is Fault
SEVERE: FFFFFF:FFFFFF123456 Run exception: [object Object] line: 0 column: 0
11:04:53,549 INFO [STDOUT] Received: null
11:04:53,550 INFO [STDOUT] End of processing
Tags:
Steps To Reproduce:
Additional Information:
Attached Files: ADDobject-CWMPvaluestree.jpg (164,894 bytes) 2014-10-23 05:20
https://support.easycwmp.org/file_download.php?file_id=22&type=bug
jpg

cwmp values tree_LanDev.JPG (63,750 bytes) 2014-10-24 11:29
https://support.easycwmp.org/file_download.php?file_id=23&type=bug
jpg

cwmp values tree.JPG (53,581 bytes) 2014-10-24 11:29
https://support.easycwmp.org/file_download.php?file_id=24&type=bug
jpg
Notes
(0000080)
user13   
2014-10-22 15:10   
Please check the permission flag of the object. Because you can add an object instance for only the object with attribute "writable" equal to 1.

check this with the following cmd:
root@OpenWrt:~# easycwmp --json get name "" 0

{ "parameter": "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.", "fault_code": "", "writable": "0" }


try with this object :
logger("=======>increase node AddOject<=======");
cpe.AddObject ('InternetGatewayDevice.LANDevice.1.WLANConfiguration.', '');
logger("=======>END<=======");
(0000082)
janmus   
2014-10-23 05:20   
(Last edited: 2014-10-24 09:42)
I try the test that the result is OK,
But, I can not see the object be added to "CWMP values tree",
Please see the attached file (ADDobject-CWMPvaluestree.jpg).

Then,I try an another test as below:
-----------------------------------------------
logger("=======>AddObject<=======");
cpe.AddObject('InternetGatewayDevice.LANDevice.1.WLANConfiguration.2.', '');
logger("=======>END<=======");
-----------------------------------------------
The result is fail,
Error messages seem to be almost as big as the previous.

(0000085)
user13   
2014-10-24 10:12   
(Last edited: 2014-10-24 10:16)
when you add object you should not add the instance number.
cpe.AddObject('InternetGatewayDevice.LANDevice.1.WLANConfiguration.2.', '');

this done by the cpe.

(0000086)
user13   
2014-10-24 11:28   
I use OpenACS, and all object of "InternetGatewayDevice." exist in "CWMP values tree" section.

see attached file
(0000087)
janmus   
2014-10-24 11:45   
(Last edited: 2014-10-24 11:57)
Yes, I see . Thank you !
I use the OpenACS at my Virtual machine,
But mine testing result different from you.

Could you send me your OpenACS IP for testing

MY e-mail : janmus.chan@gmail.com

Thank you very mush !

(0000089)
user13   
2014-10-27 11:37   
I use OpenACS installed on my pc.
Currently, we don't have an ACS server for public access.

Thank you
(0000090)
janmus   
2014-10-27 13:53   
(Last edited: 2014-10-28 04:47)
OK, Thank you.

One thing I later found,
my source server may not be the OpenACS,But LibreACS(the fork of OpenACS)
I don't clear, What is the difference between OpenACS and LibreACS.

In addition to ,I can not find OpenACS images from internet release, but LibreACS.
Do you have a virtual machine version of OpenACS, available for download ?


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
16 [easycwmp] Question minor always 2014-10-09 01:48 2014-10-10 16:47
Reporter: hlee Platform: openWRT - AA  
Assigned To: user13 OS: Linux  
Priority: none OS Version: 2.6.36  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: in script /usr/sbin/easycwmp
Description: the script seems always in the while loop:

        while read CMD; do
            [ -z "$CMD" ] && continue
            json_get_opt "$CMD"
            handle_action
        done

because CMD was not defined. Where did CMD get defined?

Thanks.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000074)
mohamed.kallel   
2014-10-09 09:31   
CMD is got from

     while read CMD; do

it's got from stdin. and in C we make a pipe to the stdin in order to send data (commands) to the script

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
15 [easycwmp] Help minor always 2014-10-01 07:32 2014-10-08 13:16
Reporter: janmus Platform: ARMv5TEJ  
Assigned To: mohamed.kallel OS: 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:  
e-mail notification:
Summary: Run easycwmp scripts problem
Description: I always get some error after I try to run command as '/usr/sbin/easycwmp --json get name "" 0' on my platform.

root # /usr/sbin/easycwmp --json get name "" 0
The error message output as below :
--------------------------------------------------------
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
sh: can't execute 'readonly': No such file or directory
flags:ERROR missing flag info variable (__flags_type_)
flags:FATAL call to _flags_type_ failed
flags:FATAL unrecognized option (json,help,nojson,nohelp)
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000061)
user13   
2014-10-01 17:02   
(Last edited: 2014-10-01 18:38)
This issue could be the same of issue 0000006.

Please check that your /bin/sh is linked to bash

As indicated in the manual, you have to execute this command:

sudo ln -sf bash /bin/sh

(0000063)
janmus   
2014-10-02 05:27   
There are only one shell(/bin/sh) that linked to busybox in my system.
/root# ls -al /bin/sh
lrwxrwxrwx 1 root root 7 Dec 4 14:27 /bin/sh -> busybox

Definitely need bash shell?
(0000064)
mohamed.kallel   
2014-10-02 08:31   
What Linux system are you using? Is it OpenWRT?

could you provide the ouput of the command

busybox --list | grep sh
(0000065)
janmus   
2014-10-02 13:22   
No,it is not OpenWRT, I use the MontaVista Linux Kernel (version: 3.0.8)
Now , I had update the busybox that is support with bash shell.
and the Problem has been solved !!
# busybox --list | grep sh
add-shell
ash
bash
fbsplash
fdflush
hush
msh
remove-shell
sh
sha1sum
sha256sum
sha512sum
showkey

But new problems have arisen as below :
root # bash /usr/sbin/easycwmp --json get name "" 0
     /usr/sbin/easycwmp: export: line 208: illegal option -n

Problem may seem UCI.sh and its implementation
(0000066)
mohamed.kallel   
2014-10-02 14:20   
(Last edited: 2014-10-02 14:21)
as indicated in the issue 0000006, you have to link the /bin/sh to ash with the following command on root

root@Linux:~# ln -sf /usr/sbin/ash /bin/sh

Make sure that your ash is really under /usr/sbin/

check now that your /bin/sh is linked to the ash with

root@Linux:~# ls -l /bin/sh
lrwxrwxrwx 1 root root 13 Mar 12 21:47 /bin/sh -> /usr/sbin/ash

Now you can get the easycwmp data model output with:

root@Linux:~# /bin/sh /usr/sbin/easycwmp --json get name "" 0

(0000067)
janmus   
2014-10-03 04:46   
I tried as you said, but, the Problem still exists.
------------------------------------------------------------------------
root # which busybox
   /usr/sbin/busybox

root # ls -al /usr/sbin/ash
lrwxrwxrwx 1 root root 17 Mar 23 20:59 /usr/sbin/ash -> /usr/sbin/busybox

root # ls -l /bin/sh
lrwxrwxrwx 1 root root 13 Mar 23 21:00 /bin/sh -> /usr/sbin/ash

root # /bin/sh /usr/sbin/easycwmp --json get name "" 0
   /usr/sbin/easycwmp: export: line 208: illegal option -n
------------------------------------------------------------------------
------------------------------------
(0000068)
user13   
2014-10-07 11:21   
(Last edited: 2014-10-07 12:33)
could you provide the result of these commands :
root # busybox --help
root # uname -a

(0000069)
janmus   
2014-10-07 13:41   
Sure, the output as below
root # busybox --help
BusyBox v1.20.2 (2014-10-06 17:30:20 CST) multi-call binary.

root # uname -a
Linux MontaVista 3.0.8 #1 Tue Aug 5 14:45:54 CST 2014 armv5tejl GNU/Linux
(0000071)
janmus   
2014-10-08 04:48   
I tracked the problem takes place and see from the output of error messages seem to be and related to UCI.sh running.
Yes,I had, the output as below,

# uci show
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.@acs[0]=acs
easycwmp.@acs[0].scheme=http
easycwmp.@acs[0].username=openacs
easycwmp.@acs[0].password=openacs
easycwmp.@acs[0].hostname=192.168.0.97
easycwmp.@acs[0].port=8080
easycwmp.@acs[0].path=/openacs/acs
easycwmp.@acs[0].periodic_enable=1
easycwmp.@acs[0].periodic_interval=100
easycwmp.@device[0]=device
easycwmp.@device[0].manufacturer=lpc
easycwmp.@device[0].oui=FFFFFF
easycwmp.@device[0].product_class=easycwmp-v3
easycwmp.@device[0].serial_number=FFFFFF123456
easycwmp.@device[0].hardware_version=v0.153
easycwmp.@device[0].software_version=v1.553
easycwmp.@scripts[0]=scripts
easycwmp.@scripts[0].location=/lib/functions/network.sh /usr/share/easycwmp/functions/common /usr/share/easycwmp/functions/device_info /usr/share/easycwmp/functions/lan_device /usr/share/easycwmp/functions/management_server /usr/share/easycwmp/functions/wan_device
easycwmp.@scripts[0].function=device_info lan_device management_server wan_device

I had add your account from skype, Please check.
(0000073)
janmus   
2014-10-08 12:00   
(Last edited: 2014-10-08 12:26)
Now ,I try to change busybox version and patch it ,then the problem has fixed.
The issue would be closed,
Thank you very much !


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
14 [easycwmp] Help minor always 2014-10-01 03:51 2014-10-02 14:25
Reporter: CwmpUser Platform: openwrt  
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:  
e-mail notification:
Summary: get channel and txpower from AP
Description: Forgive me as a newbie for easycwmp. I'm working on making easycwmp provide channel and txpower to ACS. Beside the function scripts, what else do I need to change?
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000062)
mohamed.kallel   
2014-10-01 18:34   
(Last edited: 2014-10-01 18:34)
If you mean that you want to implement a new parameters, then you have to read carefully the data model script and then implement your new parameters with the same way of the other parameters.

Please note that the all parameters are implemented in the same way and that the implementation of new parameters is easy especially if you have basic knowledge in shell scripting.

Now we are working on a new version of data model scripts in order to be more easier(I mean when want to implement new parameters). this version will be available in a future delivery of easycwmp


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
6 [easycwmp] Help minor have not tried 2014-08-26 20:41 2014-10-01 17:03
Reporter: thejimi Platform:  
Assigned To: user13 OS: Linux  
Priority: normal OS Version: Mint 17  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Unable to get easycwmp to connect to ACS, likely a problem with ubus
Description: I set up easycwmp via the documentation which was straight forward. I start up ubus via the command per instructions:

/usr/sbin/ubusd -s /tmp/ubus.sock

But running easycwmp, I get the log:

config_init_local(53):: easycwmp.@local[0].interface=eth0
config_init_local(63):: easycwmp.@local[0].port=7647
config_init_local(81):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(69):: easycwmp.@local[0].username=easycwmp
config_init_local(75):: easycwmp.@local[0].password=easycwmp
config_init_acs(147):: easycwmp.@acs[0].scheme=http
config_init_acs(153):: easycwmp.@acs[0].username=pico
config_init_acs(159):: easycwmp.@acs[0].password=pico
config_init_acs(165):: easycwmp.@acs[0].hostname=192.168.6.25
config_init_acs(175):: easycwmp.@acs[0].port=7547
config_init_acs(181):: easycwmp.@acs[0].path=/
config_init_acs(187):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(193):: easycwmp.@acs[0].periodic_interval=100
main(279): ubus initialization failed
+++ HTTP SERVER CONFIGURATION +++
ip: '192.168.6.18'
port: '7647'
--- HTTP SERVER CONFIGURATION ---
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(49):: url: http://pico:pico@192.168.6.25:7547/
http_client_init(55):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
* Hostname was NOT found in DNS cache
* Trying 192.168.6.25...
* Connected to 192.168.6.25 (192.168.6.25) port 7547 (#0)
> POST / HTTP/1.1
Host: 192.168.6.25:7547
Accept: */*
User-Agent: easycwmp
Content-Type: text/xml
Content-Length: 3177
Expect: 100-continue

< HTTP/1.1 100 Continue
* Empty reply from server
* Connection #0 to host 192.168.6.25 left intact
rpc_inform(214): sending Inform http message failed

I can see in the log that ubus initialization fails. I tried invoking the command: 'ubus list' but just get a "Failed to connect to ubus" reply. I've searched online, but have found no way to debug this.

Thinking that this machine might have some out of date patches on it, I set up a new Linux VM using Mint 17, and installed everything fresh, but get the exact same result.

Please let me know if there are any steps I can take to debug this. Does ubusd log anywhere? I can see messages from easycwmp in syslog, but nothing for ubus.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000034)
mohamed.kallel   
2014-08-27 10:14   
(Last edited: 2014-08-27 10:15)
In fact ubus is used for notification. so the ubus fail has no relation with your problem.

let's start with your problem and then see the ubus fail problem

For the acs connection problem. it seems that your acs send an empty message after receiving the inform message instead of sending InformResponse. Could you provide the traffic capture (wireshark).

(0000037)
thejimi   
2014-09-15 20:00   
Due to the loss of use from the machine I was using, I reinstalled easycwmp on a new linux machine. I no longer get the ubus errors, but on startup with the '-f -b' options, I get:

config_init_local(53):: easycwmp.@local[0].interface=eth0
config_init_local(63):: easycwmp.@local[0].port=7547
config_init_local(81):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(69):: easycwmp.@local[0].username=pico
config_init_local(75):: easycwmp.@local[0].password=pico
config_init_acs(147):: easycwmp.@acs[0].scheme=http
config_init_acs(153):: easycwmp.@acs[0].username=pico
config_init_acs(159):: easycwmp.@acs[0].password=Pico2014
config_init_acs(165):: easycwmp.@acs[0].hostname=primehometrial.cisco.com
config_init_acs(175):: easycwmp.@acs[0].port=8080
config_init_acs(181):: easycwmp.@acs[0].path=/dps/TR069
config_init_acs(187):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(193):: easycwmp.@acs[0].periodic_interval=100
/usr/sbin/easycwmp: 34: export: Illegal option -n

I'm assuming the '-n' is in one of the scripts somewhere? Any good way to track that down?
(0000059)
janmus   
2014-10-01 09:56   
I also have similar problem that test on linux of ARMv5TEJ platform,

root # /usr/sbin/easycwmpd -f -b
The error message output as below :
config_init_local(53):: easycwmp.@local[0].interface=eth0
config_init_local(63):: easycwmp.@local[0].port=7547
config_init_local(81):: easycwmp.@local[0].ubus_socket=/tmp/ubus.sock
config_init_acs(147):: easycwmp.@acs[0].scheme=http
config_init_acs(153):: easycwmp.@acs[0].username=openacs
config_init_acs(159):: easycwmp.@acs[0].password=openacs
config_init_acs(165):: easycwmp.@acs[0].hostname=192.168.0.97
config_init_acs(175):: easycwmp.@acs[0].port=8080
config_init_acs(181):: easycwmp.@acs[0].path=/openacs/acs
config_init_acs(187):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(193):: easycwmp.@acs[0].periodic_interval=60
/usr/sbin/easycwmp: export: line 208: illegal option -n
(0000060)
user13   
2014-10-01 16:30   
as indicted in the install page of easycwmp.org, you have to execute the following command after the install of easycwmp

sudo ln -sf bash /bin/sh

check that /bin/sh is linked to bash :

user@jupiter /opt/dev/easycwmp $ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 7 201 /bin/sh -> dash
user@jupiter /opt/dev/easycwmp $ sudo ln -sf bash /bin/sh
user@jupiter /opt/dev/easycwmp $ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 1 15:22 /bin/sh -> bash

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
13 [easycwmp] Help minor always 2014-09-26 21:46 2014-09-30 09:58
Reporter: CwmpUser Platform: openwrt  
Assigned To: user13 OS:  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Cannot get IP address
Description: I use get value command to get "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress", which turns out to be empty, also I can't see AP'IP on server. Is this suppose to be like this? Thanks in advance!
Tags:
Steps To Reproduce:
Additional Information:
Attached Files: 2014-09-26 15.44.30.jpg (4,319,595 bytes) 2014-09-26 21:46
https://support.easycwmp.org/file_download.php?file_id=18&type=bug
2014-09-26 15.44.48.jpg (2,701,850 bytes) 2014-09-26 21:47
https://support.easycwmp.org/file_download.php?file_id=19&type=bug
Notes
(0000056)
mohamed.kallel   
2014-09-29 10:28   
(Last edited: 2014-09-29 10:29)
You have to update the wan_device script.
The wan_device script is under the "ext/openwrt/scripts/functions/" in the source code. And its under "/usr/share/easycwmp/functions" in your openwrt firmware.

In the wan_device script, you have to change the function: "get_wan_device_mng_interface_ip()". you have to change the line: "network_get_ipaddr val mng". Change the "mng" by the name of you wan interface.


The same thing for the "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.MACAddress", you have to change the function "get_wan_device_mng_interface_mac()". you have to change the "val=`$UCI_GET network.mng.macaddr`" by "val=`$UCI_GET network.<your_wan_interface>.macaddr`"


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
11 [easycwmp] Enhancement major always 2014-09-24 10:07 2014-09-24 18:59
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:  
e-mail notification:
Summary: Add cwmp id to the RPC ACS (Inform, GetRPCMethod, TransferComplete...)
Description: Add cwmp id to the RPC ACS (Inform, GetRPCMethod, TransferComplete...)
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000050)
mohamed.kallel   
2014-09-24 18:59   
added in the version easycwmp-1.0.3

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
10 [easycwmp] Bug minor always 2014-09-23 22:36 2014-09-24 18:58
Reporter: CwmpUser Platform: Openwrt  
Assigned To: mohamed.kallel OS: Unbuntu  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: XML parsing problem
Description:         I set up the genieacs server on VM and easycwmp on my AP, but I got internal server error(500) for the inform message. I did a wireshark capture and found out this in the XML:
        <ParameterValueStruct xsi:type="xsd:string">
        <Name>InternetGatewayDevice.DeviceInfo.HardwareVersion</Name>
        <Value>example_hw_version</Value>
        </ParameterValueStruct>

      But according to the author of genieacs, it should be
        <ParameterValueStruct>
        <Name>InternetGatewayDevice.DeviceInfo.HardwareVersion</Name>
        <Value xsi:type="xsd:string">example_hw_version</Value>
        </ParameterValueStruct>

      The attachment are the log of genieacs-cwmp and says there is TypeError
Tags:
Steps To Reproduce:
Additional Information:
Attached Files: cwmp-err.log (61,628 bytes) 2014-09-23 22:36
https://support.easycwmp.org/file_download.php?file_id=15&type=bug
Notes
(0000046)
mohamed.kallel   
2014-09-24 10:08   
I confirm that's a bug
(0000047)
CwmpUser   
2014-09-24 16:23   
So for now the only to fix this is to change the code of acs to parse xml properly?
(0000048)
mohamed.kallel   
2014-09-24 18:57   
It's a bug in easycwmp and not in the acs
(0000049)
mohamed.kallel   
2014-09-24 18:58   
bug fixed and delivered in easycwmp-1.0.3

Verify before installing the new version that you have cleanly removed the bins and the source codes of the old easycwmp version

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
9 [easycwmp] Help minor always 2014-09-16 17:09 2014-09-24 10:01
Reporter: CwmpUser Platform: OpenWRT  
Assigned To: mohamed.kallel OS: Linux Ubuntu  
Priority: low OS Version: 14.04 TLS  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Unable to install easycwmp
Description: I tried to build easycwmp for a OpenWRT linux as a package. Every dependency is installed, but when I run 'make package/easycwmp/compile', it said json-c/json.h: no such file or directory. I do have json-c in my openwrt. Also I tried to build it on my partner's openwrt linux, the same issue.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files: easycwmp.png (205,383 bytes) 2014-09-16 17:09
https://support.easycwmp.org/file_download.php?file_id=13&type=bug
png

2.png (121,240 bytes) 2014-09-16 17:10
https://support.easycwmp.org/file_download.php?file_id=14&type=bug
png
Notes
(0000038)
user13   
2014-09-16 18:12   
(Last edited: 2014-09-16 18:47)
Hello,

you have to compile libjson-c with openwrt way.
In fact you have to go under the package folder and then check out the libjson-c package :
svn co svn://svn.openwrt.org/openwrt/tags/attitude_adjustment_12.09/package/libjson-c libjson-c

After that, select libjson-c in the "make menuconfig",and then build the package libjson-c by executing
make package/libjson-c/compile V=s


finally, please check if the libjson-c is compiled on openwrt:

* Check if the libjson-c.so file exist under this path :
"openwrt-path"/staging_dir/target-{arch}_{uClibc}/usr/lib

* Check also the folder json-c under this path :
"openwrt-path"/staging_dir/target-{arch}_{uClibc}/usr/include

(0000039)
CwmpUser   
2014-09-16 20:08   
Thanks! I followed your instruction and found that there is no libjson-c in menuconfig but libjson(script).

Also after I run the make command, there is libjson.so in "openwrt-path"/staging_dir/target-{arch}_{uClibc}/usr/lib and json folder in "openwrt-path"/staging_dir/target-{arch}_{uClibc}/usr/include. Besides, in build_dir, there are a folder named json-c-0.9.
(0000040)
CwmpUser   
2014-09-16 21:30   
Also, in my second pic, it shows make[2] -C package/libs/libjson-c compile , which means it do build the json-c ?
(0000041)
user13   
2014-09-17 16:45   
(Last edited: 2014-09-17 17:35)
libjson(script) is under "Utilities --->" !

you have to go under "Libraries --->" section after execute "make menuconfig", and then you find libjson-c.

check if libjson-c is selected.

(0000042)
CwmpUser   
2014-09-18 01:20   
Got it. I update the Makefile(json version: 0.11), I saw those libjson-c file in those directory but I didn't see the libjson-c in menuconfig. The old version of json is 0.9, which work fine, but generate libjson.so instead of libjson-c.so. So the problem becomes why I cannot see libjson-c in menuconfig. Thanks in advance! This means a lot to me!
(0000044)
user13   
2014-09-18 17:38   
(Last edited: 2014-09-18 18:33)
You should have the libjson-c folder under the package folder("openwrt-path"/package).
In the note 0000038, I explain how to add libjson-c to package.

Please note that libjson-c is standalone lib.


View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
4 [easycwmp] Help feature N/A 2014-07-31 12:57 2014-09-23 10:43
Reporter: MIPS_LINUX Platform: linux  
Assigned To: mohamed.kallel OS: ubuntu  
Priority: normal OS Version:  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: how and where can i modified easycwmp so that it can works on my own acs
Description: encounted some questions when i runing easycwmp, I really spend plenty of time to learning the working mechanism,but havn't a clue,please give me a hand thanks!!!
Here is the situation:
I download source from http://www.easycwmp.org/index.php/2014-06-02-09-30-47 and uncompress it,Then work by README under easycwmp,after all of the step finishe,I runed ./easycwmpd under easycwmp/bin directory command,
 Then I saw the log as below(Complete information, please see the attachment) :
power88@power88-virtual-machine:/etc/init.d$ sudo easycwmpd start
[sudo] password for power88:
config_init_local(53):: easycwmp.@local[0].interface=eth0
config_init_local(63):: easycwmp.@local[0].port=7547
config_init_local(81):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(69):: easycwmp.@local[0].username=FFFFFF-easycwmp-FFFFFF123456
config_init_local(75):: easycwmp.@local[0].password=416d5dd09f3df1841fcc25e58fa16cbe
config_init_acs(147):: easycwmp.@acs[0].scheme=http
config_init_acs(153):: easycwmp.@acs[0].username=firmware
config_init_acs(159):: easycwmp.@acs[0].password=aztech123
config_init_acs(165):: easycwmp.@acs[0].hostname=203.125.11.38
config_init_acs(175):: easycwmp.@acs[0].port=8081
config_init_acs(181):: easycwmp.@acs[0].path=/tr069/acs
config_init_acs(187):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(193):: easycwmp.@acs[0].periodic_interval=100
main(279): ubus initialization failed
+++ HTTP SERVER CONFIGURATION +++
ip: '192.168.36.138'
port: '7547'
--- HTTP SERVER CONFIGURATION ---
power88@power88-virtual-machine:/etc/init.d$ +++ HTTP CLIENT CONFIGURATION +++
http_client_init(49):: url: http://firmware:aztech123@203.125.11.38:8081/tr069/acs
http_client_init(55):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
* Hostname was NOT found in DNS cache
* Trying 203.125.11.38...
* connect to 203.125.11.38 port 8081 failed: Connection refused
* Failed to connect to 203.125.11.38 port 8081: Connection refused
* Closing connection 0
rpc_inform(214): sending Inform http message failed
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(49):: url: http://firmware:aztech123@203.125.11.38:8081/tr069/acs
http_client_init(55):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
* Hostname was NOT found in DNS cache
* Trying 203.125.11.38...
* Connected to 203.125.11.38 (203.125.11.38) port 8081 (#1)
> POST /tr069/acs HTTP/1.1
Host: 203.125.11.38:8081
Accept: */*
User-Agent: easycwmp
Content-Type: text/xml
Content-Length: 3089
Expect: 100-continue

* Done waiting for 100-continue
Tags:
Steps To Reproduce: step1:install dependencies as http://www.easycwmp.org/index.php/manual Mentioned
step2:uncompress easycwmp-openwrt.tar.gz source code
step3:modified config file under /easycwmp/ext/openwrt/config directory to my acs server address
step4:run /etc/init.d/easycwmpd start
Additional Information: as log showed ,encounted two issue:
first one main(279): ubus initialization failed
second is:* Hostname was NOT found in DNS cache
Attached Files: easycwmp_console_log (11,456 bytes) 2014-07-31 12:57
https://support.easycwmp.org/file_download.php?file_id=9&type=bug
config and test log.zip (2,933 bytes) 2014-08-05 04:23
https://support.easycwmp.org/file_download.php?file_id=10&type=bug
acount.txt (178 bytes) 2014-08-08 09:39
https://support.easycwmp.org/file_download.php?file_id=11&type=bug
log_203_125_11_38_ACS.txt (7,676 bytes) 2014-08-12 18:26
https://support.easycwmp.org/file_download.php?file_id=12&type=bug
Notes
(0000017)
mohamed.kallel   
2014-07-31 13:07   
Do not modify your acs setting in the "/easycwmp/ext/openwrt/config" file.
You have to change it under "/etc/config/easycwmp"
(0000018)
mohamed.kallel   
2014-07-31 13:21   
I see your problems with the connection to the ACS in the easycwmp_console_log.
I will try to reporduce your porblems and get back to you with an answer as soon as possible
(0000019)
MIPS_LINUX   
2014-08-01 03:51   
i tried change under "/etc/config/easycwmp" to my acs address:
config acs
    option scheme 'http'
    option username 'firmware'
    option password 'aztech123'
    option hostname '203.125.11.38'
    option port '8081'
    option path '/tr069/acs'
    option periodic_enable '1'
    option periodic_interval '100'
    option parameter_key 'AcsInit'
but the appear same result as before
(0000020)
mohamed.kallel   
2014-08-04 14:49   
looks like a basic authentication problem (may be it's a bug on our cwmp client but I could not confirm that now). could you make your test with an openacs without authentication? and provide the log for that?
(0000021)
mohamed.kallel   
2014-08-04 17:00   
(Last edited: 2014-08-04 17:56)
According the error log message in your log file:

"* Failed to connect to 203.125.11.38 port 8081: Connection refused"

looks like you have problem with your ACS. Possible reasons:
1) the port of your ACS server is not 8081
2)you have a firewall configured in your server. The firwall is the cause of the reject of the easycwmp messages

(0000022)
MIPS_LINUX   
2014-08-05 04:03   
i change to another acs address ,and newest log as below:
power88@power88-virtual-machine:/etc$ sudo easycwmpd start
[sudo] password for power88:
config_init_local(53):: easycwmp.@local[0].interface=eth0
config_init_local(63):: easycwmp.@local[0].port=7547
config_init_local(81):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(69):: easycwmp.@local[0].username=FFFFFF-easycwmp-FFFFFF123456
config_init_local(75):: easycwmp.@local[0].password=416d5dd09f3df1841fcc25e58fa16cbe
config_init_acs(147):: easycwmp.@acs[0].scheme=http
config_init_acs(153):: easycwmp.@acs[0].username=firmware
config_init_acs(159):: easycwmp.@acs[0].password=aztech123
config_init_acs(165):: easycwmp.@acs[0].hostname=128.199.156.106
config_init_acs(175):: easycwmp.@acs[0].port=8889
config_init_acs(181):: easycwmp.@acs[0].path=/acs/server
config_init_acs(187):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(193):: easycwmp.@acs[0].periodic_interval=100
main(279): ubus initialization failed
+++ HTTP SERVER CONFIGURATION +++
ip: '192.168.36.136'
port: '7547'
--- HTTP SERVER CONFIGURATION ---
power88@power88-virtual-machine:/etc$ +++ HTTP CLIENT CONFIGURATION +++
http_client_init(49):: url: http://firmware:aztech123@128.199.156.106:8889/acs/server
http_client_init(55):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
* Hostname was NOT found in DNS cache
* Trying 128.199.156.106...
* Connected to 128.199.156.106 (128.199.156.106) port 8889 (#0)
> POST /acs/server HTTP/1.1
Host: 128.199.156.106:8889
Accept: */*
User-Agent: easycwmp
Content-Type: text/xml
Content-Length: 3090
Expect: 100-continue

< HTTP/1.1 100 Continue
< HTTP/1.1 401 Unauthorized
< Content-Type: text/plain
< WWW-Authenticate: Digest realm="tr069", qop="auth", nonce="24155df2b5a4e67fc21b001945480a3d", algorithm="MD5", stale="false"
< Date: Tue, 05 Aug 2014 01:49:55 GMT
< Connection: keep-alive
< Transfer-Encoding: chunked
* HTTP error before end of send, stop sending
<
* Closing connection 0
* Issue another request to this URL: 'http://firmware:aztech123@128.199.156.106:8889/acs/server'
* Hostname was found in DNS cache
* Trying 128.199.156.106...
* Connected to 128.199.156.106 (128.199.156.106) port 8889 (#1)
* Server auth using Digest with user 'firmware'
> POST /acs/server HTTP/1.1
Authorization: Digest username="firmware", realm="tr069", nonce="24155df2b5a4e67fc21b001945480a3d", uri="/acs/server", cnonce="N2FiN2I3MTQ4YjY0OTMxNzAwMDA4YWZlMDAwYzIzMjY=", nc=00000001, qop=auth, response="53467e243557dc84f21d49aa5effe4b1", algorithm="MD5"
Host: 128.199.156.106:8889
Accept: */*
User-Agent: easycwmp
Content-Type: text/xml
Content-Length: 3090
Expect: 100-continue

< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
* Added cookie DeviceID="FFFFFF-easycwmp-FFFFFF123456" for domain 128.199.156.106, path /acs/, expire 0
< Set-Cookie: DeviceID=FFFFFF-easycwmp-FFFFFF123456
< Content-Type: text/xml
< Date: Tue, 05 Aug 2014 01:49:56 GMT
< Connection: keep-alive
< Transfer-Encoding: chunked
<
+++ RECEIVED HTTP RESPONSE (PART) +++
<?xml version="1.0" encoding="UTF-8"?>
<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/>
  <soap-env:Body>
    <cwmp:InformResponse>
      <MaxEnvelopes>1</MaxEnvelopes>
    </cwmp:InformResponse>
  </soap-env:Body>
</soap-env:Envelope>
--- RECEIVED HTTP RESPONSE (PART) ---
* Connection #1 to host 128.199.156.106 left intact
+++ RECEIVED HTTP RESPONSE +++
<?xml version="1.0" encoding="UTF-8"?>
<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/>
  <soap-env:Body>
    <cwmp:InformResponse>
      <MaxEnvelopes>1</MaxEnvelopes>
    </cwmp:InformResponse>
  </soap-env:Body>
</soap-env:Envelope>
--- RECEIVED HTTP RESPONSE ---
* Found bundle for host 128.199.156.106: 0x8c9fce0
* Re-using existing connection! (#1) with host 128.199.156.106
* Connected to 128.199.156.106 (128.199.156.106) port 8889 (#1)
* Server auth using Digest with user 'firmware'
> POST /acs/server HTTP/1.1
Authorization: Digest username="firmware", realm="tr069", nonce="24155df2b5a4e67fc21b001945480a3d", uri="/acs/server", cnonce="N2FiN2I3MTQ4YjY0OTMxNzAwMDA4YWZlMDAwYzIzMjY=", nc=00000002, qop=auth, response="9e3ecdf831f906460a3f2ac519f42385", algorithm="MD5"
Host: 128.199.156.106:8889
Accept: */*
Cookie: DeviceID=FFFFFF-easycwmp-FFFFFF123456
User-Agent: easycwmp
Content-Type: text/xml
Content-Length: 0

< HTTP/1.1 204 No Content
< Content-Length: 0
< Date: Tue, 05 Aug 2014 01:49:56 GMT
< Connection: keep-alive
<
* Connection #1 to host 128.199.156.106 left intact
+++ RECEIVED EMPTY HTTP RESPONSE +++
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(49):: url: http://firmware:aztech123@128.199.156.106:8889/acs/server
http_client_init(55):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
* Hostname was NOT found in DNS cache
* Trying 128.199.156.106...
* Connected to 128.199.156.106 (128.199.156.106) port 8889 (0000002)
> POST /acs/server HTTP/1.1
Host: 128.199.156.106:8889
Accept: */*
User-Agent: easycwmp
Content-Type: text/xml
Content-Length: 3089
Expect: 100-continue

< HTTP/1.1 100 Continue
< HTTP/1.1 401 Unauthorized
< Content-Type: text/plain
< WWW-Authenticate: Digest realm="tr069", qop="auth", nonce="b80b38e266ca49051cccda9e98d505cc", algorithm="MD5", stale="false"
< Date: Tue, 05 Aug 2014 01:51:35 GMT
< Connection: keep-alive
< Transfer-Encoding: chunked
* HTTP error before end of send, stop sending
<
* Closing connection 2
* Issue another request to this URL: 'http://firmware:aztech123@128.199.156.106:8889/acs/server'
* Hostname was found in DNS cache
* Trying 128.199.156.106...
* Connected to 128.199.156.106 (128.199.156.106) port 8889 (0000003)
* Server auth using Digest with user 'firmware'
> POST /acs/server HTTP/1.1
Authorization: Digest username="firmware", realm="tr069", nonce="b80b38e266ca49051cccda9e98d505cc", uri="/acs/server", cnonce="YmRkN2U2YmQxNmIzZDZiYzAwMDA4YjYyMDAwOTAxNTM=", nc=00000001, qop=auth, response="e7aea403746e9197b3c1efa500e0f180", algorithm="MD5"
Host: 128.199.156.106:8889
Accept: */*
User-Agent: easycwmp
Content-Type: text/xml
Content-Length: 3089
Expect: 100-continue

< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
* Added cookie DeviceID="FFFFFF-easycwmp-FFFFFF123456" for domain 128.199.156.106, path /acs/, expire 0
< Set-Cookie: DeviceID=FFFFFF-easycwmp-FFFFFF123456
< Content-Type: text/xml
< Date: Tue, 05 Aug 2014 01:51:35 GMT
< Connection: keep-alive
< Transfer-Encoding: chunked
<
+++ RECEIVED HTTP RESPONSE (PART) +++
<?xml version="1.0" encoding="UTF-8"?>
<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/>
  <soap-env:Body>
    <cwmp:InformResponse>
      <MaxEnvelopes>1</MaxEnvelopes>
    </cwmp:InformResponse>
  </soap-env:Body>
</soap-env:Envelope>
--- RECEIVED HTTP RESPONSE (PART) ---
* Connection 0000003 to host 128.199.156.106 left intact
+++ RECEIVED HTTP RESPONSE +++
<?xml version="1.0" encoding="UTF-8"?>
<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/>
  <soap-env:Body>
    <cwmp:InformResponse>
      <MaxEnvelopes>1</MaxEnvelopes>
    </cwmp:InformResponse>
  </soap-env:Body>
</soap-env:Envelope>
--- RECEIVED HTTP RESPONSE ---
* Found bundle for host 128.199.156.106: 0x8caed58
* Re-using existing connection! (0000003) with host 128.199.156.106
* Connected to 128.199.156.106 (128.199.156.106) port 8889 (0000003)
* Server auth using Digest with user 'firmware'
> POST /acs/server HTTP/1.1
Authorization: Digest username="firmware", realm="tr069", nonce="b80b38e266ca49051cccda9e98d505cc", uri="/acs/server", cnonce="YmRkN2U2YmQxNmIzZDZiYzAwMDA4YjYyMDAwOTAxNTM=", nc=00000002, qop=auth, response="1dcafa7c3c678f5e7ad66bd0d5109cda", algorithm="MD5"
Host: 128.199.156.106:8889
Accept: */*
Cookie: DeviceID=FFFFFF-easycwmp-FFFFFF123456
User-Agent: easycwmp
Content-Type: text/xml
Content-Length: 0

< HTTP/1.1 204 No Content
< Content-Length: 0
< Date: Tue, 05 Aug 2014 01:51:36 GMT
< Connection: keep-alive
<
* Connection 0000003 to host 128.199.156.106 left intact
+++ RECEIVED EMPTY HTTP RESPONSE +++
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(49):: url: http://firmware:aztech123@128.199.156.106:8889/acs/server
http_client_init(55):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
* Hostname was NOT found in DNS cache
* Trying 128.199.156.106...
* Connected to 128.199.156.106 (128.199.156.106) port 8889 (0000004)
> POST /acs/server HTTP/1.1
Host: 128.199.156.106:8889
Accept: */*
User-Agent: easycwmp
Content-Type: text/xml
Content-Length: 3089
Expect: 100-continue

< HTTP/1.1 100 Continue
< HTTP/1.1 401 Unauthorized
< Content-Type: text/plain
< WWW-Authenticate: Digest realm="tr069", qop="auth", nonce="c903dea3d2bc11f2fbd8fe5dd12139a0", algorithm="MD5", stale="false"
< Date: Tue, 05 Aug 2014 01:53:15 GMT
< Connection: keep-alive
< Transfer-Encoding: chunked
* HTTP error before end of send, stop sending
<
* Closing connection 4
* Issue another request to this URL: 'http://firmware:aztech123@128.199.156.106:8889/acs/server'
* Hostname was found in DNS cache
* Trying 128.199.156.106...
* Connected to 128.199.156.106 (128.199.156.106) port 8889 (0000005)
* Server auth using Digest with user 'firmware'
> POST /acs/server HTTP/1.1
Authorization: Digest username="firmware", realm="tr069", nonce="c903dea3d2bc11f2fbd8fe5dd12139a0", uri="/acs/server", cnonce="ZmUzOWVkZTkwYzE4ZGYwODAwMDA4YmM5MDAwOTc1MjE=", nc=00000001, qop=auth, response="d0b6b70930bee8f61e2470993f06f95e", algorithm="MD5"
Host: 128.199.156.106:8889
Accept: */*
User-Agent: easycwmp
Content-Type: text/xml
Content-Length: 3089
Expect: 100-continue

< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
* Added cookie DeviceID="FFFFFF-easycwmp-FFFFFF123456" for domain 128.199.156.106, path /acs/, expire 0
< Set-Cookie: DeviceID=FFFFFF-easycwmp-FFFFFF123456
< Content-Type: text/xml
< Date: Tue, 05 Aug 2014 01:53:19 GMT
< Connection: keep-alive
< Transfer-Encoding: chunked
<
+++ RECEIVED HTTP RESPONSE (PART) +++
<?xml version="1.0" encoding="UTF-8"?>
<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/>
  <soap-env:Body>
    <cwmp:InformResponse>
      <MaxEnvelopes>1</MaxEnvelopes>
    </cwmp:InformResponse>
  </soap-env:Body>
</soap-env:Envelope>
--- RECEIVED HTTP RESPONSE (PART) ---
* Connection 0000005 to host 128.199.156.106 left intact
+++ RECEIVED HTTP RESPONSE +++
<?xml version="1.0" encoding="UTF-8"?>
<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/>
  <soap-env:Body>
    <cwmp:InformResponse>
      <MaxEnvelopes>1</MaxEnvelopes>
    </cwmp:InformResponse>
  </soap-env:Body>
</soap-env:Envelope>
--- RECEIVED HTTP RESPONSE ---
* Found bundle for host 128.199.156.106: 0x8caf050
* Re-using existing connection! (0000005) with host 128.199.156.106
* Connected to 128.199.156.106 (128.199.156.106) port 8889 (0000005)
* Server auth using Digest with user 'firmware'
> POST /acs/server HTTP/1.1
Authorization: Digest username="firmware", realm="tr069", nonce="c903dea3d2bc11f2fbd8fe5dd12139a0", uri="/acs/server", cnonce="ZmUzOWVkZTkwYzE4ZGYwODAwMDA4YmM5MDAwOTc1MjE=", nc=00000002, qop=auth, response="c209f7c00bbb6e2297a99ca4fbb64a71", algorithm="MD5"
Host: 128.199.156.106:8889
Accept: */*
Cookie: DeviceID=FFFFFF-easycwmp-FFFFFF123456
User-Agent: easycwmp
Content-Type: text/xml
Content-Length: 0

< HTTP/1.1 204 No Content
< Content-Length: 0
< Date: Tue, 05 Aug 2014 01:53:19 GMT
< Connection: keep-alive
<
* Connection 0000005 to host 128.199.156.106 left intact
+++ RECEIVED EMPTY HTTP RESPONSE +++
(0000023)
MIPS_LINUX   
2014-08-05 04:11   
we can found two prompt as before :
one: ubus initialization faile
two: Hostname was NOT found in DNS cache
is it a normal phenomenon ???
i'm sure my acs address works all right,and i used another DSL can test successful
(0000029)
mohamed.kallel   
2014-08-05 16:07   
1)for the ubus initialization faile, Please check that ubusd is running in your system (check it with ps aux | grep ubusd). if it's not running then launch ubusd with the command ubusd

2) for the message "Hostname was NOT found in DNS cache", It's purely informational, and it's not an error neither a warning. So do not worry about this message.
(0000030)
mohamed.kallel   
2014-08-05 16:10   
(Last edited: 2014-08-05 16:12)
The problem you got in your log is not related to the 2 above problems (ubus initialization fails and "Hostname was NOT found in DNS cache").

I can not reproduce your problem with my acs (OpenACS). Could you give me a public acces to your acs inorder to make a test. it could be an interoprability problem

(0000031)
MIPS_LINUX   
2014-08-08 09:48   
sorry for my late for feadback,public access please see the accessory;
besides,i wondering now is that how it can add to an embedded system,because easycwmp project includes 2 parts: one is core another part is scripts,how to ensure the scripts is compliant with the embedded system,thanks a lot !!!
(0000032)
mohamed.kallel   
2014-08-12 18:30   
I tried with your acs and I got connexion problem with the first session but it works in the second session retry. Please find attache our log (log_203_125_11_38_ACS)

may be you have the same behaviour of us. your easycwmp does not succed in the first session but it succeed in the last sessiosns. could you please send the traffic capture (wireshark) to confirm that

may be you have one of the following problems:
- connexion problems of your acs
- you have started easycwmpd twice
(0000033)
mohamed.kallel   
2014-08-12 18:50   
(Last edited: 2014-08-12 18:52)
Concerning your question "how to ensure the scripts is compliant with the embedded system?"

The existing parameters of easycwmp scripts are developed for OpenWRT systems. To adapt these parameters to your system, it's easy to do. In fact you have to read the scripts carefully and only adapt the set and get functions of paramterers to be compliant with your linux system.

As I said, we provide profissional services around the easycwmp scripts. we provide optimized scripts and we provide services of adapting scripts and implemnting of new parameters

(0000045)
mohamed.kallel   
2014-09-23 10:43   
The problem of starting easycwmp twice is fixed in easycwmp-1.0.2

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
8 [easycwmp] Enhancement minor have not tried 2014-09-09 11:58 2014-09-09 21:58
Reporter: user13 Platform: OpenWrt  
Assigned To: user13 OS: easycwmp  
Priority: normal OS Version: 1.0.1  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: avoid the launch of easycwmp twice
Description: avoid the launch of easycwmp many times when it's started with "/usr/sbin/easycwmpd"
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000036)
mohamed.kallel   
2014-09-09 21:57   
enhancement done in easycwmp-1.0.2

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
7 [easycwmp] Bug minor sometimes 2014-09-09 11:54 2014-09-09 21:56
Reporter: user13 Platform: openWrt  
Assigned To: user13 OS:  
Priority: normal OS Version: 1.0.1  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: Connection request causes problem
Description: Some time, when we make connection request with the web browser, the inform message contains an empty paramter list.
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000035)
mohamed.kallel   
2014-09-09 21:55   
fixed in easycwmp-1.0.2

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
5 [easycwmp] Help minor N/A 2014-08-05 08:27 2014-08-05 16:13
Reporter: dengwork 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:  
e-mail notification:
Summary: where is the file of data model ?
Description: i can run the process, but i can not find the data model, who can tell me ? thanks !
Tags:
Steps To Reproduce:
Additional Information:
Attached Files:
Notes
(0000024)
mohamed.kallel   
2014-08-05 09:26   
(Last edited: 2014-08-05 09:29)
- In the source code, the data model scripts are under ext/openwrt/scripts
- In your device, the data model scripts are installed under:
   * /usr/share/easycwmp/functions
   * /usr/sbin/easycwmp

to check if your data model script is running well, execute the following command under your equipment:

sudo easycwmp --json get name "" 0


you should get an output like this:

{ "parameter": "InternetGatewayDevice.DeviceInfo.Manufacturer", "fault_code": "", "value": "easycwmp", "type": "xsd:string" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.ManufacturerOUI", "fault_code": "", "value": "FFFFFF", "type": "xsd:string" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.ProductClass", "fault_code": "", "value": "easycwmp", "type": "xsd:string" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.SerialNumber", "fault_code": "", "value": "FFFFFF123456", "type": "xsd:string" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.HardwareVersion", "fault_code": "", "value": "ex_hw_version", "type": "xsd:string" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.SoftwareVersion", "fault_code": "", "value": "ex_sw_version", "type": "xsd:string" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.UpTime", "fault_code": "", "value": "429120", "type": "xsd:string" }
...

(0000025)
dengwork   
2014-08-05 10:08   
yes , i can get it .you mean there is no xml data model ?
(0000026)
dengwork   
2014-08-05 10:09   
so ,how to edit data model ?
(0000027)
mohamed.kallel   
2014-08-05 11:27   
(Last edited: 2014-08-05 16:13)
NO, there is no xml data model.

You can get all the data model parameters with the command

sudo easycwmp --json get name "" 0

The data model will be displayed as json messages.

To add a new parameters, you have to edit the data model scripts. you can follow the example of the already implmented parameters. You have to read the scripts carefully and then add your parameters by following the same way of the already implmented parameters.

(0000028)
dengwork   
2014-08-05 11:30   
ok. i see, thanks

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
3 [easycwmp] Help block always 2014-05-28 14:39 2014-05-30 16:06
Reporter: Parshad Platform: OpenWRT  
Assigned To: user13 OS: Linux  
Priority: urgent OS Version: 3.10  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: CWMP Version mis-match between EasyCWMP and Perl-ACS causing SOAPAction Header missing and creating XML parser problem
Description: We are using perl-cwmp(https://github.com/dpavlin/perl-cwmp)as an ACS on RHEL 6.0 and easycwmp at CPE with OpenWRT as a TR-069 client.

EasyCWMP sends Inform message successfully, ACS receives inform message but while parsing, its shows "missing SOAPAction header" error message and sends response to client, at client side while paring InformResponse message its shows
"rpc_inform(225): parse Inform xml message from ACS failed" error message.

We looked into XML files at both side, Perl-ACS using cwmp-1-0 version and easycwmp using cwmp-1-2 version, so we are assuming this might causing this problem.

EasyCWMP:
xmlns:cwmp="urn:dslforum-org:cwmp-1-2

Perl-ACS:
xmlns:cwmp="urn:dslforum-org:cwmp-1-0

Could you please give your view on this and help us to configure easycwmp so it can send inform request in cwmp-1-0 version.

Following are log signature from both side:

AT EASYCWMP: Sending of Inform Message:
root@OpenWrt:~# /etc/init.d/easycwmpd start
config_init_local(53):: easycwmp.@local[0].interface=eth0
config_init_local(63):: easycwmp.@local[0].port=7547
config_init_local(81):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(69):: easycwmp.@local[0].username=easycwmp
config_init_local(75):: easycwmp.@local[0].password=easycwmp
config_init_acs(147):: easycwmp.@acs[0].scheme=http
config_init_acs(153):: easycwmp.@acs[0].username=admin
config_init_acs(159):: easycwmp.@acs[0].password=admin
config_init_acs(165):: easycwmp.@acs[0].hostname=192.168.1.2
config_init_acs(175):: easycwmp.@acs[0].port=3333
config_init_acs(181):: easycwmp.@acs[0].path=/
config_init_acs(187):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(193):: easycwmp.@acs[0].periodic_interval=100
+++ HTTP SERVER CONFIGURATION +++
NOT BOUND TO IP
port: '7547'
--- HTTP SERVER CONFIGURATION ---
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(49):: url: http://admin:admin@192.168.1.2:3333/
http_client_init(55):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
root@OpenWrt:~# > POST / HTTP/1.1

Host: 192.168.1.2:3333

Accept: */*

User-Agent: easycwmp

Content-Type: text/xml

Content-Length: 3286

Expect: 100-continue



AT Perl-ACS: Inform Request Handling and InformResponse:
root@dhcppc1 perl-cwmp]# ./bin/acs.pl --debug
## cleaning dump directory
created CWMP::Server({
  debug => 1,
  port => 3333,
  session => {
               create_dump => 1,
               store => { debug => 1, module => "YAML", path => "./" },
             },
}) object
## debug level: 1
ACS waiting for request on port 3333
Found store plugins: CWMP::Store::HASH, CWMP::Store::JSON, CWMP::Store::YAML
open { debug => 1, module => "YAML", path => "./" } at lib/CWMP/Store/HASH.pm line 45.
<<<< 192.168.1.1 START
POST / HTTP/1.1

Host: 192.168.1.2:3333

Accept: */*

User-Agent: easycwmp

Content-Type: text/xml

Content-Length: 3286

Expect: 100-continue




missing SOAPAction header
<?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" />
  </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>2 PERIODIC</EventCode>
      <CommandKey />
     </EventStruct>
     <EventStruct>
      <EventCode>1 BOOT</EventCode>
      <CommandKey />
     </EventStruct>
    </Event>
    <MaxEnvelopes>1</MaxEnvelopes>
    <CurrentTime>2011-09-08T22:42:04+00:00</CurrentTime>
    <RetryCount>0</RetryCount>
    <ParameterList soap_enc:arrayType="cwmp:ParameterValueStruct[11]">
     <ParameterValueStruct xsi:type="xsd:string">
      <Name>InternetGatewayDevice.DeviceInfo.HardwareVersion</Name>
      <Value>example_hw_version</Value>
     </ParameterValueStruct>
     <ParameterValueStruct xsi:type="xsd:string">
      <Name>InternetGatewayDevice.DeviceInfo.Manufacturer</Name>
      <Value>easycwmp</Value>
     </ParameterValueStruct>
     <ParameterValueStruct xsi:type="xsd:string">
      <Name>InternetGatewayDevice.DeviceInfo.ManufacturerOUI</Name>
      <Value>FFFFFF</Value>
     </ParameterValueStruct>
     <ParameterValueStruct xsi:type="xsd:string">
      <Name>InternetGatewayDevice.DeviceInfo.ProductClass</Name>
      <Value>easycwmp</Value>
     </ParameterValueStruct>
     <ParameterValueStruct xsi:type="xsd:string">
      <Name>InternetGatewayDevice.DeviceInfo.ProvisioningCode</Name>
      <Value></Value>
     </ParameterValueStruct>
     <ParameterValueStruct xsi:type="xsd:string">
      <Name>InternetGatewayDevice.DeviceInfo.SerialNumber</Name>
      <Value>FFFFFF123456</Value>
     </ParameterValueStruct>
     <ParameterValueStruct xsi:type="xsd:string">
      <Name>InternetGatewayDevice.DeviceInfo.SoftwareVersion</Name>
      <Value>example_sw_version</Value>
     </ParameterValueStruct>
     <ParameterValueStruct xsi:type="xsd:string">
      <Name>InternetGatewayDevice.DeviceInfo.SpecVersion</Name>
      <Value>1.0</Value>
     </ParameterValueStruct>
     <ParameterValueStruct xsi:type="xsd:string">
      <Name>InternetGatewayDevice.ManagementServer.ConnectionRequestURL</Name>
      <Value>http://192.168.1.2:3333</Value>
     </ParameterValueStruct>
     <ParameterValueStruct xsi:type="xsd:string">
      <Name>InternetGatewayDevice.ManagementServer.ParameterKey</Name>
      <Value></Value>
     </ParameterValueStruct>
     <ParameterValueStruct xsi:type="xsd:string">
      <Name>InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress</Name>
      <Value>192.168.1.1</Value>
     </ParameterValueStruct>
    </ParameterList>
   </cwmp:Inform>
  </soap_env:Body>
 </soap_env:Envelope>

<<<< 192.168.1.1 END
Use of uninitialized value in scalar chomp at lib/CWMP/Parser.pm line 68, <GEN1> line 8.
>>> dispatching to InformResponse with args undef
>>>> 192.168.1.1 START


At EasyCWMP: InformResponse Message Paring:
< HTTP/1.1 200 OK

< Content-Type: text/xml; charset="utf-8"

< Content-Length: 421

< Server: Perl-CWMP/0.21

< SOAPServer: Perl-CWMP/0.21

<

+++ RECEIVED HTTP RESPONSE (PART) +++
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
               xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
  <soap:Header>
    <cwmp:NoMoreRequests>0</cwmp:NoMoreRequests>
  </soap:Header>
  <soap:Body>
    <cwmp:InformResponse>
      <MaxEnvelopes>1</MaxEnvelopes>
    </cwmp:InformResponse>
  </soap:Body>
</soap:Envelope>--- RECEIVED HTTP RESPONSE (PART) ---
+++ RECEIVED HTTP RESPONSE +++
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
               xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
  <soap:Header>
    <cwmp:NoMoreRequests>0</cwmp:NoMoreRequests>
  </soap:Header>
  <soap:Body>
    <cwmp:InformResponse>
      <MaxEnvelopes>1</MaxEnvelopes>
    </cwmp:InformResponse>
  </soap:Body>
</soap:Envelope>--- RECEIVED HTTP RESPONSE ---
rpc_inform(225): parse Inform xml message from ACS failed
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(49):: url: http://admin:admin@192.168.1.2:3333/
http_client_init(55):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---

Tags:
Steps To Reproduce: 1.Start Perl-ACS:
./bin/acs.pl --debug

2.Start EasyCWMP:
root@OpenWrt:~# /etc/init.d/easycwmpd start
Additional Information: Uploading Log file.
Attached Files: CPE-ACS.log (7,427 bytes) 2014-05-28 14:39
https://support.easycwmp.org/file_download.php?file_id=8&type=bug
Notes
(0000015)
user13   
2014-05-30 16:01   
(Last edited: 2014-05-30 16:01)
Hi Parshad,

The problem cause is:
The Perl-CWMP send the inform response without xsd and xsi namespaces.
EasyCwmp make a check on these namespaces, then inform response is rejected for this cause.

I checked the CWMP standard and I found that these namespaces are not mandotary for all ACS messages.

I fixed this issue in the latest version of EasyCwmp.

Please find the latest version at EasyCwmp website (http://www.easycwmp.org/index.php/manual)

(0000016)
user13   
2014-05-30 16:05   
If you are installing EasyCwmp on OpenWrt, then you have to remove the old easycwmp folder from the package directory and remove easycwmp-openwrt.tar.gz from the package directory before installing the new version.

View Issue Details
ID: Category: Severity: Reproducibility: Date Submitted: Last Update:
2 [easycwmp] Help feature always 2014-05-09 03:41 2014-05-26 10:17
Reporter: wind.shen Platform: Freescale P1020RDB easyCwmp  
Assigned To: user13 OS: openWRT- Linux, gcc 4.6.4  
Priority: low OS Version: 3.10.18  
Status: resolved Product Version:  
Product Build: Resolution: fixed  
Projection: none      
ETA: none Fixed in Version:  
    Target Version:  
e-mail notification:
Summary: No any data model tree of InternetGatewayDevice.* as connecting openACS
Description: ACS : openacs-vmware
(http://sourceforge.net/projects/openacs/files/openacs-vmware/)

cwmp client : EasyCwmp 1.0 on openWRT
(http://easycwmp.org/index.php/manual)


Tags:
Steps To Reproduce: EasyCwmp can connect openACS, and get some value (sw, hw, sn connectURL) from overview page (http://192.168.1.96:8080/openacs/cpe_overview.jsf).

Then, check CWMP tree page (http://192.168.1.96:8080/openacs/cpe_cwmptree.jsf).
It will be shown "No saved values found. Check settings in profile or wait for device contacting ACS."

If you need some information, please tell me.

notes: using fishcorecpe to connect openACS, it is ok to show cwmp tree.

thanks,
Wind.Shen
Additional Information:
Attached Files: openACS-1.JPG (105,270 bytes) 2014-05-13 10:39
https://support.easycwmp.org/file_download.php?file_id=1&type=bug
jpg

openACS-4.JPG (95,797 bytes) 2014-05-13 10:41
https://support.easycwmp.org/file_download.php?file_id=2&type=bug
jpg

openACS-3.JPG (46,570 bytes) 2014-05-13 10:42
https://support.easycwmp.org/file_download.php?file_id=3&type=bug
jpg

cpe_cwmp_tree.JPG (74,358 bytes) 2014-05-16 18:22
https://support.easycwmp.org/file_download.php?file_id=4&type=bug
jpg

cpe_find.JPG (63,655 bytes) 2014-05-16 18:22
https://support.easycwmp.org/file_download.php?file_id=5&type=bug
jpg

cpe_find_device.JPG (113,858 bytes) 2014-05-16 18:22
https://support.easycwmp.org/file_download.php?file_id=6&type=bug
jpg

openacs-http-dump.pcapng (272,592 bytes) 2014-05-20 04:51
https://support.easycwmp.org/file_download.php?file_id=7&type=bug
Notes
(0000001)
user13   
2014-05-12 11:50   
could you please describe more the steps to reproduce this issue !
(0000002)
wind.shen   
2014-05-12 12:10   
hi,

I need CWMP tree to list parameters of the Freescale P1020RDB.

When using easyCwmp or freeCwmp built in P1020RDB,
I cannot see any CWMP tree on openACS page.

Do you have any successful case for my reference?
(0000003)
user13   
2014-05-12 12:34   
If you means to list parameters of the "Freescale P1020RDB" board then you have to add Freescale's parameters in the data model script.

else when you launch easycwmp with command start (/etc/init.d/easycwmpd start)
OpenACS recognise the easycwmp device and then update its data base with the parameters (already exist in data model)and you could see cwmp tree of "InternetGatewayDevice." for exemple.
(0000004)
user13   
2014-05-12 14:59   
wait for information about parameters list (objects and parameters of data model)
(0000005)
wind.shen   
2014-05-13 10:44   
I have lanched easycwmp and OpenACS can recognise the easycwmp device successfully.

I only modified /etc/config/easycwmp and can get the value of easycwmp device from OpenACS. As snapshot file - openACS-1.jpg

CWMP parameters as openACS-4.jpg, CWMP tree as openACS-3.jpg.

Could you tell teach me how to get values of data model ?
thanks
(0000006)
user13   
2014-05-16 10:01   
(Last edited: 2014-05-16 18:23)
to get the cwmp value tree follow these steps :

1 step )
==> Run openacs

2 step )
==> check the config of the CPE (/etc/config/easycwmp)[ACS @ and path]:
 
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'

config acs
        option scheme 'http'
        option port '8080'
        option path '/openacs/acs'
        option periodic_enable '1'
        option hostname '192.168.1.159'
        option username 'admin'
        option password 'openacs'
        option periodic_interval '1800'
        option parameter_key 'unsetCommandKey'

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'

config scripts
        list location '/lib/functions/network.sh'
        list location '/usr/share/easycwmp/functions/common'
        list location '/usr/share/easycwmp/functions/device_info'
        list location '/usr/share/easycwmp/functions/lan_device'
        list location '/usr/share/easycwmp/functions/management_server'
        list location '/usr/share/easycwmp/functions/wan_device'
        list function 'device_info'
        list function 'lan_device'
        list function 'management_server'
        list function 'wan_device'

config notifications

3 step )
==>
 * Run the CPE with command : /etc/init.d/easycwmpd start
 * Check the end of session (204 No Content)
 
4 step )
==> Check CWMP value tree


I tested with openacs-vmware and it works. see attached picture "cpe_cwmp_tree.JPG"

If the problem persists please send us the traffic log (pcap file)

(0000008)
wind.shen   
2014-05-20 04:50   
(Last edited: 2014-05-20 04:52)
Hi,
The console log as follow:


root@OpenWrt:/# /etc/init.d/easycwmpd stop
root@OpenWrt:/# /etc/init.d/easycwmpd start
config_init_local(53):: easycwmp.@local[0].interface=br-lan
config_init_local(63):: easycwmp.@local[0].port=7547
config_init_local(81):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_acs(147):: easycwmp.@acs[0].scheme=http
config_init_acs(153):: easycwmp.@acs[0].username=admin
config_init_acs(159):: easycwmp.@acs[0].password=openacs
config_init_acs(165):: easycwmp.@acs[0].hostname=192.168.1.236
config_init_acs(175):: easycwmp.@acs[0].port=8080
config_init_acs(181):: easycwmp.@acs[0].path=/openacs/acs
config_init_acs(187):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(193):: easycwmp.@acs[0].periodic_interval=100
+++ HTTP SERVER CONFIGURATION +++
ip: '192.168.1.1'
port: '7547'
--- HTTP SERVER CONFIGURATION ---
root@OpenWrt:/# +++ HTTP CLIENT CONFIGURATION +++
http_client_init(49):: url: http://admin:openacs@192.168.1.236:8080/openacs/acs
http_client_init(55):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
> POST /openacs/acs HTTP/1.1
Host: 192.168.1.236:8080
Accept: */*
User-Agent: easycwmp
Content-Type: text/xml
Content-Length: 3059
Expect: 100-continue

< HTTP/1.1 100 Continue
< HTTP/1.1 401 Unauthorized
< Server: Apache-Coyote/1.1
< X-Powered-By: Servlet 2.4; JBoss-4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)/JBossWeb-2.0
< Set-Cookie: JSESSIONID=4F0538F0D816B4E784410ECAF7CA8C3D; Path=/
< WWW-Authenticate: Basic realm="OpenACS"
< Content-Type: text/html;charset=utf-8
< Content-Length: 948
< Date: Tue, 20 May 2014 02:45:20 GMT
<
> POST /openacs/acs HTTP/1.1
Authorization: Basic YWRtaW46b3BlbmFjcw==
Host: 192.168.1.236:8080
Accept: */*
User-Agent: easycwmp
Content-Type: text/xml
Content-Length: 3059
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=200807181417)/JBossWeb-2.0
< Set-Cookie: JSESSIONID=367C2A4F772E865C85C501FD43C058E4; Path=/
< Content-Type: text/xml
< Content-Length: 611
< Date: Tue, 20 May 2014 02:45:20 GMT
<
+++ RECEIVED HTTP RESPONSE (PART) +++
<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">ID:intrnl.unset.id.Inform1400557520154.17489899</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 (PART) ---
+++ 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">ID:intrnl.unset.id.Inform1400557520154.17489899</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 ---
> POST /openacs/acs HTTP/1.1
Authorization: Basic YWRtaW46b3BlbmFjcw==
Host: 192.168.1.236:8080
Accept: */*
User-Agent: easycwmp
Content-Type: text/xml
Content-Length: 501

< 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=200807181417)/JBossWeb-2.0
< Set-Cookie: JSESSIONID=FBB1999ED143121025B5E5B72B705296; Path=/
< Content-Type: text/xml
< Content-Length: 0
< Date: Tue, 20 May 2014 02:45:20 GMT
<
+++ RECEIVED EMPTY HTTP RESPONSE +++
> POST /openacs/acs HTTP/1.1
Authorization: Basic YWRtaW46b3BlbmFjcw==
Host: 192.168.1.236:8080
Accept: */*
User-Agent: easycwmp
Content-Type: text/xml
Content-Length: 0

< HTTP/1.1 500 Internal Server Error
< Server: Apache-Coyote/1.1
< Content-Type: text/html;charset=utf-8
< Content-Length: 1552
< Date: Tue, 20 May 2014 02:45:20 GMT
< Connection: close
<
+++ RECEIVED HTTP RESPONSE (PART) +++
<html><head><title>JBossWeb/2.0.1.GA - 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
        org.openacs.ACSServlet.RunConfigurator(ACSServlet.java:632)
        org.openacs.ACSServlet.processRequest(ACSServlet.java:522)
        org.openacs.ACSServlet.doPost(ACSServlet.java:609)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

note The full stack trace of the root cause is available in the JBossWeb/2.0.1.GA logs.

<HR size="1" noshade="noshade"><h3>JBossWeb/2.0.1.GA</h3></body></html>--- RECEIVED HTTP RESPONSE (PART) ---
cwmp_handle_messages(347): sending http message failed
cwmp_inform(311): handling xml message failed


The traffic log (openacs-http-dump.pcapng) as the attachment.

thanks your help

(0000009)
wind.shen   
2014-05-20 04:58   
hi Anis,

Could you send me the daemon - easycwmpd to test on my environment.

thanks
(0000010)
wind.shen   
2014-05-20 09:31   
Hi Anis,

please skip the console log.
Could you provide us with the configure option?

my configure is as the following.

./configure --target=powerpc-openwrt-linux' '--host=powerpc-openwrt-linux' '--build=i486-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=/home/wind/OpenWrt/openwrt_main/staging_dir/target-powerpc_8540_uClibc-0.9.33.2/usr/include' '--with-libubox-include-path=/home/wind/OpenWrt/openwrt_main/staging_dir/target-powerpc_8540_uClibc-0.9.33.2/usr/include' '--with-libubus-include-path=/home/wind/OpenWrt/openwrt_main/staging_dir/target-powerpc_8540_uClibc-0.9.33.2/usr/include' '--enable-acs=multi' '--enable-debug' '--enable-devel' '--enable-jsonc=1' 'build_alias=i486-linux-gnu' 'host_alias=powerpc-openwrt-linux' 'target_alias=powerpc-openwrt-linux' 'CC=powerpc-openwrt-linux-uclibcspe-gcc' 'CFLAGS=-Os -pipe -mcpu=8540 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -D_GNU_SOURCE ' 'LDFLAGS=-L/home/wind/OpenWrt/openwrt_main/staging_dir/target-powerpc_8540_uClibc-0.9.33.2/usr/lib -L/home/wind/OpenWrt/openwrt_main/staging_dir/target-powerpc_8540_uClibc-0.9.33.2/lib -L/home/wind/OpenWrt/openwrt_main/staging_dir/toolchain-powerpc_8540_gcc-4.6-linaro_uClibc-0.9.33.2/usr/lib -L/home/wind/OpenWrt/openwrt_main/staging_dir/toolchain-powerpc_8540_gcc-4.6-linaro_uClibc-0.9.33.2/lib -Wl,-rpath-link=/home/wind/OpenWrt/openwrt_main/staging_dir/target-powerpc_8540_uClibc-0.9.33.2/usr/lib ' 'CPPFLAGS=-I/home/wind/OpenWrt/openwrt_main/staging_dir/target-powerpc_8540_uClibc-0.9.33.2/usr/include -I/home/wind/OpenWrt/openwrt_main/staging_dir/target-powerpc_8540_uClibc-0.9.33.2/include -I/home/wind/OpenWrt/openwrt_main/staging_dir/toolchain-powerpc_8540_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include -I/home/wind/OpenWrt/openwrt_main/staging_dir/toolchain-powerpc_8540_gcc-4.6-linaro_uClibc-0.9.33.2/include ' 'PKG_CONFIG=/home/wind/OpenWrt/openwrt_main/staging_dir/host/bin/pkg-config' 'PKG_CONFIG_PATH=/home/wind/OpenWrt/openwrt_main/staging_dir/target-powerpc_8540_uClibc-0.9.33.2/usr/lib/pkgconfig' 'PKG_CONFIG_LIBDIR=/home/wind/OpenWrt/openwrt_main/staging_dir/target-powerpc_8540_uClibc-0.9.33.2/usr/lib/pkgconfig
(0000012)
user13   
2014-05-22 16:35   
(Last edited: 2014-05-22 16:40)
Hi wind.shen,
I recognise from the traffic log (openacs-http-dump.pcapng )that the session between ACS and CPE has not terminated well.
for this reason ACS doesn't show cwmp tree.
I have done this test with 2 kind of device:
->Target system Broadcom BCM63xx_ref_nand
->Target system x86

but I can't reproduce your problem !

(0000013)
user13   
2014-05-22 16:41   
I see in ./configure script that you compile OpenWrt with Target System MPC85xx.
have you compiled a OpenWrt Attitude Adjustment with EasyCwmp built-in with this Target System(MPC85xx)?

And what kind of device you use ?
(0000014)
wind.shen   
2014-05-23 05:18   
Hi Anis,

I have seen CWMP tree on openACS page sucessfully.
Possible Cause:
1. EasyCwmp cannot built in 64 btis OS.
(I havd tried it in ubuntu 10.04 and 14.04 64 bits.)
2. CWMP tree need some time to be shown on the page.
3. remove username/ password in config.

thanks your help
you can close this issue.