What is the problem you are having with rclone?
For almost 12 months we've been using rclone to copy backup files to google drive.
Yesterday the larger files started failing with:
Failed to copy: googleapi: got HTTP response code 429 with body: your computer or network may be sending automated queries (I'll add the full output below)
We have 8 files that get copied up each day
- 4 < 100 M
- 3 < 4 G
- 1 33G
The three largest (2.3G, 3.6G, 33G) are the ones failing (others succeed)
If I change --drive-chunk-size from 256M to 2G I can get the 2.3G, 3.6G ones up
The 33G one though always seems to fail slightly after about 2G has been uploaded, no matter what drive-chunk-size I use (the other two were failing about the same point before I changed to a bigger chunk)
I've tried different --drive-pacer-min-sleep and --drive-pacer-burst settings to see if I could get it to slow down thinking maybe that would help, It didn't
Tried different --drive-chunk-size sizes including really tiny ones, also didn't help
This is running from an AWS ec2 instance so I tried a different elastic IP, didn't help (also tired a different zone, didn't help)
Tried a different --drive-impersonate user@company.com.au, didn't help
The only thing I've found that works is splitting the file into 2G chunks, 'split -b 2G upload_test.gz "upload_test.gz.part", and uploading that way (this works with --drive-chunk-size 256M)
The only thing I haven't tried that I can think of is setting up a new service account, but nothing in the google console for the account suggests its limited in any way, generally we only reach a rate of 13 api requests per 100 seconds
If anyone has any thoughts I'm open to suggestions
Run the command 'rclone version' and share the full output of the command.
Been using
rclone v1.55.1
- os/type: linux
- os/arch: amd64
- go/version: go1.16.3
- go/linking: static
- go/tags: none
Also tried the latest
rclone v1.60.0
- os/version: centos 7.5.1804 (64 bit)
- os/kernel: 3.10.0-693.2.2.el7.x86_64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.19.2
- go/linking: static
- go/tags: none
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@company.com.au copy --error-on-no-transfer upload_test.gz sharedGDrive:test100 --log-file=rclone.105.txt --drive-chunk-size 256M
The rclone config contents with secrets removed.
[sharedGDrive]
type = drive
client_id = 1234-xxxxx.apps.googleusercontent.com
client_secret = 1a2b3c
scope = drive.file
root_folder_id = 0z9y9x-AbCd
service_account_file = /etc/cron.custom/sqdrive-43e2dba69310.json
A log from the command with the -vv
flag
2022/11/17 10:26:52 DEBUG : rclone: Version "v1.60.0" starting with parameters ["rclone" "-vv" "--drive-impersonate" "user@company.com.au" "copy" "--error-on-no-transfer" "upload_test.gz" "sharedGDrive:test100" "--log-file=rclone.105.txt" "--drive-chunk-size" "256M"]
2022/11/17 10:26:52 DEBUG : Creating backend with remote "upload_test.gz"
2022/11/17 10:26:52 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2022/11/17 10:26:52 DEBUG : fs cache: adding new entry for parent of "upload_test.gz", "/backups"
2022/11/17 10:26:52 DEBUG : Creating backend with remote "sharedGDrive:test100"
2022/11/17 10:26:52 DEBUG : sharedGDrive: detected overridden config - adding "{7tj_T}" suffix to name
2022/11/17 10:26:53 DEBUG : fs cache: renaming cache item "sharedGDrive:test100" to be canonical "sharedGDrive{7tj_T}:test100"
2022/11/17 10:26:53 DEBUG : upload_test.gz: Need to transfer - File not found at Destination
2022/11/17 10:26:56 DEBUG : upload_test.gz: Sending chunk 0 length 268435456
2022/11/17 10:27:07 DEBUG : upload_test.gz: Sending chunk 268435456 length 268435456
2022/11/17 10:27:18 DEBUG : upload_test.gz: Sending chunk 536870912 length 268435456
2022/11/17 10:27:29 DEBUG : upload_test.gz: Sending chunk 805306368 length 268435456
2022/11/17 10:27:40 DEBUG : upload_test.gz: Sending chunk 1073741824 length 268435456
2022/11/17 10:27:52 DEBUG : upload_test.gz: Sending chunk 1342177280 length 268435456
2022/11/17 10:27:53 INFO :
Transferred: 1.264 GiB / 68.079 GiB, 2%, 22.462 MiB/s, ETA 50m46s
Transferred: 0 / 1, 0%
Elapsed time: 1m1.2s
Transferring:
* upload_test.gz: 1% /68.079Gi, 22.461Mi/s, 50m46s
2022/11/17 10:28:03 DEBUG : upload_test.gz: Sending chunk 1610612736 length 268435456
2022/11/17 10:28:15 DEBUG : upload_test.gz: Sending chunk 1879048192 length 268435456
2022/11/17 10:28:26 DEBUG : upload_test.gz: Sending chunk 2147483648 length 268435456
2022/11/17 10:28:31 ERROR : upload_test.gz: Failed to copy: googleapi: got HTTP response code 429 with body: <html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>Sorry...</title><style> body { font-family: verdana, arial, sans-serif; background-color: #fff; color: #000; }</style></head><body><div><table><tr><td><b><font face=sans-serif size=10><font color=#4285f4>G</font><font color=#ea4335>o</font><font color=#fbbc05>o</font><font color=#4285f4>g</font><font color=#34a853>l</font><font color=#ea4335>e</font></font></b></td><td style="text-align: left; vertical-align: bottom; padding-bottom: 15px; width: 50%"><div style="border-bottom: 1px solid #dfdfdf;">Sorry...</div></td></tr></table></div><div style="margin-left: 4em;"><h1>We're sorry...</h1><p>... but your computer or network may be sending automated queries. To protect our users, we can't process your request right now.</p></div><div style="margin-left: 4em;">See <a href="https://support.google.com/websearch/answer/86640">Google Help</a> for more information.<br/><br/></div><div style="text-align: center; border-top: 1px solid #dfdfdf;"><a href="https://www.google.com">Google Home</a></div></body></html>
2022/11/17 10:28:31 ERROR : Attempt 1/3 failed with 1 errors and: googleapi: got HTTP response code 429 with body: <html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>Sorry...</title><style> body { font-family: verdana, arial, sans-serif; background-color: #fff; color: #000; }</style></head><body><div><table><tr><td><b><font face=sans-serif size=10><font color=#4285f4>G</font><font color=#ea4335>o</font><font color=#fbbc05>o</font><font color=#4285f4>g</font><font color=#34a853>l</font><font color=#ea4335>e</font></font></b></td><td style="text-align: left; vertical-align: bottom; padding-bottom: 15px; width: 50%"><div style="border-bottom: 1px solid #dfdfdf;">Sorry...</div></td></tr></table></div><div style="margin-left: 4em;"><h1>We're sorry...</h1><p>... but your computer or network may be sending automated queries. To protect our users, we can't process your request right now.</p></div><div style="margin-left: 4em;">See <a href="https://support.google.com/websearch/answer/86640">Google Help</a> for more information.<br/><br/></div><div style="text-align: center; border-top: 1px solid #dfdfdf;"><a href="https://www.google.com">Google Home</a></div></body></html>
2022/11/17 10:28:32 DEBUG : upload_test.gz: Need to transfer - File not found at Destination
2022/11/17 10:28:33 DEBUG : upload_test.gz: Sending chunk 0 length 268435456
2022/11/17 10:28:44 DEBUG : upload_test.gz: Sending chunk 268435456 length 268435456
2022/11/17 10:28:53 INFO :
Transferred: 2.463 GiB / 70.092 GiB, 4%, 20.791 MiB/s, ETA 55m30s
Transferred: 0 / 1, 0%
Elapsed time: 2m1.2s
Transferring:
* upload_test.gz: 0% /68.079Gi, 21.993Mi/s, 52m28s
2022/11/17 10:28:56 DEBUG : upload_test.gz: Sending chunk 536870912 length 268435456
2022/11/17 10:29:07 DEBUG : upload_test.gz: Sending chunk 805306368 length 268435456
2022/11/17 10:29:18 DEBUG : upload_test.gz: Sending chunk 1073741824 length 268435456
2022/11/17 10:29:29 DEBUG : upload_test.gz: Sending chunk 1342177280 length 268435456
2022/11/17 10:29:41 DEBUG : upload_test.gz: Sending chunk 1610612736 length 268435456
2022/11/17 10:29:52 DEBUG : upload_test.gz: Sending chunk 1879048192 length 268435456
2022/11/17 10:29:53 INFO :
Transferred: 3.775 GiB / 70.092 GiB, 5%, 21.912 MiB/s, ETA 51m39s
Transferred: 0 / 1, 0%
Elapsed time: 3m1.2s
Transferring:
* upload_test.gz: 2% /68.079Gi, 22.247Mi/s, 50m52s
2022/11/17 10:30:04 DEBUG : upload_test.gz: Sending chunk 2147483648 length 268435456
2022/11/17 10:30:15 DEBUG : upload_test.gz: Sending chunk 2415919104 length 268435456
2022/11/17 10:30:22 ERROR : upload_test.gz: Failed to copy: googleapi: got HTTP response code 429 with body: <html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>Sorry...</title><style> body { font-family: verdana, arial, sans-serif; background-color: #fff; color: #000; }</style></head><body><div><table><tr><td><b><font face=sans-serif size=10><font color=#4285f4>G</font><font color=#ea4335>o</font><font color=#fbbc05>o</font><font color=#4285f4>g</font><font color=#34a853>l</font><font color=#ea4335>e</font></font></b></td><td style="text-align: left; vertical-align: bottom; padding-bottom: 15px; width: 50%"><div style="border-bottom: 1px solid #dfdfdf;">Sorry...</div></td></tr></table></div><div style="margin-left: 4em;"><h1>We're sorry...</h1><p>... but your computer or network may be sending automated queries. To protect our users, we can't process your request right now.</p></div><div style="margin-left: 4em;">See <a href="https://support.google.com/websearch/answer/86640">Google Help</a> for more information.<br/><br/></div><div style="text-align: center; border-top: 1px solid #dfdfdf;"><a href="https://www.google.com">Google Home</a></div></body></html>
2022/11/17 10:30:22 ERROR : Attempt 2/3 failed with 1 errors and: googleapi: got HTTP response code 429 with body: <html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>Sorry...</title><style> body { font-family: verdana, arial, sans-serif; background-color: #fff; color: #000; }</style></head><body><div><table><tr><td><b><font face=sans-serif size=10><font color=#4285f4>G</font><font color=#ea4335>o</font><font color=#fbbc05>o</font><font color=#4285f4>g</font><font color=#34a853>l</font><font color=#ea4335>e</font></font></b></td><td style="text-align: left; vertical-align: bottom; padding-bottom: 15px; width: 50%"><div style="border-bottom: 1px solid #dfdfdf;">Sorry...</div></td></tr></table></div><div style="margin-left: 4em;"><h1>We're sorry...</h1><p>... but your computer or network may be sending automated queries. To protect our users, we can't process your request right now.</p></div><div style="margin-left: 4em;">See <a href="https://support.google.com/websearch/answer/86640">Google Help</a> for more information.<br/><br/></div><div style="text-align: center; border-top: 1px solid #dfdfdf;"><a href="https://www.google.com">Google Home</a></div></body></html>
2022/11/17 10:30:23 DEBUG : upload_test.gz: Need to transfer - File not found at Destination
2022/11/17 10:30:24 DEBUG : upload_test.gz: Sending chunk 0 length 268435456
2022/11/17 10:30:35 DEBUG : upload_test.gz: Sending chunk 268435456 length 268435456
2022/11/17 10:30:46 DEBUG : upload_test.gz: Sending chunk 536870912 length 268435456
2022/11/17 10:30:53 INFO :
Transferred: 4.930 GiB / 72.354 GiB, 7%, 21.912 MiB/s, ETA 52m30s
Transferred: 0 / 1, 0%
Elapsed time: 4m1.2s
Transferring:
* upload_test.gz: 0% /68.079Gi, 22.483Mi/s, 51m10s
2022/11/17 10:30:57 DEBUG : upload_test.gz: Sending chunk 805306368 length 268435456
2022/11/17 10:31:09 DEBUG : upload_test.gz: Sending chunk 1073741824 length 268435456
2022/11/17 10:31:20 DEBUG : upload_test.gz: Sending chunk 1342177280 length 268435456
2022/11/17 10:31:32 DEBUG : upload_test.gz: Sending chunk 1610612736 length 268435456
2022/11/17 10:31:43 DEBUG : upload_test.gz: Sending chunk 1879048192 length 268435456
2022/11/17 10:31:53 INFO :
Transferred: 6.263 GiB / 72.354 GiB, 9%, 21.912 MiB/s, ETA 51m28s
Transferred: 0 / 1, 0%
Elapsed time: 5m1.2s
Transferring:
* upload_test.gz: 2% /68.079Gi, 23.258Mi/s, 48m29s
2022/11/17 10:31:54 DEBUG : upload_test.gz: Sending chunk 2147483648 length 268435456
2022/11/17 10:32:00 ERROR : upload_test.gz: Failed to copy: googleapi: got HTTP response code 429 with body: <html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>Sorry...</title><style> body { font-family: verdana, arial, sans-serif; background-color: #fff; color: #000; }</style></head><body><div><table><tr><td><b><font face=sans-serif size=10><font color=#4285f4>G</font><font color=#ea4335>o</font><font color=#fbbc05>o</font><font color=#4285f4>g</font><font color=#34a853>l</font><font color=#ea4335>e</font></font></b></td><td style="text-align: left; vertical-align: bottom; padding-bottom: 15px; width: 50%"><div style="border-bottom: 1px solid #dfdfdf;">Sorry...</div></td></tr></table></div><div style="margin-left: 4em;"><h1>We're sorry...</h1><p>... but your computer or network may be sending automated queries. To protect our users, we can't process your request right now.</p></div><div style="margin-left: 4em;">See <a href="https://support.google.com/websearch/answer/86640">Google Help</a> for more information.<br/><br/></div><div style="text-align: center; border-top: 1px solid #dfdfdf;"><a href="https://www.google.com">Google Home</a></div></body></html>
2022/11/17 10:32:00 ERROR : Attempt 3/3 failed with 1 errors and: googleapi: got HTTP response code 429 with body: <html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>Sorry...</title><style> body { font-family: verdana, arial, sans-serif; background-color: #fff; color: #000; }</style></head><body><div><table><tr><td><b><font face=sans-serif size=10><font color=#4285f4>G</font><font color=#ea4335>o</font><font color=#fbbc05>o</font><font color=#4285f4>g</font><font color=#34a853>l</font><font color=#ea4335>e</font></font></b></td><td style="text-align: left; vertical-align: bottom; padding-bottom: 15px; width: 50%"><div style="border-bottom: 1px solid #dfdfdf;">Sorry...</div></td></tr></table></div><div style="margin-left: 4em;"><h1>We're sorry...</h1><p>... but your computer or network may be sending automated queries. To protect our users, we can't process your request right now.</p></div><div style="margin-left: 4em;">See <a href="https://support.google.com/websearch/answer/86640">Google Help</a> for more information.<br/><br/></div><div style="text-align: center; border-top: 1px solid #dfdfdf;"><a href="https://www.google.com">Google Home</a></div></body></html>
2022/11/17 10:32:00 INFO :
Transferred: 6.288 GiB / 6.288 GiB, 100%, 21.912 MiB/s, ETA 0s
Errors: 1 (retrying may help)
Elapsed time: 5m8.5s
2022/11/17 10:32:00 DEBUG : 3 go routines active
2022/11/17 10:32:00 Failed to copy: googleapi: got HTTP response code 429 with body: <html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>Sorry...</title><style> body { font-family: verdana, arial, sans-serif; background-color: #fff; color: #000; }</style></head><body><div><table><tr><td><b><font face=sans-serif size=10><font color=#4285f4>G</font><font color=#ea4335>o</font><font color=#fbbc05>o</font><font color=#4285f4>g</font><font color=#34a853>l</font><font color=#ea4335>e</font></font></b></td><td style="text-align: left; vertical-align: bottom; padding-bottom: 15px; width: 50%"><div style="border-bottom: 1px solid #dfdfdf;">Sorry...</div></td></tr></table></div><div style="margin-left: 4em;"><h1>We're sorry...</h1><p>... but your computer or network may be sending automated queries. To protect our users, we can't process your request right now.</p></div><div style="margin-left: 4em;">See <a href="https://support.google.com/websearch/answer/86640">Google Help</a> for more information.<br/><br/></div><div style="text-align: center; border-top: 1px solid #dfdfdf;"><a href="https://www.google.com">Google Home</a></div></body></html>