Sdílet prostřednictvím


Support Tip: ConfigMgr 2012 Backup fails with error- Unable to Connect to Registry

Hi Folks,

I recently worked on an issue with backup on ConfigMgr 2012 R2 where the backup continuously failed when it was trying to make a connection to a registry key using UNC path. We observed that the SMS VSS Writer is missing from the output of 'vssadmin list writers'.

We get following entries in the log files:

SMSBAckup.log:

Error: GatherWriterMetadata failed. SMS_SITE_BACKUP 3/13/2015 3:44:44 AM 4688 (0x1250)
STATMSG: ID=5046 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_SITE_BACKUP" SYS=Primary1.sccm2012.local SITE=PR1 PID=3420 TID=4688 GMTDATE=Thu Mar 12 22:14:44.117 2015 ISTR0="" ISTR1="" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0 SMS_SITE_BACKUP 3/13/2015 3:44:44 AM 4688 (0x1250)
SMS_SITE_BACKUP failed. Please see previous errors. SMS_SITE_BACKUP 3/13/2015 3:44:44 AM 4688 (0x1250)
STATMSG: ID=5060 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_SITE_BACKUP" SYS=Primary1.sccm2012.local SITE=PR1 PID=3420 TID=4688 GMTDATE=Thu Mar 12 22:14:44.133 2015 ISTR0="Error: GatherWriterMetadata failed." ISTR1="" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0 SMS_SITE_BACKUP 3/13/2015 3:44:44 AM 4688 (0x1250)
SMS_SITE_BACKUP service is stopping. SMS_SITE_BACKUP 3/13/2015 3:44:44 AM 4688 (0x1250)
STATMSG: ID=502 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_SITE_BACKUP" SYS=Primary1.sccm2012.local SITE=PR1 PID=3420 TID=4688 GMTDATE=Thu Mar 12 22:14:44.133 2015 ISTR0="SMS_SITE_BACKUP" ISTR1="" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0 SMS_SITE_BACKUP 3/13/2015 3:44:44 AM 4688 (0x1250)
Raised backup task failure alert. SMS_SITE_BACKUP 3/13/2015 3:44:44 AM 4688 (0x1250)
 

 

SMSWriter.log:

Successfully included C:\Program Files\Microsoft Configuration Manager\install.map into to the metadata. SMS_SITE_VSS_WRITER 3/13/2015 3:44:33 AM 5540 (0x15A4)
Unable to connect to registry containing \\PRIMARY1.SCCM2012.LOCAL\HKEY_LOCAL_MACHINE\Software\Microsoft\SMS (Error= - [error code: 53, error message: The network path was not found.]). SMS_SITE_VSS_WRITER 3/13/2015 3:44:33 AM 5540 (0x15A4)
Error: Failed to inlcude \\PRIMARY1.SCCM2012.LOCAL\HKEY_LOCAL_MACHINE\Software\Microsoft\SMS - C:\Program Files\Microsoft Configuration Manager\BackupTemp\SMSbkSiteRegSMS.dat into the metadata. SMS_SITE_VSS_WRITER 3/13/2015 3:44:33 AM 5540 (0x15A4)

STATMSG: ID=6820 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_SITE_VSS_WRITER" SYS=Primary1.sccm2012.local SITE=PR1 PID=4228 TID=5540 GMTDATE=Thu Mar 12 22:14:33.409 2015 ISTR0="\\PRIMARY1.SCCM2012.LOCAL\HKEY_LOCAL_MACHINE\Software\Microsoft\SMS" ISTR1="C:\Program Files\Microsoft Configuration Manager\BackupTemp\SMSbkSiteRegSMS.dat" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0 SMS_SITE_VSS_WRITER 3/13/2015 3:44:33 AM 5540 (0x15A4)
Building meta data failed. SMS_SITE_VSS_WRITER 3/13/2015 3:44:33 AM 5540 (0x15A4)

After doing a review of the process in background, we found out that a call is made to a windows function to make the connection to registry:

RegConnectRegistry function

As per MSDN article: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724840%28v=vs.85%29.aspx:

'"RegConnectRegistry requires the Remote Registry service to be running on the remote computer. By default, this service is configured to be started manually. To configure the Remote Registry service to start automatically, run Services.msc and change the Startup Type of the service to Automatic."

So the 'Remote Registry Service' should be enabled.

We checked and determined the service was disabled. After Starting the 'Remote Registry service' backup was successful once again.

Hope this helps.