Download gets omitted after failing with result code 4
Posted: 12.10.2017, 09:07
I have found wsusoffline to be tremendously useful for doing windows updates in my location where the internet connection is very slow and erratic. However, I'm hampered by the fact that the linux script seems to skip re-downloading or continuing to download a partially downloaded file because it checks the server and finds the remote file to be the same version it attempted to download previously, even though the download didn't complete correctly. See the output from download.log below.
I would expect that on "try 2" the download would continue where it failed rather than being omitted. Is there a tweak I can use in the script to avoid this problem?
Thanks, Nate.
2017-10-12 08:01:39 - Info: Downloading/validating mpam-fex64.exe, try 1 ...
--2017-10-12 08:01:39-- http://download.microsoft.com/download/ ... -fex64.exe
Resolving download.microsoft.com (download.microsoft.com)... 222.163.198.100, 113.207.33.152, 2a02:26f0:c000:298::e59, ...
Connecting to download.microsoft.com (download.microsoft.com)|222.163.198.100|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Content-Type: application/octet-stream
Connection: close
Content-Disposition: attachment
Date: Wed, 11 Oct 2017 19:14:05 GMT
Powered-By-ChinaCache: HIT from CNC-SY-d-3Wm.1
Powered-By-ChinaCache: HIT from CNC-YG-1-3W3
Last-Modified: Wed, 11 Oct 2017 17:23:56 GMT
store-version: _2621441507742636
Expires: Thu, 12 Oct 2017 07:14:05 GMT
X-CID: 6
Content-Length: 109037328
X-CCC: CN
Age: 42456
Accept-Ranges: bytes
Server: Microsoft-IIS/8.5
Cache-Control: public,max-age=14400
CC_CACHE: TCP_HIT
Length: 109037328 (104M) [application/octet-stream]
Saving to: '../client/msse/x64-glb/mpam-fex64.exe'
0K ........ ........ ........ ........ ........ ........ 2% 34.5K 49m57s
3072K ........ ........ ........ ........ ........ ........ 5% 49.0K 41m19s
6144K ........ ........ ........ ........ ........ ........ 8% 36.8K 41m23s
9216K ........ ........ ........ ........ ........ ........ 11% 31.5K 42m31s
12288K ........ ........ ........ ........ ........ ........ 14% 35.5K 41m29s
15360K ........ ........ ........ ........ ........ ........ 17% 42.9K 39m6s
18432K ....... 17% 58.0K=8m19s
2017-10-12 08:11:02 (37.9 KB/s) - Read error at byte 19339756/109037328 (Success). Giving up.
2017-10-12 08:11:02 - Error: Download/validation of mpam-fex64.exe failed with result code 4
2017-10-12 08:11:02 - Info: Restarting download in 10 seconds ...
2017-10-12 08:11:12 - Info: Downloading/validating mpam-fex64.exe, try 2 ...
--2017-10-12 08:11:12-- http://download.microsoft.com/download/ ... -fex64.exe
Resolving download.microsoft.com (download.microsoft.com)... 92.123.89.7
Connecting to download.microsoft.com (download.microsoft.com)|92.123.89.7|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 304 Not Modified
Content-Type: application/octet-stream
Last-Modified: Wed, 11 Oct 2017 19:18:50 GMT
ETag: "6ebcfc4c542d31:0"
Date: Thu, 12 Oct 2017 07:11:15 GMT
Connection: close
File '../client/msse/x64-glb/mpam-fex64.exe' not modified on server. Omitting download.
I would expect that on "try 2" the download would continue where it failed rather than being omitted. Is there a tweak I can use in the script to avoid this problem?
Thanks, Nate.