Google Cloud Storage Troubleshooting¶
When Test connection or an operation fails on a Google Cloud Storage datastore, the error message points to the layer that failed: the service account key, the service account's role on the bucket, or the bucket URI.
Problems every connector shares
A server that cannot be reached, a red status dot, a credential changed at the source, Secrets Management errors, an empty schema list, missing tables, and a blocked deletion are covered on Source Datastore Troubleshooting. This page covers the errors specific to Google Cloud Storage.
Common Errors¶
| Error | Likely Cause | Fix |
|---|---|---|
403 Forbidden |
The service account lacks the required permissions on the bucket | Assign the appropriate role (Storage Object Viewer or Storage Object Admin) to the service account on the target bucket |
404 Not Found: Bucket not found |
The bucket name in the URI is incorrect or the bucket does not exist | Verify the bucket name and ensure the URI follows the format gs://<bucket_name> |
Invalid credentials |
The key file is malformed, belongs to another project, or its service account has been disabled | Create a new key for the service account and upload it again |
The caller does not have storage.objects.list access |
The service account has object-level access but lacks bucket-level list permission |
Assign the Storage Object Viewer role at the bucket level (not just object level) |
The caller does not have storage.objects.create access |
The enrichment service account lacks write permissions | Upgrade the role assignment from Storage Object Viewer to Storage Object Admin |
Detailed Notes¶
Authentication Errors¶
The error Invalid credentials indicates that the service account key is incorrect or malformed.
Common causes:
- Malformed service account key: the JSON key file is corrupted, truncated, or belongs to a different project.
- Service account disabled: the service account has been disabled in the Google Cloud Console.
Note
A key stops working as soon as its service account is deleted or disabled, even if the key itself was never revoked.
Permission Errors¶
The error 403 Forbidden or The caller does not have storage.objects.list access means the credentials are valid but lack the required IAM permissions.
Common causes:
- Missing IAM role: the service account does not have
Storage Object Viewer(source) orStorage Object Admin(enrichment) assigned on the target bucket. - Role assigned at wrong level: the role is assigned at the project level but a bucket-level policy overrides it.
- Uniform bucket-level access: if the bucket uses uniform bucket-level access (recommended), ensure IAM policies are set at the bucket level, not through ACLs.
- Source vs. enrichment mismatch: the service account has
Storage Object Viewerbut the operation requires write access (enrichment).
Connection Errors¶
The error 404 Not Found: Bucket not found indicates a configuration issue with the bucket name or URI.
Common causes:
- Bucket does not exist: the bucket name was misspelled or the bucket has been deleted.
- Wrong project: the service account belongs to a different Google Cloud project than the bucket.
- Invalid URI format: the URI must follow
gs://<bucket_name>. Extra path segments or incorrect formatting will cause failures.