I created a start script by executing the stage task. Calling the start script on my local machine causes no problem, but on the remote machine it won't start the play server. I get this error:
Play server process ID is 8518
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/root/.jenkins/jobs/PNG/workspace/target/staged/slf4j-jdk14-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/.jenkins/jobs/PNG/workspace/target/staged/logback-classic.jar!/org/slf4j/impl/StaticLoggerBinder.class]
Oops, cannot start the server.
Configuration error: Configuration error [Cannot connect to database [default]]
at play.api.Configuration$.play$api$Configuration$$configError(Configuration.scala:71)
at play.api.Configuration.reportError(Configuration.scala:258)
at play.api.db.BoneCPPlugin$$anonfun$onStart$1.apply(DB.scala:249)
at play.api.db.BoneCPPlugin$$anonfun$onStart$1.apply(DB.scala:240)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:194)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:194)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:45)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:194)
at scala.collection.immutable.List.map(List.scala:45)
at play.api.db.BoneCPPlugin.onStart(DB.scala:240)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:45)
at play.core.StaticApplication.<init>(ApplicationProvider.scala:51)
at play.core.server.NettyServer$.createServer(NettyServer.scala:133)
at play.core.server.NettyServer$$anonfun$main$5.apply(NettyServer.scala:162)
at play.core.server.NettyServer$$anonfun$main$5.apply(NettyServer.scala:161)
at scala.Option.map(Option.scala:133)
at play.core.server.NettyServer$.main(NettyServer.scala:161)
at play.core.server.NettyServer.main(NettyServer.scala)
I doubt that the db configuration is wrong because it works fine when the server is started by the command "play start" or "play debug ~run". As I mentioned before the start script created by the stage task works well on local machine. Any idea what could I could check?
P.S. This is a snippet for the db configuration: