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
{{ message }}
Repository navigation
google drive: directory not found when its name has accent #1675
What is your rclone version (eg output from rclone -V)
rclone v1.37-127-ga91448c8β
os/arch: linux/amd64
go version: go1.9
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Kali Linux 64 bit
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp)
rclone lsd lazaro:GranCursos\ PRÓ
A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)
2017/09/12 10:06:25 DEBUG : rclone: Version "v1.37-127-ga91448c8β" starting with parameters ["rclone" "lsd" "lazaro:GranCursos PRÓ" "-vv"]
2017/09/12 10:06:27 INFO : Google drive root 'GranCursos PRÓ': Modify window is 1ms
2017/09/12 10:06:27 ERROR : : error listing: directory not found
2017/09/12 10:06:27 Failed to lsd: directory not found
2017/09/12 10:07:06 DEBUG : rclone: Version "v1.37-127-ga91448c8β" starting with parameters ["rclone" "-vv" "lsd" "lazaro:"]
2017/09/12 10:07:06 INFO : Google drive root '': Modify window is 1ms
-1 2017-09-11 21:46:00 -1 GranCursos PRÓ
2017/09/12 10:07:07 DEBUG : Go routines at exit 4
2017/09/12 10:07:07 DEBUG : rclone: Version "v1.37-127-ga91448c8β" finishing with parameters ["rclone" "-vv" "lsd" "lazaro:"]
The problem is the accent in directory name. If I take if off, I can list it.
Besides the files and folders are there, this bug are generating lots of duplicate folders and files and left a mess behind it. On some cases it is almost impossible to sync because of lots of unnecessary file transfers that are already on DRIVE.
It appears that rclone dedup can fix the mess but can take a lot to finish and the mess is made again on the syncs to come.
Please, let me know if more information is needed.
I will provide here some more information about this error in an hope that can help in some way.
It fast become a major problem because, for some folders, it is almost impossible to sync. Rclone will transfer lots of big folders (which has upper case accents characters on it's name) instead of just a few changed files.
My new tests include the --backup-dir option and showed the following details:
1 - Just folders are affected. Files worked as expected, even if it has upper case accent characters on name.
Example: rclone sync Contrução works like a charm ( --backup-dir=TST_UPPER_ACCENT_BAK )
2 - rclone ls can not list the whole path but can correctly list it's parents
Example: rclone sync CONSTRUÇÃO creates a new folder every sync and, naturally, not send older files to the --backup_dir. After 3 syncs, there are 3 folders CONSTRUÇÃO !
Alas this is a problem with Google drive - see the issue I linked above. Some kind of workaround may be possible though, however I'm hoping Google will fix the issue instead!
Activity
ncw commentedon Sep 12, 2017
I can replicate this
Debugging further...
Gives this, which means that drive isn't finding the entry when rclone searches for it.
I tried the equivalent query in the API explorer with no results also
Which makes me wonder if this is a bug in drive itself...
If I try with a very similar (encoding wise) unicode character it works fine
Which again points to a bug in drive. I found a possibly related stack overflow question.
[-]Directory not found when its name has accent[/-][+]google drive: directory not found when its name has accent[/+]ncw commentedon Sep 13, 2017
A bit more searching found that this is a known issue in google drive which was acknowledged on 18th August 2017, so hopefully they will fix it soon.
robjlg commentedon Sep 21, 2017
Hi, I also reached this error. My tests showed that only names with upper case accents character has this error. Accents lower case character are OK!
CONVENÇÕES == ERROR
Convenções == OK !
Ç == ERROR
ç == OK !
rclone can sync or copy folders with upper case accents characters but can not see it after copy resulting in duplicate folders names on next sync.
Important to note that gdrive ( https://github.com/prasmussen/gdrive ) can find those folders but drive (https://github.com/odeke-em/drive ) can not.
Besides the files and folders are there, this bug are generating lots of duplicate folders and files and left a mess behind it. On some cases it is almost impossible to sync because of lots of unnecessary file transfers that are already on DRIVE.
It appears that rclone dedup can fix the mess but can take a lot to finish and the mess is made again on the syncs to come.
Please, let me know if more information is needed.
Thank you
Roberto
rclone: Version "v1.37" s
rclone: Version "v1.37-157-g5a3a56abβ"
gdrive: 2.1.0
Golang: go1.6
OS/Arch: linux/amd64
drive version: 0.3.9.1
Commit Hash: '1cb01ece65b6d9d39060da1ecf2a440a90b24954'
Go Version: go1.8.3
OS: linux/amd64
BuildTime: 2017-05-29 14:38:38.77322112 -0300 BRT
LINUX CENTOS
robjlg commentedon Sep 21, 2017
I do not know how rclone and gdrive implement the folder / file search but, maybe, the gdrive's strategy could be used as a workaround for this bug
robjlg commentedon Sep 28, 2017
Hi,
I will provide here some more information about this error in an hope that can help in some way.
It fast become a major problem because, for some folders, it is almost impossible to sync. Rclone will transfer lots of big folders (which has upper case accents characters on it's name) instead of just a few changed files.
My new tests include the --backup-dir option and showed the following details:
1 - Just folders are affected. Files worked as expected, even if it has upper case accent characters on name.
Example: rclone sync Contrução works like a charm ( --backup-dir=TST_UPPER_ACCENT_BAK )
2 - rclone ls can not list the whole path but can correctly list it's parents
Example: rclone sync CONSTRUÇÃO creates a new folder every sync and, naturally, not send older files to the --backup_dir. After 3 syncs, there are 3 folders CONSTRUÇÃO !
3 - rclone dedupe did not work as it find 3 identical files which, at really was not
Example: rclone -vvv dedupe --dedupe-mode newest GDRV_SYNC:/MHA_RSYNC/TST_UPPER_ACCENT
Any more info, please let me know
Thank you
Roberto
ncw commentedon Sep 29, 2017
Alas this is a problem with Google drive - see the issue I linked above. Some kind of workaround may be possible though, however I'm hoping Google will fix the issue instead!
ncw commentedon Oct 9, 2017
I'm going to re-open this so other users can track the progress
B4dM4n commentedon Jan 29, 2018
Once #2007 is merged i propose the commit referenced above to work around this issue as there is no update from Google until now.
8 remaining items
B4dM4n commentedon Feb 27, 2018
I will close this issue, as the workaround merged.
Once Google fixes issue 64468406 the workaround can be removed.
oshliaer commentedon Jun 8, 2018
The issue 64468406 is marked as fixed
ncw commentedon Jun 8, 2018
What do you think @B4dM4n - remove this work-around now?
B4dM4n commentedon Jun 8, 2018
Unfortunately not completely.
Running the query
name = 'TestÄ'in a folder containing the entriesTestäandTestÄyields the following result:{ "kind": "drive#fileList", "incompleteSearch": false, "files": [ { "kind": "drive#file", "id": "1-Lnf__NarPOxWUASeTlqP-jBo3D0Gn08", "name": "TestÄ", "mimeType": "application/vnd.google-apps.folder" }, { "kind": "drive#file", "id": "1eJt_Ojk9rs1nZKgtuZZ0LvP0c1aOhs4k", "name": "Testä", "mimeType": "application/vnd.google-apps.folder" } ] }Before the fix
name = 'TestÄ'would return nothing, now it returns multiple entries.We can change the
containsoperator in drive.go#L297 to=, but the cleanup code in drive.go#L345 needs to stay.ncw commentedon Jun 8, 2018
It seems from a quick bit of testing that the
=operator is case insensitive (which no-one ever noticed!) - that doesn't seem to be documented.So we can remove that
containswhich I guess may make things more efficient.drive: remove part of workaround for #1675
ncw commentedon Jun 10, 2018
I've changed the
containsto=in 4d793b8vlakoff commentedon Aug 15, 2018
As I stated on the Google ticket, there's still trouble with folders meeting these criterias:
foo'bar)B4dM4n commentedon Aug 15, 2018
This issue has been fixed in rclone since v1.40.
If you still have problems with Google Drive, please open a new issue with more error details.
Inambe commentedon Oct 11, 2020
For me it was that I was running
rclone ls google-driveand notrclone ls google-drive:/drive: use contains for name matching in list
drive: remove part of workaround for rclone#1675