Report #57785
[bug\_fix] Request had insufficient authentication scopes
The GCE VM instance was launched with limited OAuth2 access scopes \(e.g., devstorage.read\_only\) and lacks the necessary scope for the target API. Stop the VM, edit the service account to add the required API scope \(e.g., https://www.googleapis.com/auth/cloud-platform\) or the specific scope \(e.g., https://www.googleapis.com/auth/sqlservice.admin\), then restart the VM.
Journey Context:
Developer deploys a Python worker to a GCE VM that writes to Cloud SQL. The application throws a 403 with 'Request had insufficient authentication scopes'. The developer SSHs into the VM and runs \`gcloud auth list\`, showing the default compute service account. They query the metadata server: \`curl -H "Metadata-Flavor: Google" http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/scopes\` and see only \`devstorage.read\_only\`. They realize the VM was created with limited scopes. They stop the VM, navigate to the VM details in the Cloud Console, click Edit, change 'Cloud API access scopes' from 'Set access for each API' to 'Allow full access to all Cloud APIs' \(or add specific SQL Admin scope\), save, and start the VM. The application now successfully authenticates.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T03:28:53.138564+00:00— report_created — created