Failed to copy: sftp: "Folder not found: c:\\ftpsites... SSH_FX_FAILURE

After a bit more investigation it seems that it is only the Fstat call which is the problem…

Here is a workaround which doesn’t call the Fstat - can you give it a go?

https://beta.rclone.org/branch/v1.47.0-033-gf594d858-fix-sftp-folder2-beta/ (uploaded in 15-30 mins)

If it works then I could merge that with a flag to activate it.

Responded via DM. Still failed.

Could you try a test with the latest beta and the -vv flag? This will print what the server identifies itself as, something like

2019/05/12 10:53:06 DEBUG : sftp://sftptest@localhost:22/: New connection 127.0.0.1:44846->127.0.0.1:22 to "SSH-2.0-OpenSSH_7.7p1 Ubuntu-4ubuntu0.3"

If you could report that here and if you have time stick it in the upstream issue too that would be very helpful.

2019/05/16 09:30:24 DEBUG : rclone: Version "v1.47.0-073-gcff85f0b-beta" starting with parameters ["./rclone" "lsl" "-vv" "aiep:"]
2019/05/16 09:30:24 DEBUG : Using config file from "/Users/auser/.config/rclone/rclone.conf"
2019/05/16 09:30:25 DEBUG : sftp://auser@ftp.wvaiep.com:22/: New connection 192.168.1.176:65436->xxx.xx.xxx.xx:22 to "SSH-2.0-WS_FTP-SSH_7.5.1"

I also posted this upstream on github

Thank you. That will give us something to test against.

Based on a discussion in the upstream ticket here is something for you to test which should hopefully work-around the problem.

https://beta.rclone.org/branch/v1.47.0-074-g66be8910-fix-sftp-folder3-beta/ (uploaded in 15-30 mins)

Looks like that worked!

./rclone copyto --low-level-retries 1 --retries 1 -vv aiep:aaaaaaa_valley_hhhhh_ccp/CCP_Valley_hhhhh_190520.csv ~/Downloads/z.csv
2019/05/20 15:27:32 DEBUG : rclone: Version "v1.47.0-074-g66be8910-fix-sftp-folder3-beta" starting with parameters ["./rclone" "copyto" "--low-level-retries" "1" "--retries" "1" "-vv" "aiep:aaaaaaa_valley_hhhhh_ccp/CCP_Valley_hhhhh_190520.csv" "/Users/auser/Downloads/z.csv"]
2019/05/20 15:27:32 DEBUG : Using config file from "/Users/auser/.config/rclone/rclone.conf"
2019/05/20 15:27:33 DEBUG : sftp://auser@ftp.aeip.com:22/aaaaaaa_valley_hhhhh_ccp/CCP_Valley_hhhhh_190520.csv: New connection 192.168.1.176:62183->xxx.xx.xxx.xx:22 to "SSH-2.0-WS_FTP-SSH_7.5.1"
2019/05/20 15:27:34 DEBUG : CCP_Valley_hhhhh_190520.csv: Couldn't find file - need to transfer
2019/05/20 15:27:35 INFO : CCP_Valley_hhhhh_190520.csv: Copied (new)
2019/05/20 15:27:35 INFO :
Transferred: 2.280M / 2.280 MBytes, 100%, 735.375 kBytes/s, ETA 0s
Errors: 0
Checks: 0 / 0, -
Transferred: 1 / 1, 100%
Elapsed time: 3.1s

2019/05/20 15:27:35 DEBUG : 13 go routines active
2019/05/20 15:27:35 DEBUG : rclone: Version "v1.47.0-074-g66be8910-fix-sftp-folder3-beta" finishing with parameters ["./rclone" "copyto" "--low-level-retries" "1" "--retries" "1" "-vv" "aiep:aaaaaaa_valley_hhhhh_ccp/CCP_Valley_hhhhh_190520.csv" "/Users/auser/Downloads/z.csv"]

:slight_smile: I'll see if I can get them to merge the patch upstream

The patch is merged upstream :smiley:

Can you just give this one last try

https://beta.rclone.org/branch/v1.47.0-076-gda3b685c-fix-sftp-folder4-beta/ (uploaded in 15-30 mins)

And if it works for you I'll merge it to master.

Thank you

It worked. Thanks ncw!

Thanks for testing!

I've merged this to master now which means it will be in the latest beta in 15-30 mins and released in v1.48