OneDrive pathIsTooLong, changing filename encryption to obfuscation

What is the problem you are having with rclone?

When uploading to onedrive I get the error pathIsTooLong. As a solution I want to change the file name encryption to obfuscation.
My question is how this affects the already successfully uploaded files that were uploaded with filename encryption.

  1. Will this cause problems if I just change the config to obfuscation?
  2. Can I still access the encrypted filenames?
  3. Can I also have them changed automatically to obfuscation?

What is your rclone version (output from rclone version)

rclone v1.45
//Edit: Updated to 1.53.3, Question not affected.

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Raspbian 2020-12-02-raspios-buster-armhf-lite

  • os/arch: linux/arm
  • go version: go1.15.5

Which cloud storage system are you using? (eg Google Drive)

OneDrive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone copy C:\X\X CryptRemote123: -P

The rclone config contents with secrets removed.

[OneDrive]
type = onedrive
token = XXX
drive_id = XXX
drive_type = business

[CryptRemote123]
type = crypt
remote = OneDrive:CryptRemote123
filename_encryption = standard
directory_name_encryption = true
password = XXX
password2 = XXX

A log from the command with the -vv flag

2020/12/17 18:59:28 DEBUG : Using config file from "/home/pi/.config/rclone/rclone.conf"
2020-12-17 18:59:30 INFO  : Encrypted drive 'CryptRemote123:1234/abcdefghijklmnopqrstuvwxyzabcdef/abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw/': Waiting for checks to finish
2020-12-17 18:59:30 DEBUG : hlkjvvdekmdks6i8gteli7mou2olp23i58vi5nlhc83hon3rfe7l79a8r3vdfvcktn38pp8a99krorr7hvia651so09lat8bo981n0e7i0jl6tubre2lbarng6q0v4g1: Starting multipart upload
2020-12-17 18:59:30 INFO  : Encrypted drive 'CryptRemote123:1234/abcdefghijklmnopqrstuvwxyzabcdef/abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw/': Waiting for transfers to finish
2020-12-17 18:59:30 ERROR : abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw.mkv: Failed to copy: pathIsTooLong: Path is too long
2020-12-17 18:59:30 ERROR : Attempt 1/3 failed with 1 errors and: pathIsTooLong: Path is too long
2020-12-17 18:59:30 INFO  : Encrypted drive 'CryptRemote123:1234/abcdefghijklmnopqrstuvwxyzabcdef/abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw/': Waiting for checks to finish
2020-12-17 18:59:30 INFO  : Encrypted drive 'CryptRemote123:1234/abcdefghijklmnopqrstuvwxyzabcdef/abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw/': Waiting for transfers to finish
2020-12-17 18:59:30 DEBUG : hlkjvvdekmdks6i8gteli7mou2olp23i58vi5nlhc83hon3rfe7l79a8r3vdfvcktn38pp8a99krorr7hvia651so09lat8bo981n0e7i0jl6tubre2lbarng6q0v4g1: Starting multipart upload
2020-12-17 18:59:31 ERROR : abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw.mkv: Failed to copy: pathIsTooLong: Path is too long
2020-12-17 18:59:31 ERROR : Attempt 2/3 failed with 1 errors and: pathIsTooLong: Path is too long
2020-12-17 18:59:31 INFO  : Encrypted drive 'CryptRemote123:1234/abcdefghijklmnopqrstuvwxyzabcdef/abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw/': Waiting for checks to finish
2020-12-17 18:59:31 INFO  : Encrypted drive 'CryptRemote123:1234/abcdefghijklmnopqrstuvwxyzabcdef/abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw/': Waiting for transfers to finish
2020-12-17 18:59:31 DEBUG : hlkjvvdekmdks6i8gteli7mou2olp23i58vi5nlhc83hon3rfe7l79a8r3vdfvcktn38pp8a99krorr7hvia651so09lat8bo981n0e7i0jl6tubre2lbarng6q0v4g1: Starting multipart upload
2020-12-17 18:59:31 ERROR : abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw.mkv: Failed to copy: pathIsTooLong: Path is too long
2020-12-17 18:59:31 ERROR : Attempt 3/3 failed with 1 errors and: pathIsTooLong: Path is too long
Transferred:             0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors:                 1 (retrying may help)
Checks:                 0 / 0, -
Transferred:            0 / 0, -
Elapsed time:        3.3s
2020/12/17 18:59:31 Failed to copy: pathIsTooLong: Path is too long

hello,

that is a very old version of rclone, so update here https://rclone.org/downloads/#script-download-and-install.

that is not going to work but this might
https://rclone.org/crypt/#crypt-server-side-across-configs

1 Like

How do I use --crypt-server-side-across-configs?

I tried this command:

rclone move CryptRemote123: NewCryptRemote: --crypt-server-side-across-configs -P

It seems that it's downloading and uploading all files all over again :confused:

need to see a debug log.
as a test, run a command that transfers one file and post it.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.