You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Received error: failed to make directory: HTTP code 400: "400 Bad Request", reponse body: {"message":"1 validation error detected: Value 'BLABLAlooooNG.....ENCRYPTED' at 'name' failed to satisfy constraint: Member must have length less than or equal to 280"}
- low level retry 1/10
if you did --exclude="????...????*" where you need about 175 ? symbols then that will exclude any files which are too long after crypt. You'd need another one for directories too, so I'd probably put them in an --exclude-from file with these two lines in
I am having this issue too. Is there a way to have it not skip the files? I have the same config as scriptzteam with ACD and crypt setup, so crypt is causing the length to go past 280 right? My original path is only 205 characters long including the folders. The encrypted path is 295 characters long
Would it be possible to make this somewhat deterministic based on cloud provider configuration? A pretty common use case is using the crypt overlay on top of a normal provider (I'm doing that with AmazonDrive). So if AmazonDrive is limited to a certain length (as documented in the API) and layered crypt further limits this, could rclone take all of this into account in sync/copy/mkdir operations?
With the new convmv functionality introduced in v1.70, you now have the alternative of using option --name-transform "all,truncate=160" with your copy/sync/move command. This only limits the length of individual names (path elements), and you may still hit a limit for the total path length. Also, you risk that two files from the source are transformed into the same name at the destination, which may or may not be what you want.
That is all correct! I would just add that depending on your use case, --name-transform all,truncate_bytes_keep_extension=N might be a better fit. See fe62a2b
I also think that --max-name-length is still needed, for situations where skipping is preferable to truncating.
(Btw, writing this comment caused me to realize that the convmv docs are missing some options! I've submitted PR #8786 to address that.)
Activity
ncw commentedon Oct 4, 2016
You could probably put a filter rule in.
if you did
--exclude="????...????*"where you need about 175?symbols then that will exclude any files which are too long after crypt. You'd need another one for directories too, so I'd probably put them in an--exclude-fromfile with these two lines inSorry that isn't very elegant but it is the best I can come up with at the moment!
Which remote storage system are you using? The rules for name lengths vary for all of them.
scriptzteam commentedon Oct 4, 2016
Its Amazon Cloud Drive with CRYPT to be exact :)
i just did for now this ->
--low-level-retries 1camjac251 commentedon Oct 5, 2016
I am having this issue too. Is there a way to have it not skip the files? I have the same config as scriptzteam with ACD and crypt setup, so crypt is causing the length to go past 280 right? My original path is only 205 characters long including the folders. The encrypted path is 295 characters long
ncw commentedon Oct 11, 2016
@camjac251 the right solution is #637 which will solve this problem properly. Until then there isn't a nice solution :-(
DurvalMenezes commentedon Nov 7, 2016
Hi,
For the record, that didn't work for me: I still had many files that provoked the error above (using Amazon Cloud Drive with rclone encryption).
I determined empiricaly that the maximum length in my situation is 160 characters; anything above that and I got errors.
So, for me, the two exclude lines that worked were:
Hope that helps.
Cheers,
Durval.
ncw commentedon Nov 7, 2016
That really is very ugly isn't it!
I'll make a new flag
--max-name-lengthwhich you can use to filter this explicitlyarionl commentedon Nov 7, 2016
Would it be possible to make this somewhat deterministic based on cloud provider configuration? A pretty common use case is using the crypt overlay on top of a normal provider (I'm doing that with AmazonDrive). So if AmazonDrive is limited to a certain length (as documented in the API) and layered crypt further limits this, could rclone take all of this into account in sync/copy/mkdir operations?
2600box commentedon Jan 4, 2017
I have this error and I have tried the suggested --exclude and --low-level-retries but the error still shows up.
is the error preventing further progress?
9 remaining items
xerrni commentedon Dec 2, 2017
another corner case: If you setup second remote to e.g. other_remote:/my_folder_on_other_remote/
then standard implementation may fail.
ivandeex commentedon Nov 25, 2020
Related to #4805
albertony commentedon Aug 28, 2025
With the new convmv functionality introduced in v1.70, you now have the alternative of using option
--name-transform "all,truncate=160"with your copy/sync/move command. This only limits the length of individual names (path elements), and you may still hit a limit for the total path length. Also, you risk that two files from the source are transformed into the same name at the destination, which may or may not be what you want.Please correct me if I'm wrong, @nielash. :)
nielash commentedon Aug 30, 2025
That is all correct! I would just add that depending on your use case,
--name-transform all,truncate_bytes_keep_extension=Nmight be a better fit. See fe62a2bI also think that
--max-name-lengthis still needed, for situations where skipping is preferable to truncating.(Btw, writing this comment caused me to realize that the
convmvdocs are missing some options! I've submitted PR #8786 to address that.)ncw commentedon Aug 30, 2025
I note with the advent of regexp filters we can exclude files longer than 100 quite easily with
This could probably be extended to directories too (exercise for student ;-)