Skip to content

SFTP Permission denied do not say what path failed, and sometimes error silently #1323

@darkskiez

Description

@darkskiez

Output of restic version

restic version
restic 0.7.2 (v0.7.2-0-g5b1e4df1)
compiled with go1.8.3 on linux/amd64

How did you run restic exactly?

restic backup -x /

What backend/server/service did you use?

sftp

Expected behavior

SSH Permission denied "/path/to/repo/file"

Actual behavior

SSH Permission denied [unknown file]

Steps to reproduce the behavior

I had mounted a disk with my repo on it remotely but with the wrong user ids..

I chowned a bunch of files to the right id when I found out my mistake, but some
got missed after it had been cancelled

Do you have any idea what may have caused this?

I was a bit silly.

Do you have an idea how to solve the issue?

Add the path to the file that caused the error message.

If the key files are unreadable it silently fails with no error at all (this was a little scary)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions