Sto provando a configurare un server PostgreSQL dev. È in esecuzione e sono in grado di creare ruoli, tabelle, ecc. Dalla riga di comando. Tuttavia quando provo ad applicare evoluzioni utilizzando Play, ottengo il seguente errore:Evoluzioni PostgreSQL: "PSQLException: FATAL: mi dispiace, troppi clienti già"
org.postgresql.util.PSQLException: FATAL: sorry, too many clients already
sono in grado di connettersi e se ho messo in un errore di sintassi di proposito, restituisce l'errore di sintassi quindi so che il gioco è in grado di connettersi al database. Tuttavia, dopo che l'evoluzione è stata applicata correttamente, ottengo l'errore mostrato sopra.
Non sono molto esperto nell'amministrazione di PostgreSQl, quindi non sono sicuro che il problema sia relativo all'installazione di Play o PostgreSQL. L'ho appena installato usando Heroku's Postgres.app su un Mac che esegue Mountain Lion.
Ecco ciò che viene scritto nella console:
! @6cnb0blpp - Internal server error, for request [GET /] ->
play.api.db.evolutions.InvalidDatabaseRevision: Database 'default' needs evolution! [An SQL script need to be run on your database.]
at play.api.db.evolutions.EvolutionsPlugin$$anonfun$onStart$1$$anonfun$apply$1.apply$mcV$sp(Evolutions.scala:427) ~[play_2.9.1.jar:2.0.4]
at play.api.db.evolutions.EvolutionsPlugin.withLock(Evolutions.scala:448) ~[play_2.9.1.jar:2.0.4]
at play.api.db.evolutions.EvolutionsPlugin$$anonfun$onStart$1.apply(Evolutions.scala:414) ~[play_2.9.1.jar:2.0.4]
at play.api.db.evolutions.EvolutionsPlugin$$anonfun$onStart$1.apply(Evolutions.scala:412) ~[play_2.9.1.jar:2.0.4]
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59) ~[scala-library.jar:0.11.3]
at scala.collection.immutable.List.foreach(List.scala:45) ~[scala-library.jar:0.11.3]
[error] c.j.b.h.AbstractConnectionHook - Failed to acquire connection Sleeping for 1000ms and trying again. Attempts left: 10. Exception: null
[error] c.j.b.h.AbstractConnectionHook - Failed to acquire connection Sleeping for 1000ms and trying again. Attempts left: 9. Exception: null
[error] c.j.b.h.AbstractConnectionHook - Failed to acquire connection Sleeping for 1000ms and trying again. Attempts left: 8. Exception: null
[error] c.j.b.h.AbstractConnectionHook - Failed to acquire connection Sleeping for 1000ms and trying again. Attempts left: 7. Exception: null
[error] c.j.b.h.AbstractConnectionHook - Failed to acquire connection Sleeping for 1000ms and trying again. Attempts left: 6. Exception: null
[error] c.j.b.h.AbstractConnectionHook - Failed to acquire connection Sleeping for 1000ms and trying again. Attempts left: 5. Exception: null
[error] c.j.b.h.AbstractConnectionHook - Failed to acquire connection Sleeping for 1000ms and trying again. Attempts left: 4. Exception: null
[error] c.j.b.h.AbstractConnectionHook - Failed to acquire connection Sleeping for 1000ms and trying again. Attempts left: 3. Exception: null
[error] c.j.b.h.AbstractConnectionHook - Failed to acquire connection Sleeping for 1000ms and trying again. Attempts left: 2. Exception: null
[error] c.j.b.h.AbstractConnectionHook - Failed to acquire connection Sleeping for 1000ms and trying again. Attempts left: 1. Exception: null
[error] application -
Grazie!
Ho impostato queste impostazioni nel mio application.conf ma ho ancora lo stesso risultato. Mi sono collegato a PostgreSQL in passato con Play e non ho mai avuto questo problema, sono davvero perplesso. – Ryan