This page lists troubleshooting tips in case you run into problems using the AlloyDB Auth proxy.
If you are having trouble connecting to your AlloyDB instance using the AlloyDB Auth proxy, here are a few things to try to find what's causing the problem.
Check the AlloyDB Auth proxy output carefully and look for errors. Often, the error messages provide the information you need determine the source of the problem and how to solve it.
If you are getting a
403 Forbiddenerror, and you are using a service account to authenticate the AlloyDB Auth proxy, make sure the service account has the correct permissions.
The predefined AlloyDB roles that provide these permissions are Cloud AlloyDB Client (
roles/alloydb.client) and Cloud AlloyDB Admin (
Make sure to enable the AlloyDB API.
If it is not enabled, you see output like
Error 403: Access Not Configuredin your AlloyDB Auth proxy logs.
If you are connecting using UNIX sockets, confirm that the sockets were created by listing the directory you provided when you started the AlloyDB Auth proxy.
If you have an outbound firewall policy, make sure it allows connections to port 5433 on the target AlloyDB instance.
Quota issues: If you see errors related to quotas being exceeded, either identify the source of the quota problem (for example, an application is misusing the connector and unnecessarily creating new connections) or contact support to request an increase to the AlloyDB API quota.