Share →
Buffer
metro-problem-icon

You get an error while upgrading Team Foundation Server 2012 to Update 1 with a “TF254027: You must correct all errors before you continue”, “TF255375: the configuration database that you specified cannot be used” and a “TF255430: the database was partially upgraded during a failed upgrade”.

image
Figure: TF255375 and TF255430 configuration database cannot be used due to a failed upgrade

The result of this is that you have an inaccessible environment until it is either upgraded successfully or restored to the RTM.

Applies to

  • Team Foundation Server 2012
  • Team Foundation Server 2012 Update 1

Findings for TF255430

The only way to figure out what went wrong it to look at the log. You can see the little “Open Log” option in the results and there is also an “Open Log folder” as part of the “Logs” node in the Administration Console.

On examining the logs the first thing that I found was a SQL Server communication error.

Figure: TF246017: Team Foundation Server could not connect to the database.

This would defiantly cause the upgrade to fail and if it happened half way through the Upgrade of the Configuration database would defiantly result in the messages above. Now, prior to running the upgrade the TFS Upgrade Wizard did check that not only could it connect to SQL Server correctly, but that the accounts in use had the appropriate permissions to perform the update.

The second thing that I found was

Figure: TF400670: Error encountered when creating connection to Analysis Services 

It looks like this might be the culprit as it is followed by an “UpgradeConfigDB: Error” statement. Again it looks like a network glitch trying to open a connection to the SQL Server that was hosting Analysis Services. With these two errors I would surmise that there might be an intermittent network problem that while a running server would be resilient to it an upgrade is a much longer transactional process and thus hit the issue.

Following the instructions and  restoring the backup and rerunning should solve the issue as it is not an issue with the upgrade itself.

Solution for TF255430 – Restore your data from a backup

As this really all boils down to the TF255430 then we should follow the instructions above as “You must restore your data from a backup to its original state to continue”.

In this case we restored the collection, re-ran the update and all was well.

If you are installing any updates to Team Foundation Server follow these simple steps:

  1. Analyse
    Run the Best Practices Analyser to make sure that your TFS Server is healthy and highlight any problems that you can fix first
  2. Quiesce
    Make your TFS and SharePoint environments inaccessible so that the backups are all at the same version
  3. Backup
    Backup all data using the Team Foundation Server backup tool from the power tools
  4. Snapshot
    Make sure that you take a Snapshot of both your application tier and data tier at the same time index.
  5. Update
    You should make sure that all of the components of your Team Foundation Server environment are up to data. That means installing ALL Microsoft Updates for both Windows and other products.
  6. Upgrade
    Then run the upgrade with the knowledge that you have done everything possible to make sure things go smoothly.

These simple steps should mitigate any future issues and should find any communication issues as well…

-Do you want help with this? Contact Northwest Cadence to get a Quarterly Healthcheck and Upgrade on info@nwcadence.com and to schedule all of your TFS Upgrades for the coming year.

-We are dedicated to increasing your software quality and delivery of value. Do you have a plan to deal with the new 2012 release cadence? We have experts that are experienced in both small (<100GB and 1-2 Server) and large (>500GB and >5 server) configurations and have a track record of success. We have experts on hand to help improve your process and deliver more value at higher quality. Get the experts to help you and contact us today.

Tagged with →  
Share →
Buffer