Fails to sync certain fails on a rclone encrypted remote. It syncs other files fine, but certain files won't get synced. Why is there an issue with the file names when they're encrypted on the remote anyway?
Run the command 'rclone version' and share the full output of the command.
Failed to sync with 11 errors: last error was: XMinioInvalidObjectName: Object name contains unsupported characters.
status code: 400, request id: 174DD0EBBB08442E, host id:
2023/03/19 14:32:41 DEBUG : /Articles/A Review of the Neurobiological Basis of Trauma-Related Dissociation and Its Relation to Cannabinoid- and Opioid-Mediated Stress Response - a Transdiagnostic, Translational Approach.pdf: Computing md5 hash of encrypted source
status code: 400, request id: 174DD542F699F10F, host id:
2023/03/19 14:33:05 ERROR : /Articles/A Review of the Neurobiological Basis of Trauma-Related Dissociation and Its Relation to Cannabinoid- and Opioid-Mediated Stress Response - a Transdiagnostic, Translational Approach.pdf: Failed to copy: XMinioInvalidObjectName: Object name contains unsupported characters.
status code: 400, request id: 174DD54CC96A621B, host id:
2023/03/19 14:33:05 DEBUG : /Articles/Yoga Workshop/Neurophysiological and neurocognitive mechanisms underlying the effects of yoga-based practices towards a comprehensive theoretical framework.epub: Computing md5 hash of encrypted source
status code: 400, request id: 174DD5524DB73D16, host id:
2023/03/19 14:33:05 DEBUG : /Articles/Yoga Workshop/Neurophysiological and neurocognitive mechanisms underlying the effects of yoga-based practices towards a comprehensive theoretical framework.pdf: Computing md5 hash of encrypted source
status code: 400, request id: 174DD542C9021881, host id:
2023/03/19 14:33:05 ERROR : /Articles/Yoga Workshop/Neurophysiological and neurocognitive mechanisms underlying the effects of yoga-based practices towards a comprehensive theoretical framework.pdf: Failed to copy: XMinioInvalidObjectName: Object name contains unsupported characters.
status code: 400, request id: 174DD55250079A37, host id:
2023/03/19 14:33:06 ERROR : /Articles/Yoga Workshop/Neurophysiological and neurocognitive mechanisms underlying the effects of yoga-based practices towards a comprehensive theoretical framework.epub: Failed to copy: XMinioInvalidObjectName: Object name contains unsupported characters.
status code: 400, request id: 174DD5524FA8D0BB, host id:
2023/03/19 14:33:05 ERROR : /Articles/Yoga Workshop/Neurophysiological and neurocognitive mechanisms underlying the effects of yoga-based practices towards a comprehensive theoretical framework.pdf
2023/03/19 14:33:05 ERROR : /Articles/Yoga Workshop/Neurophysiological and neurocognitive mechanisms underlying the effects of yoga-based practices towards a comprehensive theoretical framework.pdf
I thought the file name may be too long. However according to idrive max is 254 characters.
I think your file names are too long. Encrypted file names are encoded in base32 by default, which significantly increases the length. iDrive being case sensitive, you can change the encoding to be base64, which will double the max file name length.
I've tried with base64 now and it still can't handle "A Review of the Neurobiological Basis of Trauma-Related Dissociation and Its Relation to Cannabinoid- and Opioid-Mediated Stress Response - a Transdiagnostic, Translational Approach.pdf"
$ echo -e 'A Review of the Neurobiological Basis of Trauma-Related Dissociation and Its Relation to Cannabinoid- and Opioid-Mediated Stress Response - a Transdiagnostic, Translational Approach.pdf'
| base64 | wc -c
252
Hum. Unfortunately, even in base64, this is very close to the max limit. Given that crypt probably add some metadata, you might be out of luck.
It uploads fine, but when I download it, the filename is cut to: "0ipapumidium985igg8rd2t29hi3lr2db91ub0hr8hrq3r6b0ghfe1n8nr60oiks3s3t46b20rhvu0fdprmpfc8na9i45q3dpdto37fus1ufhnos6osofjma42ajl1569bsrh0qu67kphru127hpm6vdlpge5livp9aam9s40nsgavpubk61c11nhsl1c8u4j8vddun30k9vqgtljs91di3tt.txt"
So this seems to be the issue.
I created a e2 account and set-up file encryption (1024) and directory encryption (1024). I tried to upload the file and get the same error
2023-03-21 16:53:07 ERROR : sdfjsdfsdkljsiodgjsdfigjjdfilgjdfg/A Review of the Neurobiological Basis of Trauma-Related Dissociation and Its Relation to Cannabinoid- and Opioid-Mediated Stress Response - a Transdiagnostic, Translational Approach.pdf: Failed to copy: XMinioInvalidObjectName: Object name contains unsupported characters.
status code: 400
Tried again with a long string
2023-03-21 16:55:18 ERROR : sdfjsdfsdkljsiodgjsdfigjjdfilgjdfg/ther8ty3486348ty8etn8nvt89eyt8y8934y68vtty8ny6348ny634n6ye48yternrnhyvt3486y34896348976w48enybhtndbgdfjt46734n6384y6b84nt84yat834y68b4y893y76b894tge7twenybt8e: Failed to copy: XMinioInvalidObjectName: Object name contains unsupported characters.
I changed file name to 128 bit encryption but same error.
Of course their user interface allows longer file lengths, so must be their API available to rclone names.
That's all I have to say: just thought it was interesting this limit issue.
yeah, this probably requires a change in rclone to handle the scenario a bit differently where the filename after encryption is exceeding the limit of 254 characters.