EasyCwmp

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000126easycwmp[All Projects] Helppublic2016-04-11 02:542016-04-12 23:03
Reporterandy_yang 
Assigned Tomohamed.kallel 
PriorityurgentSeverityblockReproducibilityalways
StatusresolvedResolutionno change required 
PlatformUbuntu12.4OSUbuntuOS VersionUbuntu12.4
Summary0000126: Sending Inform http message failed when Start easycwmp
DescriptionSending 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 ?
Steps To Reproduce1. 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 Informationroot@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
TagsNo tags attached.
Attached Files? file icon star_easycmp_failed.pcap [^] (4,641 bytes) 2016-04-11 03:11

- Relationships

-  Notes
(0000415)
andy_yang (reporter)
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 (reporter)
2016-04-11 04:37

Now, I hava fixed my issue, please close this ticket.
Thanks!
my peleasure.

- Issue History
Date Modified Username Field Change
2016-04-11 02:54 andy_yang New Issue
2016-04-11 03:11 andy_yang File Added: star_easycmp_failed.pcap
2016-04-11 03:13 andy_yang Note Added: 0000415
2016-04-11 04:37 andy_yang Note Added: 0000416
2016-04-12 23:03 mohamed.kallel Status new => resolved
2016-04-12 23:03 mohamed.kallel Resolution open => no change required
2016-04-12 23:03 mohamed.kallel Assigned To => mohamed.kallel


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker