I’m using IntelliJ for development and the sbt shell within IntelliJ to run and test the web service locally. Upon starting up the service locally using the run command it always seems to fail the first time. Below is the output with nothing much to see in terms of the reason why it’s shutting down. Perhaps I need to fix the logging configuration to see more information?
When deploying this service to AWS in Fargate Container using Docker the deployment will continuously start and stop until it times out failing to pass a health check. At this point, it’s an exercise to find out exactly what is wrong since I’m getting nothing in the logging.
WARN application - Logger configuration in conf files is deprecated and has no effect. Use a logback configuration file instead.
INFO akka.event.slf4j.Slf4jLogger - Slf4jLogger started
INFO play.api.db.DefaultDBApi - Database [default] initialized at jdbc:mysql://dev2.xxxxyyyyzzzz.us-east-1.rds.amazonaws.com/haracterEncoding=UTF-8&zeroDateTimeBehavior=CONVERT_TO_NULL&serverTimezone=GMT
INFO application - Creating Pool for datasource ‘default’
INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting…
INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
INFO i.e.config.properties.LoadContext - loaded properties from [ebean.properties]
INFO org.reflections.Reflections - Reflections took 1993 ms to scan 3 urls, producing 206 keys and 9122 values
INFO io.ebean.EbeanVersion - ebean version: 11.32.1
INFO io.ebean.internal.DefaultContainer - DatabasePlatform name:default platform:mysql
INFO o.h.validator.internal.util.Version - HV000001: Hibernate Validator 5.4.1.Final
WARN o.h.v.m.ParameterMessageInterpolator - HV000184: ParameterMessageInterpolator has been chosen, EL interpolation will not be supported
INFO play.api.Play - Application started (Prod)
INFO play.core.server.AkkaHttpServer - Listening for HTTP on /0:0:0:0:0:0:0:0:80
INFO play.core.server.AkkaHttpServer - Stopping server…
INFO application - Shutting down connection pool.
INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated…
INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed
I’m unable to find the actual cause of the shutdown.