What is the problem you are having with rclone?
I'm using rclone to copy files from a Windows file server to users' Goole Drives.
Following the guide, I'm able to run lsf and query the folder structure of the users drives. Rclone is able to create the folder structure, but files are not being copied. The returned error is:
Failed to copy: googleapi: Error 403: The request is missing a valid API key., forbidden
The user accounts are suspended, and the users also do not have licenses, which I suspect may be why it isn't working but I would like confirmation that this is indeed the case.
Run the command 'rclone version' and share the full output of the command.
rclone v1.66.0
- os/version: Microsoft Windows Server 2012 R2 Standard (64 bit)
- os/kernel: 6.3.9600.21620 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.22.1
- go/linking: static
- go/tags: cmount
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 -vv --drive-impersonate user@domain.com copy f:\path\to\files\username gdrive:migration
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[gdrive]
type = drive
scope = drive
service_account_file = c:\users\me\desktop\rclone.json
team_drive =```
2024/06/12 00:39:12 DEBUG : rclone: Version "v1.66.0" starting with parameters [
"rclone" "-vv" "--drive-impersonate" "user@domain.com" "copy" "f:\\hp1
\\users\\user" "gdrive:migration"]
2024/06/12 00:39:12 DEBUG : Creating backend with remote "f:\\hp1\\users\\user"
2024/06/12 00:39:12 DEBUG : Using config file from "C:\\Users\\me\\AppData\
\Roaming\\rclone\\rclone.conf"
2024/06/12 00:39:12 DEBUG : fs cache: renaming cache item "f:\\hp1\\users\\user" to be canonical "//?/f:/hp1/users/user"
2024/06/12 00:39:12 DEBUG : Creating backend with remote "gdrive:migration"
2024/06/12 00:39:12 DEBUG : gdrive: detected overridden config - adding "{0_XpO}
" suffix to name
2024/06/12 00:39:12 DEBUG : Google drive root 'migration': 'root_folder_id = 0AE
xEyafUJGG_redacted' - save this in the config to speed up startup
2024/06/12 00:39:12 DEBUG : fs cache: renaming cache item "gdrive:migration" to
be canonical "gdrive{0_XpO}:migration"
2024/06/12 00:39:12 DEBUG : ~$MEPRO HV SCHEDULER SOP.docx: Need to transfer - Fi
le not found at Destination
2024/06/12 00:39:12 DEBUG : ~$USE STATUS ROUGH.docx: Need to transfer - File not
found at Destination
2024/06/12 00:39:12 DEBUG : COMMUNITY MAPS: Directory modification time the same
(differ by -248.4µs, within tolerance 1ms)
2024/06/12 00:39:12 DEBUG : ELECTRIC FLOOR PLANS: Directory modification time th
e same (differ by -613.3µs, within tolerance 1ms)
2024/06/12 00:39:12 DEBUG : HIGH VOLTAGE FORMS: Directory modification time the
same (differ by -657.3µs, within tolerance 1ms)
2024/06/12 00:39:12 DEBUG : HOT CHECKS: Directory modification time the same (di
ffer by -564.6µs, within tolerance 1ms)
2024/06/12 00:39:12 DEBUG : IBS LIGHTING: Directory modification time the same (
differ by -564.6µs, within tolerance 1ms)
2024/06/12 00:39:12 DEBUG : LABELS: Directory modification time the same (differ
by -905µs, within tolerance 1ms)
2024/06/12 00:39:12 DEBUG : LEE LIGHTING: Directory modification time the same (
differ by -23.1µs, within tolerance 1ms)
2024/06/12 00:39:12 DEBUG : LOT MAPS: Directory modification time the same (diff
er by -583.5µs, within tolerance 1ms)
2024/06/12 00:39:12 DEBUG : Permits: Directory modification time the same (diffe
r by -469.5µs, within tolerance 1ms)
2024/06/12 00:39:12 DEBUG : SUBPAY: Directory modification time the same (differ
by -760.1µs, within tolerance 1ms)
2024/06/12 00:39:12 DEBUG : TPOLES: Directory modification time the same (differ
by -137.8µs, within tolerance 1ms)
2024/06/12 00:39:12 DEBUG : HIGH VOLTAGE FORMS/~$IM WALKSHEET.docx: Need to tran
sfer - File not found at Destination
2024/06/12 00:39:12 DEBUG : LABELS/~$GFCI.docx: Need to transfer - File not foun
d at Destination
2024/06/12 00:39:12 DEBUG : LABELS/~$cardos labels.docx: Need to transfer - File
not found at Destination
2024/06/12 00:39:12 DEBUG : LEE LIGHTING/New folder (2): Directory modification
time the same (differ by -469.5µs, within tolerance 1ms)
2024/06/12 00:39:12 DEBUG : Permits/Accela Citizen Access_files: Directory modif
ication time the same (differ by -520µs, within tolerance 1ms)
2024/06/12 00:39:12 DEBUG : SUBPAY/~$01007-1012.xlsx: Need to transfer - File no
t found at Destination
2024/06/12 00:39:12 DEBUG : SUBPAY/~$1007-1012.xlsx: Need to transfer - File not
found at Destination
2024/06/12 00:39:12 DEBUG : Google drive root 'migration': Waiting for checks to
finish
2024/06/12 00:39:12 DEBUG : Google drive root 'migration': Waiting for transfers
to finish
2024/06/12 00:39:13 ERROR : ~$MEPRO HV SCHEDULER SOP.docx: Failed to copy: googl
eapi: Error 403: The request is missing a valid API key., forbidden
2024/06/12 00:39:13 ERROR : LABELS/~$GFCI.docx: Failed to copy: googleapi: Error
403: The request is missing a valid API key., forbidden
2024/06/12 00:39:13 ERROR : HIGH VOLTAGE FORMS/~$IM WALKSHEET.docx: Failed to co
py: googleapi: Error 403: The request is missing a valid API key., forbidden
2024/06/12 00:39:13 ERROR : ~$USE STATUS ROUGH.docx: Failed to copy: googleapi:
Error 403: The request is missing a valid API key., forbidden
2024/06/12 00:39:13 ERROR : LABELS/~$cardos labels.docx: Failed to copy: googlea
pi: Error 403: The request is missing a valid API key., forbidden
2024/06/12 00:39:13 ERROR : SUBPAY/~$01007-1012.xlsx: Failed to copy: googleapi:
Error 403: The request is missing a valid API key., forbidden
2024/06/12 00:39:13 ERROR : SUBPAY/~$1007-1012.xlsx: Failed to copy: googleapi:
Error 403: The request is missing a valid API key., forbidden
2024/06/12 00:39:13 ERROR : Attempt 1/3 failed with 7 errors and: googleapi: Err
or 403: The request is missing a valid API key., forbidden
2024/06/12 00:39:13 DEBUG : ~$MEPRO HV SCHEDULER SOP.docx: Need to transfer - Fi
le not found at Destination
2024/06/12 00:39:13 DEBUG : ~$USE STATUS ROUGH.docx: Need to transfer - File not
found at Destination
2024/06/12 00:39:13 DEBUG : COMMUNITY MAPS: Directory modification time the same
(differ by -248.4µs, within tolerance 1ms)
2024/06/12 00:39:13 DEBUG : ELECTRIC FLOOR PLANS: Directory modification time th
e same (differ by -613.3µs, within tolerance 1ms)
2024/06/12 00:39:13 DEBUG : HIGH VOLTAGE FORMS: Directory modification time the
same (differ by -657.3µs, within tolerance 1ms)
2024/06/12 00:39:13 DEBUG : HOT CHECKS: Directory modification time the same (di
ffer by -564.6µs, within tolerance 1ms)
2024/06/12 00:39:13 DEBUG : IBS LIGHTING: Directory modification time the same (
differ by -564.6µs, within tolerance 1ms)
2024/06/12 00:39:13 DEBUG : LABELS: Directory modification time the same (differ
by -905µs, within tolerance 1ms)
2024/06/12 00:39:13 DEBUG : LEE LIGHTING: Directory modification time the same (
differ by -23.1µs, within tolerance 1ms)
2024/06/12 00:39:13 DEBUG : LOT MAPS: Directory modification time the same (diff
er by -583.5µs, within tolerance 1ms)
2024/06/12 00:39:13 DEBUG : Permits: Directory modification time the same (diffe
r by -469.5µs, within tolerance 1ms)
2024/06/12 00:39:13 DEBUG : SUBPAY: Directory modification time the same (differ
by -760.1µs, within tolerance 1ms)
2024/06/12 00:39:13 DEBUG : TPOLES: Directory modification time the same (differ
by -137.8µs, within tolerance 1ms)
2024/06/12 00:39:13 DEBUG : LABELS/~$GFCI.docx: Need to transfer - File not foun
d at Destination
2024/06/12 00:39:13 DEBUG : LABELS/~$cardos labels.docx: Need to transfer - File
not found at Destination
2024/06/12 00:39:13 DEBUG : LEE LIGHTING/New folder (2): Directory modification
time the same (differ by -469.5µs, within tolerance 1ms)
2024/06/12 00:39:13 DEBUG : HIGH VOLTAGE FORMS/~$IM WALKSHEET.docx: Need to tran
sfer - File not found at Destination
2024/06/12 00:39:13 DEBUG : SUBPAY/~$01007-1012.xlsx: Need to transfer - File no
t found at Destination
2024/06/12 00:39:13 DEBUG : SUBPAY/~$1007-1012.xlsx: Need to transfer - File not
found at Destination
2024/06/12 00:39:13 DEBUG : Permits/Accela Citizen Access_files: Directory modif
ication time the same (differ by -520µs, within tolerance 1ms)
2024/06/12 00:39:14 ERROR : ~$MEPRO HV SCHEDULER SOP.docx: Failed to copy: googl
eapi: Error 403: The request is missing a valid API key., forbidden
2024/06/12 00:39:14 DEBUG : Google drive root 'migration': Waiting for checks to
finish
2024/06/12 00:39:14 DEBUG : Google drive root 'migration': Waiting for transfers
to finish
2024/06/12 00:39:14 ERROR : ~$USE STATUS ROUGH.docx: Failed to copy: googleapi:
Error 403: The request is missing a valid API key., forbidden
2024/06/12 00:39:14 ERROR : LABELS/~$GFCI.docx: Failed to copy: googleapi: Error
403: The request is missing a valid API key., forbidden
2024/06/12 00:39:14 ERROR : LABELS/~$cardos labels.docx: Failed to copy: googlea
pi: Error 403: The request is missing a valid API key., forbidden
2024/06/12 00:39:14 ERROR : HIGH VOLTAGE FORMS/~$IM WALKSHEET.docx: Failed to co
py: googleapi: Error 403: The request is missing a valid API key., forbidden
2024/06/12 00:39:14 ERROR : SUBPAY/~$01007-1012.xlsx: Failed to copy: googleapi:
Error 403: The request is missing a valid API key., forbidden
2024/06/12 00:39:14 ERROR : SUBPAY/~$1007-1012.xlsx: Failed to copy: googleapi:
Error 403: The request is missing a valid API key., forbidden
2024/06/12 00:39:14 ERROR : Attempt 2/3 failed with 7 errors and: googleapi: Err
or 403: The request is missing a valid API key., forbidden
2024/06/12 00:39:14 DEBUG : ~$MEPRO HV SCHEDULER SOP.docx: Need to transfer - Fi
le not found at Destination
2024/06/12 00:39:14 DEBUG : ~$USE STATUS ROUGH.docx: Need to transfer - File not
found at Destination
2024/06/12 00:39:14 DEBUG : COMMUNITY MAPS: Directory modification time the same
(differ by -248.4µs, within tolerance 1ms)
2024/06/12 00:39:14 DEBUG : ELECTRIC FLOOR PLANS: Directory modification time th
e same (differ by -613.3µs, within tolerance 1ms)
2024/06/12 00:39:14 DEBUG : HIGH VOLTAGE FORMS: Directory modification time the
same (differ by -657.3µs, within tolerance 1ms)
2024/06/12 00:39:14 DEBUG : HOT CHECKS: Directory modification time the same (di
ffer by -564.6µs, within tolerance 1ms)
2024/06/12 00:39:14 DEBUG : IBS LIGHTING: Directory modification time the same (
differ by -564.6µs, within tolerance 1ms)
2024/06/12 00:39:14 DEBUG : LABELS: Directory modification time the same (differ
by -905µs, within tolerance 1ms)
2024/06/12 00:39:14 DEBUG : LEE LIGHTING: Directory modification time the same (
differ by -23.1µs, within tolerance 1ms)
2024/06/12 00:39:14 DEBUG : LOT MAPS: Directory modification time the same (diff
er by -583.5µs, within tolerance 1ms)
2024/06/12 00:39:14 DEBUG : Permits: Directory modification time the same (diffe
r by -469.5µs, within tolerance 1ms)
2024/06/12 00:39:14 DEBUG : SUBPAY: Directory modification time the same (differ
by -760.1µs, within tolerance 1ms)
2024/06/12 00:39:14 DEBUG : TPOLES: Directory modification time the same (differ
by -137.8µs, within tolerance 1ms)
2024/06/12 00:39:14 DEBUG : HIGH VOLTAGE FORMS/~$IM WALKSHEET.docx: Need to tran
sfer - File not found at Destination
2024/06/12 00:39:14 DEBUG : LABELS/~$GFCI.docx: Need to transfer - File not foun
d at Destination
2024/06/12 00:39:14 DEBUG : LABELS/~$cardos labels.docx: Need to transfer - File
not found at Destination
2024/06/12 00:39:14 DEBUG : LEE LIGHTING/New folder (2): Directory modification
time the same (differ by -469.5µs, within tolerance 1ms)
2024/06/12 00:39:14 DEBUG : Permits/Accela Citizen Access_files: Directory modif
ication time the same (differ by -520µs, within tolerance 1ms)
2024/06/12 00:39:14 DEBUG : SUBPAY/~$01007-1012.xlsx: Need to transfer - File no
t found at Destination
2024/06/12 00:39:14 DEBUG : SUBPAY/~$1007-1012.xlsx: Need to transfer - File not
found at Destination
2024/06/12 00:39:14 DEBUG : Google drive root 'migration': Waiting for checks to
finish
2024/06/12 00:39:14 DEBUG : Google drive root 'migration': Waiting for transfers
to finish
2024/06/12 00:39:15 ERROR : ~$MEPRO HV SCHEDULER SOP.docx: Failed to copy: googl
eapi: Error 403: The request is missing a valid API key., forbidden
2024/06/12 00:39:15 ERROR : ~$USE STATUS ROUGH.docx: Failed to copy: googleapi:
Error 403: The request is missing a valid API key., forbidden
2024/06/12 00:39:15 ERROR : LABELS/~$GFCI.docx: Failed to copy: googleapi: Error
403: The request is missing a valid API key., forbidden
2024/06/12 00:39:15 ERROR : HIGH VOLTAGE FORMS/~$IM WALKSHEET.docx: Failed to co
py: googleapi: Error 403: The request is missing a valid API key., forbidden
2024/06/12 00:39:15 ERROR : LABELS/~$cardos labels.docx: Failed to copy: googlea
pi: Error 403: The request is missing a valid API key., forbidden
2024/06/12 00:39:15 ERROR : SUBPAY/~$1007-1012.xlsx: Failed to copy: googleapi:
Error 403: The request is missing a valid API key., forbidden
2024/06/12 00:39:15 ERROR : SUBPAY/~$01007-1012.xlsx: Failed to copy: googleapi:
Error 403: The request is missing a valid API key., forbidden
2024/06/12 00:39:15 ERROR : Attempt 3/3 failed with 7 errors and: googleapi: Err
or 403: The request is missing a valid API key., forbidden
2024/06/12 00:39:15 INFO :
Transferred: 3.340 KiB / 3.340 KiB, 100%, 1.111 KiB/s, ETA 0s
Errors: 7 (retrying may help)
Elapsed time: 3.4s
2024/06/12 00:39:15 DEBUG : 33 go routines active
2024/06/12 00:39:15 Failed to copy with 7 errors: last error was: googleapi: Err
or 403: The request is missing a valid API key., forbidden