I am trying to update the firmware on a MikroTik RB941-2nD device running 6.46.5 using a TR-069 ACS. We provide the following XML file to direct the device to download the firmware:
<upgrade version="1" type="links">
<config/>
<links>
<link>
<url>http://10.247.251.150/routeros-mipsbe-6.47.9.npk</url>
</link>
<link>
<url>http://10.247.251.150/tr069-client-6.46 ... e.npk</url>
</link>
</links>
</upgrade>
and we can see that the device is able to reach that webserver and attempt to pull down the NPK file (this from the webserver access log):
10.247.10.216 - - [13/Jul/2021:12:03:45 -0500] "GET /routeros-mipsbe-6.47.9.npk HTTP/1.1" 200 12051618 "-" "MikroTik"
but the device appears to return an error:
<FaultStruct>
<FaultCode>9017</FaultCode>
<FaultString>ERROR parsing http: destination stream error. URL: http://10.247.251.150:80/routeros-mipsb ... aultString>
</FaultStruct>
I can pull down the NPK file manually using wget and the same URL as is in the XML the MikroTik downloads. What is causing the error?