type that h10 extension error dynos create couldn code heroku playframework playframework-2.0

that - Aplicación de Heroku que falla con el código 255



procfile heroku (1)

Novato a Heroku aquí.

He seguido los movimientos que se describen aquí:

http://www.playframework.org/documentation/2.0.2/ScalaTodoList

Y me las arreglé para configurar una simple aplicación Play en Heroku. A continuación, intenté subir mi aplicación principal que he estado desarrollando en mi propia estación, siguiendo los mismos pasos que antes. La carga y la compilación funcionó, sin embargo, la aplicación sigue fallando con el código 255. Aquí están los registros:

2012-08-21T19:07:29+00:00 heroku[slugc]: Slug compilation started 2012-08-21T19:10:18+00:00 heroku[api]: Attach HEROKU_POSTGRESQL_GOLD resource by [email protected] 2012-08-21T19:10:18+00:00 heroku[api]: Release v2 created by [email protected] 2012-08-21T19:10:18+00:00 heroku[api]: Add DATABASE_URL config by [email protected] 2012-08-21T19:10:18+00:00 heroku[api]: Release v3 created by [email protected] 2012-08-21T19:10:18+00:00 heroku[api]: Add SBT_OPTS, PATH, REPO, JAVA_OPTS config by [email protected] 2012-08-21T19:10:18+00:00 heroku[api]: Release v4 created by [email protected] 2012-08-21T19:10:18+00:00 heroku[api]: Release v5 created by [email protected] 2012-08-21T19:10:18+00:00 heroku[api]: Deploy 40c5224 by [email protected] 2012-08-21T19:10:19+00:00 heroku[slugc]: Slug compilation finished 2012-08-21T19:10:25+00:00 heroku[web.1]: Starting process with command `target/start -Dhttp.port=28820 -Xmx384m -Xss512k -XX:+UseCompressedOops` 2012-08-21T19:10:26+00:00 app[web.1]: This application is already running (Or delete the RUNNING_PID file). 2012-08-21T19:10:27+00:00 heroku[web.1]: Process exited with status 255 2012-08-21T19:10:27+00:00 heroku[web.1]: State changed from starting to crashed 2012-08-21T19:10:27+00:00 heroku[web.1]: State changed from crashed to starting 2012-08-21T19:10:30+00:00 heroku[web.1]: Starting process with command `target/start -Dhttp.port=21120 -Xmx384m -Xss512k -XX:+UseCompressedOops` 2012-08-21T19:10:31+00:00 app[web.1]: This application is already running (Or delete the RUNNING_PID file). 2012-08-21T19:10:32+00:00 heroku[web.1]: Process exited with status 255 2012-08-21T19:10:32+00:00 heroku[web.1]: State changed from starting to crashed 2012-08-21T19:32:43+00:00 heroku[web.1]: State changed from crashed to starting 2012-08-21T19:32:47+00:00 heroku[web.1]: Starting process with command `target/start -Dhttp.port=35227 -Xmx384m -Xss512k -XX:+UseCompressedOops` 2012-08-21T19:32:48+00:00 app[web.1]: This application is already running (Or delete the RUNNING_PID file). 2012-08-21T19:32:49+00:00 heroku[web.1]: Process exited with status 255 2012-08-21T19:32:49+00:00 heroku[web.1]: State changed from starting to crashed 2012-08-21T19:33:09+00:00 heroku[web.1]: State changed from crashed to starting 2012-08-21T19:33:13+00:00 heroku[web.1]: Starting process with command `target/start -Dhttp.port=3275 -Xmx384m -Xss512k -XX:+UseCompressedOops` 2012-08-21T19:33:14+00:00 app[web.1]: This application is already running (Or delete the RUNNING_PID file). 2012-08-21T19:33:15+00:00 heroku[web.1]: Process exited with status 255 2012-08-21T19:33:16+00:00 heroku[web.1]: State changed from starting to crashed

No tengo idea de dónde comenzar a investigar aquí. La aplicación principal es bastante grande, tiene algunas dependencias adicionales y usa una base de datos. Cualquier ayuda es apreciada.

