Server Backup Service Exception

How to fix the Server Backup Service exception "One or more services are not running” for SBS 2011 Essentials, WHS 2011 and WSS 2008 R2 Essentials

How to remove duplicate backup record in Server Backup Properties to fix service exception.

 

Applies to

 “Small Business Server 2011 Essentials”, “Windows Home Server 2011”, “Windows Storage Server 2008 R2 Essentials”

 

Symptoms

 You received a health alert: “One or more services are not running” in dashboard, it indicated that Windows Server Addins Infrastructure Service, Windows Server Identity Management Service and Windows Server Server Backup Service are not running.

In the meantime,  following exception will be found in the log file C:\ProgramData\Microsoft\Windows Server\Logs\SharedServicesHost-SystemServiceConfig.log

 SharedServiceHost: Critical: [0] : _UnhandledExceptionHappened: SharedServiceHost.exe encountered an error (0x80070057): System.ArgumentException: An item with the same key has already been added.

     at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)

     at System.Collections.ObjectModel.KeyedCollection`2.InsertItem(Int32 index, TItem item)

     at Microsoft.WindowsServerSolutions.DataProtection.ServerBackup.ServerBackupWorker.GetBackupJobFromEvent(BlockLevelBackupEvent stopEvent, TimeZoneInfo timeZone)

     at Microsoft.WindowsServerSolutions.DataProtection.ServerBackup.ServerBackupWorker.GetPreviousJobEvents(TimeZoneInfo timeZone, UInt32 jobCount)

 

Cause

The exception is happening when the backup service is trying to retrieve  backup history from event logs.  The volume number is used as index for the search. If there is a duplicated volume name, for example “local drive”, the Backup service will not handle it properly.

 
Solution

 Assign a unique label to each volume on the server. This ensures future backup service will succeed.

  1. Clear the backup event logs to recover from current backup service failure.
    1. Go to event viewer, browse to Applications and Services Logs-Microsoft-Windows-Backup-Operational.evtx
    2. [Optional]You may want to save the event log file for future reference.
    3. Clear the event logs 
  2. Open the dashboard, locate the health alert that “One or more services are not running” and click “Try to repair the issue”.
  3. Open Computer Management, go to Disk Management
    1. Make sure all the volumes need to backup has unique volumen name
    2. Make sure no volume has label like driver letter such as "C:".
  4. In the dashboard, click "Computer and Backup" tab, click the server and choose "Customize Backup for the server" in server's tasks.
  5. Go through the Wizard to configure the server backup policy again.

Note, after removing the event logs, you will see the “No backups available”  message on server backup properties page Keep in mind that  your existing  backups are not lost and you can still select them during restore.. If you want to view the existing backup list, you can launch the application Windows Server Backup from the server and select “View details” for All Backups.