Fix SCCM ConfigMgr Backup Failed with Error SQL Backup Failed Error Code 2 Configuration Manager

Fix SCCM ConfigMgr Backup Failed with Error SQL Backup Failed Error Code 2 Configuration Manager? the success of SCCM/ConfigMgr backup will become very critical just before the start of the migration process. As I mentioned in the SCCM/ConfigMgr CB migration checklist here, we need to make sure that we should have at least two good copies of the SCCM backup.

But, SCCM backup failed with error code #2, and error code 2 refers back to “2 (0x2) =  The system cannot find the file specified.” just a few days before my server upgrade. SQL Server is on a remote box and the backup share is accessible from the remote SQL server. However, for some reason, the SQL server was not able to access a backup share on the CAS box.

The backup has failed because it could complete the following operation “Backup Failed  Error message – ERROR: CopyFile to \\ACNCAS\CASBackup\CASBackup\SiteDBServer failed.” I checked the following logs at the remote SQL box as well as on the CAS box but everywhere it was giving error code #2.

Patch My PC

SMSSQLBKUP.LOG(D:\SMS_ACNCAS.ACN.com\Logs)

SCCM ConfigMgr Backup Failed with Error SQL Backup Failed Error Code 2 Configuration Manager?

SCCM ConfigMgr Backup Failed with Error SQL Backup Failed Error Code 2 Configuration Manager
SCCM ConfigMgr Backup Failed with Error SQL Backup Failed Error Code 2 Configuration Manager
ERROR: Failed to backup \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy3\MSSQL\Data\CM_CAS.mdf up to \\ACNCAS\CASBackup\CASBackup\SiteDBServer: ERROR: CopyFile to \\ACNCAS\CASBackup\CASBackup\SiteDBServer failed: [error code: 2, error message: The system cannot find the file specified.].
Failed to copy file(s) \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy3\MSSQL\Data\CM_CAS.mdf.
Error: Backup Failed  for Component - CM_CAS.
Updating the database status to [CM_CAS:Failed;].
Error: BackupComplete failed... ERROR: CopyFile to \\ACNCAS\CASBackup\CASBackup\SiteDBServer failed: [error code: 2, error message: The system cannot find the file specified.]
Sql backup failed. Please see previous errors.

SMSBKUP.LOG – SCCM ConfigMgr Backup Failed with Error SQL Backup Failed Error Code 2 Configuration Manager

SCCM ConfigMgr Backup Failed with Error SQL Backup Failed Error Code 2 Configuration Manager
SCCM ConfigMgr Backup Failed with Error SQL Backup Failed Error Code 2 Configuration Manager
Waiting On SQL Backup for component CM_CAS to complete...
Error: SQL Backup failed for component CM_CAS
ERROR: Failed to backup SQL component CM_CAS. Error = ERROR: CopyFile to \\ACNCAS\CASBackup\CASBackup\SiteDBServer failed: [error code: 2, error message: The system cannot find the file specified.]
Error: Backup Failed  for Component - CASBackup\SiteDBServer\SMSbkSQLSiteDB.dat.
Waiting On SQL Backup task status...
ERROR: SQL Backup task failed. Error message - ERROR: CopyFile to \\ACNCAS\CASBackup\CASBackup\SiteDBServer failed: [error code: 2, error message: The system cannot find the file specified.]
STATMSG: ID=5052 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_SITE_BACKUP" SYS=ACNCAS.ACN.com SITE=CAS PID=8244 TID=6684 GMTDATE=Wed Mar 08 11:34:12.838 2017 ISTR0="\\WS3SQL05" ISTR1="CM_CAS:Failed;" ISTR2="ERROR: CopyFile to \\ACNCAS\CASBackup\CASBackup\SiteDBServer failed: [error code: 2, error message: The system cannot find the file specified.]" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0
Error: SQL Backup failed...
ERROR: SQL Backup task failed. Error message - ERROR: CopyFile to \\ACNCAS\CASBackup\CASBackup\SiteDBServer failed: [error code: 2, error message: The system cannot find the file specified.]
Info: Starting asynchronous BackupComplete...
Info: Asynchronous BackupComplete finished.
ERROR: BackupComplete failed. Error message - ERROR: SQL Backup task failed. Error message - ERROR: CopyFile to \\ACNCAS\CASBackup\CASBackup\SiteDBServer failed: [error code: 2, error message: The system cannot find the file specified.]
SMS_SITE_BACKUP failed. Please see previous errors.
Raised backup task failure alert.

Solution :- SQL Backup failed for SCCM/ConfigMgr   The resolution was very easy and it was a restart of both the servers. Restarted the SQL and CAS servers. After the restart, we have initiated the backup again. Yapee! The SCCM backup worked fine. CAS server was able to complete the backup successfully without any error.   SMSBKUP.LOG

SCCM ConfigMgr Backup Failed with Error SQL Backup Failed Error Code 2 Configuration Manager
SCCM ConfigMgr Backup Failed with Error SQL Backup Failed Error Code 2 Configuration Manager
Waiting On SQL Backup for component CM_CAS to complete..
Sleeping for 30 seconds...
Backup Succeeded  for Component - CASBackup\SiteDBServer\SMSbkSQLSiteDB.dat.

 SMSSQLBKUP.LOG

SCCM ConfigMgr Backup Failed with Error SQL Backup Failed Error Code 2 Configuration Manager?

1E Nomad
Updating the status to (backup completed)
SQL Backup completed - Wed Mar 08 13:23:43 2017

 Tip:- Why am I taking full backup not the SQL one? I Agree, in most of the cases, I would suggest going with SQL backup. In some scenarios, in case, if we may not have full control of the SQL box and you have custom MOF files, etc… then, it’s better to take a full backup. SQL backup and SCCM/ConfigMgr FULL backup are equally supported by Microsoft/SCCM PG.