EDIT1: Ok, he eliminado RUNNING_PID de mi repositorio de git (eliminarlo de heroku no funciona realmente: https://devcenter.heroku.com/articles/ssh-access ). También actualicé mi archivo de procuración a:

web: target/start -Dhttp.port=${PORT} ${JAVA_OPTS} -DapplyEvolutions.default=true -Ddb.default.url=${DATABASE_URL} -Ddb.default.driver=org.h2.Driver

Ahora recibo los siguientes errores:

2012-08-21T20:24:45+00:00 heroku[slugc]: Slug compilation finished 2012-08-21T20:24:48+00:00 heroku[web.1]: Starting process with command `target/start -Dhttp.port=38558 -Xmx384m -Xss512k -XX:+UseCompressedOops` 2012-08-21T20:24:51+00:00 app[web.1]: Play server process ID is 2 2012-08-21T20:24:57+00:00 app[web.1]: [←[37minfo←[0m] play - database [default] connected at jdbc:h2:mem:play 2012-08-21T20:24:58+00:00 app[web.1]: [←[33mwarn←[0m] play - Your production database [default] needs evolutions! 2012-08-21T20:24:58+00:00 app[web.1]: 2012-08-21T20:24:58+00:00 app[web.1]: # --- Rev:1,Ups - f9a96e0 ... Copy of the evolution file. ... 2012-08-21T20:24:58+00:00 app[web.1]: 2012-08-21T20:24:58+00:00 app[web.1]: [←[33mwarn←[0m] play - Run with -DapplyEvolutions.default=true if you want to run them automatically (be careful) 2012-08-21T20:24:58+00:00 app[web.1]: Oops, cannot start the server. 2012-08-21T20:24:58+00:00 app[web.1]: PlayException: Database ''default'' needs evolution! [An SQL script need to be run o n your database.] 2012-08-21T20:24:58+00:00 app[web.1]: at play.api.db.evolutions.EvolutionsPlugin$$anonfun$onStart$1.apply(Evolutions.s cala:422) 2012-08-21T20:24:58+00:00 app[web.1]: at play.api.db.evolutions.EvolutionsPlugin$$anonfun$onStart$1.apply(Evolutions.s cala:410) 2012-08-21T20:24:58+00:00 app[web.1]: at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59 ) 2012-08-21T20:24:58+00:00 app[web.1]: at scala.collection.immutable.List.foreach(List.scala:45) 2012-08-21T20:24:58+00:00 app[web.1]: at play.api.db.evolutions.EvolutionsPlugin.onStart(Evolutions.scala:410) 2012-08-21T20:24:58+00:00 app[web.1]: at play.api.Play$$anonfun$start$1.apply(Play.scala:60) 2012-08-21T20:24:58+00:00 app[web.1]: at play.api.Play$$anonfun$start$1.apply(Play.scala:60) 2012-08-21T20:24:58+00:00 app[web.1]: at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59 ) 2012-08-21T20:24:58+00:00 app[web.1]: at scala.collection.immutable.List.foreach(List.scala:45) 2012-08-21T20:24:58+00:00 app[web.1]: at play.api.Play$.start(Play.scala:60) 2012-08-21T20:24:58+00:00 app[web.1]: at play.core.StaticApplication.<init>(ApplicationProvider.scala:51) 2012-08-21T20:24:58+00:00 app[web.1]: at play.core.server.NettyServer$.createServer(NettyServer.scala:132) 2012-08-21T20:24:58+00:00 app[web.1]: at play.core.server.NettyServer$$anonfun$main$5.apply(NettyServer.scala:153) 2012-08-21T20:24:58+00:00 app[web.1]: at play.core.server.NettyServer$$anonfun$main$5.apply(NettyServer.scala:152) 2012-08-21T20:24:58+00:00 app[web.1]: at scala.Option.map(Option.scala:133) 2012-08-21T20:24:58+00:00 app[web.1]: at play.core.server.NettyServer$.main(NettyServer.scala:152) 2012-08-21T20:24:58+00:00 app[web.1]: at play.core.server.NettyServer.main(NettyServer.scala) 2012-08-21T20:25:00+00:00 heroku[web.1]: Process exited with status 255 2012-08-21T20:25:00+00:00 heroku[web.1]: State changed from starting to crashed

EDIT2: Ok, he descubierto cómo solucionar el problema con las evoluciones. Simplemente agregue applyEvolutions.default = true a application.conf y las evoluciones se aplicarán automáticamente. Tienes que tener cuidado con esto ya que puede destruir tus datos si tienes destructores configurados en tus evoluciones.


Como Alper sugirió correctamente, intente agregar -Dplay.evolutions.db.default.autoApplyDowns = true a su Procfile.

Lo arregló para mí.