Firmware upgrade through API

Hi there, I having an issue when I try to upgrade firmware trough api or even in the gui. Always return Device offline to me, but, when I push a device reboot, I receive the same message, however the reboot is successful completed.

curl -i ‘http://localhost:7557/devices/00259E-HG8245Q2-4857544380BD819E/tasks?timeout=3000&connection_request’ -X POST --data ‘{“name”: “download”, “fileType”: “1 Firmware Upgrade Image”, “file”: “HG8245Q2V300R017C10SPC208_common_all.bin”}’

HTTP/1.1 202 Device is offline
GenieACS-Version: 1.2.3+20201027064135
Content-Type: application/json
Date: Thu, 18 Feb 2021 14:03:51 GMT
Connection: keep-alive
Keep-Alive: timeout=5
Transfer-Encoding: chunked

{“name”:“download”,“fileType”:“1 Firmware Upgrade Image”,“file”:“HG8245Q2V300R017C10SPC208_common_all.bin”,“device”:“00259E-HG8245Q2-4857544380BD819E”,“timestamp”:“2021-02-18T14:03:49.603Z”,"_id":“602e73c5c32e322540eeda61”}

On the GUI I see the error below

Full error response: “faultCode: “9010”
faultString: Download failure
setParameterValuesFault: null”

I able to ping two sides, there is no firewall in the middle, I can retrieve all parameters from devices, but I can’t use any function to set something through the GUI.

Genieacs → version="1.2.3+20201027064135
Node.js → 15.8.0
Mongodb → 4.4.3

Make sure the file download URL is reachable from the CPE. You can find what URL is being sent to the CPE by enabling debug log and inspecting the content of the Download request.

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)

Hi zaidka, follow below my log file after the upgrade attempt.

event: incoming HTTP request
timestamp: 2021-02-25T18:13:14.933Z
remoteAddress: 10.0.2.10
deviceId: 00259E-HG8245Q2-4857544380BD819E
connection: 2021-02-25T18:13:14.867Z
localPort: 7547
method: POST
url: /
headers:
host: 10.0.2.93:7547
soapaction: “”
connection: Keep-Alive
content-type: text/xml; charset=UTF-8
authorization: Digest username=“tecnico”, realm=“GenieACS”,
nonce=“ddf740812368d5383e05d290db3b02cc”, uri="/", nc=00000001,
cnonce=“e31f30c10f8ddc9a7e4cf6af000b9355”, qop=“auth,auth-int”,
response=“b25e7700a8717f07c335765cda1ebe34”
cookie: session=7bced7220d63b678
user-agent: HW_WAP_CWMP_V02
content-length: “702”
body: >
<SOAP-ENV:Envelope xmlns:SOAP-ENV=“http://schemas.xmlsoap.org/soap/envelope/
xmlns:SOAP-ENC=“http://schemas.xmlsoap.org/soap/encoding/
xmlns:xsd=“XML Schema
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”>7272</cwmp:ID>

</SOAP-ENV:Header>

SOAP-ENV:Body

cwmp:TransferComplete

177da6518ec0000

9010

Download failure

2021-02-25T14:29:16

2021-02-25T14:29:17

</cwmp:TransferComplete>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

It works when I puted the file also through API, when I use the GUI to change os set parameters, nothing works properly.

Thank’s anyway zaidka, I don’t know yet what happens in GUI.