Closed milahu closed 2 months ago
Hello @milahu,
I presume you are using fpsync's '-w' option. In that mode, every job is run on a remote machine using a dedicated ssh connection.
Enabling port forwarding for each connection will not work as-is and display errors because the local port will be in use after the first successful ssh connection. Thus, next ssh connections running in parallel will not be able to bind to the same port again.
You may want to play with ssh options either to silent those errors (LogLevel option) or maybe (not tested) by using multiplexing (ControlMaster / ControlPath) ?
no fpsync -w
here, just fpsync -v -n 4 -f 100 -m rsync
a workaround is to add LogLevel FATAL
to ~/.ssh/config
currently fpsync treats any output to stderr as error, and exits nonzero but fpsync should return zero after a successful sync
Hello milahu,
I managed to reproduce the problem with a command like :
$ fpsync -n 2 /src/ localhost:/dst/
to use rsync over ssh.
Indeed, fpsync currently detect errors using stderr output only. I'll see if I can track return codes to improve error detection. Stay tuned!
Hello milahu,
Could you try the fix above please ? It should fix your problem.
Best regards,
Ganael.
in this example, port forwarding fails because there is already a ssh session