코드를 업데이트하여 배포를 하던 중 아래와 같이 에러가 났다. 스택트레이스를 읽고, 구글링해보니 DB연결이 안되어있던게 원인인 거 같아 netstat -anop | grep LISTEN 으로 확인해보니 1336포트(mariad)가 없었다. 그래서 연결해 주었다.
ERROR: cohttp://m.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Exception during pool initialization.
java.sql.SQLNonTransientConnectionException: Socket fail to connect to host:address=(host=localhost)(port=13306)(type=primary). Connection refused (Connection refused)
at org.mariadb.jdbc.client.impl.ConnectionHelper.connectSocket(ConnectionHelper.java:137)
at org.mariadb.jdbc.client.impl.StandardClient.<init>(StandardClient.java:99)
at org.mariadb.jdbc.Driver.connect(Driver.java:70)
at org.mariadb.jdbc.Driver.connect(Driver.java:101)
at org.mariadb.jdbc.Driver.connect(Driver.java:27)
at net.sf.log4jdbc.sql.jdbcapi.DriverSpy.connect(DriverSpy.java:401)
at cohttp://m.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117)
at cohttp://m.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)