gcloud: Reauthentication failed / invalid_grant Google Cloud / Firebase Origin: Platform & cloud OSI layer 7 · Application Last updated 4 Nov 2026

gcloud: ERROR: (gcloud.auth.print-access-token) There was a problem refreshing your current auth tokens: Reauthentication failed. cannot prompt during non-interactive execution

Your cached Google credentials expired or require a fresh login (session control or password change), and gcloud can't prompt.

Exact message you may see Reauthentication failed. cannot prompt during non-interactive executionThere was a problem refreshing your current auth tokensinvalid_grant: Bad Request gcloudReauthentication required. Please run: gcloud auth logingoogle.auth.exceptions.RefreshError: ('invalid_grant: Token has been expired or revoked.'
Seen on: Google Cloud

Meaning

Run gcloud auth login (and gcloud auth application-default login for ADC). Organisations set session length (e.g. 16 hours) so tokens must be refreshed. In CI use a service account or Workload Identity Federation, not user credentials.

Common causes

  • Org session-length policy expired the login
  • Password/2SV change revoked tokens
  • Non-interactive CI using a user account
  • Refresh token revoked or unused for long
  • Multiple accounts with the wrong one active

⚡ Quick fix

  1. gcloud auth login and gcloud auth application-default login
  2. In CI use google-github-actions/auth or a service account
  3. gcloud auth list and gcloud config set account ...

Detailed fix by platform

gcloud

  1. gcloud auth revoke --all && gcloud auth login

How to diagnose

  1. Context — Interactive or CI?
  2. Policy — Session length?
  3. Account — Right one?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):

API has not been used in project before or it is disabled — Google Cloud: 403 SERVICE_DISABLED — Cloud Resource Manager API has not been used in project 123456 before or it is disabled. Enable it by visiting (Google Cloud / Firebase)API has not been used…Artifact Registry: Permission artifactregistry.repositories.uploadArtifacts denied — Docker push: denied: Permission "artifactregistry.repositories.uploadArtifacts" denied on resource "projects/p/locations/l/repositories/r" (Google Cloud / Firebase)Artifact Registry: Pe…BigQuery: Access Denied: Project: User does not have bigquery.jobs.create permission — BigQuery: Access Denied: Project my-project: User does not have bigquery.jobs.create permission in project my-project (Google Cloud / Firebase)BigQuery: Access Deni…Could not load the default credentials — Google Cloud: Error: Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started (Google Cloud / Firebase)Could not load the de…Credentials could not be loaded — GitHub Actions: Error: Credentials could not be loaded, please check your action inputs: Could not load credentials from any providers (CI/CD)Credentials could not…Error 403: API has not been used in project (Terraform) — Terraform: Error: Error creating Network: googleapi: Error 403: Compute Engine API has not been used in project 123 before or it is disabled (Terraform)Error 403: API has no…Firebase CLI: Authentication Error: Your credentials are no longer valid — Firebase CLI: Error: Authentication Error: Your credentials are no longer valid. Please run firebase login --reauth (Google Cloud / Firebase)Firebase CLI: Authent…gke-gcloud-auth-plugin not found — kubectl: error: executable gke-gcloud-auth-plugin not found — it looks like you are trying to use a client-go credential plugin that is not installed (Google Cloud / Firebase)gke-gcloud-auth-plugi…gcloud: R…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.