SC fails to delete snapshot during applying retention with remove snapshot error: 102
Applies to
Issue
- SC backup jobs attempt to apply retention and fails with error
Remove SnapShot failed Error: 102 <installation_path>\Program Files\NetApp\SnapCenter\SMCore\SnapDriveSALDebug.loghave the following entries:
Command starts: Remove-NcSnapshot -Volume <volume> -Snapshot <snapshot_name>
Verbose SAL PID=[7152] TID=[4504] ex.Message : The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: entry doesn't exist
Verbose SAL PID=[7152] TID=[4504] Remove Snapshot <snapshot_name> on <volume> is failed. Error: 102- May also see the following error in the
<installation_path>\NetApp\SnapCenter\App_Data\log\SnapManagerWeb_<id>.log:
ERROR SnapManagerWeb_1576494 PID=[8592] TID=[70] ErrorCode (-1), ErrorMessage (A root ambient transaction was completed before the nested transaction. The nested transactions should be completed first.)
ERROR SnapManagerWeb_1576494 PID=[8592] TID=[70] System.Exception: Unable to delete the backup <backup_name>. Reason : A root ambient transaction was completed before the nested transaction. The nested transactions should be completed first.
at SnapManager.SMSDAL.BackupDAL.DeleteMainBackups(List`1 backups, SmDeleteBackupsResponse response, SmDeleteBackupContext context, SmSnapManagerDBEntities entities, DbContext pluginSpecificEntities, String objectStorageBackupDeletionResult)
at SnapManager.SMSDAL.BackupDAL.<>c__DisplayClass41_0.<DeleteBackup>b__0()
DEBUG SnapManagerWeb_1576494 PID=[8592] TID=[70] BackupBiz - DeleteBackup failed with error: The transaction has aborted.
- These can be logged hundreds of times during backup job and the length of the backup job can grow from a few minutes in duration to as much as few hours.
