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.

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

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

Patch My PC
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?

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.

1E Nomad

4 thoughts on “Fix SCCM ConfigMgr Backup Failed with Error SQL Backup Failed Error Code 2 Configuration Manager”

  1. hi,
    we have tried the above steps , but it did not helped . Also tried on another share drive but the problem is same

    Reply
  2. Hi,

    I am having an error in SQL Backup, we have enabled VSS in the SQL to have 50GB.

    Error: SQL Backup failed… SMS_SITE_BACKUP 8/28/2018 10:41:15 PM 9196 (0x23EC)
    ERROR: SQL Backup task failed. Error message – \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy13\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\CM_SM1_log.ldf is not readable SMS_SITE_BACKUP 8/28/2018 10:41:15 PM 9196 (0x23EC)
    Info: Starting asynchronous BackupComplete… SMS_SITE_BACKUP 8/28/2018 10:41:15 PM 9196 (0x23EC)
    Info: Asynchronous BackupComplete finished. SMS_SITE_BACKUP 8/28/2018 10:41:17 PM 9196 (0x23EC)
    ERROR: BackupComplete failed. Error message – ERROR: SQL Backup task failed. Error message – \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy13\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\CM_SM1_log.ldf is not readable SMS_SITE_BACKUP 8/28/2018 10:41:17 PM 9196 (0x23EC)

    is this error have something to deal with VSS as we see 47 GB of 50 GB is used in the drive.

    Kindly suggest on how we can solve this issue

    Reply
    • I have the same issue – cm_sm1_log.ldf is not readable, which is probably caused the file is in use. Not sure how to fix it yet, but continue investigating.

      Reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.