Can't create new directory on Google Drive remote

What is the problem you are having with rclone?

rclone is unable to create directories on a Google Drive Remote. Uploading files works just fine, but folder creation is not possible.

When mounted and executing mkdir an IO error occurs (no more information, but I suspect it might be the same). Copying files itself is no problem at all.

What is your rclone version (output from rclone version)

rclone v1.52.1
- os/arch: linux/amd64
- go version: go1.14.4

and

rclone v1.52.1
- os/arch: windows/amd64
- go version: go1.14.4

and the latest (linux) beta

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

linux/amd64

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 moveto phoning_home/ gDrive:Games/phoning_home/ -P

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)

2020/06/15 12:58:45 DEBUG : rclone: Version "v1.52.1" starting with parameters ["rclone" "moveto" "phoning_home/" "gdrive:Games/phoning_home" "-P" "-vv"]
2020/06/15 12:58:45 DEBUG : Using config file from "/home/moritz/.config/rclone/rclone.conf"
2020/06/15 12:58:45 DEBUG : fs cache: renaming cache item "phoning_home/" to be canonical "/home/moritz/GOG/phoning_home"
2020-06-15 12:58:47 DEBUG : Google drive root 'Games/phoning_home': Waiting for checks to finish
2020-06-15 12:58:47 DEBUG : Google drive root 'Games/phoning_home': Waiting for transfers to finish
2020-06-15 12:58:47 ERROR : setup_phoning_home_1.4.1_(21995)-1.bin: Failed to copy: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:47 ERROR : setup_phoning_home_1.4.1_(21995)-1.bin: Not deleting source as copy failed: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:49 ERROR : patches/patch_phoning_home_gog-5_(11847)_to_gog-6_(12925).exe: Failed to copy: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:49 ERROR : patches/patch_phoning_home_gog-5_(11847)_to_gog-6_(12925).exe: Not deleting source as copy failed: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:49 ERROR : patches/patch_phoning_home_gog-6_(12925)_to_gog-7_(15031).exe: Failed to copy: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:49 ERROR : patches/patch_phoning_home_gog-6_(12925)_to_gog-7_(15031).exe: Not deleting source as copy failed: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:50 ERROR : patches/patch_phoning_home_gog-7_(15031)_to_gog-8_(18568).exe: Failed to copy: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:50 ERROR : patches/patch_phoning_home_gog-7_(15031)_to_gog-8_(18568).exe: Not deleting source as copy failed: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:50 ERROR : patches/patch_phoning_home_gog-8_(18568)_to_1.4.1_(21995).exe: Failed to copy: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:50 ERROR : patches/patch_phoning_home_gog-8_(18568)_to_1.4.1_(21995).exe: Not deleting source as copy failed: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:51 ERROR : dlc/phoning_home_ost/extras/phoning_home_original_soundtrack.zip: Failed to copy: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:51 ERROR : dlc/phoning_home_ost/extras/phoning_home_original_soundtrack.zip: Not deleting source as copy failed: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:51 INFO  : There was nothing to transfer
2020-06-15 12:58:51 ERROR : Attempt 1/3 failed with 6 errors and: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:51 DEBUG : Google drive root 'Games/phoning_home': Waiting for checks to finish
2020-06-15 12:58:51 DEBUG : Google drive root 'Games/phoning_home': Waiting for transfers to finish
2020-06-15 12:58:52 ERROR : setup_phoning_home_1.4.1_(21995)-1.bin: Failed to copy: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:52 ERROR : setup_phoning_home_1.4.1_(21995)-1.bin: Not deleting source as copy failed: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:53 ERROR : patches/patch_phoning_home_gog-6_(12925)_to_gog-7_(15031).exe: Failed to copy: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:53 ERROR : patches/patch_phoning_home_gog-6_(12925)_to_gog-7_(15031).exe: Not deleting source as copy failed: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:54 ERROR : patches/patch_phoning_home_gog-5_(11847)_to_gog-6_(12925).exe: Failed to copy: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:54 ERROR : patches/patch_phoning_home_gog-5_(11847)_to_gog-6_(12925).exe: Not deleting source as copy failed: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:54 ERROR : patches/patch_phoning_home_gog-7_(15031)_to_gog-8_(18568).exe: Failed to copy: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:54 ERROR : patches/patch_phoning_home_gog-7_(15031)_to_gog-8_(18568).exe: Not deleting source as copy failed: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:55 ERROR : patches/patch_phoning_home_gog-8_(18568)_to_1.4.1_(21995).exe: Failed to copy: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:55 ERROR : patches/patch_phoning_home_gog-8_(18568)_to_1.4.1_(21995).exe: Not deleting source as copy failed: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:56 ERROR : dlc/phoning_home_ost/extras/phoning_home_original_soundtrack.zip: Failed to copy: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:56 ERROR : dlc/phoning_home_ost/extras/phoning_home_original_soundtrack.zip: Not deleting source as copy failed: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:56 INFO  : There was nothing to transfer
2020-06-15 12:58:56 ERROR : Attempt 2/3 failed with 6 errors and: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:56 DEBUG : Google drive root 'Games/phoning_home': Waiting for checks to finish
2020-06-15 12:58:56 DEBUG : Google drive root 'Games/phoning_home': Waiting for transfers to finish
2020-06-15 12:58:57 ERROR : setup_phoning_home_1.4.1_(21995)-1.bin: Failed to copy: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:57 ERROR : setup_phoning_home_1.4.1_(21995)-1.bin: Not deleting source as copy failed: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:58 ERROR : patches/patch_phoning_home_gog-5_(11847)_to_gog-6_(12925).exe: Failed to copy: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:58 ERROR : patches/patch_phoning_home_gog-5_(11847)_to_gog-6_(12925).exe: Not deleting source as copy failed: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:59 ERROR : patches/patch_phoning_home_gog-6_(12925)_to_gog-7_(15031).exe: Failed to copy: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:59 ERROR : patches/patch_phoning_home_gog-6_(12925)_to_gog-7_(15031).exe: Not deleting source as copy failed: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:59 ERROR : patches/patch_phoning_home_gog-7_(15031)_to_gog-8_(18568).exe: Failed to copy: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:58:59 ERROR : patches/patch_phoning_home_gog-7_(15031)_to_gog-8_(18568).exe: Not deleting source as copy failed: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:59:00 ERROR : patches/patch_phoning_home_gog-8_(18568)_to_1.4.1_(21995).exe: Failed to copy: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:59:00 ERROR : patches/patch_phoning_home_gog-8_(18568)_to_1.4.1_(21995).exe: Not deleting source as copy failed: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:59:00 ERROR : dlc/phoning_home_ost/extras/phoning_home_original_soundtrack.zip: Failed to copy: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:59:00 ERROR : dlc/phoning_home_ost/extras/phoning_home_original_soundtrack.zip: Not deleting source as copy failed: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
2020-06-15 12:59:00 INFO  : There was nothing to transfer
2020-06-15 12:59:00 ERROR : Attempt 3/3 failed with 6 errors and: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound
Transferred:   	        0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors:                 6 (retrying may help)
Checks:                18 / 18, 100%
Elapsed time:        12.7s
2020/06/15 12:59:00 INFO  : 
Transferred:   	        0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors:                 6 (retrying may help)
Checks:                18 / 18, 100%
Elapsed time:        12.7s

2020/06/15 12:59:00 DEBUG : 6 go routines active
2020/06/15 12:59:00 Failed to moveto with 6 errors: last error was: failed to make directory: googleapi: Error 404: File not found: 1GNmtOHLo0ulFlCP-K-Vn9fzbzUGCRdN6	1XH20MMyz9-k5cH4cTETjlt-UqGS8jv8l., notFound

what is the name of the remote
gdrive:
or
gDrive:

do a
rclone listremotes

Its gdrive: on linux and gDrive: on windows. the command was taken from windows, while the log was on my linux maschine.

on both maschines its the only remote

you can test using --dry-run

can do do a
rclone mkdir gdrive:testfolder

apparently the issue is with the first directory in the hierarchy for example: gdrive:Games/phoning_home/dlc

Games – is a is a symlink to a directory deep in the structure
phoning_home – does NOT yet exist
dlc – subdirectory

when phoning_home is created on the WebUI of drive it successfully creates dlc when moving phoning_home

rclone mkdir gdrive:test works just fine, while rclone mkdir gdrive:Games/test does not work. So my guess would be that the issue is with the symlink

can confirm now. when using the entire path without symlink it works.

working: mkdir gdrive:Backups/Services/Games/GOG/test
not working: mkdir gdrive:Games/test

when Games -> Backups/Services/Games/GOG

you can search https://rclone.org/flags/ for symlink

I did and -L does not help either

You mean it is a Drive shortcut rather than a symlink I think?

Shortcuts are a recent addition to rclone (and to drive!)

I managed to replicate the problem and come up with a fix - can you try this?

https://beta.rclone.org/branch/v1.52.1-090-g5e6f4ab2-fix-drive-mkdir-beta/ (uploaded in 15-30 mins)

Works like a charm. Thanks a lot.

I'm sorry if my terminology regarding Google Drive was off

Thanks for testing.

I've merged this to master now which means it will be in the latest beta in 15-30 mins and released in v1.52.2

No worries, I knew what you meant, I just wanted to clarify it for the other readers of this thread :slight_smile:

1 Like