Error In Firmware Upgrade

Siddhika Nag siddhika.nag at teramatrix.co
Thu Sep 22 09:29:57 EDT 2016


Hello,

I am trying to upgrade firmware using API. I call the API to upload the
file on genieacs server. File is uploaded successfully on server using this
API.

To push this firmware file I use download API to process the task (firmware
update). It created a task for download on genieacs GUI  and download task
was completed and logs shows that task is completed successfully but there
was no effect on CPE device.

*Download API :*

curl -i '
http://localhost:7557/devices/0CD2B5-Wireless%2520Router%2520WR3005N3-0CD2B55AB6BA/tasks?timeout25=3000&connection_request'
<http://www.google.com/url?q=http%3A%2F%2Flocalhost%3A7557%2Fdevices%2F0CD2B5-Wireless%252520Router%252520WR3005N3-0CD2B55AB6BA%2Ftasks%3Ftimeout25%3D3000%26connection_request%27&sa=D&sntz=1&usg=AFQjCNFM_urS2EBQlUpT4I78mdDaB_F_gA>
-X
POST --data '{ "name": "download",
"file":"57e23af588b7d29823388b46","filename":"wr3006n3v1_en_3_16_9_up_boot.bin"}'


*Logs :*

22 Sep 11:34:29 - 0CD2B5-Wireless%20Router%20WR3005N3-0CD2B55AB6BA: Started
task download(57e37453e66a598e1a313ae0)

22 Sep 11:34:29 - 0CD2B5-Wireless%20Router%20WR3005N3-0CD2B55AB6BA:
Completed task download(57e37453e66a598e1a313ae0)

22 Sep 11:34:29 - 0CD2B5-Wireless%20Router%20WR3005N3-0CD2B55AB6BA: Inform
(7 TRANSFER COMPLETE); retry count 0

22 Sep 11:34:29 - 0CD2B5-Wireless%20Router%20WR3005N3-0CD2B55AB6BA:
Transfer complete


Also, I am getting *9002 Internal Error* in dump log file from debug
directory mentioned below :

*Dump file Logs :*

# REQUEST Wed Sep 21 2016 16:17:35 GMT+0530 (IST)

{"host":"192.168.0.100","user-agent":"TR069_AGENT/1.0","content-length":"788","connection":"keep-alive","content-type":"text/xml;
charset=utf-8","soapaction":"","cookie2":"$Version=\"1\"","cookie":"session=1664883ee1712a96"}

<?xml version="1.0" encoding="UTF-8"?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/
<http://www.google.com/url?q=http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F&sa=D&sntz=1&usg=AFQjCNGNF5DdaQ9wHKRy5fjl5UBgSE9-HA>"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/
<http://www.google.com/url?q=http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fencoding%2F&sa=D&sntz=1&usg=AFQjCNF5Ngzq8ZX5o_iCDjXbpcDBJe41ug>"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
<http://www.google.com/url?q=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance&sa=D&sntz=1&usg=AFQjCNFERp6A_kcvqihMCKJ7EHX8O14vIA>"
xmlns:xsd="http://www.w3.org/2001/XMLSchema
<http://www.google.com/url?q=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema&sa=D&sntz=1&usg=AFQjCNETUl7MhKy2nWpH8V8BwGakc8etag>"
xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><SOAP-ENV:Header><cwmp:ID
SOAP-ENV:mustUnderstand="1">transfercomplete</cwmp:ID></SOAP-ENV:Header><SOAP-ENV:Body
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/
<http://www.google.com/url?q=http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fencoding%2F&sa=D&sntz=1&usg=AFQjCNF5Ngzq8ZX5o_iCDjXbpcDBJe41ug>"><cwmp:TransferComplete><CommandKey></CommandKey><FaultStruct><FaultCode>9002</FaultCode><FaultString>Internal
error</FaultString></FaultStruct><StartTime>2016-09-21T16:17:35</StartTime><CompleteTime>2016-09-21T16:17:35</CompleteTime></cwmp:TransferComplete></SOAP-ENV:Body></SOAP-ENV:Envelope>



# RESPONSE Wed Sep 21 2016 16:17:35 GMT+0530 (IST)

{"Server":"GenieACS/1.0.5","SOAPServer":"GenieACS/1.0.5","Content-Type":"text/xml;
charset=\"utf-8\""}

<?xml version="1.0" encoding="UTF-8"?>

<soap-env:Envelope xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/
<http://www.google.com/url?q=http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fencoding%2F&sa=D&sntz=1&usg=AFQjCNF5Ngzq8ZX5o_iCDjXbpcDBJe41ug>"
xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/
<http://www.google.com/url?q=http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F&sa=D&sntz=1&usg=AFQjCNGNF5DdaQ9wHKRy5fjl5UBgSE9-HA>"
xmlns:xsd="http://www.w3.org/2001/XMLSchema
<http://www.google.com/url?q=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema&sa=D&sntz=1&usg=AFQjCNETUl7MhKy2nWpH8V8BwGakc8etag>"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
<http://www.google.com/url?q=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance&sa=D&sntz=1&usg=AFQjCNFERp6A_kcvqihMCKJ7EHX8O14vIA>"
xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><soap-env:Header><cwmp:ID
soap-env:mustUnderstand="1">transfercomplete</cwmp:ID></soap-env:Header><soap-env:Body><cwmp:TransferCompleteResponse/></soap-env:Body></soap-env:Envelope>


I have not received any error on syslog of CPE device. I have attached
syslog of CPE for your reference.
Kindly help me resolve this issue.

Thanks & Regards,
Siddhika Nag
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20160922/71af37bf/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: syslog.png
Type: image/png
Size: 203523 bytes
Desc: not available
URL: <http://lists.genieacs.com/pipermail/users/attachments/20160922/71af37bf/attachment-0001.png>


More information about the Users mailing list