owncloud / client

🖥️ Desktop Syncing Client for ownCloud
GNU General Public License v2.0
1.4k stars 664 forks source link

[Windows] Error installing MSI: The feature you are trying to use is in a network resource that is unavailable #6861

Open jnweiger opened 6 years ago

jnweiger commented 6 years ago

Windows 10 Enterprise evaluation

Upgrade from 2.5.0beta1 to 2.5.1rc2 aborts with an error message saying "The feature you are trying to use is in a network resource that is unavailable" image

The screenshot shows the additional window that opens when I hit the browse button. It appears that the installer is looking for something with the old 'beta1' name in the temporary download folder, where the new 'rc2' downloads are. (Multiple of them, as I tried several times)

Installing the 2.5.1rc2 EXE package works. Retrying MSI after that still gives the same issue.

guruz commented 6 years ago

@jnweiger Can you run from the command line:

msiexec /i ownCloud-2.5.1.10969.10846-rc2.msi /L*V msi.log
jnweiger commented 6 years ago

msi.log

michaelstingl commented 6 years ago

Could someone(tm) add the the magic /L*V 'msi.log' parameter to the MSI docs? /cc @dschmidt 😉

jnweiger commented 6 years ago

Workaround: Manually placing a copy of the older owncloud-2.5.0.10372-beta1.10398.msi in the AppData/Local/ownCloud folder works.

owncloud-2.5.0.10372-beta1.10398.msi is deleted when the 2.5.1 install succeeds.

jnweiger commented 6 years ago

A second test:

-> works.

@dschmidt Maybe it is an issue with the 2.5.0beta1 msi package only? I can reproduce the issue by resetting my VM to the 2.5.0beta1 snapshop.

guruz commented 6 years ago

I can't reproduce :(

@dschmidt From the logs of @jnweiger :

MSI (s) (08:40) [05:54:13:979]: Doing action: RemoveExistingProducts
MSI (s) (08:40) [05:54:13:979]: Note: 1: 2205 2:  3: ActionText 
Action 5:54:13: RemoveExistingProducts. Removing applications
Action start 5:54:13: RemoveExistingProducts.
RemoveExistingProducts: Application: {7C8908D6-8099-4362-9035-1F348354E899}, Command line: UPGRADINGPRODUCTCODE={207020CD-EA5F-4953-AEE8-3EA4C37CACF0} CLIENTPROCESSID=3136 CLIENTUILEVEL=0 REMOVE=ALL
MSI (s) (08:3C) [05:54:13:979]: Resetting cached policy values
MSI (s) (08:3C) [05:54:13:979]: Machine policy value 'Debug' is 0
MSI (s) (08:3C) [05:54:13:979]: ******* RunEngine:
           ******* Product: {7C8908D6-8099-4362-9035-1F348354E899}
           ******* Action: 
           ******* CommandLine: **********
