APUP Failed to downlod updates from all but just a few links

Requests for help go in here.
Post Reply
loveauto
Posts: 5
Joined: Sat Nov 15, 2014 6:04 pm

APUP Failed to downlod updates from all but just a few links

Post by loveauto »

Hi,

I remember early and later autopatcher versions - they worked very well. But today wanted quickly get all updates, but couldn't do it with apup - it got all scripts loaded but curl could not download updates from all sites - after trying get updates all day today I only got few dotnet updates and all office 2003 updates and I need all updates available for many of my friends machines this weekend.

I get these errors for all sites:

APUP Failed To Download http://download.microsoft.com/download/ ... 97-x86.exe
Return code: 23. Description: Write error. Curl couldn't write data to a local filesystem or similar.

I tried to use apup from windows xp home and pro and mini, win 7, win 8.1 - I still got Return code:23 on all windows versions.

I easily dl from links in apup scripts with other download tools - like with firefox or opera or other browsers, with IDM or with windows update ... its just very inconvenient for many pc's.

Thank you for your help!

I very appreciate and love autopatcher and it's developers - I've been using it for along time !





It seems that A
Attachments
apup.log
apup.log for dotnet dl
(8.33 KiB) Downloaded 452 times
User avatar
Whatacrock
Release Maintainer
Release Maintainer
Posts: 1967
Joined: Mon Oct 28, 2013 10:47 am
Location: Australia
Contact:

Re: APUP Failed to downlod updates from all but just a few l

Post by Whatacrock »

It would appear that Microsoft have indeed changed the download location for "NDP35SP1-KB2861697-x86.exe". Pursued the update and found a new download location for the file.

http://download.microsoft.com/download/ ... 97-x86.exe

http://download.microsoft.com/download/ ... 97-x64.exe


Will leave the reason for your download problems to ViroMan as this is his field of expertize..
"Now if you Sons of B*@ches got anything else to say, NOW'S THE F@#%ING TIME!!"
User avatar
TheAPGuy
Site Admin
Site Admin
Posts: 979
Joined: Sun Oct 27, 2013 12:38 am
Location: California
Contact:

Re: APUP Failed to downlod updates from all but just a few l

Post by TheAPGuy »

Sounds to me like curl is getting blocked from writing its data for some reason. Are you blocking it? Does curl have the write access?
Do you have DEP set to always on? VB6 programs tend to not like DEP. With DEP on I can't make a simple window with a button on it, run without having it crash.
another DEP link from MS... LINKY

Are you running it from the desktop or a folder on the desktop? <- this is a no no.
edit: ohh I guess not
log: Starting APUP From: c:\autopatcher
User avatar
TheAPGuy
Site Admin
Site Admin
Posts: 979
Joined: Sun Oct 27, 2013 12:38 am
Location: California
Contact:

Re: APUP Failed to downlod updates from all but just a few l

Post by TheAPGuy »

any progress?
loveauto
Posts: 5
Joined: Sat Nov 15, 2014 6:04 pm

Re: APUP Failed to downlod updates from all but just a few l

Post by loveauto »

I've been away from internet so today I just disabled DEP (/NoExecute=AlwaysOff) and used apup but still get that Curl error 23 - the rest routines are working fine.

Also I tried several other Curl win32 latest v.7.39.0 builds inluding latest just realesed, but still:

APUP Failed To Download http://javadl.sun.com/webapps/download/ ... leId=97807
Return code: 23. Description: Write error. Curl couldn't write data to a local filesystem or similar.

APUP Failed To Download http://download.microsoft.com/download/ ... ordRMR.exe
Return code: 23. Description: Write error. Curl couldn't write data to a local filesystem or similar.

APUP Failed To Download http://ardownload.adobe.com/pub/adobe/r ... _en_US.exe
Return code: 23. Description: Write error. Curl couldn't write data to a local filesystem or similar.

from:
http://curl.haxx.se/libcurl/c/libcurl-errors.html

CURLE_WRITE_ERROR (23)
An error occurred when writing received data to a local file, or an error was returned to libcurl from a write callback.

Thank you ViroMan
User avatar
TheAPGuy
Site Admin
Site Admin
Posts: 979
Joined: Sun Oct 27, 2013 12:38 am
Location: California
Contact:

Re: APUP Failed to downlod updates from all but just a few l

Post by TheAPGuy »

hmm...Do you have a bad/slow internet connection or using wireless router? 2 of those files are rather large so its possible the connection is getting dropped. I just reinstalled my windows 4 days ago and my wireless connection was complete crap I couldn't finish 90% of the files I wanted to download until I did a reinstall of my fresh install and the second install fixed it (have no clue why second fresh installed worked and first did not).

I did a fresh download of each of the scripts that use those files. No issues. :(
hmm soon as I get my VB6 reinstalled I will add curl call output to debug log to see if perhaps its giving a mangled call to curl. Doubt it though.
loveauto
Posts: 5
Joined: Sat Nov 15, 2014 6:04 pm

Re: APUP Failed to downlod updates from all but just a few l

Post by loveauto »

Thank you ! Well …my internet connection is 100Mbit directly hooked into my notebook from my net provider with no router in between right now and on speedtest.net it just gave me 94Mbps download and 93Mbps upload from server in neighboring country... so I think it’s working fine :) .

So I did again fresh downloads on freshly installed Win XP pro sp3 of all files in all scripts that are in APUP.
APUP downloaded maybe only around 1% of all requested files:

Original XP Registry Tweaks – I got all files
AutoPatcher for Office 2003 (English) – all
AutoPatcher Office 2007 SP3 – all but one

Code: Select all

APUP Failed To Download http://download.microsoft.com/download/3/E/4/3E47F9A6-3269-4B05-A469-AE4305089428/outlfltr2007-kb2889914-fullfile-x86-glb.exe
Return code: 22. Description: HTTP file not retrieved. The requested url was not found or returned another error with the HTTP error code being 400 or above.
Admin Tools (Requires Users Presence To Install Items) only downloaded Clover_Setup.exe from http://ejie.me/uploads/Clover_Setup_3.0.406.z

None updates were downloaded due to curl error 23 in all these categories.
AutoPatcher for Windows 8.1 (x64) – got none of updates
AutoPatcher for Windows 8.1 (x86) – none
AutoPatcher for Windows 7 SP1 (x64) – none
AutoPatcher for Windows 7 SP1 (x86) – none
AutoPatcher for Windows Vista SP2 (x86) – none
AutoPatcher for Windows XP SP3 (x86) – none
AutoPatcher Common Modules - none
.NET Framework Addon Pack (x64) - none
.NET Framework Addon Pack (x86) - none
Microsoft Security ENU Addon Pack - none
Microsoft Redistributables - none
Extras Addon Pack - all
Java JRE 7.71 (x64) - none
Java JRE 7.71 (x86) - none
Java JRE 8.25 (x64) - none
Java JRE 8.25 (x86) - none
DirectX 9.0c (v9.29.1974) Addon Pack - none
Office Addon Pack (English) - none
Adobe Air 15.0.0.356 - none
Adobe Reader XI (11.0.09) – none

I extracted all links from every script and did batch download with IDM of all files - total 6.43GiB and finished all downloads in about 20 min, but its very inconvenient to move them into appropriate directories every time on every pc to use autopatcher to install upgrades.

I also checked launched process monitor and run only Admin Tools from APUP. Well, with process monitor working APUP downloaded all Admin Tools !!! :!: :o
Tried the same trick again with other scripts – no files :? but only the same curl errors 23.

Here lines from process monitor where curl fails to write jre file:

Code: Select all

curl.exe","2816","CreateFile","E:\autopatcher\modules\AddOns\Java_Files\jre-7u71-windows-x64.exe","PATH NOT FOUND","Desired Access: Generic Write, Read Attributes, Disposition: OverwriteIf, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, Write, AllocationSize: 0"
curl.exe","2816","CreateFile","E:\autopatcher\modules\AddOns\Java_Files","NAME NOT FOUND","Desired Access: Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Open For Backup, Attributes: N, ShareMode: Read, Write, AllocationSize: n/a"
curl.exe","2816","Process Exit","","SUCCESS","Exit Status: 23,
From what I found on the net curl produces error 23 quite often year after year even in UNIX'es and has problems in windows with permissions and other peculiarities so perhaps it would be more prudent to use other more simple and reliable utility, like wget or other instead in APUP with very little code change?

With appreciation
User avatar
TheAPGuy
Site Admin
Site Admin
Posts: 979
Joined: Sun Oct 27, 2013 12:38 am
Location: California
Contact:

Re: APUP Failed to downlod updates from all but just a few l

Post by TheAPGuy »

hmm strange. Path not found errors when trying to create a file? The command line passes is like this..

Code: Select all


curl.exe -f -L <RemoteFilename> -o "<LocalFilename>"
L and O should be obvious switches. F is so that it will give a proper error response instead of downloading a 404 page for example. Of course there are more switches used if your using a proxy. Before the download proceeds... apup is supposed to delete the file if it already exists.

Well there has been discussion with possibly using wget and I did think about it. I don't remember why exactly but, it seemed at the time that curl was actually the better choice. Something to do with proxies and also more control over how the download proceeds.

I also have some internal code in place for downloading without using curl, however its in the teenage stage and is rather... temperamental when it comes to proxies and firewalls. It hates proxies. So there is work in process to remove curl from the picture.

Anyways... you said your only now getting curl issues. Previous versions gave you no errors?
you can try out the previous versions of apup by using the next line url and adding one of the zips to the end.
http://www.autopatcher.net/apengine/

Apup_1_4_14.zip
Apup_1_4_26.zip
Apup_1_4_35.zip
Apup_1_4_36.zip

