Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
- at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
- at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
- at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
- at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
- at ru.crystals.processing.coupons.category.CategoryApplication.main(CategoryApplication.java:16)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
- at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
- at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
- at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
- Caused by: java.io.EOFException: null
- at org.postgresql.core.PGStream.receiveChar(PGStream.java:295)
- at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:453)
- at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:205)
- ... 45 common frames omitted
- 18.10 11:30:19.231 WARN [AbstractApplicationContext:558] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.internal.exception.FlywaySqlException:
- Unable to obtain database connection
- ------------------------------------
- SQL State : 08001
- Error Code : 0
- Message : The connection attempt failed.
- 18.10 11:30:19.308 ERROR [SpringApplication:842] - Application run failed
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.internal.exception.FlywaySqlException:
- Unable to obtain database connection
- ------------------------------------
- SQL State : 08001
- Error Code : 0
- Message : The connection attempt failed.
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1706)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:579)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501)
- at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
- at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
- at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
- at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
- at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
- at ru.crystals.processing.coupons.category.CategoryApplication.main(CategoryApplication.java:16)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
- at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
- at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
- at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
- Caused by: org.flywaydb.core.internal.exception.FlywaySqlException:
- Unable to obtain database connection
- ------------------------------------
- SQL State : 08001
- Error Code : 0
- Message : The connection attempt failed.
- at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:57)
- at org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(DatabaseFactory.java:67)
- at org.flywaydb.core.Flyway.execute(Flyway.java:1634)
- at org.flywaydb.core.Flyway.migrate(Flyway.java:1168)
- at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1765)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702)
- ... 26 common frames omitted
- Caused by: org.postgresql.util.PSQLException: The connection attempt failed.
- at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:257)
- at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
- at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
- at org.postgresql.Driver.makeConnection(Driver.java:452)
- at org.postgresql.Driver.connect(Driver.java:254)
- at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117)
- at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)
- at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:365)
- at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:194)
- at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:460)
- at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:534)
- at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
- at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
- at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:51)
- ... 32 common frames omitted
- Caused by: java.io.EOFException: null
- at org.postgresql.core.PGStream.receiveChar(PGStream.java:295)
- at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:453)
- at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:205)
- ... 45 common frames omitted
- Listening for transport dt_socket at address: 8787
- . ____ _ __ _ _
- /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
- ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
- \\/ ___)| |_)| | | | | || (_| | ) ) ) )
- ' |____| .__|_| |_|_| |_\__, | / / / /
- =========|_|==============|___/=/_/_/_/
- :: Spring Boot :: (v2.0.2.RELEASE)
- 18.10 11:30:51.596 WARN [URLConfigurationSource:121] - No URLs will be polled as dynamic configuration sources.
- 18.10 11:30:53.690 WARN [ConnectionFactoryImpl:317] - IOException occurred while connecting to pg-balancer.service.consul:6000
- java.io.EOFException: null
- at org.postgresql.core.PGStream.receiveChar(PGStream.java:295)
- at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:453)
- at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:205)
- at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
- at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
- at org.postgresql.Driver.makeConnection(Driver.java:452)
- at org.postgresql.Driver.connect(Driver.java:254)
- at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117)
- at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)
- at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:365)
- at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:194)
- at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:460)
- at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:534)
- at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
- at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
- at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:51)
- at org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(DatabaseFactory.java:67)
- at org.flywaydb.core.Flyway.execute(Flyway.java:1634)
- at org.flywaydb.core.Flyway.migrate(Flyway.java:1168)
- at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1765)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:579)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501)
- at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
- at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
- at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
- at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
- at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
- at ru.crystals.processing.coupons.category.CategoryApplication.main(CategoryApplication.java:16)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
- at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
- at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
- at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
- 18.10 11:30:53.697 ERROR [Driver:263] - Connection error:
- org.postgresql.util.PSQLException: The connection attempt failed.
- at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:257)
- at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
- at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
- at org.postgresql.Driver.makeConnection(Driver.java:452)
- at org.postgresql.Driver.connect(Driver.java:254)
- at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117)
- at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)
- at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:365)
- at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:194)
- at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:460)
- at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:534)
- at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
- at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
- at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:51)
- at org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(DatabaseFactory.java:67)
- at org.flywaydb.core.Flyway.execute(Flyway.java:1634)
- at org.flywaydb.core.Flyway.migrate(Flyway.java:1168)
- at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1765)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:579)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501)
- at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
- at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
- at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
- at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
- at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
- at ru.crystals.processing.coupons.category.CategoryApplication.main(CategoryApplication.java:16)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
- at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
- at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
- at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
- Caused by: java.io.EOFException: null
- at org.postgresql.core.PGStream.receiveChar(PGStream.java:295)
- at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:453)
- at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:205)
- ... 45 common frames omitted
- 18.10 11:30:54.698 ERROR [HikariPool:567] - HikariPool-1 - Exception during pool initialization.
- org.postgresql.util.PSQLException: The connection attempt failed.
- at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:257)
- at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
- at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
- at org.postgresql.Driver.makeConnection(Driver.java:452)
- at org.postgresql.Driver.connect(Driver.java:254)
- at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117)
- at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)
- at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:365)
- at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:194)
- at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:460)
- at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:534)
- at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
- at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
- at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:51)
- at org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(DatabaseFactory.java:67)
- at org.flywaydb.core.Flyway.execute(Flyway.java:1634)
- at org.flywaydb.core.Flyway.migrate(Flyway.java:1168)
- at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1765)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:579)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501)
- at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
- at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
- at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
- at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
- at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
- at ru.crystals.processing.coupons.category.CategoryApplication.main(CategoryApplication.java:16)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
- at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
- at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
- at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
- Caused by: java.io.EOFException: null
- at org.postgresql.core.PGStream.receiveChar(PGStream.java:295)
- at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:453)
- at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:205)
- ... 45 common frames omitted
- 18.10 11:30:54.706 WARN [AbstractApplicationContext:558] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.internal.exception.FlywaySqlException:
- Unable to obtain database connection
- ------------------------------------
- SQL State : 08001
- Error Code : 0
- Message : The connection attempt failed.
- 18.10 11:30:54.765 ERROR [SpringApplication:842] - Application run failed
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.internal.exception.FlywaySqlException:
- Unable to obtain database connection
- ------------------------------------
- SQL State : 08001
- Error Code : 0
- Message : The connection attempt failed.
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1706)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:579)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501)
- at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
- at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
- at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
- at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
- at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
- at ru.crystals.processing.coupons.category.CategoryApplication.main(CategoryApplication.java:16)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
- at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
- at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
- at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
- Caused by: org.flywaydb.core.internal.exception.FlywaySqlException:
- Unable to obtain database connection
- ------------------------------------
- SQL State : 08001
- Error Code : 0
- Message : The connection attempt failed.
- at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:57)
- at org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(DatabaseFactory.java:67)
- at org.flywaydb.core.Flyway.execute(Flyway.java:1634)
- at org.flywaydb.core.Flyway.migrate(Flyway.java:1168)
- at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1765)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702)
- ... 26 common frames omitted
- Caused by: org.postgresql.util.PSQLException: The connection attempt failed.
- at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:257)
- at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
- at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
- at org.postgresql.Driver.makeConnection(Driver.java:452)
- at org.postgresql.Driver.connect(Driver.java:254)
- at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117)
- at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)
- at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:365)
- at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:194)
- at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:460)
- at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:534)
- at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
- at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
- at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:51)
- ... 32 common frames omitted
- Caused by: java.io.EOFException: null
- at org.postgresql.core.PGStream.receiveChar(PGStream.java:295)
- at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:453)
- at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:205)
- ... 45 common frames omitted
- Listening for transport dt_socket at address: 8787
- . ____ _ __ _ _
- /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
- ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
- \\/ ___)| |_)| | | | | || (_| | ) ) ) )
- ' |____| .__|_| |_|_| |_\__, | / / / /
- =========|_|==============|___/=/_/_/_/
- :: Spring Boot :: (v2.0.2.RELEASE)
- 18.10 11:31:29.071 WARN [URLConfigurationSource:121] - No URLs will be polled as dynamic configuration sources.
- 18.10 11:31:31.139 WARN [ConnectionFactoryImpl:317] - IOException occurred while connecting to pg-balancer.service.consul:6000
- java.io.EOFException: null
- at org.postgresql.core.PGStream.receiveChar(PGStream.java:295)
- at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:453)
- at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:205)
- at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
- at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
- at org.postgresql.Driver.makeConnection(Driver.java:452)
- at org.postgresql.Driver.connect(Driver.java:254)
- at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117)
- at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)
- at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:365)
- at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:194)
- at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:460)
- at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:534)
- at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
- at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
- at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:51)
- at org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(DatabaseFactory.java:67)
- at org.flywaydb.core.Flyway.execute(Flyway.java:1634)
- at org.flywaydb.core.Flyway.migrate(Flyway.java:1168)
- at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1765)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:579)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501)
- at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
- at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
- at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
- at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
- at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
- at ru.crystals.processing.coupons.category.CategoryApplication.main(CategoryApplication.java:16)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
- at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
- at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
- at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
- 18.10 11:31:31.148 ERROR [Driver:263] - Connection error:
- org.postgresql.util.PSQLException: The connection attempt failed.
- at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:257)
- at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
- at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
- at org.postgresql.Driver.makeConnection(Driver.java:452)
- at org.postgresql.Driver.connect(Driver.java:254)
- at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117)
- at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)
- at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:365)
- at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:194)
- at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:460)
- at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:534)
- at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
- at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
- at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:51)
- at org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(DatabaseFactory.java:67)
- at org.flywaydb.core.Flyway.execute(Flyway.java:1634)
- at org.flywaydb.core.Flyway.migrate(Flyway.java:1168)
- at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1765)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:579)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501)
- at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
- at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
- at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
- at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
- at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
- at ru.crystals.processing.coupons.category.CategoryApplication.main(CategoryApplication.java:16)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
- at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
- at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
- at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
- Caused by: java.io.EOFException: null
- at org.postgresql.core.PGStream.receiveChar(PGStream.java:295)
- at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:453)
- at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:205)
- ... 45 common frames omitted
- 18.10 11:31:32.150 ERROR [HikariPool:567] - HikariPool-1 - Exception during pool initialization.
- org.postgresql.util.PSQLException: The connection attempt failed.
- at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:257)
- at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
- at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
- at org.postgresql.Driver.makeConnection(Driver.java:452)
- at org.postgresql.Driver.connect(Driver.java:254)
- at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117)
- at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)
- at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:365)
- at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:194)
- at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:460)
- at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:534)
- at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
- at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
- at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:51)
- at org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(DatabaseFactory.java:67)
- at org.flywaydb.core.Flyway.execute(Flyway.java:1634)
- at org.flywaydb.core.Flyway.migrate(Flyway.java:1168)
- at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1765)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:579)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501)
- at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
- at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
- at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
- at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
- at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
- at ru.crystals.processing.coupons.category.CategoryApplication.main(CategoryApplication.java:16)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
- at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
- at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
- at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
- Caused by: java.io.EOFException: null
- at org.postgresql.core.PGStream.receiveChar(PGStream.java:295)
- at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:453)
- at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:205)
- ... 45 common frames omitted
- 18.10 11:31:32.158 WARN [AbstractApplicationContext:558] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.internal.exception.FlywaySqlException:
- Unable to obtain database connection
- ------------------------------------
- SQL State : 08001
- Error Code : 0
- Message : The connection attempt failed.
- 18.10 11:31:32.207 ERROR [SpringApplication:842] - Application run failed
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.internal.exception.FlywaySqlException:
- Unable to obtain database connection
- ------------------------------------
- SQL State : 08001
- Error Code : 0
- Message : The connection attempt failed.
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1706)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:579)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501)
- at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
- at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
- at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
- at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
- at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
- at ru.crystals.processing.coupons.category.CategoryApplication.main(CategoryApplication.java:16)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
- at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
- at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
- at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
- Caused by: org.flywaydb.core.internal.exception.FlywaySqlException:
- Unable to obtain database connection
- ------------------------------------
- SQL State : 08001
- Error Code : 0
- Message : The connection attempt failed.
- at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:57)
- at org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(DatabaseFactory.java:67)
- at org.flywaydb.core.Flyway.execute(Flyway.java:1634)
- at org.flywaydb.core.Flyway.migrate(Flyway.java:1168)
- at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1765)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702)
- ... 26 common frames omitted
- Caused by: org.postgresql.util.PSQLException: The connection attempt failed.
- at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:257)
- at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
- at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
- at org.postgresql.Driver.makeConnection(Driver.java:452)
- at org.postgresql.Driver.connect(Driver.java:254)
- at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117)
- at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)
- at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:365)
- at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:194)
- at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:460)
- at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:534)
- at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
- at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
- at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:51)
- ... 32 common frames omitted
- Caused by: java.io.EOFException: null
- at org.postgresql.core.PGStream.receiveChar(PGStream.java:295)
- at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:453)
- at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:205)
- ... 45 common frames omitte
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement