Skip to content

[BUG] SFTP Volumes "Test Connection" fails after configuring it once successfully #1064

Open

Description

@FurkanVG

Prerequisites

Rclone Pre-flight Checklist (if applicable)

  • This issue is NOT related to rclone (skip if not using rclone)
  • I have tested rclone listremotes and rclone lsd remote: on the host and they work
  • I have verified the rclone config is mounted into the container
  • I have restarted the container after config changes

Bug Description

Hi,
im on v0.41.0.

I have a SFTP Volume, configured via password. When i create a volume and i enter my password and click "Test Connection" and save it, it works. Backups work, no problem.

But when i then go back to the volume settings, the password is then shown as encv1:14aa3..... which is intended and normal. BUT, the "Test Connection" is broken in this state. The encrypted password is "broken", as it fails then like this:

20:25:08 info Executing sshfs: sshfs root@192.168.178.3:/ /tmp/zerobyte-test-jEcNPH -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3,allow_other,uid=0,gid=0,no_contain_symlinks,UserKnownHostsFile=/tmp/zerobyte-ssh/c73868d2d5551787.known_hosts,StrictHostKeyChecking=yes,port=1907 -o password_stdin

20:25:11 error Error mounting SFTP volume {

  "error": "Failed to mount SFTP volume: read: Connection reset by peer"

}

20:25:11 info SFTP volume at /tmp/zerobyte-test-jEcNPH unmounted successfully.

But during this configuration, when i get rid of this encrpyted password and enter the raw password again, it works:

20:26:17 info Executing sshfs: sshfs root@192.168.178.3:/ /tmp/zerobyte-test-pEddKD -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3,allow_other,uid=0,gid=0,no_contain_symlinks,UserKnownHostsFile=/tmp/zerobyte-ssh/3cdfb8f77945b933.known_hosts,StrictHostKeyChecking=yes,port=1907 -o password_stdin

20:26:18 info SFTP volume at /tmp/zerobyte-test-pEddKD mounted successfully.

20:26:18 info SFTP volume at /tmp/zerobyte-test-pEddKD unmounted successfully.

But the funny thing is, even tho the password is shown in encrypted format and the "Test Connection" fails, the backup works, if triggerd from Backup Schedule:

20:27:18 info Starting backup Backup "Raspberrypi" for volume raspberrypi to repository nas-repo

20:27:26 info Backup Backup "Raspberrypi" completed successfully for volume raspberrypi to repository nas-repo

20:27:26 info running retention policy (forget) for schedule 11

20:27:47 info Retention policy applied successfully for schedule 11

To sum up:
While the backups work, once the encrypted password is visible in the volume configuration, the "Test Connection" fails.

PS: The "Check now" Function works, its only the "Test Connection" that fails.

Steps to Reproduce

see above as described

Expected Behavior

"Test Connection" should work, even when the password is shown in encrypted format.

Zerobyte version / commit

v0.41.0

Deployment Method

Docker Compose

Backup/Repository Context

No response

Logs / Error Messages

see above

Activity

  1. xd003 commented on Sep 10, 2026

    @xd003
    Contributor

    FIxed by #1145

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions