Page 1 of 1

ERR An error occurred while deleting... Access Denied

Posted: 06 Sep 2021, 09:20
by mmarkowski
Hi, I have 2 tasks on my Cobian Backup 11 Gravity. The only difference between them are the source and the destination directories. Both run as an admin with full rights to both source and destination folders (Edit task > Advanced > Impersonation). One of the tasks works fine, the other however can't delete some of the backuped files. These files aren't read-only. When I log in to this computer with the same admin account, I can delete these files manually. Permission inspection says this admin account has full control. Below is the log of the faulty task (all names, ids, directories etc. changed for security reasons).

2021-09-04 20:00 *** A new backup has started. Number of tasks in queue: 1 ***
2021-09-04 20:00 Preventing the system from entering sleep mode...
2021-09-04 20:00 ** Backing up the task "task_name" **
2021-09-04 20:00 Impersonating the user "domain\admin" to run the task "task_name"...
2021-09-04 20:00 The user "domain\admin" has now logged on
2021-09-04 20:00 The task is now being executed as the user "domain\admin"
2021-09-04 20:00 Starting the Volume Shadow Copy snapshot for the drives: D:\
2021-09-04 20:00 The Volume Shadow Copy snapshot set has been created successfully
2021-09-04 20:00 Changing the backup type to full. Reason: using a fixed day for full backups
2021-09-04 20:00 Creating the destination directory "destination_dir"
2021-09-04 20:00 The destination directory "destination_dir" has been successfully created
2021-09-04 20:00 Backing up the directory "GLOBALROOT\Device\HarddiskVolumeShadowCopy28\dir\"
2021-09-04 20:52 Deleting a full backup with all its files. Reason: there are 6 non-parked full backups
2021-09-04 20:52 Old backup files to delete: old_backup_dir
2021-09-04 20:52 Counting the files to delete
2021-09-04 20:52 Number of non-ftp files found to delete: 29973
2021-09-04 20:52 Deleting old backups
ERR 2021-09-04 20:52 An error occurred while deleting "old_backup_dir\..\filename.ext": Access Denied
...
2021-09-04 21:23 The deleting operation has been successfully completed
2021-09-04 21:23 Deleting the Volume Shadow Copy snapshot "id"
2021-09-04 21:23 The Volume Shadow Copy snapshot set has been successfully deleted
2021-09-04 21:23 Reverting the working thread to run under the original user account
2021-09-04 21:23 The working thread is now running under the original user account
2021-09-04 21:23 Total backup time for "task_name": 1 hours, 23 minutes, 30 seconds
2021-09-04 21:23 ** Backup done for the task "task_name". Errors: 86758. Processed files: 84800. Backed up files: 84800. Total size: 196,22 GB **
2021-09-04 21:23 --
2021-09-04 21:23 The system can now enter sleep mode
2021-09-04 21:23 Total backup time: 1 hours, 23 minutes, 34 seconds
2021-09-04 21:23 *** Backup done. Errors: 86758. Processed files: 84800. Backed up files: 84800. Total size: 196,22 GB ***
2021-09-04 21:23 --

Re: ERR An error occurred while deleting... Access Denied

Posted: 17 Sep 2021, 00:11
by cobian
This is a sign of a conflict with permissions. Hard to tell without seeing the actual file permissions.