Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot authorize my google app to access my Cloud SQL instance

I have deployed an application on App Engine. Now I m trying to grant access to this app to be able to access my Cloud SQL instnace. The step is simple and straightforward as described here:

https://developers.google.com/cloud-sql/docs/access_control

However when I fill in the app id and push " save changes" I get the error:

"An unexpected error has occurred. We're looking into it."

Anybody has an idea about that issue?

UPDATE:

After spending some time on the issue I made the following observations:

I m located in the European Union. Therefore I created an Cloud SQL instance in the european Union zone. When I try to add an authorized application to my SQL instance I get the error that posted above: "An unexpected error has occurred. We're looking into it." Then I created a new SQL instance in United States. I was then able to authorize application for that instance. However my application was not able to access the US SQL instance since I guess my app is deployed somewhere in European Union.

Could someone from the google support team confirm my observations and explain me how can i solve this issue?

like image 992
panipsilos Avatar asked Nov 12 '22 16:11

panipsilos


1 Answers

Your GAE app and Cloud SQL instance must be in the same location: https://developers.google.com/cloud-sql/faq#location

You can currently (Nov 27, 2012) create GAE apps in the EU only if you are a premier customer. https://developers.google.com/appengine/docs/premier/location

like image 79
Ken Ashcraft Avatar answered Nov 15 '22 10:11

Ken Ashcraft