-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permission denied when trying to query mysql with unix socket and credential file. #1403
Comments
Let me see if I can reproduce this and report back. |
In addition to our automated test (source), I tried to connect to my MySQL instance with application default credentials and with a credential file:
and
In both cases the connection worked. So, could you double check that your instance name is correct? |
@enocom Yeah the instance name is correct, we used the same configuration to reproduce this issue, we just changed the version of cloud-sql-proxy and the start command:
|
What client are you using to query MySQL? |
@enocom We use supervisor for the startup processes, the main application process was started with a different user than the cloud-sql-proxy, the previous version creates the socket with write access permission for groups and others, the latest version doesn't do this:
|
Yep that’s the problem. OK. I’ll fix it. Thanks for helping debug. |
We upgrading to the last version of the cloud-sql-proxy, but we can't get it to work right, when we trying to query to mysql instance get the [SQLSTATE[HY000] [2002] Permission denied] error.
Bug Description
We use the latest version of cloud-sql-proxy installed like this:
for start the instance we use credential file, we also create a user with 'cloudsqlproxy~%' hostname to allow connect to the instance.
We have a successfully start like this:
But when the application tries to query mysql for any information using the unix socket, we get a error:
We tried with oldest cloud-sql-proxy versions and this problem doesn't happens, like:
Environment
./cloud-sql-proxy --version
): cloud-sql-proxy version 2.0.0-preview.1The text was updated successfully, but these errors were encountered: