SharePoint 2010 – Analyzer Rule (Missing Server Side Dependencies)

After a recent deployment of SharePoint Search Server Express 2010 I noticed the following issue picked up by the Health Analyzer.

Missing_serverside_dependencies_Site

Clearly something was wrong, my first instinct was to check the site “http://<CentralAdminApplication>:<Port>/Sites/Help” but it was all there and appeared to be happy.

The link itself as shown in the “Remedy” section actually just redirects to the Microsoft SharePoint Website (http://technet.microsoft.com/en-US/sharepoint/default.aspx)

When I ran the PowerShell “Test-SPContentDatabase” command against the database in the Analyzer result I got the same message, here’s the syntax

Test-SPContentDatabase -name <DatabaseName> –WebApplication http://<CentralAdminApplication>:<Port>

And here’s the error message in full for searching purposes

Category              : SiteOrphan
Error                   : True
UpgradeBlocking   : False
Message               : Database [<DatabaseName>] contains a site (Id = [f1e7b96d-a3e8-4602-9bde-76ae2c9ce0b9], Url
                           = [/sites/Help]) that is not found in the site map. Consider detach and reattach the database.
Remedy                : The orphaned sites could cause upgrade failures. Try detach and reattach the database which contains
                           the orphaned sites. Restart upgrade if necessary.

The message is telling me that the Central Administration Help site is “not found in the site map”, so using PowerShell I’ve grabbed the database in question using

$DataBase = Get-SPDatabase | where {$_.Name -eq "<DatabaseName>"}

The first thing I tried was the command

$Database.RefreshSitesInCongfigurationDatabase()

Executing the “Test-SPcontentDatabase” command again, resulted in exactly the same error, so the next recommendation is to detach and reattach the database.

I performed this using the command

Dismount-SPContentDatabase $Database

to detach, followed by

Mount-SPContentDatabase $Database -webapplication http://<CentralAdminApplication>:<Port>

To reattach to my Central Administration application

Once, again the “Test-SPContentDatabase” returned the same information so I wanted to see if I could find the site in question.  Using the following command

Get-SPSite -ContentDatabase $Database | select url, id

returned the following output;

Url                                                ID 
---                                                -- 

http://<CentralAdminApplication>:<Port>            337dde2c-ced8-4e58-858a-cd2443d34044


http://<CentralAdminApplication>:<Port>/sites/Help afa3a5b4-eba0-45cf-8eac-7b19999cf4f7

If you look at the original error, the Analyzer is complaining about the “/sites/Help” with the id “f1e7b96d-a3e8-4602-9bde-76ae2c9ce0b9” the ID ”Get-SPSite” reported on was “afa3a5b4-eba0-45cf-8eac-7b19999cf4f7” so where is it?

I tried to see if I could discover the site directly by the rogue id so I ran the command

get-spsite -contentdatabase $Database | where {$_.ID -eq "f1e7b96d-a3e8-4602-9bde-76ae2c9ce0b9"}

and yet nothing returned.

Interestingly, using “stsadm.exe” I executed

stsadm -o enumallwebs -databasename $Database

and the output from this indicated there were indeed 3 sites in the database.

Databases>
  <Database SiteCount="3" Name="<Database_Name" DataSource="<Database_Server>"The site with the id f1e7b96d-a3e8-4602-9bde-76ae2c9ce0b9 could not be found.

It’s also showing that rogue id again, so once again using “stsadm.exe” I ran the following against the database with the rogue id

stsadm -o deletesite -siteid f1e7b96d-a3e8-4602-9bde-76ae2c9ce0b9 -force -databasename <Content_Database> -databaseserver <Database_Server>

and once complete, I re-ran the “Test-SPContentDatabase” command again and the result was clean, went back into “Central Administration” > “Monitoring” > “Review Problems and Solutions“, re-ran the “Missing server side dependencies” rule and the issue was gone.

Stsadm to the rescue and my Monitoring is clean for another day….

April 2012 CU’s now available.

Microsoft SharePoint 2010The latest April Cumulative Updates have been release for SharePoint 2007 and 2010 products.  Without delving too far into the details the updates are available from the following links:

SharePoint Foundation, SharePoint 2010 Server, Windows SharePoint Services 3.0 & Office SharePoint Server 2007.

As with all updates, it’s worth deploying these to a test or development environment prior to live and ensure you backup all your environments before installing.

 

As a reminder, there are articles on planning to deploy updates for SharePoint Foundation, SharePoint 2010 Server, WSS3.0 & Office SharePoint Server 2007 which are worth familiarising yourself with.

 

February 2012 SharePoint 2010 cumulative updates

Microsoft SharePoint 2010After a slight delay, the February 2012 cumulative updates are available for SharePoint 2010 products.

Before applying the updates, ensure your environment is running SP1 for SharePoint 2010 and that you test in a suitable environment before applying to production. As always, backup your databases before making any changes to your systems. The updates are now multi-lingual and include those changes for all languages.

A restart is not required after installing these updates but remember you only need to run the update for your environment and the package will include all necessary updates, (2010 with Project Server will include SP2010 Server and Foundation updates etc).

For more information and a refresh, take a look at the Microsoft articles for “Preparing to deploy a software update for” …SharePoint Foundation 2010 and SharePoint Server 2010

SharePoint 2010 Foundation

Full details can be found at http://support.microsoft.com/default.aspx?scid=kb;EN-US;2597132 and is available via http://support.microsoft.com/hotfix/KBHotfix.aspx?kbln=en-us&kbnum=2597132

SharePoint 2010 Server

Full details can be found at http://support.microsoft.com/default.aspx?scid=kb;EN-US;2597150 and is available via http://support.microsoft.com/hotfix/KBHotfix.aspx?kbln=en-us&kbnum=2597150

SharePoint 2010 Server with Project Server

Full details of issues addressed in the SharePoint 2010 Server with Project Server can be found at http://support.microsoft.com/default.aspx?scid=kb;EN-US;2597152 and is available via http://support.microsoft.com/hotfix/KBHotfix.aspx?kbln=en-us&kbnum=2597152