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
"optional feature not implemented" with crypt-on-sftp in 1.66 #7673
Comments
Hi, I'm having the same issue:
I must add an entra argument to keep the previous behaviour:
It seems that this is related to the remote host capability to modify folders timestamp. Regards. |
…ed sftp Before this change operations.SetDirModTime could return the error "optional feature not implemented" when attempting to set modification times on crypted sftp backends. This was because crypt wraps the directories using fs.DirWrapper but these return fs.ErrorNotImplemented for the SetModTime method. The fix is to recognise that error and fall back to using the DirSetModTime method on the backend which does work. Fixes #7673
I managed to replicate this. It looks easy to fix - can you try this please? v1.67.0-beta.7775.8cb7f28f8.fix-7673-dir-wrapping on branch fix-7673-dir-wrapping (uploaded in 15-30 mins) |
@ncw, With the v1.67.0-beta the copy and sync process is now ok 👍 |
Can confirm, sync passed with v1.67.0-beta, whereas v1.66.0 fails with the |
Yup, I can also confirm that v1.67.0-beta.7775.8cb7f28f8.fix-7673-dir-wrapping fixes this! |
Even with the beta I am again encountering Log output with filters and endpoints redacted follows. Filtering the output with:
Log output:
This happens for all folders in the remote |
You are not using the rclone version that includes the patch for "optional feature not implemented". You have to use: v1.67.0-beta.7775.8cb7f28f8.fix-7673-dir-wrapping on branch fix-7673-dir-wrapping It is separate branch and has not been merged to the main one yet. |
Thanks for pointing that out @kapitainsky - I was using the Using a custom build of the rcone/rclone docker image pointing at the right version of the fix indeed does get rid of the errors. |
Thanks for testing. I've merged this to master now which means it will be in the latest beta in 15-30 minutes and released in v1.67 and I'll also release it in v1.66.1 |
What is the problem you are having with rclone?
I'm using a crypt-on-sftp remote, which was working just fine up until v1.65.2. With v1.66, attempts to sync to it now fail with "optional feature not implemented". I've not narrowed down whether it's the crypt or the sftp layer, so I'm just reporting my (failing) test case below.
I did a bisect, and apparently this issue came in at f5f8678 (which was a fix for #6685).
What is your rclone version (output from
rclone version
)1.66.0
Which OS you are using and how many bits (e.g. Windows 7, 64 bit)
Ubuntu 22.04 (64-bit)
Which cloud storage system are you using? (e.g. Google Drive)
sftp
The command you were trying to run (e.g.
rclone copy /tmp remote:tmp
)rclone sync a/ C:
Steps to reproduce
rclone --config test.conf config
mkdir -p ftp a/b # on the sftp remote; here I'm using localhost
touch a/test1 # on the sftp remote
rclone --config test.conf sync a/ C: -vv # no problems
touch a/b/test2 # on the sftp remote
rclone --config test.conf sync a/ C: -vv
A log from the command with the
-vv
flag (e.g. output fromrclone -vv copy /tmp remote:tmp
)How to use GitHub
The text was updated successfully, but these errors were encountered: