这是indexloc提供的服务,不要输入任何密码
Skip to content

Error removing file over SFTP but SSH permissions are OK #541

@f18m

Description

@f18m

Hi,
thanks for this great software!

I've set 7 days of retention for my backups over SSH/SFTP and the backups are correctly and regularly created. However docker-volume-backup is unable to erase old backups: here's a snippet of the log files (repeated many times):

time=2025-02-19T02:30:20.279Z level=ERROR msg="Unexpected error running schedule 30 2 * * *: sftp: \"Failure\" (SSH_FX_FAILURE)" error="main.runScript.func4: error running script: main.(*script).pruneBackups: error pruning backups: ssh.(*sshStorage).Prune.func1: error removing file: sftp: \"Failure\" (SSH_FX_FAILURE)"
time=2025-02-20T02:30:00.133Z level=INFO msg="Now running script on schedule 30 2 * * *"
time=2025-02-20T02:30:08.775Z level=INFO msg="Created backup of `/backup` at `/tmp/backup-2025-02-20T02-30-00.tar.gz`."
time=2025-02-20T02:30:15.762Z level=INFO msg="Uploaded a copy of backup `/tmp/backup-2025-02-20T02-30-00.tar.gz` to '192.168.1.5' at path '/mnt/mediadownloader-backup/'." storage=SSH
time=2025-02-20T02:30:16.610Z level=INFO msg="Removed tar file `/tmp/backup-2025-02-20T02-30-00.tar.gz`."
time=2025-02-20T02:30:16.620Z level=ERROR msg="Unexpected error running schedule 30 2 * * *: sftp: \"Failure\" (SSH_FX_FAILURE)" error="main.runScript.func4: error running script: main.(*script).pruneBackups: error pruning backups: ssh.(*sshStorage).Prune.func1: error removing file: sftp: \"Failure\" (SSH_FX_FAILURE)"

The thing is: if I log via SSH using exactly

  • same RSA private key
  • SSH host/user/pw
    provided to docker-volume-backup, I can remove old backups without any issue with "rm"...

Any hint/idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsupportSupport Requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions