title: I get an error when deploying a simple app in app-engine connected to SQL cloud
body: <p>I am just trying to learn about google cloud, in order to start getting the certificates.  I have download from the official github repo from Google, the example python app which is this one: <a href="https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/appengine/standard/cloudsql" rel="nofollow noreferrer">link</a> I have just changed the app.yml as follow:</p>
  <pre><code>  
  runtime: python27
  api_version: 1
  threadsafe: yes
  service: practica
  
  handlers:
  - url: /
    script: main.app
  
  libraries:
  - name: MySQLdb
    version: &quot;latest&quot;
  
  # [START gae_python_mysql_env]
  env_variables:
      CLOUDSQL_CONNECTION_NAME: practica-final-297818:europe-west3:practica-sql
      CLOUDSQL_USER: root
      CLOUDSQL_PASSWORD: 123456
  # [END gae_python_mysql_env]
  </code></pre>
  <p>but when trying to acces to the app I get an error stating:
  &quot;Error: Server Error
  The server encountered an error and could not complete your request.
  Please try again in 30 seconds.&quot;</p>
  <p>I have check the logs from the app and I get this logs, but honestly I get nothing out of it (probably because I am new to GCP or any other cloud....)</p>
  <pre><code>ispatch()
    File &quot;/base/alloc/tmpfs/dynamic_runtimes/python27g/dd89b7af809b5e76/python27/python27_lib/versions/third_party/webapp2-2.3/webapp2.py&quot;, line 547, in dispatch
      return self.handle_exception(e, self.app.debug)
    File &quot;/base/alloc/tmpfs/dynamic_runtimes/python27g/dd89b7af809b5e76/python27/python27_lib/versions/third_party/webapp2-2.3/webapp2.py&quot;, line 545, in dispatch
      return method(*args, **kwargs)
    File &quot;/base/data/home/apps/h~practica-final-297818/practica:version-1-0-0.431541023169113748/main.py&quot;, line 66, in get
      db = connect_to_cloudsql()
    File &quot;/base/data/home/apps/h~practica-final-297818/practica:version-1-0-0.431541023169113748/main.py&quot;, line 46, in connect_to_cloudsql
      passwd=CLOUDSQL_PASSWORD)
    File &quot;/base/alloc/tmpfs/dynamic_runtimes/python27g/dd89b7af809b5e76/python27/python27_lib/versions/third_party/MySQLdb-1.2.5/MySQLdb/__init__.py&quot;, line 81, in Connect
      return Connection(*args, **kwargs)
    File &quot;/base/alloc/tmpfs/dynamic_runtimes/python27g/dd89b7af809b5e76/python27/python27_lib/versions/third_party/MySQLdb-1.2.5/MySQLdb/connections.py&quot;, line 193, in __init__
      super(Connection, self).__init__(*args, **kwargs2)
  OperationalError: (2062, 'Cloud SQL socket open failed with error: No such file or directory')
  </code></pre>
  <p>this is what cloud SQL config</p>
  <pre><code>settings:
    activationPolicy: ALWAYS
    availabilityType: REGIONAL
    backupConfiguration:
      backupRetentionSettings:
        retainedBackups: 7
        retentionUnit: COUNT
      binaryLogEnabled: true
      enabled: true
      kind: sql#backupConfiguration
      location: eu
      startTime: 11:00
      transactionLogRetentionDays: 7
    dataDiskSizeGb: '100'
    dataDiskType: PD_SSD
    ipConfiguration:
      authorizedNetworks:
      - kind: sql#aclEntry
        name: practica
        value: 111.111.111.111
      ipv4Enabled: true
    kind: sql#settings
    locationPreference:
      kind: sql#locationPreference
      zone: europe-west3-b
    maintenanceWindow:
      day: 0
      hour: 0
      kind: sql#maintenanceWindow
    pricingPlan: PER_USE
    settingsVersion: '25'
    storageAutoResize: true
    storageAutoResizeLimit: '0'
    tier: db-f1-micro
  state: RUNNABLE
  </code></pre>