GoogleCloudPlatform / GoogleCloudPlatform/gsutil

frequent intermittent "Your "OAuth 2.0 Service Account" credentials are invalid" error message since gsutil 4.27

Open
#446 9 comments 2 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
918
Forks
335
PR merge metrics
No merged PRs in 30d

Description

In our CI test jobs, we activate a service account with `gcloud auth activate-service-account --key-file=[file]` and then do a bunch of `gcloud` and `gsutil` operations.

This usually works, but we've started seeing a fairly high rate of failures from a `gsutil -qm cp -r /dir1 /dir2 /file1 /file3 ... gs://a/path` call, and the failures seem to correlate with when we updated to gsutil 4.27.

The failures either look like
```
I0720 18:45:12.859] Your "OAuth 2.0 Service Account" credentials are invalid. Please run
I0720 18:45:12.860] $ gcloud auth login
I0720 18:45:12.860] Duplicate type [0:0:4]
I0720 18:45:24.339] CommandException: 1 file/object could not be transferred.
```
or
```
I0725 20:21:47.240] Your "OAuth 2.0 Service Account" credentials are invalid. Please run
I0725 20:21:47.240] $ gcloud auth login
I0725 20:21:47.242] Type position out of range
I0725 20:21:47.246] Your "OAuth 2.0 Service Account" credentials are invalid. Please run
I0725 20:21:47.247] $ gcloud auth login
I0725 20:21:47.247] Type position out of range
I0725 20:21:58.707] CommandException: 2 files/objects could not be transferred.
```

The `Duplicate type [0:0:4]` and `Type position out of range` errors here seem very suspicious.

x-ref https://github.com/kubernetes/kubernetes/issues/49320

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.