First, I must preface this blog post by saying that if you follow what I write, I take absolutely no responsibility for your environment getting all screwed up (even though technically you’re following what I wrote because you’re environment is all screwed up). You better make sure you backup everything possible! This is a beta product, and it should be installed in a development environment, so that if need be, you can perform crazy things like what I’m about to write…
So about 12 hours ago, I started a MOSS 2007 B2 TR upgrade on a standalone server. Everything went exactly as planned, until I ran the ‘SharePoint Products & Technologies Configuration Wizard’. The wizard took a long time to run, and eventually it got to step 8 of 9… but then boom! All hell broke out… I got an error and the damn setup couldn’t continue. So I tried to run the Wizard again, thinking that maybe the error was a fluke, and this time, I got the following error:
Exception: Microsoft.SharePoint.Administration.SPUpdatedConcurrencyException: An update conflict has occurred, and you must re-try this action. The object SPConfigurationDatabase Name=SharePoint_Config Parent=SPDatabaseServiceInstance is being updated by WEB\myaccountname, in the psconfigui process, on machine SERVERNAMEHERE.
I did some searches, and I couldn’t find anything that really helped with this error. My thougth was that maybe the installer thought that the database was in use by another user, and couldn’t gain exclusive access to perform the upgrade. I tried rebooting, dropping all db connections, changing dbo… you name it. And yet every time, I kept getting this error.
So I did some digging further through the logs, and I found a line mentioning that an upgrade was ‘already in progress’… but I wasn’t running any upgrades at this time – I just had a botched MOSS Beta 2 server with some portion of the TR installed. So the thought that came across my mind was that somewhere on the system, the Wizard was looking at a version number, and saw 12.0.0.4407 – the TR version number, and therefore thought that the upgrade was running or already installed. So I did something dangerous – dug through the registry and changed any references to this version number back to the previous version (12.0.0.4017)… and then in the config db’s Versions table, deleted the record that was inserted by the installer also referencing the newer version number. I rebooted the server, and ran the Config Wizard again – and wow, what a suprise – it still thought the upgrade was running.
So now I was not a happy camper… what am I going to do… I’ve got what was a good Beta 2 server now completely broken (I did test opening every site and got all kinds of errors), and TR is there partially installed – and can’t be rolled back. So I took it upon myself to perform the following to try and get Beta 2 back up and running. Just to preface this, my thought was that I could uninstall / reinstall Beta 2 and overwrite everything to get back to some type of usable state:
1. Restored all of the Beta 2 pre-upgrade databases to SQL (Because I had no idea what state the databases were in after the failed TR upgrade attempt).
2. Uninstalled .NET Framework 3.0
3. Uninstalled & reinstalled IIS
4. Repaired the .NET Framework 2.0 (because IIS wasn’t showing .NET 2.0 as an available web server extension)
5. Attempted to uninstall SharePoint Server 2007 from Add/Remove program. This was great – when I clicked Remove & told it to uninstall, the uninstall screen would completely disappear after about 10 seconds… nothing was touched! Craziness!
So I was still up the creek without a paddle… until I did the following:
1. Deleted the folder C:\Program Files\Common Files\Microsoft Shared\SERVER12
2. Went back into add/remove programs and removed SharePoint - only it’s that ‘fake remove’ - where it removes it from the list because it can’t find the program files.
3. Stopped / disabled all of the Services related to SharePoint & Office.
4. Rebooted & prayed.
After the reboot, I installed the Windows Workflow Foundation Beta 2, then ran the MOSS 2007 Beta 2 installer… and voila… it worked! It actually went through the entire installer & configuration wizard without any issues. So I then reconfigured everything through Central Admin, and then recreated my Web Applications… but when I recreated them, I pointed them to the already existing Beta 2 databases that I had previously restored. And each and every time I created the new web app and attached it to the correct content database – it worked!
So… the moral of the story is… this worked for me, and I wanted to throw it out there for you. If you’re completely stuck with a half-installed TR upgrade and don’t know what to do, maybe I’ve given you some ideas. Just one other thing – it’s almost 6am here on the East Coast and I haven’t slept… so I will review & update this post when I’m functional & can think.
I wish you good luck, and hope you do not run into anything like the problems I hit. But if you did, know that you are not alone!
-Chris