gclient fails oath credentials step on windows and documentation is out of date/invalid |
||
Issue descriptionTrying to run gclient sync on windows 10. What steps will reproduce the problem? (1) Follow steps on https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md (2) Run gclient sync What is the expected result? Sync completes What happens instead? Tons of confusing python errors. Reinstalling depot_tools from the zip archive had no effect. C:\src\chromium>gclient sync Syncing projects: 100% (79/79), done. Running hooks: 42% (23/54) content_shell_fonts ________ running 'download_from_google_storage --no_resume --platform=linux* --extract --no_auth --bucket chromium-fonts -s src/third_party/content_shell_fonts/content_shell_test_fonts.tar.gz.sha1' in 'C:\src\chromium' The current platform doesn't match "linux*", skipping. Running hooks: 51% (28/54) syzygy-binaries ________ running 'vpython.bat src/build/get_syzygy_binaries.py --output-dir=src/third_party/syzygy/binaries --revision=190dbfe74c6f5b5913820fa66d9176877924d7c5 --overwrite --copy-dia-binaries' in 'C:\src\chromium' INFO:get_syzygy_binaries.py:Installing revision 190dbfe74c6f Syzygy binaries. INFO 1204 15:29:40.736000 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. INFO 1204 15:29:46.745000 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. INFO 1204 15:29:56.910000 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. INFO 1204 15:30:15.110000 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 529, in <module> main() File "src/build/get_syzygy_binaries.py", line 522, in main state = _InstallBinaries(options, deleted) File "src/build/get_syzygy_binaries.py", line 345, in _InstallBinaries path = _Download(resource) File "src/build/get_syzygy_binaries.py", line 291, in _Download _GsUtil('cp', url, tmp_file) File "src/build/get_syzygy_binaries.py", line 272, in _GsUtil raise RuntimeError('Command "%s" returned %d.' % (cmd, prog.returncode)) RuntimeError: Command "['C:\\Users\\eae\\.vpython-root\\f6065f\\Scripts\\python.exe', 'C:\\src\\depot_tools\\gsutil.py', 'cp', 'gs://syzygy-archive/builds/official/190dbfe74c6f5b5913820fa66d9176877924d7c5/benchmark.zip', 'c:\\users\\eae\\appdata\\local\\temp\\tmpwg5ybasyzygy_archive']" returned 1. Error: Command 'vpython.bat src/build/get_syzygy_binaries.py --output-dir=src/third_party/syzygy/binaries --revision=190dbfe74c6f5b5913820fa66d9176877924d7c5 --overwrite --copy-dia-binaries' returned non-zero exit status 1 in C:\src\chromium Hook 'vpython.bat src/build/get_syzygy_binaries.py --output-dir=src/third_party/syzygy/binaries --revision=190dbfe74c6f5b5913820fa66d9176877924d7c5 --overwrite --copy-dia-binaries' took 36.74 secs Running "gsutil help creds" doesn't work as there is no gsutil command on windows. There is a gsuitil.py script in depot_tools though and running "python.bat C:\src\depot_tools\gsutil.py help creds" shows a lot of information about how oauth works. It also suggest that I might want a service account, and gives the following instructions: To create a service account, visit the Google Developers Console and then: - Click "APIs & auth" in the left sidebar. - Click "Credentials". - Click "Create New Client ID". - Select "Service Account" as your application type. - Save the JSON private key or the .p12 private key and password provided. Of course none of the UI elements references above exist in the developer console. It is also unclear what account it is referring to. Note that I have been able to sync and build on this machine before without trouble. Please advice.
,
Dec 4 2017
Thanks!
,
Dec 4 2017
(also note that this is for an off-corp device)
,
Dec 5 2017
This is a failure of get_syzygy_binaries.py, a src-side script which is invoked by src.git's DEPS hooks. It looks like crrev.com/c/746202 recently changed how that script works. Assigning to agrieve to diagnose.
,
Dec 6 2017
I don't think this failure is related to that change. It affects only cygwin. My best guess is that the error messages are correct - that your credentials need refreshing. Try visiting https://chromium-review.googlesource.com/new-password and follow the Windows instructions. |
||
►
Sign in to add a comment |
||
Comment 1 by zhangtiff@chromium.org
, Dec 4 2017