Application - Shutting down connection pool

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.

I’ve enabled additional logging but not much more information. It’s shutting down immediately after starting up. If I start it up a second time then it will run and not shut down (which I think means something but I’m not exactly sure yet)

WARN o.h.v.m.ParameterMessageInterpolator - HV000184: ParameterMessageInterpolator has been chosen, EL interpolation will not be supported
INFO play.api.http.EnabledFilters - Enabled Filters (see https://www.playframework.com/documentation/latest/Filters):

play.filters.headers.SecurityHeadersFilter
play.filters.hosts.AllowedHostsFilter

INFO play.api.Play - Application started (Dev)
INFO application - Shutting down connection pool.
INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated…
DEBUG com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Before shutdown stats (total=10, active=0, idle=10, waiting=0)
DEBUG com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Closing connection com.mysql.cj.jdbc.ConnectionImpl@4948977d: (connection evicted)
DEBUG com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Closing connection com.mysql.cj.jdbc.ConnectionImpl@35cd08d8: (connection evicted)
DEBUG com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Closing connection com.mysql.cj.jdbc.ConnectionImpl@74f002e3: (connection evicted)
DEBUG com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Closing connection com.mysql.cj.jdbc.ConnectionImpl@454e711e: (connection evicted)
DEBUG com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Closing connection com.mysql.cj.jdbc.ConnectionImpl@14dffdac: (connection evicted)
DEBUG com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Closing connection com.mysql.cj.jdbc.ConnectionImpl@7b66e85e: (connection evicted)
DEBUG com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Closing connection com.mysql.cj.jdbc.ConnectionImpl@109185da: (connection evicted)
DEBUG com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Closing connection com.mysql.cj.jdbc.ConnectionImpl@1efa68f9: (connection evicted)
DEBUG com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Closing connection com.mysql.cj.jdbc.ConnectionImpl@af90d43: (connection evicted)
DEBUG com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Closing connection com.mysql.cj.jdbc.ConnectionImpl@42c6b784: (connection evicted)
DEBUG com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - After shutdown stats (total=0, active=0, idle=0, waiting=0)
INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed.
DEBUG p.a.l.c.ActorSystemProvider - Shutdown application default Akka system: myApp
DEBUG akka.actor.CoordinatedShutdown - Performing phase [actor-system-terminate] with [1] tasks: [terminate-system]
DEBUG akka.event.EventStream - shutting down: StandardOutLogger