Rclone 1.52.2 error sync on Google Cloud Storage

What is the problem you are having with rclone?

after upgraded to the last version (1.52.2) rclone show me the following error during the sync on Google Cloud Storage:
AMBIENTE MAZZOLINI/MAZZOLINI/entratel/T4116831/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs: Failed to set modification time: googleapi: Error 403: my-email@gmail.com does not have storage.objects.get access to the Google Cloud Storage object., forbidden

What is your rclone version (output from rclone version)

rclone v1.52.2

  • os/arch: freebsd/amd64
  • go version: go1.14.4

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

FreeBSD 10.2.0.2 - Prester (rev. 2407)

Which cloud storage system are you using? (eg Google Drive)

Google Cloud Storage

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

rclone sync -q --log-file=/mnt/ZFS-pool/log/192_168_1_110_F_W_log /mnt/ZFS-pool/server_1_110_F/W remote:002-eldat/192_168_1_110_F_W

The rclone config contents with secrets removed.

[remote]
type = google cloud storage
project_number = 123456789012
object_acl = private
bucket_acl = private
location = europe-west1
storage_class = COLDLINE
token = {"access_token":"ya29......MwYz","token_type":"Bearer","refresh_token":"1//0......g_tk","expiry":"2020-06-26T08:46:58.167416234+02:00"}

A log from the command with the -vv flag

rclone-sync-error-log

What version were you using before?

Can you try with -vv --dump bodies and paste the failing HTTP transaction?

I suspect rclone is trying to do something to the bucket that your limited user doesn't allow?

previous rclone ver 1.31

2020/06/26 17:20:50 DEBUG : rclone: Version "v1.52.2" starting with parameters ["rclone" "sync" "-vv" "--dump" "bodies" "--log-file=/mnt/ZFS-pool/log/rclone_log" "/mnt/ZFS-pool/server_1_110_F/W" "remote:002-eldat/192_168_1_110_F_W"]
2020/06/26 17:20:50 DEBUG : Using config file from "/root/.rclone.conf"
2020/06/26 17:20:50 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2020/06/26 17:20:50 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2020/06/26 17:20:50 DEBUG : HTTP REQUEST (req 0xc0004d6000)
2020/06/26 17:20:50 DEBUG : GET /storage/v1/b/002-eldat/o/192_168_1_110_F_W?alt=json&prettyPrint=false HTTP/1.1
Host: storage.googleapis.com
User-Agent: rclone/v1.52.2
Authorization: XXXX
X-Goog-Api-Client: gl-go/1.14.4 gdcl/20200410
Accept-Encoding: gzip

2020/06/26 17:20:50 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2020/06/26 17:20:51 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2020/06/26 17:20:51 DEBUG : HTTP RESPONSE (req 0xc0004d6000)
2020/06/26 17:20:51 DEBUG : HTTP/2.0 404 Not Found
Content-Length: 185
Alt-Svc: h3-27=":443"; ma=2592000,h3-25=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Type: application/json; charset=UTF-8
Date: Fri, 26 Jun 2020 15:20:51 GMT
Expires: Mon, 01 Jan 1990 00:00:00 GMT
Pragma: no-cache
Server: UploadServer
Vary: Origin
Vary: X-Origin
X-Guploader-Uploadid: AAANsUm_cmhffaXU_WOHPNhP05H8V_Sq1-FMtNoaML4-FFcqhyFM9hN9bstVIx1MmT9i4n-VJ1zC9fB1sPkR09VceA

Thank you
Dario

That is a 404 error but you posted about a 403 error originally?

It would be worth while re-fetching the token, so do

rclone config reconnect remote:

This is quite old, and one of the things that has changed is the scopes that rclone asks for in the oauth so redoing the oauth as above might help.

If it doesn't can you dig out the 403 request and response please - thanks :slight_smile:

Hi Nick,
I tried after recovering the token but the issue persists.
I scheduled a rivisit of the backup policies in august and in that occasion I will rebuild the box.
Thanks so much.
Best regards.
Dario

:frowning:

Does the user you are using have limited permissions? If so what are they? Maybe rclone needs more permissions now?