question

Sudz28-3480 avatar image
0 Votes"
Sudz28-3480 asked DSPatrick answered

Win2008 R2 to Win2012 R2 upgrade failing for permissions issue?

I have been updating multiple 2008 R2 servers in our enclave to 2012 R2 doing in-place upgrades (which I realize is 'not recommended' but for over a dozen of them I've done it without any real issue), but a MSQL server I tried to upgrade this weekend kept failing for some odd reason.

The server in question is a VM, and to do my upgrades I copy the Server2012.iso file file over to the local hard drive, extract it, and then run the setup.exe file. On this particular server when I do so, it runs for a bit and but then when it gets to around 92-93% complete for the "Getting files ready for installation" portion of the process (at the bottom says 'Expanding windows installation files (641 of 705 MB expanded)' or so) it errs out. The error message says "Windows cannot install required files. Network problems may be preventing Windows from accessing the files. Make sure the computer is connected to the network and restart the installation. Error code 0x80070005".

I ensured that the account I was logged in with (I'm RDP'ing to the server) was in the Domain Admins group and even tried running the installation logged in as local administrator.
I have plenty of C: drive space, 49GB.
The server is patched and updated with all its latest patches and updates.

It seems that the error code in question is almost certainly some kind of 'permissions' issue, but I cannot figure out exactly what the problem is so I can work around it. I even tried running setup.exe with "Run as administrator" but no dice, same crash at the same step with the same error message. Since I'm running the upgrade locally I can't imagine that any kind of true network issue would play into it, but even if that were the case the server never goes offline or otherwise shows any network related problems leading up to the error so I suspect that's a red herring.

Not sure where to turn now to see why this error message is occurring and how to resolve it?

sql-server-generalwindows-server-2012
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DSPatrick avatar image
0 Votes"
DSPatrick answered Sudz28-3480 commented

As noted in-place upgrades are risky and never recommended. Might also try from a clean boot.
https://support.microsoft.com/en-us/topic/how-to-perform-a-clean-boot-in-windows-da2f9573-6eec-00ad-2f8a-a97a1807f3dd

--please don't forget to Accept as answer if the reply is helpful--





· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks - those instructions are still good for Server 2008? It only lists Win7 and Win8 versions of the Desktop variety. In any case I will have to wait to put in a new outage plan before I can try this (or anything) out. I'm hoping to get a more definitive answer on what, exactly, is failing before then though.

0 Votes 0 ·

I just tried from a 'clean boot', but same error/issue. Argh.

0 Votes 0 ·
DSPatrick avatar image
0 Votes"
DSPatrick answered

Yes, the steps for a clean boot are the same,


--please don't forget to Accept as answer if the reply is helpful--




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

TeemoTang-MSFT avatar image
0 Votes"
TeemoTang-MSFT answered Sudz28-3480 commented

Since in-place upgrade only occurred on this MSQL server, it indicates that your in-place upgrade method is ok but SQL related configurations make upgrade process broken.
I suggest to uninstall MSQL related software or feature, login as a local administrator, in-place upgrade this VM by your Server2012.iso file again, just like what you done on the other computer.
If still no help, you need to create a new VM by your ISO image and reinstall SQL.


If the Answer is helpful, please click "Accept Answer" and upvote it.
Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

What I tried doing was cloning this VM to a new one (that I kept offline of course) and then completely uninstalled SQL in order to take it out of the equation to the best of my ability. It is still failing the upgrade, and still failing at the same point with the same error messages so whatever the issue is I'm pretty confident right now it has nothing to with the SQL instance on the server.

Troubleshooting continues!

0 Votes 0 ·
DSPatrick avatar image
0 Votes"
DSPatrick answered

Any progress or updates?

--please don't forget to Accept as answer if the reply is helpful--


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Sudz28-3480 avatar image
0 Votes"
Sudz28-3480 answered Sudz28-3480 published

Still trying to divine exactly what the problem is; I can believe it may be SQL is installed, but I'd also like to find something more definitive to confirm that rather than just take it as a wild guess/assumption.

Digging in the C:\$Windows.~BT\Sources\Panther\setuperr.log file the first line says "InfEnumCallback: SetupGetInfDriverStoreLocationW failed for 'C:\Windows\inf\oem5.inf' [gle=0x0000090]". It happens about 8.5 minutes before the upgrade process actually err's out, so not sure it's a real issue. The rest of the log is filled with error messages basically identical to what this other poster posted: https://social.technet.microsoft.com/Forums/Windows/en-US/b380ed57-a437-4372-bf8c-a94054c49ca4/upgrade-issue-from-2008-r2-to-2012-r2

He says "... there was some orphaned drivers lying on the server. after removal of them, server upgraded successfully.", so I'm assuming the same may be true for me but he never says what he did to find/remove the 'orphaned drivers'.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DSPatrick avatar image
0 Votes"
DSPatrick answered

Time may be better spent standing up a new one, patch fully, migrate roles / applications over to it.

--please don't forget to Accept as answer if the reply is helpful--





5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

TeemoTang-MSFT avatar image
0 Votes"
TeemoTang-MSFT answered

Debugging windows log is beyond scope of forums support so if further assistance were needed you could open a request ticket with Microsoft support.
https://support.serviceshub.microsoft.com/supportforbusiness
In my opinion, create a new VM and migrate roles, install SQL might be more feasible.
Check setupact.log can find something, but delete oem5.inf from driver store may lead to other unexpected situation…


If the Answer is helpful, please click "Accept Answer" and upvote it.
Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Sudz28-3480 avatar image
0 Votes"
Sudz28-3480 answered

I'm giving up and standing up a new server. I sent the issue off to a bunch o Microsoft SME's and their response was 'it looks like you tried everything we would have tried, so a this point you're better off just migrating'. Basically, it seems that Microsoft is so obfuscating with their error messages and log entries that even Microsoft SME's can't decipher them :-)
Thanks anyway!

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DSPatrick avatar image
0 Votes"
DSPatrick answered

Sounds good. You'll end up with much cleaner builds and a much safer method to get there as well.

--please don't forget to Accept as answer if the reply is helpful--






5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.