Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- . ____ _ __ _ _
- /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
- ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
- \\/ ___)| |_)| | | | | || (_| | ) ) ) )
- ' |____| .__|_| |_|_| |_\__, | / / / /
- =========|_|==============|___/=/_/_/_/
- :: Spring Boot :: (v2.0.2.RELEASE)
- 2019-10-18 15:19:21.276 INFO 1 --- [ main] b.c.PropertySourceBootstrapConfiguration : Located property source: CompositePropertySource {name='consul', propertySources=[ConsulPropertySource {name='config/coupons-category-service-production,production/'}, ConsulPropertySource {name='config/coupons-category-service-production/'}, ConsulPropertySource {name='config/application,production/'}, ConsulPropertySource {name='config/application/'}]}
- 2019-10-18 15:19:21.298 INFO 1 --- [ main] r.c.p.c.category.CategoryApplication : The following profiles are active: production
- 2019-10-18 15:19:21.369 INFO 1 --- [ main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@62ea3440: startup date [Fri Oct 18 15:19:21 MSK 2019]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@a530d0a
- 2019-10-18 15:19:24.262 INFO 1 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : 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]]
- 2019-10-18 15:19:27.186 INFO 1 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=f79e95b5-0b22-3ecd-9179-af9eee37e235
- 2019-10-18 15:19:27.450 INFO 1 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
- 2019-10-18 15:19:27.686 INFO 1 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.kafka.annotation.KafkaBootstrapConfiguration' of type [org.springframework.kafka.annotation.KafkaBootstrapConfiguration$$EnhancerBySpringCGLIB$$810574fd] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
- 2019-10-18 15:19:28.196 INFO 1 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.retry.annotation.RetryConfiguration' of type [org.springframework.retry.annotation.RetryConfiguration$$EnhancerBySpringCGLIB$$a316fb9f] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
- 2019-10-18 15:19:28.334 INFO 1 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$ad53637a] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
- 2019-10-18 15:19:28.625 INFO 1 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$c96d6677] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
- 2019-10-18 15:19:29.955 INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
- 2019-10-18 15:19:30.086 INFO 1 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
- 2019-10-18 15:19:30.087 INFO 1 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.31
- 2019-10-18 15:19:30.136 INFO 1 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : 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]
- 2019-10-18 15:19:30.463 INFO 1 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
- 2019-10-18 15:19:30.464 INFO 1 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 9095 ms
- 2019-10-18 15:19:31.522 WARN 1 --- [ost-startStop-1] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
- 2019-10-18 15:19:31.523 INFO 1 --- [ost-startStop-1] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
- 2019-10-18 15:19:31.600 INFO 1 --- [ost-startStop-1] c.netflix.config.DynamicPropertyFactory : DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@15e2d2c6
- 2019-10-18 15:19:35.457 INFO 1 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Servlet dispatcherServlet mapped to [/]
- 2019-10-18 15:19:35.483 INFO 1 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
- 2019-10-18 15:19:35.484 INFO 1 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
- 2019-10-18 15:19:35.484 INFO 1 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*]
- 2019-10-18 15:19:35.484 INFO 1 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
- 2019-10-18 15:19:35.484 INFO 1 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpTraceFilter' to: [/*]
- 2019-10-18 15:19:35.484 INFO 1 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'webMvcMetricsFilter' to: [/*]
- 2019-10-18 15:19:36.085 INFO 1 --- [ main] o.f.core.internal.util.VersionPrinter : Flyway Community Edition 5.0.7 by Boxfuse
- 2019-10-18 15:19:36.104 INFO 1 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
- 2019-10-18 15:19:36.328 INFO 1 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
- 2019-10-18 15:19:36.341 INFO 1 --- [ main] o.f.c.internal.database.DatabaseFactory : Database: jdbc:postgresql://pg-balancer.service.consul:6000/coupons (PostgreSQL 11.5)
- 2019-10-18 15:19:36.371 WARN 1 --- [ main] o.f.core.internal.database.Database : Flyway upgrade recommended: PostgreSQL 11.5 is newer than this version of Flyway and support has not been tested.
- 2019-10-18 15:19:36.486 INFO 1 --- [ main] o.f.core.internal.command.DbValidate : Successfully validated 6 migrations (execution time 00:00.058s)
- 2019-10-18 15:19:36.525 INFO 1 --- [ main] o.f.core.internal.command.DbMigrate : Current version of schema "public": 1.3
- 2019-10-18 15:19:36.541 INFO 1 --- [ main] o.f.core.internal.command.DbMigrate : Migrating schema "public" to version 1.4 - utils tasks
- 2019-10-18 15:19:36.564 ERROR 1 --- [ main] o.f.core.internal.command.DbMigrate : Migration of schema "public" to version 1.4 - utils tasks failed! Changes successfully rolled back.
- 2019-10-18 15:19:36.574 WARN 1 --- [ main] ConfigServletWebServerApplicationContext : 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.command.DbMigrate$FlywayMigrateSqlException:
- Migration V1_4__utils_tasks.sql failed
- --------------------------------------
- SQL State : 42501
- Error Code : 0
- Message : ERROR: permission denied for database coupons
- Location : db/migration/V1_4__utils_tasks.sql (/file:/app/category-service.jar!/BOOT-INF/lib/database-layer-0.0.1.jar!/db/migration/V1_4__utils_tasks.sql)
- Line : 1
- Statement : CREATE SCHEMA IF NOT EXISTS utils
- 2019-10-18 15:19:36.575 INFO 1 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
- 2019-10-18 15:19:36.593 INFO 1 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
- 2019-10-18 15:19:36.599 INFO 1 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
- 2019-10-18 15:19:36.642 INFO 1 --- [ main] ConditionEvaluationReportLoggingListener :
- Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
- 2019-10-18 15:19:36.653 ERROR 1 --- [ main] o.s.boot.SpringApplication : 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.command.DbMigrate$FlywayMigrateSqlException:
- Migration V1_4__utils_tasks.sql failed
- --------------------------------------
- SQL State : 42501
- Error Code : 0
- Message : ERROR: permission denied for database coupons
- Location : db/migration/V1_4__utils_tasks.sql (/file:/app/category-service.jar!/BOOT-INF/lib/database-layer-0.0.1.jar!/db/migration/V1_4__utils_tasks.sql)
- Line : 1
- Statement : CREATE SCHEMA IF NOT EXISTS utils
- 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:17)
- 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.command.DbMigrate$FlywayMigrateSqlException:
- Migration V1_4__utils_tasks.sql failed
- --------------------------------------
- SQL State : 42501
- Error Code : 0
- Message : ERROR: permission denied for database coupons
- Location : db/migration/V1_4__utils_tasks.sql (/file:/app/category-service.jar!/BOOT-INF/lib/database-layer-0.0.1.jar!/db/migration/V1_4__utils_tasks.sql)
- Line : 1
- Statement : CREATE SCHEMA IF NOT EXISTS utils
- at org.flywaydb.core.internal.command.DbMigrate.doMigrateGroup(DbMigrate.java:365)
- at org.flywaydb.core.internal.command.DbMigrate.access$400(DbMigrate.java:52)
- at org.flywaydb.core.internal.command.DbMigrate$5.call(DbMigrate.java:297)
- at org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:75)
- at org.flywaydb.core.internal.command.DbMigrate.applyMigrations(DbMigrate.java:294)
- at org.flywaydb.core.internal.command.DbMigrate.migrateGroup(DbMigrate.java:259)
- at org.flywaydb.core.internal.command.DbMigrate.access$300(DbMigrate.java:52)
- at org.flywaydb.core.internal.command.DbMigrate$4.call(DbMigrate.java:179)
- at org.flywaydb.core.internal.command.DbMigrate$4.call(DbMigrate.java:176)
- at org.flywaydb.core.internal.database.postgresql.PostgreSQLAdvisoryLockTemplate.execute(PostgreSQLAdvisoryLockTemplate.java:71)
- at org.flywaydb.core.internal.database.postgresql.PostgreSQLConnection.lock(PostgreSQLConnection.java:110)
- at org.flywaydb.core.internal.schemahistory.JdbcTableSchemaHistory.lock(JdbcTableSchemaHistory.java:148)
- at org.flywaydb.core.internal.command.DbMigrate.migrateAll(DbMigrate.java:176)
- at org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:145)
- at org.flywaydb.core.Flyway$1.execute(Flyway.java:1206)
- at org.flywaydb.core.Flyway$1.execute(Flyway.java:1168)
- at org.flywaydb.core.Flyway.execute(Flyway.java:1655)
- 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: ERROR: permission denied for database coupons
- at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2433)
- at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2178)
- at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:306)
- at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441)
- at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)
- at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:307)
- at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:293)
- at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:270)
- at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:266)
- at com.zaxxer.hikari.pool.ProxyStatement.execute(ProxyStatement.java:95)
- at com.zaxxer.hikari.pool.HikariProxyStatement.execute(HikariProxyStatement.java)
- at org.flywaydb.core.internal.util.jdbc.JdbcTemplate.executeStatement(JdbcTemplate.java:265)
- at org.flywaydb.core.internal.database.StandardSqlStatement.execute(StandardSqlStatement.java:41)
- at org.flywaydb.core.internal.database.ExecutableSqlScript.execute(ExecutableSqlScript.java:128)
- at org.flywaydb.core.internal.resolver.sql.SqlMigrationExecutor.execute(SqlMigrationExecutor.java:75)
- at org.flywaydb.core.internal.command.DbMigrate.doMigrateGroup(DbMigrate.java:363)
- ... 46 common frames omitted
- Listening for transport dt_socket at address: 8787
- 2019-10-18 15:20:10.167 INFO 1 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@2a54a73f: startup date [Fri Oct 18 15:20:10 MSK 2019]; root of context hierarchy
- 2019-10-18 15:20:11.002 INFO 1 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
- 2019-10-18 15:20:11.225 INFO 1 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.retry.annotation.RetryConfiguration' of type [org.springframework.retry.annotation.RetryConfiguration$$EnhancerBySpringCGLIB$$9a17dcf0] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
- 2019-10-18 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement