Discussion:
[WiX-users] Package download failed in Web Installer
Mohamed Yasir
2014-11-07 13:15:11 UTC
Permalink
Hi,

I have created two msi file (SampleSetup1 & SampleSetup2) using wix
toolset3.8.

In Installation,SampleSetup1 download successfully,but While downloading a
SampleSetup2,it shown below error.

(Note:Two msi were download successfully in another machine.)

Error 0x80072ee2: Failed while reading from internet.

Error 0x80072ee2: Failed while reading from internet and writing to:
C:\Users\shant\AppData\Local\Temp\{0c8156b4-ccb1-499f-bbd0-7478920ba13d}\SampleSetup2

Error 0x80072ee2: Failed to download URL: http://dummy.msi

Error 0x80072ee2: Failed attempt to download URL: 'http://dummy.msi' to:
'C:\Users\shant\AppData\Local\Temp\{0c8156b4-ccb1-499f-bbd0-7478920aa13d}\SampleSetup2'

Error 0x80072ee2: Failed to acquire payload from: 'http://dummy.msi' to
working path:
'C:\Users\shant\AppData\Local\Temp\{0c8156b4-ccb1-499f-bbd0-7478920aa13d}\SampleSetup2'

Failed to acquire payload: WindowsFormsSamplesPackage to working path:
C:\Users\shant\AppData\Local\Temp\{0c8156b4-ccb1-499f-bbd0-7478920aa13d}\SampleSetup2,
error: 0x80072ee2.

Error 0x80072ee2: Cache thread exited unexpectedly.

can you please share why this kind of error occurred ?

Please share any idea on this.

Regards,
Mohamed Yasir K








--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Package-download-failed-in-Web-Installer-tp7597807.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Jeremiahf
2014-11-07 19:44:16 UTC
Permalink
What's the difference between the two machines? Firewall? Different network
configuration/subnet?
Post by Mohamed Yasir
Hi,
I have created two msi file (SampleSetup1 & SampleSetup2) using wix
toolset3.8.
In Installation,SampleSetup1 download successfully,but While downloading a
SampleSetup2,it shown below error.
(Note:Two msi were download successfully in another machine.)
Error 0x80072ee2: Failed while reading from internet.
C:\Users\shant\AppData\Local\Temp\{0c8156b4-ccb1-499f-bbd0-7478920ba13d}\SampleSetup2
Error 0x80072ee2: Failed to download URL: http://dummy.msi
'C:\Users\shant\AppData\Local\Temp\{0c8156b4-ccb1-499f-bbd0-7478920aa13d}\SampleSetup2'
Error 0x80072ee2: Failed to acquire payload from: 'http://dummy.msi' to
'C:\Users\shant\AppData\Local\Temp\{0c8156b4-ccb1-499f-bbd0-7478920aa13d}\SampleSetup2'
C:\Users\shant\AppData\Local\Temp\{0c8156b4-ccb1-499f-bbd0-7478920aa13d}\SampleSetup2,
error: 0x80072ee2.
Error 0x80072ee2: Cache thread exited unexpectedly.
can you please share why this kind of error occurred ?
Please share any idea on this.
Regards,
Mohamed Yasir K
--
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Package-download-failed-in-Web-Installer-tp7597807.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
"They may forget what you said but they will never forget how you made them
feel." -- Anonymous
------------------------------------------------------------------------------
Phill Hogland
2014-11-08 00:22:12 UTC
Permalink
I sometimes see errors like this when the bundle downloads several packages
successfully and starts installing those packages. Then while downloading a
later package, one of the earlier packages encounters an error, and starts a
rollback. The download process is aborted resulting in errors like these.
But the real issue may be in the log of the other package which downloaded
successfully and was being installed at the time. Look for another error
with an earlier timestamp.



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Package-download-failed-in-Web-Installer-tp7597807p7597818.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Phil Wilson
2014-11-08 18:27:57 UTC
Permalink
Isn't that error just ERROR_INTERNET_TIMEOUT as an hresult? If so then
it could well be firewall or configuration related.
---------------
Phil Wilson
Post by Phill Hogland
I sometimes see errors like this when the bundle downloads several packages
successfully and starts installing those packages. Then while downloading a
later package, one of the earlier packages encounters an error, and starts a
rollback. The download process is aborted resulting in errors like these.
But the real issue may be in the log of the other package which downloaded
successfully and was being installed at the time. Look for another error
with an earlier timestamp.
--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Package-download-failed-in-Web-Installer-tp7597807p7597818.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Mohamed Yasir
2014-11-10 13:39:55 UTC
Permalink
Hi,

Both machines are connected under same server, nothing is restricted in
Windows Firewall and proxy server.
Also, both Machines are having same configurations (Windows OS 8.1, 64 bit).
In Download failed machine, second MSI packge only got fail, first MSI
Package downloaded and installed successfully.

Could you please share any idea to solve this type of issue?

Regards,
Mohamed Yasir K



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Package-download-failed-in-Web-Installer-tp7597807p7597826.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Mohamed Yasir
2014-11-11 07:13:44 UTC
Permalink
Hi,

Could you please update any idea to solve this type of issue?

Thanks in advance.

Regards,
Mohamed Yasir K



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Package-download-failed-in-Web-Installer-tp7597807p7597846.html
Sent from the wix-users mailing list archive at Nabble.com.
Phil Wilson
2014-11-11 19:24:00 UTC
Permalink
I honestly don't think this is a WiX issue. It's just reporting that
the download failed because of ERROR_INTERNET_TIMEOUT. It's like
looking for an Internet Explorer solution when a web site isn't
working. It could be anything in the network configuration from the
machine through proxies, firewalls, and the resulting server. What do
you imagine the WiX fix would be if they could change the code
somewhere?
---------------
Phil Wilson


On Mon, Nov 10, 2014 at 11:13 PM, Mohamed Yasir
Post by Mohamed Yasir
Hi,
Could you please update any idea to solve this type of issue?
Thanks in advance.
Regards,
Mohamed Yasir K
--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Package-download-failed-in-Web-Installer-tp7597807p7597846.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
Saravanan
2014-11-21 11:03:05 UTC
Permalink
Hi All,

I am facing ERROR_INTERNET_TIMEOUT while downloading the packages. It get
failed in middle of download due to slow internet speed.
Burn downloads the packages in CacheAcquireProcess event. If it is failed
due to timed out then goes to CacheAcquireComplete in next 30 secs (approx).

But I want to retries the download until some specified times.

Could you please share any idea for how to handle this and in which event I
need to precess this?

Thanks,
Saravanan




--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Package-download-failed-in-Web-Installer-tp7597807p7598164.html
Sent from the wix-users mailing list archive at Nabble.com.
Phill Hogland
2014-11-21 14:10:20 UTC
Permalink
I haven't thought about how to retry until a specified time. If you look at
the wix source (src\Setup\WixBA\InstallationViewModle in ResolveSource
function) you will notice that it maintains a dictionary of download retires
and increments the retry associated with the package Id. My mba had similar
code so I modified this approach to use the PayloadId and added code to
increment the retry count in CacheAcquireComplete, CacheVerifyComplete, and
CachePackageComplete (as indicated in the prior post). Look at
IBootstrapperApplication.h and EventArgs.cs in the wix source for more info
on how to do this.



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Package-download-failed-in-Web-Installer-tp7597807p7598168.html
Sent from the wix-users mailing list archive at Nabble.com.
Saravanan
2014-11-25 12:13:21 UTC
Permalink
Hi,

How to re-initiate the download for a package?
If the package download failed due to internet issue, control flow goes to
CacheAcquireComplete, CachePackageComplete and then CacheComplete. I have
set e.Result = Result.Download in CacheAcquireComplete and
CachePackageComplete events. But it doesn't call
ResolveSource/CachePackageBegin again. Is this correct?

Can you please share idea for retry the same package?

Thanks,
Saravanan



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Package-download-failed-in-Web-Installer-tp7597807p7598222.html
Sent from the wix-users mailing list archive at Nabble.com.
Phill Hogland
2014-11-25 15:24:50 UTC
Permalink
From IBootstrapperApplication.h
// OnCacheAcquireComplete - called after the engine copied or downloaded
// a payload to the working folder.
//
// Return:
// IDRETRY instructs the engine to try the copy or download of the
payload again.
//

// OnCachePackageComplete - called after the engine attempts to copy or
download all
// payloads of a package into the package cache
folder.
//
// Return:
.................................
// IDRETRY instructs the engine to try the acquisition and verification of
the package
// again. Ignored if hrStatus is a success.
//



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Package-download-failed-in-Web-Installer-tp7597807p7598227.html
Sent from the wix-users mailing list archive at Nabble.com.
Saravanan
2014-12-13 07:06:06 UTC
Permalink
Thanks Phill, Retry is working fine.
I need some clarifications in Result.Suspend. I would like to pause the
package download.
I have added e.Result = Result.Suspend in CacheAcquireProgress callback.
Result.Suspend will be set while select pause button from UI. But it won't
pause the download. Package download get completed and package installation
started.
Is it possible to pause the package download? Can you please share any idea
for how to handle Pause and Resume the package download?

Thanks,
Saravanan



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Package-download-failed-in-Web-Installer-tp7597807p7598573.html
Sent from the wix-users mailing list archive at Nabble.com.
Phill Hogland
2014-12-13 23:05:18 UTC
Permalink
I do not have experience in this area. You might want to start a new thread.

Scanning the source code (I have 3.9.702 handy, so you might want to check a
more recent download), Result.Suspend (or IDSUSPEND) is only handled by
OnExecutePackageComplete ( see IBootstrapperApplication.h).
CacheAcquireProgress treats return codes as either Cancel (abort, etc) or
Continue (OK, retry, tryagain, etc). (See IBootstrapperApplication.h and
Apply.cpp)

Here
<http://stackoverflow.com/questions/16247036/wix-burn-custom-ba-how-to-pause-progress-when-cancel-command-fires>
is another question in which Rob provides an answer to a similar question.



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Package-download-failed-in-Web-Installer-tp7597807p7598575.html
Sent from the wix-users mailing list archive at Nabble.com.

Phill Hogland
2014-11-11 22:25:06 UTC
Permalink
If this is really your URL "Error 0x80072ee2: Failed to download URL:
http://dummy.msi", don't you need to include a valid 'domain' to a web site?
I think this says the file is at the root of the Internet, where ever that
is.




--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Package-download-failed-in-Web-Installer-tp7597807p7597859.html
Sent from the wix-users mailing list archive at Nabble.com.
Mohamed Yasir
2014-11-12 11:36:16 UTC
Permalink
Hi,

I have modifed the URL while posting due to security resons. Also i have
been given valid URL in bundle file.
http:\\{Domain}\{Folder}\samplefile.msi.



Regards,
Mohamed Yasir K



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Package-download-failed-in-Web-Installer-tp7597807p7597865.html
Sent from the wix-users mailing list archive at Nabble.com.
Phill Hogland
2014-11-12 13:39:50 UTC
Permalink
OK, that makes sense. Did you use Fiddler (or similar) to evaluate why you
are getting network failures?

Since you are reporting having network problems on both install and
uninstall, related to this package, it seems like determining the core cause
of those problems is needed. I have several mba driven setups which
download packages (150+) reliably, so I am very pleased with the wix support
for this approach. I had one cab which rarely would fail due to problems at
the web hosting site (which I could not directly resolve). I added retries
into the mba, which resolved those issues while the web hosting folks worked
on the real cause of this problem. So the capability is there, documented in
the wix source files, for you to do reliable downloads. Look at
ResolveSource, CacheAcquireComplete, CacheVerifyComplete, and
CachePackageComplete, after you exhaust your effort to resolve the more
obvious issues in the authoring or configuration of the web server..



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Package-download-failed-in-Web-Installer-tp7597807p7597866.html
Sent from the wix-users mailing list archive at Nabble.com.
Loading...