title: Why does my Play/Heroku/Postgres deployment fail with a password error?
body: <p>I'm getting started with the Play Framework, and have a toy app that runs locally using an H2 in-memory database. My <code>application.conf</code> file looks like this:</p>
  
  <pre><code>db.default.driver=org.h2.Driver
  db.default.url="jdbc:h2:mem:my-app-db"
  db.default.user=sa
  db.default.password=""
  </code></pre>
  
  <p>However when I try to deploy the app to Heroku, using the Postgres database that they provide, the deployment fails:</p>
  
  <pre><code>org.postgresql.util.PSQLException: FATAL: password authentication failed for user "sa"
  2013-05-17T01:22:18.982766+00:00 app[web.1]:    at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
  2013-05-17T01:22:18.982827+00:00 app[web.1]:    at org.postgresql.jdbc2.AbstractJdbc2Connection.&lt;init&gt;(AbstractJdbc2Connection.java:125)
  2013-05-17T01:22:18.983634+00:00 app[web.1]:    at com.jolbox.bonecp.BoneCPDataSource.getConnection(BoneCPDataSource.java:112)
  2013-05-17T01:22:18.982915+00:00 app[web.1]:    at org.postgresql.jdbc3.AbstractJdbc3Connection.&lt;init&gt;(AbstractJdbc3Connection.java:30)
  2013-05-17T01:22:18.982665+00:00 app[web.1]:    at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:108)
  2013-05-17T01:22:18.982981+00:00 app[web.1]:    at org.postgresql.jdbc3g.AbstractJdbc3gConnection.&lt;init&gt;(AbstractJdbc3gConnection.java:22)
  2013-05-17T01:22:18.983376+00:00 app[web.1]:    at java.sql.DriverManager.getConnection(DriverManager.java:200)
  </code></pre>
  
  <p>My <code>Procfile</code> is exactly as described in the getting started guide:</p>
  
  <pre><code>web: target/start -Dhttp.port=${PORT} ${JAVA_OPTS} -DapplyEvolutions.default=true -Ddb.default.driver=org.postgresql.Driver -Ddb.default.url=${DATABASE_URL} 
  </code></pre>