MSI (s) (08:3C) [05:54:13:979]: Warning: Local cached package 'C:\Windows\Installer\246556.msi' is missing.
MSI (s) (08:3C) [05:54:13:979]: User policy value 'SearchOrder' is 'nmu'
MSI (s) (08:3C) [05:54:13:979]: User policy value 'DisableMedia' is 0
MSI (s) (08:3C) [05:54:13:979]: Machine policy value 'AllowLockdownMedia' is 1
MSI (s) (08:3C) [05:54:13:979]: SOURCEMGMT: Looking for sourcelist for product {7C8908D6-8099-4362-9035-1F348354E899}
MSI (s) (08:3C) [05:54:13:979]: SOURCEMGMT: Adding {7C8908D6-8099-4362-9035-1F348354E899}; to potential sourcelist list (pcode;disk;relpath).
MSI (s) (08:3C) [05:54:13:979]: SOURCEMGMT: Now checking product {7C8908D6-8099-4362-9035-1F348354E899}
MSI (s) (08:3C) [05:54:13:979]: SOURCEMGMT: Attempting to use LastUsedSource from source list.
MSI (s) (08:3C) [05:54:13:979]: SOURCEMGMT: Trying source C:\Users\IEUser\AppData\Local\ownCloud\.
MSI (s) (08:3C) [05:54:13:979]: Note: 1: 2203 2: C:\Users\IEUser\AppData\Local\ownCloud\ownCloud-2.5.0.10372-beta1.10398.msi 3: -2147287037 
MSI (s) (08:3C) [05:54:13:979]: SOURCEMGMT: Source is invalid due to missing/inaccessible package.
MSI (s) (08:3C) [05:54:13:979]: Note: 1: 1706 2: -2147483647 3: ownCloud-2.5.0.10372-beta1.10398.msi 
MSI (s) (08:3C) [05:54:13:979]: SOURCEMGMT: Processing net source list.
MSI (s) (08:3C) [05:54:13:979]: Note: 1: 1706 2: -2147483647 3: ownCloud-2.5.0.10372-beta1.10398.msi 
MSI (s) (08:3C) [05:54:13:979]: SOURCEMGMT: Processing media source list.
MSI (s) (08:3C) [05:54:13:979]: Note: 1: 2203 2:  3: -2147287037 
MSI (s) (08:3C) [05:54:13:979]: SOURCEMGMT: Source is invalid due to missing/inaccessible package.
MSI (s) (08:3C) [05:54:13:979]: Note: 1: 1706 2: -2147483647 3: ownCloud-2.5.0.10372-beta1.10398.msi 
MSI (s) (08:3C) [05:54:13:979]: SOURCEMGMT: Processing URL source list.
MSI (s) (08:3C) [05:54:13:979]: Note: 1: 1402 2: UNKNOWN\URL 3: 2 
MSI (s) (08:3C) [05:54:13:979]: Note: 1: 1706 2: -2147483647 3: ownCloud-2.5.0.10372-beta1.10398.msi 
MSI (s) (08:3C) [05:54:13:979]: Note: 1: 1706 2:  3: ownCloud-2.5.0.10372-beta1.10398.msi 
MSI (c) (40:D8) [05:54:13:979]: User policy value 'SearchOrder' is 'nmu'
MSI (c) (40:D8) [05:54:13:979]: User policy value 'DisableMedia' is 0
MSI (c) (40:D8) [05:54:13:979]: Machine policy value 'AllowLockdownMedia' is 1
MSI (c) (40:D8) [05:54:13:979]: SOURCEMGMT: Prompting user for a valid source.
MSI (c) (40:D8) [05:54:13:979]: Machine policy value 'DisableBrowse' is 0
MSI (c) (40:D8) [05:54:13:979]: Machine policy value 'AllowLockdownBrowse' is 0
MSI (c) (40:D8) [05:54:13:979]: Machine policy value 'AlwaysInstallElevated' is 0
MSI (c) (40:D8) [05:54:13:979]: User policy value 'AlwaysInstallElevated' is 0
MSI (c) (40:D8) [05:54:13:979]: Product {7C8908D6-8099-4362-9035-1F348354E899} is admin assigned: LocalSystem owns the publish key.
MSI (c) (40:D8) [05:54:13:979]: Product {7C8908D6-8099-4362-9035-1F348354E899} is managed.
MSI (c) (40:D8) [05:54:13:979]: Running product '{7C8908D6-8099-4362-9035-1F348354E899}' with elevated privileges: Product is assigned.
MSI (c) (40:D8) [05:54:13:979]: SOURCEMGMT: Browsing is enabled - but requires cred prompt.
MSI (c) (40:D8) [05:54:13:995]: Font created.  Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg

MSI (c) (40:D8) [05:54:13:995]: SOURCEMGMT: Now checking product {7C8908D6-8099-4362-9035-1F348354E899}
MSI (c) (40:D8) [05:54:13:995]: SOURCEMGMT: Attempting to use LastUsedSource from source list.
MSI (c) (40:D8) [05:54:13:995]: Note: 1: 1706 2:  3: ownCloud-2.5.0.10372-beta1.10398.msi 
MSI (c) (40:D8) [05:54:13:995]: SOURCEMGMT: Processing net source list.
MSI (c) (40:D8) [05:54:13:995]: Note: 1: 1706 2: -2147483647 3: ownCloud-2.5.0.10372-beta1.10398.msi 
MSI (c) (40:D8) [05:54:13:995]: SOURCEMGMT: Processing media source list.
MSI (c) (40:D8) [05:54:13:995]: SOURCEMGMT: Trying media source ;.
MSI (c) (40:D8) [05:54:13:995]: Note: 1: 1706 2:  3: ownCloud-2.5.0.10372-beta1.10398.msi 
MSI (c) (40:D8) [05:54:13:995]: SOURCEMGMT: Processing URL source list.
MSI (c) (40:D8) [05:54:13:995]: Note: 1: 1402 2: UNKNOWN\URL 3: 2 
MSI (c) (40:D8) [05:54:13:995]: Note: 1: 1706 2: -2147483647 3: ownCloud-2.5.0.10372-beta1.10398.msi 
MSI (c) (40:D8) [05:54:13:995]: Note: 1: 1706 2:  3: ownCloud-2.5.0.10372-beta1.10398.msi 
MSI (c) (40:10) [05:54:20:561]: SOURCEMGMT: Trying source C:\Users\IEUser\AppData\Local\ownCloud\.
MSI (c) (40:10) [05:54:20:576]: Note: 1: 2203 2: C:\Users\IEUser\AppData\Local\ownCloud\ownCloud-2.5.0.10372-beta1.10398.msi 3: -2147287037 
MSI (c) (40:10) [05:54:20:576]: SOURCEMGMT: Source is invalid due to missing/inaccessible package.
MSI (c) (40:10) [05:54:20:576]: Note: 1: 1706 2: -2147483647 3: ownCloud-2.5.0.10372-beta1.10398.msi 
MSI (c) (40:10) [05:54:20:576]: Font created.  Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg

MSI (s) (08:C4) [05:54:42:367]: I/O on thread 1440 could not be cancelled. Error: 1168
MSI (s) (08:C4) [05:54:42:367]: I/O on thread 3112 could not be cancelled. Error: 1168
MSI (s) (08:C4) [05:54:42:367]: I/O on thread 6952 could not be cancelled. Error: 1168
MSI (s) (08:C4) [05:54:42:367]: I/O on thread 8928 could not be cancelled. Error: 1168
MSI (s) (08:C4) [05:54:42:367]: I/O on thread 5040 could not be cancelled. Error: 1168
MSI (s) (08:C4) [05:54:42:367]: I/O on thread 8768 could not be cancelled. Error: 1168
MSI (s) (08:C4) [05:54:42:367]: I/O on thread 8764 could not be cancelled. Error: 1168
MSI (s) (08:C4) [05:54:42:367]: I/O on thread 5388 could not be cancelled. Error: 1168
MSI (s) (08:3C) [05:54:42:367]: SOURCEMGMT: Failed to resolve source
CustomAction  returned actual error code 1612 (note this may not be 100% accurate if translation happened inside sandbox)
MSI (s) (08:40) [05:54:42:367]: Note: 1: 1714 2: ownCloud 3: 1612 
Error 1714. The older version of ownCloud cannot be removed.  Contact your technical support group.  System Error 1612.
MSI (s) (08:40) [05:54:45:978]: Product: ownCloud -- Error 1714. The older version of ownCloud cannot be removed.  Contact your technical support group.  System Error 1612.

Action ended 5:54:45: RemoveExistingProducts. Return value 3.
Action ended 5:54:45: INSTALL. Return value 3.

What is weird then it mentions uninstall.exe:

Property(S): UpgradeCode = {EB15081D-1892-4DB5-872C-9424BFFFF22F}
Property(S): INSTALLDIR = C:\Program Files (x86)\ownCloud\
Property(S): LEGACYUNINSTALLEXE = "C:\Program Files (x86)\ownCloud\Uninstall.exe"

It does not do that on my VM, even when i go 250beta1.exe->250rc1.msi->251rc2.msi

guruz commented 6 years ago

Hmm https://support.threattracksecurity.com/support/solutions/articles/1000070852-msi-error-1612-installation-source-for-this-product-is-not-available-during-installation-uninstall

guruz commented 6 years ago

https://support.fssdev.com/kb/a51/msi-error-1714-system-error-1612-older-version-casper-10-cannot-be-removed_-contact.aspx

This error is reported when the former Windows installer database (.msi) file for the older version of Casper cannot be located within the Windows Installer Cache at %WINDIR%\Installer.

jnweiger commented 6 years ago

I cannot reproduce with a fresh system. It only happens with one VM snapshot which has a lot of history. Maybe not worth blocking 2.5.1 then...

dschmidt commented 6 years ago

It looks a bit like the issues @chriseds and @michaelstingl had and were asked to insert a cdrom... can you test with the same msi file? Instead of downloading it again on another machine... might be the ownCloud network again..

guruz commented 6 years ago

I can reproduce it but it might be an exotic case. Will try more.

bildschirmfoto 2018-11-06 um 14 57 07

dschmidt commented 6 years ago

Ok,need to check then...

guruz commented 6 years ago

I can uninstall the old client even when I removed its related MSI Data from c:\windows\Installer using https://support.microsoft.com/en-us/help/17588/fix-problems-that-block-programs-from-being-installed-or-removed ...

guruz commented 6 years ago

I can really only reproduce this by removing(renaming?) the relevant files in c:\windows\Installer (SourceHash and msi) AND the old .msi version in my download directory. The latter part is likely, the first part not.

I think we can keep this open as Known Issue, no fix needed. No idea how @jnweiger got into this situation in the first place ;-)

ogoffart commented 5 years ago

Is this still an issue?

PrinceCharles23 commented 5 years ago

just downloaded version 2.5.4 of the windows client and during install it somehow tries to deinstall version 2.5.2 and requires the msi for that (which i do not have any more and is not accessable via the "old versions" link on the owncloud page -> leads to 404 error). so what now?

TheOneRing commented 4 years ago

Is this still an issue?

n0valis commented 3 years ago

Yes it is for me. I have this problem with ownCloud-2.7.4.2934.x64 cannot install because ownCloud-2.6.3.14058.13619.msi cannot be found in Appdata/Roaming/owncloud. Which is needed for uninstalling. And uninstalling the old version also doesn't work without the file. The link to the particular old version is dead on https://owncloud.com/older-versions/ Everyone at owncloud.com who I informed about that doesn't care So I'm stuck here. Can't install neither uninstall.

TheOneRing commented 3 years ago

It is not needed to uninstall an old version to install a new version.