Please do try them and report if it fixes your issue. If not... something recently may have changed on your end?
User avatar
TheAPGuy
Site Admin
Site Admin
Posts: 979
Joined: Sun Oct 27, 2013 12:38 am
Location: California
Contact:

Re: APUP Failed to downlod updates from all but just a few l

Post by TheAPGuy »

Ok so I got some time and put in a logmessage about curl string output. You will see something like this in your log

Code: Select all

Curl String: "D:\Apup The Source\Apup_Code\apup_bin\curl.exe" -f  -L http://www.autopatcher.net/releases.list -o "D:\Apup The Source\Apup_Code\temp_bin\releases.list"
Attached is the zip with JUST apup.exe in it. Ver 1.4.41.

Run apup and see what the output looks like for the downloads that are failing.

edit:
Ohh you need to use /verbose or /debug to see the output in your log.
Attachments
apup-1_4_41.zip
(139.52 KiB) Downloaded 436 times
loveauto
Posts: 5
Joined: Sat Nov 15, 2014 6:04 pm

Re: APUP Failed to downlod updates from all but just a few l

Post by loveauto »

Again I was away from web and here's my first part of report back to you about Apup_1_4_14.zip and Apup_1_4_26.zip:

A)

Apup_1_4_14.zip worked first time and I got all updates w8.1 x86 updates, but then crashed when I lunched it the second time to get w8.1 x64 updates. It did not start several times in a row.
Then I unzipped Apup_1_4_26.zip over v.1.4.4 and it downloaded all w8.1 x64 updates!

Then I checked to get all updates that can be chosen in Apup in one swoop and I started to get this error:

Code: Select all


Overflow:
in prUpdater.mdlDownloader.processDownloadQueue at line 173 after each file is fetched.
And then this:

Code: Select all


Failed to create process, check the path of the command line, in runcurl at line 0 
and program froze for maybe like 3min and crashed.

So I lunched this Apup version again with only xp2k3_64 set of updates and I got all files but one:

Code: Select all


APUP Failed To Download http://www.autopatcher.net/releases/english/xp2k3_64/xp_x64_sp2_20141117.rtiz
Return code: 22. Description: HTTP file not retrieved. The requested url was not found or returned another error with the HTTP error code being 400 or above.
But except those errors v.1.26 worked the best of the two. And I didn't get even a single curl 23 error! Downloads works well now here! :D

Yes previous versions that I used some time ago worked well also.

It would be nice if :idea: apup would not delete or overwrite files that in previous downloads passed md5 checks and when new version is about to overwrite [or delete] older version of the file to have an extra lines in Apup script that would save previous versions files in other directory automaticly... or script can go by adding different extension with an addition of the version number to the name of the file, so that to have easily distinguished library of previous versions that worked and that became automaticly available when the newer version, that just got installed works worse than before it got an update. Perhaps it could be an selected by default option in apup.

Thank you very much ! :D


B) I now will test apup-1_4_41.zip

Here I selected only winxp x86 updates as “apup.exe /verbose”

error 23 began from here:

Code: Select all


***Downloading Releases***

Files to be Downloaded: 207
Curl String: "d:\autopatcher\apup_bin\curl.exe" -f -L http://www.autopatcher.net/releases/english/win_xp/xp_sp3_enu_20140708.rtiz -o "D:\autopatcher\xp_sp3_enu.rtiz"
Curl String: "d:\autopatcher\apup_bin\curl.exe" -f -L http://download.microsoft.com/download/7/c/3/7c3962e0-f2fe-4c11-a741-8c883a8e1525/unmsjvm.exe -o "D:\autopatcher\modules\Windows XP x86\MS Security\MS Security_files\unmsjvm.exe"

APUP Failed To Download http://download.microsoft.com/download/7/c/3/7c3962e0-f2fe-4c11-a741-8c883a8e1525/unmsjvm.exe
Return code: 23. Description: Write error. Curl couldn't write data to a local filesystem or similar.
Etc etc up to this:

Code: Select all


APUP Failed To Download http://download.microsoft.com/download/5/6/1/561AB4E7-36DB-47DB-9040-7163FD4FC478/IE8-WindowsXP-KB2598845-x86-ENU.exe
Return code: 23. Description: Write error. Curl couldn't write data to a local filesystem or similar.

Curl String: "d:\autopatcher\apup_bin\curl.exe" -f -L http://download.microsoft.com/download/4/3/A/43A4932D-E56C-4771-BA5F-F8B5A045EFAE/IE8-WindowsXP-KB2632503-x86-ENU.exe -o "D:\autopatcher\modules\Windows XP x86\Non Critical\Non Critical_files\IE8-WindowsXP-KB2632503-x86-ENU.exe"
and Apup froze ..there was no other way to close it... after 5 min I was able to kill it only with process hacker :) :


So for now Apup1_4_26.zip works the best for me :D ... with deep appreciation ... :)

And here zip of the last log :
Attachments
1_4_41_log.zip
(12.74 KiB) Downloaded 462 times
Post Reply