The errors in this article may occur for other reasons, this article is specifically relevant to a situation in which these errors occur because the folder where the backup files are stored has an SGID (Set-Group ID) configured.
Example:
[backupsvc@rhel9]$ ls -l total 1 drwxr-sr-x. 2 backupsvc backupsvc 1 Jan 1 00:00 repo
A job targetting a Hardened Linux Repository (Immutable) fails with an error about being unable to remove restore points or update immutability (examples below).
Failed to delete file '/path/to/storage.vbk': Operation not permitted
Failed to perform setting immutability for backup Error: Agent: Failed to process method
Failed to delete '.vbk' per retention policy
Error: boost::filesystem::remove: Operation not permitted: "/path/to/restorepoint.vib" Agent failed to process method {FileSystem.FileRemove}.
This problem is caused by the SGID bit set on the backup directory.
Due to the SGID bit, all files created within this directory inherit the directory's group ownership. This conflicts with the verification routine in VBR that ensures the .veeam.lock file belongs to the root user and root group.
As a result of this conflict, errors arise during the processing of the .veeam.lock file.
In the command examples below, the placeholder '/path/to/repository/' is used to represent the path to the root folder that was specified when the repository was created in Veeam Backup & Replication. You can confirm the path needed by checking the Path column listed for the repository within the Backup Repositories list in the Veeam Backup & Replication Console.
To resolve this issue, the Linux Administrator must remove the SGID bit from the backup directory and rerun the job to force new .veeam.lock files to be created.
If the issue continues after you complete the steps above, please collect logs and create a Veeam Support case.
While rare, the existing .veeam.local files may need to be removed, a process that requires the immutability attribute to be removed from each .veeam.lock file.
This form is only for KB Feedback/Suggestions, if you need help with the software open a support case