Skip to content
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr

Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr

Written By Anoop C Nair
Last Updated July 7, 2024
Posted In SCCM
SHARE

Let’s check how to fix the SCCM secondary server recovery failed issue (a.k.a. Recover Secondary Site). I got this issue while installing a hotfix on the configuration manager’s secondary site server. You can check the Show Install Status wizard, which shows that the replication between the secondary and primary is not active.

Secondary sites are designed to utilize a subset of the information stored in the database, effectively reducing the data volume being replicated between the primary and secondary sites by SQL Server. Additionally, secondary sites can efficiently route file-based content to other secondary sites linked to a typical primary site.

Run a Configuration Manager site recovery after a site failure or data loss in the site database. Repairing and resynchronizing data are essential to prevent operational interruptions. To avoid conflicts during site recovery, you should ensure no existing configurations on the site server are necessary.

In this blog post, I will provide detailed guidance on recovering the secondary site in SCCM and fixing the issue of a failed secondary server recovery in ConfigMgr. I will walk you through the necessary steps and troubleshooting methods to help you resolve this issue effectively. Let’s start.

Patch My PC
Index
Secondary Server Recovery Failed
Link State is Degraded
Troubleshooting
Logs File
Database Replication – Save Diagnostic File
Replication Link Analyzer
Failed Replication
Fix?
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr – Table 1

Secondary Server Recovery Failed

The secondary site hotfix installation (recovery failed). And when I checked the console to get more details about the issue. You can follow the steps mentioned below to get more information about the installation:

  • Administration – Site ConfigurationSites.
  • Select the secondary server.
  • It shows Recovery Failed as the state of the secondary server.
  • Right-click and click on Show Install Status.
[Passed]:Waiting for Database Replication Link State to be active.

I waited for many hours and restarted the secondary server. However, the link between secondary and primary links didn’t come up.

Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr - Fig.1
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr – Fig.1

Now, let’s check the Replication Link from the monitoring workspace.

  • Navigate to \Monitoring\Overview\Database Replication
  • Check the Link State
  • The link-state = Link Degraded
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr - Fig.2
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr – Fig.2

If you examine the details of the replication link, you will see that the two replication groups failed to replicate between the secondary and primary servers.

  • Secondary Site Data – Successful
  • Secondary Site Updates – Failed
  • Secondary_Site_Replication_Configuration – Failed
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr - Fig.3
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr – Fig.3

Troubleshooting

Check the following steps to troubleshoot the secondary server recovery issue.

Logs File

Check the logs on the ConfigMgr.log file that failed to recover on the ConfigMgr secondary server. I could see two errors, but I don’t think registry error 0x80070002 is significant.

However, the error related to sending state messages to the primary server failed is a significant error of 0x00060002.

INFO: Failed to open registry key SOFTWARE\Microsoft\ConfigMgrBootStrap\BootStrap\SecInstallmsg\ (LastError=0x80070002)
INFO: Failed to send message 0x00060002 to parent.
INFO: Removing byte order marker after reading from file (C:\Program Files\Microsoft Configuration Manager\bin\X64\secondarysiteupdatepackage.xml)
Successfully update secondary site update pacakge status from file C:\Program Files\Microsoft Configuration Manager\bin\X64\secondarysiteupdatepackage.xml
INFO: Successfully begin Automatic Updates detection task
Not recovery mode or not top level site. Skip restoring client piloting packages.
~~===================== Completed Configuration Manager Server Setup ===================== 

Database Replication – Save Diagnostic File

Let’s check diagnostic files using the database replication option.

  • Navigate to MonitoringDatabase Replication
  • Right-click on database replication between the secondary and primary server
  • Select Save Diagnostic Files
  • Save the file in CSV format.
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr - Fig.4
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr – Fig.4

Details of Save Diagnostic Files of the Secondary server is given below:

Summary
MEM <-> HS0
Parent Site = MEM
Parent Site State = Replication Active
Child Site = HS0
Child Site State = Replication Active
Parent Site to Child Site Global State = Link Degraded
Parent Site to Child Site Global Synchronization Time = 10/4/2020 5:14:11 PM
Child Site to Parent Site Global State = Link Active
Last Synchronization Time = 10/4/2020 5:24:47 PM
Child Site to Parent Site State = Not Applicable
Child Site to Parent Site Synchronization Time = 1/1/1900 12:00:00 AM
Child Site (HS0)Child Site Configuration
State,Monitored Item,Current Configuration,Description
Unknown,"Machine certificate","cn=MEMCMSecondary.memcm.com
Expires: 2120-07-09","Certificate is still valid for MEMCMSecondary.memcm.com."
Unknown,"SQL Server certificate","cn=SSB Transport Security Certificate
Expires: 2040-08-02","Service Broker certificate is still valid for MEMCMSecondary.memcm.com."
Unknown,"SQL Server port","1433","Port 1433 still valid for MEMCMSecondary.memcm.com."
Unknown,"SQL Server service broker port","4022","Service Broker MEMCMSecondary.memcm.com Port 4022 still valid."
Unknown,"Database file location","C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\CM_HS0.mdf
C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\CM_HS0_log.ldf","Configuration Manager Database file location is still valid."
Unknown,"Database file disk free space","C:\ 97GB","No alerts configured. Use Site System properties to configure alerts."
Unknown,"Computer account","memcm.com\MEMCMSecondary$","Configuration Manager Site Server Account MEMCMSecondary.memcm.com still valid."
Unknown,"SQL Server role","smsdbrole_MP, smsdbrole_MCS, smsdbrole_DMP, smsdbrole_siteprovider, smsdbrole_siteserver, smsdbrole_AMTSP, smsdbrole_AIUS, smsdbrole_AITool, smsdbrole_extract, smsdbrole_WebPortal, smsdbrole_MPUserSvc, smsdbrole_MPMBAM, smsdbrole_AUDITMBAM, smsdbrole_EnrollSvr, smsdbrole_DViewAccess, smsdbrole_SUP, smsdbrole_CRP, smsdbrole_DWSS, smsdbrole_CRPPfx, smsschm_users, smsdbrole_DmpConnector, smsdbrole_HMSUser","All Configuration Manager SQL Roles still valid."
Unknown,"Firewall ports","1433, 4022","Configuration Manager SQL Server ports 1433, 4022 still active on Firewall exception."
Unknown,"SQL Server secondary replica",,"_103"
Unknown,"SQL Server availability group failover",,"_103"

Let’s analyze the SQL-based replication link between secondary and primary servers.

  • Navigate to MonitoringDatabase Replication
  • Right-click on database replication between the secondary and primary server
  • Select Replication Link Analyzer
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr - Fig.5
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr – Fig.5

The replication link analysis shows that Inconsistent public keys can be remediated by initiating a public key transfer between the sites’ HSO and MEM.

The actions recommended for fixing the issue.

  1. Initiate public essential transfer for target site MEM on source site HSO.
  2. Check to see if the problem is fixed.
  3. Skip this rule
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr - Fig.6
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr – Fig.6

I successfully submitted a request to initiate the critical transfer for target site MEM on source site HSO.

  • Click on Continue
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr - Fig.7
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr – Fig.7

Verify that the database CM_MEM has a valid security scope for the local system account. The replication link analyzer detected Database CM_MEM does not have a valid security scope for the local system account.

  • Please ensure login for the local system account exists and it has a sysadmin role assigned.
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr - Fig.8
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr – Fig.8

I added NT Authority/System to the SysAdmin role in the primary server SQL database.

  • Click OK to save.
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr - Fig.9
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr – Fig.9

It seems you need to Reset queued messages on SQLMEMCM.memcm.com for site HSO. The replication link analyzer recommends resetting queued replication messages on SQLMEMCM.memcm.com for site HSO.

  • Click on Reset Queued Messages.
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr - Fig.9
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr – Fig.9

Successfully reset queued replication messages on the primary SQL server for the secondary server.

Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr - Fig.10
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr – Fig.10

Create file replication route for site MEM on-site HSO.

  • The file replication route is required for site-to-site communication, but the file replication route is missing for site MEM on-site HSO.
  • Select the Create file replication route option.
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr - Fig.11
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr – Fig.11

The file Replication route exists for MEM on-site HS0.

Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr - Fig.12
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr – Fig.12

Failed Replication

The link failed after the replication link analyzer check.

Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr - Fig.13
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr – Fig.13

Fix?

Let’s check what you can do to fix the issue. The only option left for me is to recover the secondary site again. Go through the following steps to confirm the same:

  • Launch SCCM console
  • Navigate to \Administration\Overview\Site Configuration\Sites
  • Click secondary server and click on Recover Secondary Site from the ribbon menu
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr - Fig.14
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr – Fig.14

Check the ConfigMgrSetup.log file to confirm

  • INFO: The secondary Site is now active
  • INFO: send message 0x00060007 to parent
  • INFO: send message 0x00060008 to parent
  • INFO: verifying content metadata (1 processed)…
  • Completed Configuration Manager Server Setup
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr – Fig.15

Check the console to confirm whether the site is active:

Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr - Fig.16
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr – Fig.16

SQL query to verify whether the secondary is installed with updates or not.

  • If the return value is 1, the hotfix is installed successfully.
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr - Fig.17
Recover Secondary Site Fix SCCM Secondary Server Recovery Failed Issue | ConfigMgr – Fig.17

Resources

Author

Anoop C Nair is Microsoft MVP! He is a Device Management Admin with more than 20 years of experience (calculation done in 2021) in IT. He is a Blogger, Speaker, and Local User Group HTMD Community leader. His primary focus is Device Management technologies like SCCM 2012, Current Branch, and Intune. He writes about ConfigMgr, Windows 11, Windows 10, Azure AD, Microsoft Intune, Windows 365, AVD, etc.

Written by

Anoop C Nair is Workplace Technology solution architect with 25+ years of experience in global enterprise organizations such as JP Morgan, Capgemini, etc. Microsoft Certified Trainer. Microsoft MVP from 2015 onwards for consecutive 11+ years! He also conducts Intune and modern workplace tech training for enterprise organizations. He is Blogger, Speaker, and Founder of HTMD Community and HTMD Conference. His main focus is on Device Management technologies like Intune, Windows, Cloud PC. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security.

Discussion

Join the discussion

Your email address will not be published. Required fields are marked *

Related guides

Intune

Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws

Key Takeaways Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws! In the July 2026 Patch, Microsoft introduced new features designed to improve the overall Windows experience. The update adds enhancements to Windows Update for more flexible update management and introduces Point-in-Time Restore, providing an additional recovery option for […]

AC Anoop C Nair 9 min read
Intune

2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws

Key Takeaways 2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws! The June 2026 Windows 11 Patch Tuesday update brings several improvements to File Explorer. It adds support for additional archive formats, including UU, CPIO, XAR, and NuGet Packages (NUPKG). The update also preserves View and Sort preferences in […]

AC Anoop C Nair 10 min read
Intune

2026 May KB5089549 KB5087420 Windows 11 Patch | 0 Zero Day Vulnerabilities and 120 Flaws

Key Takeaways The Windows 11 May 2026 Patch KB5089549 KB5087420 Update brings important security fixes, performance improvements, and reliability enhancements across the operating system. The update introduces new features such as Xbox Mode for gaming, File Explorer improvements, enhanced input and sharing experiences, better taskbar and Windows Hello reliability, and additional enterprise management capabilities for […]

AC Anoop C Nair 8 min read
SCCM

ConfigMgr 2603 Introduces New Early Update Enrollment Process

Key Takeaways In this post we are discussing the ConfigMgr 2603 Introduces New Early Update Enrollment Process. Microsoft has officially released Configuration Manager version 2603 to the Early Update Ring, giving organizations an opportunity to test upcoming improvements before the global production rollout. The release is targeted at enterprises running ConfigMgr version 2409 or later […]

AC Anoop C Nair 3 min read