-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transfer invalid / hash mismatch error after oauth2client refresh on download #310
Comments
Until 4.16 is released, you can use a prerelease version: Standalone installs: Cloud SDK installs:
|
After updating to the prerelease version, gsutil shows this error instead:
|
4.16 has been released, so you should use |
Had to remove gsutil and install again to get 4.16, but still getting that error
|
These are the versions installed after updating to the latest |
I'm curious about that platform-specific version. If you run |
Yes this is after removing the alpha repository and updating (apparently gsutil version shows: gsutil version: 4.16
|
Can you provide a |
When downloading a file, bytes from an oauth2client refresh request are inappropriately considered as part of the request.
This problem occurs with downloads (via cp or rsync) that run over the duration of an access token's expiration (typically 1 hour as of this issue's posting). It can also occur for sequential commands that use a cached access token stored in gsutil_state_dir (~/.gsutil/credstore by default). When the access token expires, gcs_json_media erroneously considers the results of the POST as part of the downloaded bytes.
This will result in one of two errors:
This bug was likely introduced with this commit in gsutil 4.15. It occurs for user or service account credentials, but not for GCE credentials which use a different refresh path.
There is no sure-fire workaround for downloads that run over an hour. For sequential commands running less than an hour, removing ~/.gsutil/credstore between commands should prevent this issue.
The text was updated successfully, but these errors were encountered: