Advertisement
fedorm

Untitled

Apr 3rd, 2019
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 25.24 KB | None | 0 0
  1. 03.04 19:14:45.044 INFO [AutowiredAnnotationBeanPostProcessor:154] - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
  2.  
  3.   .   ____          _            __ _ _
  4.  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
  5. ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
  6.  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  7.   '  |____| .__|_| |_|_| |_\__, | / / / /
  8.  =========|_|==============|___/=/_/_/_/
  9.  :: Spring Boot ::        (v2.0.2.RELEASE)
  10.  
  11. 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/'}]}
  12. 03.04 19:14:46.599 INFO [SpringApplication:663] - The following profiles are active: production
  13. 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
  14. 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]]
  15. 03.04 19:14:48.465 INFO [GenericScope:294] - BeanFactory id=e837e71f-177d-3040-b77e-2a3c18705f6a
  16. 03.04 19:14:48.524 INFO [AutowiredAnnotationBeanPostProcessor:154] - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
  17. 03.04 19:14:49.188 INFO [TomcatWebServer:91] - Tomcat initialized with port(s): 8080 (http)
  18. 03.04 19:14:49.208 INFO [DirectJDKLog:180] - Initializing ProtocolHandler ["http-nio-8080"]
  19. 03.04 19:14:49.224 INFO [DirectJDKLog:180] - Starting service [Tomcat]
  20. 03.04 19:14:49.224 INFO [DirectJDKLog:180] - Starting Servlet Engine: Apache Tomcat/8.5.31
  21. 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]
  22. 03.04 19:14:49.342 INFO [DirectJDKLog:180] - Initializing Spring embedded WebApplicationContext
  23. 03.04 19:14:49.342 INFO [ServletWebServerApplicationContext:285] - Root WebApplicationContext: initialization completed in 2725 ms
  24. 03.04 19:14:49.685 WARN [URLConfigurationSource:121] - No URLs will be polled as dynamic configuration sources.
  25. 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.
  26. 03.04 19:14:49.710 INFO [DynamicPropertyFactory:281] - DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@201c1a92
  27. 03.04 19:14:50.840 INFO [ServletRegistrationBean:185] - Servlet dispatcherServlet mapped to [/]
  28. 03.04 19:14:50.846 INFO [AbstractFilterRegistrationBean:244] - Mapping filter: 'characterEncodingFilter' to: [/*]
  29. 03.04 19:14:50.847 INFO [AbstractFilterRegistrationBean:244] - Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
  30. 03.04 19:14:50.847 INFO [AbstractFilterRegistrationBean:244] - Mapping filter: 'httpPutFormContentFilter' to: [/*]
  31. 03.04 19:14:50.848 INFO [AbstractFilterRegistrationBean:244] - Mapping filter: 'requestContextFilter' to: [/*]
  32. 03.04 19:14:50.848 INFO [AbstractFilterRegistrationBean:244] - Mapping filter: 'httpTraceFilter' to: [/*]
  33. 03.04 19:14:50.848 INFO [AbstractFilterRegistrationBean:244] - Mapping filter: 'webMvcMetricsFilter' to: [/*]
  34. 03.04 19:14:51.041 INFO [Slf4jLog:44] - Flyway Community Edition 5.0.7 by Boxfuse
  35. 03.04 19:14:51.049 INFO [HikariDataSource:110] - HikariPool-1 - Starting...
  36. 03.04 19:14:51.091 WARN [ConnectionFactoryImpl:317] - IOException occurred while connecting to master.postgres-production.service.consul:5432
  37. java.net.UnknownHostException: master.postgres-production.service.consul
  38.     at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
  39.     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
  40.     at java.net.Socket.connect(Socket.java:589)
  41.     at org.postgresql.core.PGStream.<init>(PGStream.java:69)
  42.     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:156)
  43.     at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
  44.     at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
  45.     at org.postgresql.Driver.makeConnection(Driver.java:452)
  46.     at org.postgresql.Driver.connect(Driver.java:254)
  47.     at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117)
  48.     at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)
  49.     at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:365)
  50.     at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:194)
  51.     at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:460)
  52.     at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:534)
  53.     at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
  54.     at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
  55.     at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:51)
  56.     at org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(DatabaseFactory.java:67)
  57.     at org.flywaydb.core.Flyway.execute(Flyway.java:1634)
  58.     at org.flywaydb.core.Flyway.migrate(Flyway.java:1168)
  59.     at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66)
  60.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1765)
  61.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702)
  62.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:579)
  63.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501)
  64.     at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
  65.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
  66.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
  67.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  68.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
  69.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  70.     at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
  71.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859)
  72.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
  73.     at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
  74.     at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
  75.     at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
  76.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
  77.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
  78.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
  79.     at ru.crystals.processing.coupons.category.CategoryApplication.main(CategoryApplication.java:16)
  80.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  81.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  82.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  83.     at java.lang.reflect.Method.invoke(Method.java:498)
  84.     at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
  85.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
  86.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
  87.     at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
  88. 03.04 19:14:51.097 ERROR [Driver:263] - Connection error:
  89. org.postgresql.util.PSQLException: The connection attempt failed.
  90.     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:257)
  91.     at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
  92.     at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
  93.     at org.postgresql.Driver.makeConnection(Driver.java:452)
  94.     at org.postgresql.Driver.connect(Driver.java:254)
  95.     at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117)
  96.     at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)
  97.     at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:365)
  98.     at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:194)
  99.     at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:460)
  100.     at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:534)
  101.     at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
  102.     at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
  103.     at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:51)
  104.     at org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(DatabaseFactory.java:67)
  105.     at org.flywaydb.core.Flyway.execute(Flyway.java:1634)
  106.     at org.flywaydb.core.Flyway.migrate(Flyway.java:1168)
  107.     at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66)
  108.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1765)
  109.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702)
  110.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:579)
  111.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501)
  112.     at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
  113.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
  114.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
  115.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  116.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
  117.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  118.     at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
  119.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859)
  120.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
  121.     at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
  122.     at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
  123.     at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
  124.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
  125.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
  126.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
  127.     at ru.crystals.processing.coupons.category.CategoryApplication.main(CategoryApplication.java:16)
  128.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  129.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  130.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  131.     at java.lang.reflect.Method.invoke(Method.java:498)
  132.     at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
  133.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
  134.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
  135.     at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
  136. Caused by: java.net.UnknownHostException: master.postgres-production.service.consul
  137.     at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
  138.     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
  139.     at java.net.Socket.connect(Socket.java:589)
  140.     at org.postgresql.core.PGStream.<init>(PGStream.java:69)
  141.     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:156)
  142.     ... 45 common frames omitted
  143. 03.04 19:14:52.099 ERROR [HikariPool:567] - HikariPool-1 - Exception during pool initialization.
  144. org.postgresql.util.PSQLException: The connection attempt failed.
  145.     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:257)
  146.     at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
  147.     at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
  148.     at org.postgresql.Driver.makeConnection(Driver.java:452)
  149.     at org.postgresql.Driver.connect(Driver.java:254)
  150.     at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117)
  151.     at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)
  152.     at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:365)
  153.     at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:194)
  154.     at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:460)
  155.     at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:534)
  156.     at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
  157.     at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
  158.     at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:51)
  159.     at org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(DatabaseFactory.java:67)
  160.     at org.flywaydb.core.Flyway.execute(Flyway.java:1634)
  161.     at org.flywaydb.core.Flyway.migrate(Flyway.java:1168)
  162.     at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66)
  163.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1765)
  164.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702)
  165.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:579)
  166.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501)
  167.     at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
  168.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
  169.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
  170.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  171.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
  172.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  173.     at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
  174.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859)
  175.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
  176.     at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
  177.     at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
  178.     at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
  179.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
  180.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
  181.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
  182.     at ru.crystals.processing.coupons.category.CategoryApplication.main(CategoryApplication.java:16)
  183.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  184.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  185.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  186.     at java.lang.reflect.Method.invoke(Method.java:498)
  187.     at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
  188.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
  189.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
  190.     at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
  191. Caused by: java.net.UnknownHostException: master.postgres-production.service.consul
  192.     at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
  193.     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
  194.     at java.net.Socket.connect(Socket.java:589)
  195.     at org.postgresql.core.PGStream.<init>(PGStream.java:69)
  196.     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:156)
  197.     ... 45 common frames omitted
  198. 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:
  199. Unable to obtain database connection
  200. ------------------------------------
  201. SQL State  : 08001
  202. Error Code : 0
  203. Message    : The connection attempt failed.
  204.  
  205. 03.04 19:14:52.110 INFO [DirectJDKLog:180] - Stopping service [Tomcat]
  206. 03.04 19:14:52.135 INFO [ConditionEvaluationReportLoggingListener:101] -
  207.  
  208. Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
  209. 03.04 19:14:52.138 ERROR [SpringApplication:842] - Application run failed
  210. 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:
  211. Unable to obtain database connection
  212. ------------------------------------
  213. SQL State  : 08001
  214. Error Code : 0
  215. Message    : The connection attempt failed.
  216.  
  217.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1706)
  218.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:579)
  219.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501)
  220.     at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
  221.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
  222.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
  223.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  224.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
  225.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  226.     at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
  227.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859)
  228.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
  229.     at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
  230.     at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
  231.     at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
  232.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
  233.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
  234.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
  235.     at ru.crystals.processing.coupons.category.CategoryApplication.main(CategoryApplication.java:16)
  236.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  237.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  238.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  239.     at java.lang.reflect.Method.invoke(Method.java:498)
  240.     at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
  241.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
  242.     at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
  243.     at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
  244. Caused by: org.flywaydb.core.internal.exception.FlywaySqlException:
  245. Unable to obtain database connection
  246. ------------------------------------
  247. SQL State  : 08001
  248. Error Code : 0
  249. Message    : The connection attempt failed.
  250.  
  251.     at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:57)
  252.     at org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(DatabaseFactory.java:67)
  253.     at org.flywaydb.core.Flyway.execute(Flyway.java:1634)
  254.     at org.flywaydb.core.Flyway.migrate(Flyway.java:1168)
  255.     at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66)
  256.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1765)
  257.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702)
  258.     ... 26 common frames omitted
  259. Caused by: org.postgresql.util.PSQLException: The connection attempt failed.
  260.     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:257)
  261.     at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
  262.     at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
  263.     at org.postgresql.Driver.makeConnection(Driver.java:452)
  264.     at org.postgresql.Driver.connect(Driver.java:254)
  265.     at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117)
  266.     at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)
  267.     at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:365)
  268.     at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:194)
  269.     at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:460)
  270.     at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:534)
  271.     at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
  272.     at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
  273.     at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:51)
  274.     ... 32 common frames omitted
  275. Caused by: java.net.UnknownHostException: master.postgres-production.service.consul
  276.     at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
  277.     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
  278.     at java.net.Socket.connect(Socket.java:589)
  279.     at org.postgresql.core.PGStream.<init>(PGStream.java:69)
  280.     at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:156)
  281.     ... 45 common frames omitted
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement