Why do I get error 0x80070004 when trying to update to Windows 8.1 from Windows 8?

4

0

So, I'm trying to update Windows 8 to Windows 8.1 via the Windows Store, but every time I attempt to, the update downloads properly, but then I get the error:

Windows 8.1
This app wasn't installed - view details

When I click on it, it says:

Something happened and the Windows 8.1 could not be installed. Please try again. Error code: 0x80070004
Try again Cancel Install

What does this mean? A quick Google search yields nothing.

I have tried rebooting, clearing the store cache, and resetting Windows Update. All Windows Updates were installed. I have tried using a different administrator account, and it does not work.


A quick chkdsk scan shows no errors.


A SFC scan now shows no errors.


I found the error log!

http://pastebin.com/BXZEsejm

Why is the registry corrupt?


DISM Results

Checking System Update Readiness.


Summary:
Operation: Detect and Repair 
Operation result: 0x0
Last Successful Step: Entire operation completes.
Total Detected Corruption:  0
Total Repaired Corruption:  0
    CSI Store Metadata refreshed:   True

Total Operation Time: 1405 seconds.

user140967

Posted 2013-10-28T00:16:53.130

Reputation:

The 0x80070004 error is "ERROR_TOO_MANY_OPEN_FILES". Not overly helpful up front. :) What have you tried already? For example: Have you tried restarting and trying the update again?

– Ƭᴇcʜιᴇ007 – 2013-10-28T00:28:43.197

It's not be that literal. ;) It's more likely too many open file by that one process (the updater). If you've tried rebooting (you haven't said what you've tried yet), also try resetting Windows Update, and reset the Store cache.

– Ƭᴇcʜιᴇ007 – 2013-10-28T00:41:34.050

@techie007 I have now tried all of those and am still getting the same error. – None – 2013-10-28T21:50:33.960

If you haven't already, do some disk checks. From here on, I suggest you Edit your question and update it to include what you've tried, and what the results were. Hopefully that'll help someone recognize what's going on without suggesting things you've already tried. But that's a weird situation for sure, an di don't have any specific answers. If the disk checks come up clean, it might be worth contacting MS' support about. – Ƭᴇcʜιᴇ007 – 2013-10-28T23:01:55.477

@JeffreyLin have you moved any user profile to other disk rather than default location of C:/? If yes most probably this is the culprit in your case as many other user have confirmed this. From here and here

– avirk – 2014-01-01T04:58:18.570

@JeffreyLin Also you can try with a reset of your windows 8 or use this method. Of course you will loose your data and apps if you reset so backup them before doing so.

– avirk – 2014-01-01T04:59:37.700

@avirk I had linked .minecraft in %APPDATA% to a different partition. After removing that, I still have this error. I don't really want to reset Windows unless I have to. Also, log has been updated. – None – 2014-01-01T05:06:03.840

@JeffreyLin not to remove that folder just link it back there where it should be and that is c:/ also if it doesn't help you then you have to reset the pc or try 7-8 times as some users reported they have success by that. – avirk – 2014-01-01T05:34:41.043

Do you have a rollback log $windows.~bt\Sources\Rollback The problem will be found near the end, uninstall offending app and try upgrade again. – Knuckle-Dragger – 2014-01-01T07:13:23.333

I have gone through the process of upgrading my XP to win 8 last week which went pretty smooth. Before you started the upgrade, did you download and installed the updates meant for Windows 8? Not installing those can be one of the reasons why you see the error.

Initially, I was not able to locate 8.1 in the store, once I installed all updates for Win 8, 8.1 was available.

– Ankur Jain – 2014-01-01T12:03:28.700

From your log, the user Jeffrey seems to have a corrupt profile. Try to delete that account (back up any data there first). – kinokijuf – 2014-01-06T09:58:03.367

@avirk the problem is not with moving any individual profile, the problem is with the Users directory — it contains quite a few system files and can’t be relocated – kinokijuf – 2014-01-06T10:00:25.473

@kinokijuf System files, you said? Could I pinpoint which? If so, how? – None – 2014-01-06T23:19:44.987

The files in \Users\Default\AppData\Local\Microsoft\Windows\WinX, for example. – kinokijuf – 2014-01-07T09:46:47.720

Answers

4

You seem to have problems in Windows 8. There is no point in trying to upgrade to 8.1 without fixing them first and verifying that "sfc /scannow" passes without errors and also that Windows Update is functional and can fully patch your Windows installation.

Some utilities that could help you check for problems are :

If none of them helps, Do a Repair Install of Windows 8 without Losing Anything.

The next step is to verify if your user profile got corrupted. Follow the instructions in the article How to fix corrupt user profile in windows 8 to create a new administrator profile and see if it can do better than your old account.

If nothing helps, my remaining advice is to look up the article How to refresh, reset, or restore your PC. If the problem is recent, try first to restore to a system restore point that dates from before the problem appeared. If that doesn't help, then try a Refresh, with a Reset as the last possible action. If Reset does not work, reformat the disk and reinstall Windows 8 from DVD or USB.

In all cases, ensure before starting that all your data is safely backed up.


Once "sfc /scannow" and Windows Update pass without errors, follow the steps outlined in the article :
Fix: Your Windows 8.1 install couldn’t be completed error.

In a nutshell, the instructions are to open a Command Prompt as administrator, then enter :

net stop wuauserv
net stop bits

Then browse to the C:\Windows\SoftwareDistribution folder and delete all the files and folders inside (restart if in use).

Then enter the following commands :

net start wuauserv
net start bits

Now open the Windows Store and try the upgrading process all over again.


If you still have errors with the Store, some advice :

  • Disable all security products
  • In Command Prompt (cmd) Run as Administrator, execute WSReset.exe to reset the Store

harrymc

Posted 2013-10-28T00:16:53.130

Reputation: 306 093

I see that sfc now works, so I added a second part to my answer. Your comments are welcome. – harrymc – 2014-01-06T09:51:29.727

See the article How to Install Windows 8.1 Update When Missing From Store. The best advice there is installing KB2871389, but you should do Windows Update for ALL mandatory AND optional updates before attempting 8.1. See also Why can't I find the update in the Store?.

– harrymc – 2014-01-07T08:10:02.947

These are useless, no point. Have you tried the links in my above comment? – harrymc – 2014-01-07T22:26:19.780

I believe the problem started a long time ago. I had created a new user profile for some reason, and then migrated all my user data. I changed the user profile name and then messed with the stuff in the registry. Could this be what is causing the problem? – None – 2014-01-07T22:38:03.180

Probably in c:\windows\setuperr.log, please post if not empty. Have you tried (1) stopping all security products, (2) in cmd run as admin run WSReset.exe, (3) another administrator account. See also this link. Have you maybe displaced your user profile from C: to another disk using a symbolic link?

– harrymc – 2014-01-08T06:54:11.707

Deleting my user profile did the trick. I was due for a user cleanup anyway, so that's alright. Currently rebooting, this is good. – None – 2014-01-09T01:38:39.197