Google Drive sync "no such file or directory", after switching from Mac OS to Chrome OS

What is the problem you are having with rclone?

I'm getting many "no such file or directory" errors.
It was previously running without errors on a Macbook, but now I'm running the Debian version on a Chromebook (some destination directory on an external HDD). Even if rclone is finding some kind of errors, I'm not sure why it can't just resolve them itself by copying a new copy of those troublesome files/folders.

Run the command 'rclone version' and share the full output of the command.

rclone v1.57.0
- os/version: debian 11.2 (64 bit)
- os/kernel: 5.10.92-14532-g179c52887ab5 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.17.2
- go/linking: static
- go/tags: none

Which cloud storage system are you using?

Google Drive

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

rclone sync GDaccount: /mnt/chromeos/removable/HDD2021/account_drive --max-size 100M -P

The rclone config contents with secrets removed.

[GDaccount]
type = drive
scope = drive.readonly
export_formats = ods,odt,odp

A log from the command with the -vv flag

2022-02-28 15:15:18 DEBUG : pacer: Reducing sleep to 155.204625ms
2022-02-28 15:15:18 DEBUG : Local file system at /mnt/chromeos/removable/HDD2021/account_drive: File to upload is small (11933 bytes), uploading instead of streaming
2022-02-28 15:15:18 ERROR : Proyecto/Archive/2014/Case: Fluff/Cast.odt: Failed to copy: mkdir /mnt/chromeos/removable/HDD2021/account_drive/Proyecto/Archive/2014/Case: Fluff: no such file or directory
2022-02-28 15:15:18 DEBUG : Proyecto/Archive/2014/Case: Fluff/Cast.odt: Updating size of doc after download to 11933
2022-02-28 15:15:18 ERROR : Proyecto/Archive/2014/Case: Fluff/Cast.odt: Failed to copy: mkdir /mnt/chromeos/removable/HDD2021/account_drive/Proyecto/Archive/2014/Case: Fluff: no such file or directory
2022-02-28 15:15:18 DEBUG : pacer: Reducing sleep to 50.499875ms
2022-02-28 15:15:18 DEBUG : pacer: Reducing sleep to 133.020465ms
2022-02-28 15:15:19 DEBUG : pacer: Reducing sleep to 28.981729ms
2022-02-28 15:15:19 DEBUG : Local file system at /mnt/chromeos/removable/HDD2021/account_drive: File to upload is small (10053 bytes), uploading instead of streaming
2022-02-28 15:15:19 DEBUG : pacer: Reducing sleep to 108.959282ms
2022-02-28 15:15:19 ERROR : Proyecto/Archive/2014/Case: Fluff/Copy of Shooting Schedule.ods: Failed to copy: mkdir /mnt/chromeos/removable/HDD2021/account_drive/Proyecto/Archive/2014/Case: Fluff: no such file or directory
2022-02-28 15:15:19 DEBUG : Proyecto/Archive/2014/Case: Fluff/Copy of Shooting Schedule.ods: Updating size of doc after download to 10053
2022-02-28 15:15:19 ERROR : Proyecto/Archive/2014/Case: Fluff/Copy of Shooting Schedule.ods: Failed to copy: mkdir /mnt/chromeos/removable/HDD2021/account_drive/Proyecto/Archive/2014/Case: Fluff: no such file or directory
2022-02-28 15:15:19 DEBUG : pacer: Reducing sleep to 0s
2022-02-28 15:15:19 DEBUG : Proyecto/Archive/2016/Conductor of Earth/Exports/Archive/PicLoc2e_withScore.mov: Excluded
2022-02-28 15:15:19 DEBUG : Proyecto/Archive/2016/Conductor of Earth/Exports/Archive/PicLoc2dBADRM_withScore.mov: Excluded
2022-02-28 15:15:19 DEBUG : Proyecto/Archive/2016/Conductor of Earth/Exports/Archive/PicLoc2d_withScore.mov: Excluded
2022-02-28 15:15:19 DEBUG : Proyecto/Archive/2016/Conductor of Earth/Exports/Archive/PicLoc2c_withScore.mov: Excluded
2022-02-28 15:15:19 DEBUG : Proyecto/Archive/2016/Conductor of Earth/Exports/Archive/PicLoc2b_withScore.mov: Excluded
2022-02-28 15:15:19 DEBUG : Proyecto/Archive/2016/Conductor of Earth/Exports/Archive/PicLoc2a_withScore.mov: Excluded
2022-02-28 15:15:19 DEBUG : Proyecto/Archive/2016/Conductor of Earth/Exports/Archive/PicLoc2_withScore.mp4: Excluded
2022-02-28 15:15:19 DEBUG : Proyecto/Archive/2016/Conductor of Earth/Exports/Archive/PicLoc2_noScore.mp4: Excluded
2022-02-28 15:15:19 DEBUG : Proyecto/Archive/2016/Conductor of Earth/Exports/Archive/PicLoc2DRAFTD.mp4: Excluded
2022-02-28 15:15:19 DEBUG : Proyecto/Archive/2016/Conductor of Earth/Exports/Archive/PicLoc2DRAFTC.mp4: Excluded

Hope it's ok to only include an excerpt of the log. The rest looks just like above to me.

It looks like the files you are copying have : in them. These are fine on unix file systems - what filesystem is the external drive? Is it VFAT/Windows format?

If so you'll need to add

--local-encoding "Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightPeriod,InvalidUtf8,Dot"

To encode all the characters that aren't allowed on a VFAT disk.

Ah, gotcha. Well the drive is exFAT, but I was previously using an NTFS drive, and I copied everything over from there. So that may well have caused the issue?
I can have a go at that fix tomorrow. Thanks heaps for the help.

When you ran rclone on Windows it automatically puts that --local-encoding line in for you so it will have worked.

On linux, it doesn't though (as most linux file systems don't need it).

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