Home › Documentation › Troubleshooting › Error codes › CBK-3005: File in use or access denied
CBK-3005: File in use or access denied
- Code
- CBK-3005
- Category
- Source data
- Logged as
- Warning
- Applies to
- All platforms
Message
CBK-3005 Skipped /srv/app/data/cache.db: in use
CBK-3005 Skipped C:\Users\j.smith\NTUSER.DAT.LOG1: access denied
Cause
The agent could not open a file. With a snapshot in place this is unusual on Windows, because the snapshot allows open files to be read. It occurs when:
- There is no snapshot: Linux without LVM, remote shares, NAS devices on ext4, FAT or exFAT volumes
- The file is encrypted with EFS by a user other than the service account
- On Linux, a mandatory access control policy (SELinux, AppArmor) denies access
- On macOS, Full Disk Access has not been granted; see KB-1086
- Antivirus software is holding the file
Resolution
Decide whether the file matters.
- It does not (caches, lock files, temporary files): add an exclusion so the warning stops.
- It does: find a way to back it up consistently. For databases, use the relevant application agent or have the application export to a file that is then backed up. For other applications, a pre-job script can stop the service and a post-job script restart it; see
schedule.pre_commandandschedule.post_command.
Behaviour
The job finishes with result Completed with warnings and lists every skipped file in the job detail. Skipped files are retried at the next backup. Set snapshot.fail_on_skipped to true if you would prefer such jobs to be marked Failed.
A file that has been skipped in every job for 14 days is highlighted in the daily summary.