Skip to content

"Operation not supported" on linux SMB mounts when unlocking #5595

@mikix

Description

@mikix

Output of restic version

restic 0.18.1-dev (compiled manually) compiled with go1.25.4 X:nodwarf5 on linux/amd64

What backend/service did you use to store the repository?

Local (but on a gvfs SMB mount)

Problem description / Steps to reproduce

This is a repeat of #5342 but in a different place - I wasn't as exhaustive in fixing that as I should have been.

If I run the following command with a stale lock, I'll get a stuck restic repeating "chmod: operation not supported" errors:

restic --repo=/run/user/1000/gvfs/xxx unlock

Expected behavior

It successfully unlocks

Actual behavior

It gets stuck trying to remove a lock, when calling chmod.

Do you have any idea what may have caused this?

Yeah, the Remove call in local.go has a chmod line, but does not gracefully allow for ErrUnsupported, like other chmod calls on unix in restic.

Did restic help you today? Did it make you happy in any way?

Yeah, it's great normally! Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions