From 23ceae6de46f672bf14fe6d0ad19c57ee3531fa6 Mon Sep 17 00:00:00 2001 From: John McDole Date: Thu, 15 Aug 2024 12:07:05 -0700 Subject: [PATCH] Update RBE troubleshooting (#54568) Add `could not get valid Application Default Credentials token` troubleshooting --- docs/rbe/rbe.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/rbe/rbe.md b/docs/rbe/rbe.md index 6de0293cfd5c8..b4fd9a5cf6248 100644 --- a/docs/rbe/rbe.md +++ b/docs/rbe/rbe.md @@ -145,6 +145,20 @@ of the single parameter `rebase_path()`. ## Troubleshooting +### Error obtaining credentials + +If you get the following error while running `et build`: + +```shell +E0815 09:30:03.169505 1413247 main.go:147] Error obtaining credentials: application default credentials were invalid: could not get valid Application Default Credentials token: oauth2: cannot fetch token: 400 Bad Request +``` + +Check your `${HOME}/.config/gcloud/application_default_credentials.json` to see if you are signed into another project / account. Run the following to reset the default credentials: + +```shell +gcloud auth application-default login +``` + ### Slow builds RBE builds can be slow for a few different reasons. The most common reason is