Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Rsync error with a "sftp storage" #1805

Open
2 tasks done
fpcurie opened this issue Nov 8, 2024 · 1 comment
Open
2 tasks done

[Bug]: Rsync error with a "sftp storage" #1805

fpcurie opened this issue Nov 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@fpcurie
Copy link

fpcurie commented Nov 8, 2024

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration issue.
  • This issue is not already reported on Github (I've searched it).

Bug description

Hello,

I have configured 2 sftpgo servers.

My use case is a configuration on "sftp1" which is configured to have a "sftp storage" on sftp2.
sftp command is ok.
But rsync command return :

protocol version mismatch -- is your shell clean?
(see the rsync manpage for an explanation)
rsync error: protocol incompatibility (code 2) at compat.c(622) [sender=3.2.7]

On sftp1, logs are :
{"level":"error","time":"2024-11-08T17:25:33.885","sender":"SSH","connection_id":"SSH_01f7aad1790be519acc00bb8a6c8394ab7f03447e46d2dc9a24480bf9c533345_1","message":"command failed: \"rsync\" args: [--server -vrze.iLsfxCIvu . /toto] user: efs_preprod err: command unsupported for this configuration"}

Both servers have "rsync" command added in "enabled_ssh_commands".

How can i resolve this problem ?

Thx in advance.

Steps to reproduce

  1. Configure a user on "sftp2" (with sftpgo serveur)
  2. Configure a user on "sftp1" which have a SFTP File system on "sftp2"
  3. Try a rsync on sftp1 (for example "rsync -rvz --progress ./test [email protected]:/test"

Expected behavior

Rsync command ok

SFTPGo version

2.6.2

Data provider

sftp

Installation method

Community RPM package

Configuration

Only changed allowed sftp command to add rsync

Relevant log output

No response

What are you using SFTPGo for?

Medium business

Additional info

No response

@fpcurie fpcurie added the bug Something isn't working label Nov 8, 2024
@MichalisDBA
Copy link

I had the same problem. I could not rsync from a client to a sftp backend server via sftpgo. Rsync works only with sftpgo having local filesystem as backend service.

https://docs.sftpgo.com/2.6/ssh/#ssh-commands

system commands work only on local filesystem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants