title: Metabase on Google App Engine
body: <p>I'm trying to set up Metabase on a gcloud engine using Google Cloud SQL (MySQL).</p>
  
  <p>I've got it running using <strong><a href="https://github.com/eddies/metabase-gae" rel="nofollow noreferrer">this</a></strong> git  and this app.yaml:</p>
  
  <pre><code>runtime: custom
  env: flex
  
  # Metabase does not support horizontal scaling
  #   https://github.com/metabase/metabase/issues/2754
  #   https://cloud.google.com/appengine/docs/flexible/java/configuring-your-app-with-app-yaml
  manual_scaling:
    instances: 1
  
  env_variables:
   # MB_JETTY_PORT: 8080
    MB_DB_TYPE: mysql
    MB_DB_DBNAME: [db_name]
   # MB_DB_PORT: 5432
    MB_DB_USER: [db_user]
    MB_DB_PASS: [db_password]
   # MB_DB_HOST: 127.0.0.1
    CLOUD_SQL_INSTANCE: [project-id]:[location]:[instance-id]
  </code></pre>
  
  <p>I have 2 issues:</p>
  
  <ol>
  <li><p>The Metabase fails in connecting to the Cloud SQL - the Cloud SQL is part of the same project and App Engine is authorized.</p></li>
  <li><p>After I create my admin user in Metabase, I am only able to login for a few seconds (and only sometimes), but it keeps throwing me to either <code>/setup</code> or <code>/auth/login</code> saying the password doesn't match (when it does).</p></li>
  </ol>
  
  <p>I hope someone can help - thank you!</p>