Skip to content

Restore error xattr.LRemove security.selinux permission denied #7598

@DavidePrincipi

Description

@DavidePrincipi

Restic fails to restore a backup of OpenLDAP if the source system has SELinux=disabled and an ext4 filesystem without extended attributes (like a Contabo VPS).

Steps to reproduce

  • Configure a source host, without SELinux and filesystem without xattr
  • Prepare a backup of an OpenLDAP instance
  • Restore the backup on a target host, with both SELinux and xattr filesystem support

Expected behavior

The backup is restored correctly

Actual behavior

A Restic restore error occurs.

Aug  5 19:06:29 ns8source agent@openldap8[2619430]: {"message_type":"error","error":{"message":"xattr.LRemove /srv/state security.selinux: permission denied"},"during":"restore","item":"/state"}

Components

  • Core 3.9.2, Restic 0.17.3

See also


Thanks to @nrauso

Metadata

Metadata

Assignees

No one assigned

    Labels

    verifiedAll test cases were verified successfully

    Type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions