Avast WEBforum

Consumer Products => Avast Free Antivirus / Premium Security (legacy Pro Antivirus, Internet Security, Premier) => Topic started by: sludge7051-x on June 12, 2019, 01:55:59 PM

Title: Win 10 update to 1903 failed - Error 0x80070005
Post by: sludge7051-x on June 12, 2019, 01:55:59 PM
Win 10 update to 1903 failed - Error 0x80070005

Apparently, this is a permissions access error.

Could this be due to Avast?

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Is this the fix?

Avast / Menu / Settings / Troubleshooting / [un-check] Enable Self-Defense

Can I be sure (to save time)?  or would just a de-install/re-install of Avast make it a no-brainer?
Title: Re: Win 10 update to 1903 failed - Error 0x80070005
Post by: schmidthouse on June 12, 2019, 04:53:11 PM
Just updated 2 machines running Win 10 1903  64 Bit (one on latest Stable version and one on latest beta version Avast Prem).
No issue updating.

"Could this be due to Avast?".....Not here :)

Check your access settings, Admin
Any other security software that might interfere with MS updates?
Title: Re: Win 10 update to 1903 failed - Error 0x80070005
Post by: bob3160 on June 12, 2019, 11:47:13 PM
Here are some suggestions: https://www.bynarycodes.com/windows-10-version-1809-update-error-0x80070005/ (https://www.bynarycodes.com/windows-10-version-1809-update-error-0x80070005/)
I personally disabled all Avast shields before starting the upgrade.
(https://screencast-o-matic.com/screenshots/u/Lh/1560376082505-23052.png)

I also disconnected all attached external drives.
Title: Re: Win 10 update to 1903 failed - Error 0x80070005
Post by: schmidthouse on June 13, 2019, 12:18:07 AM
@ Bob
Ah, I misunderstood the OP's issue.  ;D
Title: Re: Win 10 update to 1903 failed - Error 0x80070005
Post by: jasonbuechler on June 24, 2019, 07:31:25 AM
I registered on the forum JUST so I could angrily post this confirmation of @sludge7051-x 's theory:
Yes, when updating to 1903 (from 1803, in my case), the 0x80070005 error was explicitly caused by Avast.
NOTE: Avast caused this issue EVEN THOUGH the first thing I did was "permanently disable all shields" (!!!).  >:( >:( >:(

I'll elaborate more later, but in a post in a microsoft forum so that people actually see it, since I spent hours searching for information on why time and time and time again my 1903 update failed.

I finally tracked it down, and caught Avast red-handed:

The damning event was Event ID 1001 from Windows Error Reporting, and was found in Event Viewer > Windows Logs > Application ... outrageously it was of "Information" type, so that all of my scouring through warnings, errors, and critical types produced nothing.

Here's the details: https://gist.github.com/jasonbuechler/e4d8b81ade95b65b8aeac5d06b27f337
...note that the first "attached file" is .....\Sources\Panther\SetupAct.log
Well if you go to the directory that's in, there's also a MUCh more useful log: setuperr.log
Here's that file: https://gist.github.com/jasonbuechler/2c16ddf85e69a055fe7d748c26deaeef

And the money-shot:

Code: [Select]
2019-06-23 20:29:35, Error      [0x080782] MIG    CRegistryDataStore::Create: Failed to set reflection key flags for HKCU\Software\AVAST Software\Avast[gle=0x00000005]
2019-06-23 20:29:35, Error      [0x080789] MIG    CRegistryDataStore::Create: Failed to set LUA key flags for HKCU\Software\AVAST Software\Avast[gle=0x00000005]
2019-06-23 20:29:35, Error                 SP     Error WRITE, 0x00000005 while gathering/applying object: Registry, HKCU\Software\AVAST Software\Avast [HideBalloon]. Will return 0
2019-06-23 20:29:35, Error                 MIG    Error 5 while applying object HKCU\Software\AVAST Software\Avast [HideBalloon]. Shell application requested abort
2019-06-23 20:29:35, Error      [0x08097b] MIG    Abandoning apply due to error for object: HKCU\Software\AVAST Software\Avast [HideBalloon]
2019-06-23 20:29:35, Error                        Apply failed. Last error: 0x00000000
2019-06-23 20:29:35, Error                 SP     pSPExecuteApply: Apply operation failed. Error: 0x0000002C
2019-06-23 20:29:35, Error                 SP     Apply (first boot apply, offline phase): Migration phase failed. Result: 44[gle=0x00000002]

Again, I had already done a "permanently disable all shields", long before this.

So, I uninstalled Avast.
It didn't hurt a bit, as the "you're being tracked! oooh scary!" nag-messages were over-the-line for me, already.

Rebooted, started the 1903 update again... voila... not 20 minutes later, it was done.

Again -- I had to uninstall avast to actually successfully update to 1903. Disabling it was insufficient!!!??!
Title: Re: Win 10 update to 1903 failed - Error 0x80070005
Post by: Spec8472 on June 24, 2019, 09:23:56 AM
Thank you for sharing the logs. This looks like Avast self-protection blockage. Will try to reproduce this.
Title: Re: Win 10 update to 1903 failed - Error 0x80070005
Post by: bob3160 on June 24, 2019, 02:05:02 PM
Thank you for sharing the logs. This looks like Avast self-protection blockage. Will try to reproduce this.
So my recommendation to turn off the Self Defense Module before attempting an update to 1903
might not be such a bad idea. :)
Title: Re: Win 10 update to 1903 failed - Error 0x80070005
Post by: Spec8472 on June 24, 2019, 02:16:39 PM
Unfortunately I was not able to reproduce the bug  :(. The update 1809->1903 with Avast (All shields on, self protection on) was successful.
Title: Re: Win 10 update to 1903 failed - Error 0x80070005
Post by: Spec8472 on June 24, 2019, 06:08:51 PM
For all affected users: Can you please provide the "c:\ProgramData\AVAST Software\Avast\log\selfdef.log" file?

Thank you
Title: Re: Win 10 update to 1903 failed - Error 0x80070005
Post by: jasonbuechler on June 24, 2019, 08:56:22 PM
Unfortunately I was not able to reproduce the bug  :(. The update 1809->1903 with Avast (All shields on, self protection on) was successful.

Yeah, I'm not shocked... I'm sure Microsoft is as much to blame as anyone else, and there's probably a myriad of thousands of variables involved that MS just somehow can't figure out a way to get around. 

I found the following immediately after getting 1903 installed, while goooogling some section of that #1001 event... there's certainly a 100% chance I could be wrong, since this tool is made by microsoft, but it might be a fantastic tool to future sufferers of windows update bugs:

https://docs.microsoft.com/en-us/windows/deployment/upgrade/setupdiag 
Quote
About SetupDiag

SetupDiag is a standalone diagnostic tool that can be used to obtain details about why a Windows 10 upgrade was unsuccessful.

SetupDiag works by examining Windows Setup log files. It attempts to parse these log files to determine the root cause of a failure to update or upgrade the computer to Windows 10. SetupDiag can be run on the computer that failed to update, or you can export logs from the computer to another location and run SetupDiag in offline mode.

But, unanswered questions include: "WHY DOES THE ERROR NOT POINT TO THIS?" and "WHY DOES NOTHING ELSE POINT TO THIS?"


For all affected users: Can you please provide the "c:\ProgramData\AVAST Software\Avast\log\selfdef.log" file?

I don't know if mine is gone because of uninstalling, but my folder structure looks a big different, and I don't have that specific log, but I'll attach a zip of the logs I do have.  Here's my folder structure, in case that's relevant:

Code: [Select]
PS C:\ProgramData\AVAST Software> tree /f

├───Browser
├───Persistent Data
│   └───Avast
│       └───Logs
│               AvEmUpdate.log
│               AvEmUpdate.log.old
│               event_manager.log
│               Setup.log
│               Update.log
│               Update.log.old
│               Update.log.tmp.911424e7-58aa-4c7d-b972-43b270995276
│               Update.log.tmp.aa3576be-7f44-4c29-a1df-7ed9c77ddd0a

└───Subscriptions
        license.avastlic
Title: Re: Win 10 update to 1903 failed - Error 0x80070005
Post by: 1QuickNotary on June 26, 2019, 09:37:55 AM
I too am having problems with the upgrade! If I go to open Avast Cleanup Premium, it says "oops, can't open", restart computer, reinstall app or contact support. I thought I would check here in the forums first. I use Microsoft Office 365 on a daily basis and it will not allow it to open at all! I am not a developer or programmer so some of your discussion sadly goes over my head. I have no idea how to post my logs. Not sure how to even find them. If directed, I am willing to go to the locations and do directed tasks to fix this. Any help would be appreciated!
Title: Re: Win 10 update to 1903 failed - Error 0x80070005
Post by: Spec8472 on June 26, 2019, 10:34:26 AM
jasonbuechler: Thank you for your effort, but the file selfdef.log is missing because Avast AV is already uninstalled.
Title: Re: Win 10 update to 1903 failed - Error 0x80070005
Post by: Michael529 on July 22, 2019, 05:59:45 PM
This thread has gone quiet but I had 0x80070005 today, trying to move from Windows 10 x64 1809 to 1903. I run Avast Free 19.6.2383 (build 19.6.4546.508). I doubt it matters but the vps was 190722-4. The shields were all turned off before the upgrade started; if it matters, all normally run set to high sensitivity.

Earlier in the thread @Spec8472 asked for the selfdef.log. Mine is attached. I took a quick look at the log and there are entries during my attempts to upgrade.

Odd that some machines object to the upgrade and others run smoothly. Of course, it may not be an Avast problem!
Title: Re: Win 10 update to 1903 failed - Error 0x80070005
Post by: Michael529 on July 26, 2019, 05:53:29 PM
Well, I uninstalled Avast and the upgrade ran successfully. Which suggests that there is an Avast problem. But doesn't answer the question of why some machines ran the upgrade successfully and mine didn't.
Title: Re: Win 10 update to 1903 failed - Error 0x80070005
Post by: bob3160 on July 26, 2019, 11:05:28 PM
Well, I uninstalled Avast and the upgrade ran successfully. Which suggests that there is an Avast problem. But doesn't answer the question of why some machines ran the upgrade successfully and mine didn't.
See if this is of any help to you:
https://forum.avast.com/index.php?topic=156141.msg1506768#msg1506768 (https://forum.avast.com/index.php?topic=156141.msg1506768#msg1506768)
Title: Re: Win 10 update to 1903 failed - Error 0x80070005
Post by: Michael529 on July 27, 2019, 05:19:48 PM
Thank you; I had missed that thread.

It seems that there is a problem upgrading with the AV fully in place and running normally. You posted in May so Avast have had at least 2 months to identify the cause of the problem. It also seems that some systems do not have the problem; Spec8472 reported that his ran the upgrade properly even with shields in place.

I recognise that upgrading Windows is a challenging activity but I would very much prefer to be able to do it without arguing with my virus scanner. It would be helpful if Avast responded to the problem, if not offering a solution now,at least in time for the 1909 upgrade. If not a solution, a warning would be helpful (and this may require reaching out to Microsoft).
Title: Re: Win 10 update to 1903 failed - Error 0x80070005
Post by: bob3160 on July 27, 2019, 05:44:20 PM
Thank you; I had missed that thread.

It seems that there is a problem upgrading with the AV fully in place and running normally. You posted in May so Avast have had at least 2 months to identify the cause of the problem. It also seems that some systems do not have the problem; Spec8472 reported that his ran the upgrade properly even with shields in place.

I recognise that upgrading Windows is a challenging activity but I would very much prefer to be able to do it without arguing with my virus scanner. It would be helpful if Avast responded to the problem, if not offering a solution now,at least in time for the 1909 upgrade. If not a solution, a warning would be helpful (and this may require reaching out to Microsoft).
Avast work very closely with Microsoft. :) As you can also see from the other threat, all of my systems are running v1903.
Title: Re: Win 10 update to 1903 failed - Error 0x80070005
Post by: jack840 on September 03, 2019, 06:25:29 PM
I tried to uninstall Avast free at least 10 times using Avast then different uninstall apps or utilities plus in safe mode. After uninstall I try to run 1903 update error states uninstall Avast.
Also just after a Avast uninstall I search C: for Avast, turns up a bunch of files. Looks like Avast uninstall leaves a lot behind. What to do next???
Title: Re: Win 10 update to 1903 failed - Error 0x80070005
Post by: Michael529 on September 03, 2019, 06:47:25 PM
At the time (see above) I was using Avast Free version 19.6 and did a simple uninstall from the "Apps & Features" menu, and rebooted/restarted the system before trying the Windows upgrade. The suggestion is that version 19.7 has cleared the problem that gave rise to Windows upgrade failing. Which version are you using?

Starting from where you are, I would be inclined to use uninstall again (if Avast is still there), and then use the Avastclear utility to make sure everything really has has gone. Then restart/reboot so you have a clean system before trying the Windows upgrade.
Title: Re: Win 10 update to 1903 failed - Error 0x80070005
Post by: DavidR on September 03, 2019, 06:54:11 PM
I tried to uninstall Avast free at least 10 times using Avast then different uninstall apps or utilities plus in safe mode. After uninstall I try to run 1903 update error states uninstall Avast.
Also just after a Avast uninstall I search C: for Avast, turns up a bunch of files. Looks like Avast uninstall leaves a lot behind. What to do next???

You don't say what was left behind or where (some examples might help) ?

That said there have been some instances of this (reported in the forums) where avast files are found in windows.old (backup of your last OS version) and this has resulted in 1903 not being installed.  Ordinarily this should be removed by the OS 30 days after that particular OS update.
Title: Re: Win 10 update to 1903 failed - Error 0x80070005
Post by: bob3160 on September 03, 2019, 09:06:58 PM

Uninstall Avast
Download the Avast Uninstall Utility to your Deskto http://www.avast.com/en-gb/uninstall-utility
For Windows XP and Vista get the Avast Removal tool from here   https://install.avcdn.avast.com/iavs9x-xp/avastclear.exe
Uninstall Avast via control panel and follow the directions.
Run the Uninstall Utility and accept the reboot to safe mode
Once complete reboot your system.
A video to help you use the Avast Uninstall Utility is available at: https://youtu.be/KD8LO8OxmvM