Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 03.04 19:14:45.044 INFO [AutowiredAnnotationBeanPostProcessor:154] - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
- . ____ _ __ _ _
- /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
- ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
- \\/ ___)| |_)| | | | | || (_| | ) ) ) )
- ' |____| .__|_| |_|_| |_\__, | / / / /
- =========|_|==============|___/=/_/_/_/
- :: Spring Boot :: (v2.0.2.RELEASE)
- 03.04 19:14:46.592 INFO [PropertySourceBootstrapConfiguration:98] - Located property source: CompositePropertySource {name='consul', propertySources=[ConsulPropertySource {name='config/coupons-category-service-test,production/'}, ConsulPropertySource {name='config/coupons-category-service-test/'}, ConsulPropertySource {name='config/application,production/'}, ConsulPropertySource {name='config/application/'}]}
- 03.04 19:14:46.599 INFO [SpringApplication:663] - The following profiles are active: production
- 03.04 19:14:46.617 INFO [AbstractApplicationContext:590] - Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@312ab28e: startup date [Wed Apr 03 19:14:46 MSK 2019]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@41c2284a
- 03.04 19:14:47.381 INFO [DefaultListableBeanFactory:824] - Overriding bean definition for bean 'dataSource' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Generic; factoryMethodName=dataSource; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Generic.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Hikari; factoryMethodName=dataSource; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]]
- 03.04 19:14:48.465 INFO [GenericScope:294] - BeanFactory id=e837e71f-177d-3040-b77e-2a3c18705f6a
- 03.04 19:14:48.524 INFO [AutowiredAnnotationBeanPostProcessor:154] - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
- 03.04 19:14:49.188 INFO [TomcatWebServer:91] - Tomcat initialized with port(s): 8080 (http)
- 03.04 19:14:49.208 INFO [DirectJDKLog:180] - Initializing ProtocolHandler ["http-nio-8080"]
- 03.04 19:14:49.224 INFO [DirectJDKLog:180] - Starting service [Tomcat]
- 03.04 19:14:49.224 INFO [DirectJDKLog:180] - Starting Servlet Engine: Apache Tomcat/8.5.31
- 03.04 19:14:49.238 INFO [DirectJDKLog:180] - The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib]
- 03.04 19:14:49.342 INFO [DirectJDKLog:180] - Initializing Spring embedded WebApplicationContext
- 03.04 19:14:49.342 INFO [ServletWebServerApplicationContext:285] - Root WebApplicationContext: initialization completed in 2725 ms
- 03.04 19:14:49.685 WARN [URLConfigurationSource:121] - No URLs will be polled as dynamic configuration sources.
- 03.04 19:14:49.685 INFO [URLConfigurationSource:122] - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
- 03.04 19:14:49.710 INFO [DynamicPropertyFactory:281] - DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@201c1a92
- 03.04 19:14:50.840 INFO [ServletRegistrationBean:185] - Servlet dispatcherServlet mapped to [/]
- 03.04 19:14:50.846 INFO [AbstractFilterRegistrationBean:244] - Mapping filter: 'characterEncodingFilter' to: [/*]
- 03.04 19:14:50.847 INFO [AbstractFilterRegistrationBean:244] - Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
- 03.04 19:14:50.847 INFO [AbstractFilterRegistrationBean:244] - Mapping filter: 'httpPutFormContentFilter' to: [/*]
- 03.04 19:14:50.848 INFO [AbstractFilterRegistrationBean:244] - Mapping filter: 'requestContextFilter' to: [/*]
- 03.04 19:14:50.848 INFO [AbstractFilterRegistrationBean:244] - Mapping filter: 'httpTraceFilter' to: [/*]
- 03.04 19:14:50.848 INFO [AbstractFilterRegistrationBean:244] - Mapping filter: 'webMvcMetricsFilter' to: [/*]
- 03.04 19:14:51.041 INFO [Slf4jLog:44] - Flyway Community Edition 5.0.7 by Boxfuse
- 03.04 19:14:51.049 INFO [HikariDataSource:110] - HikariPool-1 - Starting...
- 03.04 19:14:51.091 WARN [ConnectionFactoryImpl:317] - IOException occurred while connecting to master.postgres-production.service.consul:5432
- java.net.UnknownHostException: master.postgres-production.service.consul
- at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
- at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
- at java.net.Socket.connect(Socket.java:589)
- at org.postgresql.core.PGStream.<init>(PGStream.java:69)
- at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:156)
- 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)
- 03.04 19:14:51.097 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.net.UnknownHostException: master.postgres-production.service.consul
- at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
- at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
- at java.net.Socket.connect(Socket.java:589)
- at org.postgresql.core.PGStream.<init>(PGStream.java:69)
- at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:156)
- ... 45 common frames omitted
- 03.04 19:14:52.099 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.net.UnknownHostException: master.postgres-production.service.consul
- at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
- at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
- at java.net.Socket.connect(Socket.java:589)
- at org.postgresql.core.PGStream.<init>(PGStream.java:69)
- at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:156)
- ... 45 common frames omitted
- 03.04 19:14:52.103 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.
- 03.04 19:14:52.110 INFO [DirectJDKLog:180] - Stopping service [Tomcat]
- 03.04 19:14:52.135 INFO [ConditionEvaluationReportLoggingListener:101] -
- Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
- 03.04 19:14:52.138 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.net.UnknownHostException: master.postgres-production.service.consul
- at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
- at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
- at java.net.Socket.connect(Socket.java:589)
- at org.postgresql.core.PGStream.<init>(PGStream.java:69)
- at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:156)
- ... 45 common frames omitted
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement