gclient sync error: Your "Oauth 2.0 User Account" credentials are invalid (gsutil cp fails)

564 views
Skip to first unread message

Michael Nordman

unread,
Nov 18, 2016, 5:11:27 PM11/18/16
to Chromium-dev
Help, does this sound familiar to anyone?

The error message says to run  gsutil config, but I"m not sure what inputs I need to provide to that.

I see a .boto and a .boto.depot_tools in the home dir. The first is over two years old and the second about 55 weeks old. And I also have a seperate .depot_tools_oauth2_tokens file, more than a year and a half old. 


Your "Oauth 2.0 User Account" credentials are invalid. For more help, see "gsutil help creds", or re-run the gsutil config
 command (see "gsutil help config").
Failure: invalid_grant.
INFO 1118 13:12:32.491000 oauth2_client.py]
Attempted to retrieve an access token from an invalid refresh token. Two common
cases in which you will see this error are:
1. Your refresh token was revoked.
2. Your refresh token was typed incorrectly.

Your "Oauth 2.0 User Account" credentials are invalid. For more help, see "gsutil help creds", or re-run the gsutil config
 command (see "gsutil help config").
Failure: invalid_grant.
Traceback (most recent call last):
  File "src/build/get_syzygy_binaries.py", line 523, in <module>
    main()
  File "src/build/get_syzygy_binaries.py", line 516, in main
    state = _InstallBinaries(options, deleted)
  File "src/build/get_syzygy_binaries.py", line 339, in _InstallBinaries
    path = _Download(resource)
  File "src/build/get_syzygy_binaries.py", line 285, in _Download
    _GsUtil('cp', url, tmp[1])
  File "src/build/get_syzygy_binaries.py", line 272, in _GsUtil
    raise RuntimeError('Command "%s" returned %d.' % (cmd, prog.returncode))
RuntimeError: Command "['D:\\src\\depot_tools\\python276_bin\\python.exe', 'D:\\src\\depot_tools\\gsutil.py', 'cp', 'gs://
syzygy-archive/builds/official/55b5f3979e226101b1d4764ca024925ed42970bc/benchmark.zip', 'c:\\src\\temp\\tmpmuh8qhsyzygy_ar
chive']" returned 1.
Error: Command 'D:\\src\\depot_tools\\python276_bin\\python.exe src/build/get_syzygy_binaries.py --output-dir=src/third_pa
rty/syzygy/binaries --revision=55b5f3979e226101b1d4764ca024925ed42970bc --overwrite --copy-dia-binaries' returned non-zero
 exit status 1 in D:\src\chrome
Hook ''D:\src\depot_tools\python276_bin\python.exe' src/build/get_syzygy_binaries.py --output-dir=src/third_party/syzygy/b
inaries --revision=55b5f3979e226101b1d4764ca024925ed42970bc --overwrite --copy-dia-binaries' took 44.15 secs

Michael Nordman

unread,
Nov 18, 2016, 5:45:05 PM11/18/16
to Lucas Gadani, Chromium-dev
Thank you!!! 
download_from_google_storage --config works for me

On Fri, Nov 18, 2016 at 2:16 PM, Lucas Gadani <l...@chromium.org> wrote:
Had the same issue today, running 'download_from_google_storage --config' again solved the issue.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Reply all
Reply to author
Forward
0 new messages