[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] mod-configuration [INFO] mod-configuration-server [INFO] mod-configuration-client [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building mod-configuration 5.0.2-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- exec-maven-plugin:1.5.0:exec (git submodule update) @ mod-configuration --- Submodule 'raml-util' (https://github.com/folio-org/raml.git) registered for path 'ramls/raml-util' Cloning into '/home/adam/folio/mod-configuration/ramls/raml-util'... Submodule path 'ramls/raml-util': checked out 'bf5b23978b71776c59eca1fd6b33c7fb315b0f2a' [INFO] [INFO] --- maven-resources-plugin:3.0.1:copy-resources (filter-descriptor-inputs) @ mod-configuration --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] [INFO] --- copy-rename-maven-plugin:1.0:rename (rename-descriptor-outputs) @ mod-configuration --- [INFO] Renamed /home/adam/folio/mod-configuration/target/ModuleDescriptor-template.json to /home/adam/folio/mod-configuration/target/ModuleDescriptor.json [INFO] Renamed /home/adam/folio/mod-configuration/target/DeploymentDescriptor-template.json to /home/adam/folio/mod-configuration/target/DeploymentDescriptor.json [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ mod-configuration --- [INFO] Installing /home/adam/folio/mod-configuration/pom.xml to /home/adam/.m2/repository/org/folio/mod-configuration/5.0.2-SNAPSHOT/mod-configuration-5.0.2-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building mod-configuration-server 5.0.2-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/build-helper-maven-plugin/1.12/build-helper-maven-plugin-1.12.pom [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/build-helper-maven-plugin/1.12/build-helper-maven-plugin-1.12.pom (6.1 kB at 11 kB/s) [INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/build-helper-maven-plugin/1.12/build-helper-maven-plugin-1.12.jar [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/build-helper-maven-plugin/1.12/build-helper-maven-plugin-1.12.jar (62 kB at 566 kB/s) [INFO] [INFO] --- exec-maven-plugin:1.5.0:exec (git submodule update) @ mod-configuration-server --- [INFO] [INFO] --- exec-maven-plugin:1.5.0:java (generate_interfaces) @ mod-configuration-server --- 22 Mar 2019 16:10:37:555 INFO GenerateRunner [7771eqId] copying ramls from source directory at: /home/adam/folio/mod-configuration/ramls 22 Mar 2019 16:10:37:558 INFO GenerateRunner [7774eqId] copying ramls to target directory at: /home/adam/folio/mod-configuration/mod-configuration-server/target/classes/ramls SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 22 Mar 2019 16:10:39:151 INFO GenerateRunner [9367eqId] Input directory /home/adam/folio/mod-configuration/mod-configuration-server/target/classes/ramls/configuration 22 Mar 2019 16:10:39:154 INFO GenerateRunner [9370eqId] processing /home/adam/folio/mod-configuration/mod-configuration-server/target/classes/ramls/configuration/config.raml 22 Mar 2019 16:10:39:435 INFO CustomTypeAnnotator [9651eqId] Loading custom field readonly with value true with annotation {"type":"javax.validation.constraints.Null"} 22 Mar 2019 16:10:39:476 INFO CustomTypeAnnotator [9692eqId] Configs is using resultInfo 22 Mar 2019 16:10:39:480 INFO CustomTypeAnnotator [9696eqId] Config is using metadata 22 Mar 2019 16:10:39:499 INFO CustomTypeAnnotator [9715eqId] Attempting to annotate metadata with javax.validation.constraints.Null 22 Mar 2019 16:10:39:509 INFO CustomTypeAnnotator [9725eqId] Attempting to annotate resultInfo with javax.validation.constraints.Null org/folio/rest/jaxrs/model/Config.java org/folio/rest/jaxrs/model/Configs.java org/folio/rest/jaxrs/model/Diagnostic.java org/folio/rest/jaxrs/model/Facet.java org/folio/rest/jaxrs/model/FacetValue.java org/folio/rest/jaxrs/model/Metadata.java org/folio/rest/jaxrs/model/ResultInfo.java org/folio/rest/jaxrs/model/Libraries.java org/folio/rest/jaxrs/model/LibraryDatum.java org/folio/rest/jaxrs/model/Scope.java 22 Mar 2019 16:10:39:544 INFO CustomTypeAnnotator [9760eqId] Config is using metadata 22 Mar 2019 16:10:39:547 INFO CustomTypeAnnotator [9763eqId] Attempting to annotate metadata with javax.validation.constraints.Null org/folio/rest/jaxrs/model/Config.java org/folio/rest/jaxrs/model/Metadata.java 22 Mar 2019 16:10:39:556 INFO CustomTypeAnnotator [9772eqId] Content is using metadata 22 Mar 2019 16:10:39:559 INFO CustomTypeAnnotator [9775eqId] Attempting to annotate metadata with javax.validation.constraints.Null org/folio/rest/jaxrs/model/Audit.java org/folio/rest/jaxrs/model/Audits.java org/folio/rest/jaxrs/model/Content.java org/folio/rest/jaxrs/model/Jsonb.java org/folio/rest/jaxrs/model/Metadata.java org/folio/rest/jaxrs/model/Error.java org/folio/rest/jaxrs/model/Errors.java org/folio/rest/jaxrs/model/Parameter.java Attempting to read in the module name from..../home/adam/.m2/repository/org/folio/domain-models-interface-extensions/23.11.0/domain-models-interface-extensions-23.11.0.jar 22 Mar 2019 16:10:39:740 INFO PomReader [9956eqId] module name: mod_configuration, version: 5.0.2 22 Mar 2019 16:10:39:922 INFO GenerateRunner [10138eqId] processed /home/adam/folio/mod-configuration/mod-configuration-server/target/classes/ramls/configuration/config.raml 22 Mar 2019 16:10:39:923 INFO GenerateRunner [10139eqId] processed: 1 raml files 22 Mar 2019 16:10:39:945 INFO GenerateRunner [10161eqId] lookup list file created: /home/adam/folio/mod-configuration/mod-configuration-server/target/classes/ramls/raml.list 22 Mar 2019 16:10:39:956 INFO GenerateRunner [10172eqId] lookup list file created: /home/adam/folio/mod-configuration/mod-configuration-server/target/classes/ramls/json-schema.list [INFO] [INFO] --- build-helper-maven-plugin:1.12:add-source (default) @ mod-configuration-server --- [INFO] Source directory: /home/adam/folio/mod-configuration/mod-configuration-server/target/generated-sources/raml-jaxrs added. [INFO] [INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ mod-configuration-server --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 3 resources [INFO] [INFO] --- maven-resources-plugin:3.0.1:copy-resources (copy-resources) @ mod-configuration-server --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 102 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ mod-configuration-server --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 22 source files to /home/adam/folio/mod-configuration/mod-configuration-server/target/classes [INFO] [INFO] --- aspectj-maven-plugin:1.9:compile (default) @ mod-configuration-server --- [INFO] Showing AJC message detail for messages of types: [error, warning, fail] [INFO] Join point 'method-execution(void org.folio.rest.impl.ConfigAPI.getConfigurationsEntries(java.lang.String, int, int, java.util.List, java.lang.String, java.util.Map, io.vertx.core.Handler, io.vertx.core.Context))' in Type 'org.folio.rest.impl.ConfigAPI' (ConfigAPI.java:86) advised by before advice from 'org.folio.rest.annotations.RestValidator' (domain-models-api-aspects-23.11.0.jar!RestValidator.class:37(from RestValidator.aj)) [INFO] Join point 'method-execution(void org.folio.rest.impl.ConfigAPI.postConfigurationsEntries(java.lang.String, org.folio.rest.jaxrs.model.Config, java.util.Map, io.vertx.core.Handler, io.vertx.core.Context))' in Type 'org.folio.rest.impl.ConfigAPI' (ConfigAPI.java:143) advised by before advice from 'org.folio.rest.annotations.RestValidator' (domain-models-api-aspects-23.11.0.jar!RestValidator.class:37(from RestValidator.aj)) [INFO] Join point 'method-execution(void org.folio.rest.impl.ConfigAPI.getConfigurationsEntriesByEntryId(java.lang.String, java.lang.String, java.util.Map, io.vertx.core.Handler, io.vertx.core.Context))' in Type 'org.folio.rest.impl.ConfigAPI' (ConfigAPI.java:195) advised by before advice from 'org.folio.rest.annotations.RestValidator' (domain-models-api-aspects-23.11.0.jar!RestValidator.class:37(from RestValidator.aj)) [INFO] Join point 'method-execution(void org.folio.rest.impl.ConfigAPI.deleteConfigurationsEntriesByEntryId(java.lang.String, java.lang.String, java.util.Map, io.vertx.core.Handler, io.vertx.core.Context))' in Type 'org.folio.rest.impl.ConfigAPI' (ConfigAPI.java:248) advised by before advice from 'org.folio.rest.annotations.RestValidator' (domain-models-api-aspects-23.11.0.jar!RestValidator.class:37(from RestValidator.aj)) [INFO] Join point 'method-execution(void org.folio.rest.impl.ConfigAPI.putConfigurationsEntriesByEntryId(java.lang.String, java.lang.String, org.folio.rest.jaxrs.model.Config, java.util.Map, io.vertx.core.Handler, io.vertx.core.Context))' in Type 'org.folio.rest.impl.ConfigAPI' (ConfigAPI.java:296) advised by before advice from 'org.folio.rest.annotations.RestValidator' (domain-models-api-aspects-23.11.0.jar!RestValidator.class:37(from RestValidator.aj)) [INFO] Join point 'method-execution(void org.folio.rest.impl.ConfigAPI.getConfigurationsAudit(java.lang.String, int, int, java.lang.String, java.util.Map, io.vertx.core.Handler, io.vertx.core.Context))' in Type 'org.folio.rest.impl.ConfigAPI' (ConfigAPI.java:366) advised by before advice from 'org.folio.rest.annotations.RestValidator' (domain-models-api-aspects-23.11.0.jar!RestValidator.class:37(from RestValidator.aj)) [INFO] [INFO] --- maven-checkstyle-plugin:2.17:check (verify-style) @ mod-configuration-server --- [INFO] There are 42 errors reported by Checkstyle 6.11.2 with https://raw.githubusercontent.com/folio-org/raml-module-builder/master/codestyles.xml ruleset. [ERROR] src/main/java/org/folio/rest/impl/ConfigAPI.java:[12] (imports) AvoidStarImport: Using the '.*' form of import should be avoided - org.folio.rest.jaxrs.model.*. [ERROR] src/main/java/org/folio/rest/impl/ConfigAPI.java:[41] (imports) AvoidStaticImport: Using a static member import should be avoided - io.vertx.core.Future.succeededFuture. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[33,18] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[41,19] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[42,6] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[43,6] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[44,6] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[45,18] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[46,6] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[47,6] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[48,6] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[49,19] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[50,17] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[52,6] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[53,6] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[70,17] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[72,6] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[73,6] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[103,17] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[105,6] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[106,6] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[136,17] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[138,6] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[139,6] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[157,17] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[159,6] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[160,6] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[174,18] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[182,19] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[183,6] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[184,6] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[185,6] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[186,18] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[187,6] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[188,6] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[189,6] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[190,17] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[192,6] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[193,6] (whitespace) FileTabCharacter: Line contains a tab character. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/Configurations.java:[257,54] (coding) EmptyStatement: Empty statement. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/support/ResponseDelegate.java:[167,41] (design) VisibilityModifier: Variable 'headerMap' must be private and have accessor methods. [ERROR] target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs/resource/support/ResponseDelegate.java:[176,47] (coding) EmptyStatement: Empty statement. [WARNING] checkstyle:check violations detected but failOnViolation set to false [INFO] [INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) @ mod-configuration-server --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 4 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ mod-configuration-server --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 9 source files to /home/adam/folio/mod-configuration/mod-configuration-server/target/test-classes [WARNING] /home/adam/folio/mod-configuration/mod-configuration-server/src/test/java/org/folio/rest/Test.java: Some input files use or override a deprecated API. [WARNING] /home/adam/folio/mod-configuration/mod-configuration-server/src/test/java/org/folio/rest/Test.java: Recompile with -Xlint:deprecation for details. [INFO] [INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ mod-configuration-server --- ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.folio.rest.impl.CustomHealthCheckTest SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 22 Mar 2019 16:10:47:774 INFO Version [1315eqId] HV000001: Hibernate Validator 5.2.4.Final Mar 22, 2019 4:10:47 PM org.folio.rest.tools.messages.Messages INFO: Loading messages from /infra-messages/APIMessages_de.properties ................................ Mar 22, 2019 4:10:47 PM org.folio.rest.tools.messages.Messages INFO: Loading messages from /infra-messages/APIMessages_en.properties ................................ Mar 22, 2019 4:10:47 PM org.folio.rest.RestVerticle INFO: git: https://github.com/folio-org/raml-module-builder.git 74fcd38fd165662ae2b3bdbcd7298f5f05a8aae0 no rules directory found, continuing... Mar 22, 2019 4:10:48 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start metrics enabled: false Mar 22, 2019 4:10:48 PM org.folio.rest.tools.AnnotationGrabber INFO: Mapping functions in org.folio.rest.jaxrs.resource.Configurations class to appropriate urls Mar 22, 2019 4:10:48 PM org.folio.rest.tools.AnnotationGrabber INFO: Mapping functions in org.folio.rest.jaxrs.resource.Rmbtests class to appropriate urls Mar 22, 2019 4:10:48 PM org.folio.rest.tools.AnnotationGrabber INFO: Mapping functions in org.folio.rest.jaxrs.resource.Tenant class to appropriate urls Mar 22, 2019 4:10:48 PM org.folio.rest.tools.AnnotationGrabber INFO: Mapping functions in org.folio.rest.jaxrs.resource.JsonSchemas class to appropriate urls Mar 22, 2019 4:10:48 PM org.folio.rest.tools.AnnotationGrabber INFO: Mapping functions in org.folio.rest.jaxrs.resource.Ramls class to appropriate urls Mar 22, 2019 4:10:48 PM org.folio.rest.tools.AnnotationGrabber INFO: Mapping functions in org.folio.rest.jaxrs.resource.Admin class to appropriate urls Mar 22, 2019 4:10:48 PM org.folio.rest.tools.AnnotationGrabber INFO: Mapping functions in org.folio.rest.jaxrs.resource.Jobs class to appropriate urls Mar 22, 2019 4:10:48 PM org.folio.rest.RestVerticle INFO: ^/configurations Mar 22, 2019 4:10:48 PM org.folio.rest.RestVerticle INFO: ^/rmbtests Mar 22, 2019 4:10:48 PM org.folio.rest.RestVerticle INFO: ^/_/tenant Mar 22, 2019 4:10:48 PM org.folio.rest.RestVerticle INFO: ^/_/jsonSchemas Mar 22, 2019 4:10:48 PM org.folio.rest.RestVerticle INFO: ^/_/ramls Mar 22, 2019 4:10:48 PM org.folio.rest.RestVerticle INFO: ^/admin Mar 22, 2019 4:10:48 PM org.folio.rest.RestVerticle INFO: ^/jobs Mar 22, 2019 4:10:48 PM org.folio.rest.RestVerticle INFO: 1 verticles deployed Mar 22, 2019 4:10:49 PM org.folio.rest.RestVerticle INFO: init succeeded....... Mar 22, 2019 4:10:49 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle runPeriodicHook no periodic implementation found, continuing with deployment Getting secret key to decode DB password. Mar 22, 2019 4:10:49 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle runHook Post Deploy Hook called with implemented class named org.folio.rest.impl.InitConfigService Mar 22, 2019 4:10:49 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start http server for apis and docs started on port 49240. Mar 22, 2019 4:10:49 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start Documentation available at: http://localhost:49240/apidocs/ Mar 22, 2019 4:10:49 PM org.folio.rest.impl.CustomHealthCheck INFO: --- this is an over ride of the Module Stats API by the config module Mar 22, 2019 4:10:49 PM org.folio.rest.impl.CustomHealthCheck INFO: --- this is an over ride of the health API by the config module 200 Mar 22, 2019 4:10:49 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle runShutdownHook no shutdown hook implementation found, continuing with shutdown Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.043 sec - in org.folio.rest.impl.CustomHealthCheckTest Running org.folio.rest.RestVerticleTest Attempting to read in the module name from..../home/adam/.m2/repository/org/folio/domain-models-interface-extensions/23.11.0/domain-models-interface-extensions-23.11.0.jar Mar 22, 2019 4:10:49 PM org.folio.rest.tools.PomReader INFO: module name: mod_configuration, version: 5.0.2 Mar 22, 2019 4:10:49 PM org.folio.rest.persist.PostgresClient INFO: DB config read from environment variables Mar 22, 2019 4:10:49 PM org.folio.rest.persist.PostgresClient INFO: postgreSQLClientConfig = {"maxPoolSize":26,"port":57384,"queryTimeout":10000,"username":"username","charset":"UTF8","host":"localhost","database":"postgres","password":"..."} Mar 22, 2019 4:10:50 PM io.vertx.ext.asyncsql.impl.PostgreSQLClientImpl INFO: Creating configuration for localhost:57384 Extract /home/adam/.embedpostgresql/postgresql-10.3-1-linux-x64-binaries.tar.gz START ..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Extract /home/adam/.embedpostgresql/postgresql-10.3-1-linux-x64-binaries.tar.gz DONE Mar 22, 2019 4:10:54 PM org.folio.rest.persist.PostgresClient INFO: embedded postgres started on port 57384 Mar 22, 2019 4:10:54 PM org.folio.rest.RestVerticle INFO: git: https://github.com/folio-org/raml-module-builder.git 74fcd38fd165662ae2b3bdbcd7298f5f05a8aae0 no rules directory found, continuing... Mar 22, 2019 4:10:54 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start metrics enabled: false Mar 22, 2019 4:10:54 PM org.folio.rest.tools.AnnotationGrabber INFO: Mapping functions in org.folio.rest.jaxrs.resource.Configurations class to appropriate urls Mar 22, 2019 4:10:54 PM org.folio.rest.tools.AnnotationGrabber INFO: Mapping functions in org.folio.rest.jaxrs.resource.Rmbtests class to appropriate urls Mar 22, 2019 4:10:54 PM org.folio.rest.tools.AnnotationGrabber INFO: Mapping functions in org.folio.rest.jaxrs.resource.Tenant class to appropriate urls Mar 22, 2019 4:10:54 PM org.folio.rest.tools.AnnotationGrabber INFO: Mapping functions in org.folio.rest.jaxrs.resource.JsonSchemas class to appropriate urls Mar 22, 2019 4:10:54 PM org.folio.rest.tools.AnnotationGrabber INFO: Mapping functions in org.folio.rest.jaxrs.resource.Ramls class to appropriate urls Mar 22, 2019 4:10:54 PM org.folio.rest.tools.AnnotationGrabber INFO: Mapping functions in org.folio.rest.jaxrs.resource.Admin class to appropriate urls Mar 22, 2019 4:10:54 PM org.folio.rest.tools.AnnotationGrabber INFO: Mapping functions in org.folio.rest.jaxrs.resource.Jobs class to appropriate urls Mar 22, 2019 4:10:54 PM org.folio.rest.RestVerticle INFO: ^/configurations Mar 22, 2019 4:10:54 PM org.folio.rest.RestVerticle INFO: ^/rmbtests Mar 22, 2019 4:10:54 PM org.folio.rest.RestVerticle INFO: ^/_/tenant Mar 22, 2019 4:10:54 PM org.folio.rest.RestVerticle INFO: ^/_/jsonSchemas Mar 22, 2019 4:10:54 PM org.folio.rest.RestVerticle INFO: ^/_/ramls Mar 22, 2019 4:10:54 PM org.folio.rest.RestVerticle INFO: ^/admin Mar 22, 2019 4:10:54 PM org.folio.rest.RestVerticle INFO: ^/jobs Mar 22, 2019 4:10:54 PM org.folio.rest.RestVerticle INFO: 1 verticles deployed Mar 22, 2019 4:10:54 PM org.folio.rest.RestVerticle INFO: init succeeded....... Mar 22, 2019 4:10:54 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle runPeriodicHook no periodic implementation found, continuing with deployment Getting secret key to decode DB password. Mar 22, 2019 4:10:54 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle runHook Post Deploy Hook called with implemented class named org.folio.rest.impl.InitConfigService Mar 22, 2019 4:10:54 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start http server for apis and docs started on port 63188. Mar 22, 2019 4:10:54 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start Documentation available at: http://localhost:63188/apidocs/ Mar 22, 2019 4:10:55 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57212 POST /_/tenant null HTTP_1_1 422 114 -1 tid=null Unprocessable Entity {"errors":[{"message":"may not be null","type":"1","code":"-1","parameters":[{"key":"moduleTo","value":"null"}]}]} Mar 22, 2019 4:10:55 PM org.folio.rest.RestVerticle WARNING: Problem parsing x-okapi-token header, for path /_/tenant - 1 Mar 22, 2019 4:10:55 PM org.folio.rest.impl.TenantAPI INFO: sending... postTenant for harvard Mar 22, 2019 4:10:55 PM org.folio.rest.impl.TenantAPI INFO: adding/updating tenant harvard Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Executing multiple statements with id -2073988900 Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE EXTENSION IF NOT EXISTS pgcrypto WITH SCHEMA public Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE EXTENSION IF NOT EXISTS pgcrypto WITH SCHEMA public Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE EXTENSION IF NOT EXISTS unaccent WITH SCHEMA public Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE EXTENSION IF NOT EXISTS unaccent WITH SCHEMA public Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA public Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA public Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE ROLE harvard_mod_configuration PASSWORD 'MmGS6f+40djiiXv1bkIC1Q==' NOSUPERUSER NOCREATEDB INHERIT LOGIN Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE ROLE harvard_mod_configuration PASSWORD 'MmGS6f+40djiiXv1bkIC1Q==' NOSUPERUSER NOCREATEDB INHERIT LOGIN Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: GRANT harvard_mod_configuration TO CURRENT_USER Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: GRANT harvard_mod_configuration TO CURRENT_USER Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE SCHEMA harvard_mod_configuration AUTHORIZATION harvard_mod_configuration Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE SCHEMA harvard_mod_configuration AUTHORIZATION harvard_mod_configuration Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE TABLE IF NOT EXISTS harvard_mod_configuration.rmb_internal ( id SERIAL PRIMARY KEY, jsonb JSONB NOT NULL ) Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE TABLE IF NOT EXISTS harvard_mod_configuration.rmb_internal ( id SERIAL PRIMARY KEY, jsonb JSONB NOT NULL ) Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: insert into harvard_mod_configuration.rmb_internal (jsonb) values ('{"rmbVersion": "5.0.2", "moduleVersion": "0.0"}'::jsonb) Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: insert into harvard_mod_configuration.rmb_internal (jsonb) values ('{"rmbVersion": "5.0.2", "moduleVersion": "0.0"}'::jsonb) Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: SET search_path TO harvard_mod_configuration, public Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: SET search_path TO harvard_mod_configuration, public Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: SET search_path TO public, harvard_mod_configuration Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: SET search_path TO public, harvard_mod_configuration Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE OR REPLACE FUNCTION harvard_mod_configuration.count_estimate_smart2(rows bigint, lim bigint, query text) RETURNS integer AS $$ DECLARE rec record; cnt integer; BEGIN IF rows = lim THEN FOR rec IN EXECUTE 'EXPLAIN ' || query LOOP cnt := substring(rec."QUERY PLAN" FROM ' rows=([[:digit:]]+)'); EXIT WHEN cnt IS NOT NULL; END LOOP; RETURN cnt; END IF; RETURN rows; END; $$ LANGUAGE plpgsql VOLATILE STRICT Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE OR REPLACE FUNCTION harvard_mod_configuration.count_estimate_smart2(rows bigint, lim bigint, query text) RETURNS integer AS $$ DECLARE rec record; cnt integer; BEGIN IF rows = lim THEN FOR rec IN EXECUTE 'EXPLAIN ' || query LOOP cnt := substring(rec."QUERY PLAN" FROM ' rows=([[:digit:]]+)'); EXIT WHEN cnt IS NOT NULL; END LOOP; RETURN cnt; END IF Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE OR REPLACE FUNCTION harvard_mod_configuration.count_estimate_smart(query text) RETURNS integer AS $$ DECLARE rec record; rows integer; q text; BEGIN rows = harvard_mod_configuration.count_estimate_smart2(20000 , 20000 , query); IF rows > 20000 THEN RETURN rows; END IF; q = 'with counter as (' || regexp_replace( query, '\mselect.*?from', 'select null FROM', 'i' ) || ' LIMIT 20000 ), ' || ' count_on as ( SELECT count(*) as count from counter ) ' || ' SELECT count FROM count_on'; EXECUTE q INTO rec; rows := rec."count"; IF rows = 20000 THEN rows = harvard_mod_configuration.count_estimate_smart2(20000, 20000, query); IF rows < 20000 THEN rows = 20000 ; END IF; END IF; RETURN rows; END; $$ LANGUAGE plpgsql IMMUTABLE STRICT Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE OR REPLACE FUNCTION harvard_mod_configuration.count_estimate_smart(query text) RETURNS integer AS $$ DECLARE rec record; rows integer; q text; BEGIN rows = harvard_mod_configuration.count_estimate_smart2(20000 , 20000 , query); IF rows > 20000 THEN RETURN rows; END IF; q = 'with counter as (' || regexp_replace( query, '\mselect.*?from', Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE OR REPLACE FUNCTION harvard_mod_configuration.count_estimate_smart_depricated(query text) RETURNS integer AS $$ DECLARE rec record; rows integer; BEGIN FOR rec IN EXECUTE 'EXPLAIN ' || query LOOP rows := substring(rec."QUERY PLAN" FROM ' rows=([[:digit:]]+)'); EXIT WHEN rows IS NOT NULL; END LOOP; IF rows < 20000 THEN EXECUTE regexp_replace( query, '\mselect.*?from', 'select count(*) FROM', 'i' ) INTO rec; rows := rec."count"; END IF; RETURN rows; END; $$ LANGUAGE plpgsql VOLATILE STRICT Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE OR REPLACE FUNCTION harvard_mod_configuration.count_estimate_smart_depricated(query text) RETURNS integer AS $$ DECLARE rec record; rows integer; BEGIN FOR rec IN EXECUTE 'EXPLAIN ' || query LOOP rows := substring(rec."QUERY PLAN" FROM ' rows=([[:digit:]]+)'); EXIT WHEN rows IS NOT NULL; END LOOP; IF rows < 20000 THEN EXECUTE regexp_replace( query, '\ Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE OR REPLACE FUNCTION f_unaccent(text) RETURNS text AS $func$ SELECT public.unaccent('public.unaccent', $1) -- schema-qualify function and dictionary $func$ LANGUAGE sql IMMUTABLE Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE OR REPLACE FUNCTION f_unaccent(text) RETURNS text AS $func$ SELECT public.unaccent('public.unaccent', $1) -- schema-qualify function and dictionary $func$ LANGUAGE sql IMMUTABLE Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE TABLE IF NOT EXISTS harvard_mod_configuration.config_data ( id UUID PRIMARY KEY DEFAULT gen_random_uuid(), jsonb JSONB NOT NULL ) Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE TABLE IF NOT EXISTS harvard_mod_configuration.config_data ( id UUID PRIMARY KEY DEFAULT gen_random_uuid(), jsonb JSONB NOT NULL ) Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: ALTER TABLE harvard_mod_configuration.config_data ADD COLUMN IF NOT EXISTS creation_date timestamp WITH TIME ZONE, ADD COLUMN IF NOT EXISTS created_by text Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: ALTER TABLE harvard_mod_configuration.config_data ADD COLUMN IF NOT EXISTS creation_date timestamp WITH TIME ZONE, ADD COLUMN IF NOT EXISTS created_by text Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE INDEX IF NOT EXISTS config_data_module_idx ON harvard_mod_configuration.config_data (lower(jsonb->>'module')) Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE INDEX IF NOT EXISTS config_data_module_idx ON harvard_mod_configuration.config_data (lower(jsonb->>'module')) Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE INDEX IF NOT EXISTS config_data_default_idx ON harvard_mod_configuration.config_data ((jsonb->'default')) Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE INDEX IF NOT EXISTS config_data_default_idx ON harvard_mod_configuration.config_data ((jsonb->'default')) Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE UNIQUE INDEX IF NOT EXISTS config_data_module_configName_code_idx_unique ON harvard_mod_configuration.config_data ( lower(f_unaccent(jsonb->>'module')) , lower(f_unaccent(jsonb->>'configName')) , lower(f_unaccent(jsonb->>'code')) ) WHERE (jsonb->'code') is not null AND (jsonb->'userId') is null AND (jsonb->>'enabled')::boolean is true Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE UNIQUE INDEX IF NOT EXISTS config_data_module_configName_code_idx_unique ON harvard_mod_configuration.config_data ( lower(f_unaccent(jsonb->>'module')) , lower(f_unaccent(jsonb->>'configName')) , lower(f_unaccent(jsonb->>'code')) ) WHERE (jsonb->'code') is not null AND (jsonb->'userId') is null AND (jsonb->>'enabled')::boolean is true Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE UNIQUE INDEX IF NOT EXISTS config_data_module_configName_idx_unique ON harvard_mod_configuration.config_data ( lower(f_unaccent(jsonb->>'module')) , lower(f_unaccent(jsonb->>'configName')) ) WHERE (jsonb->'code') is null AND (jsonb->'userId') is null AND (jsonb->>'enabled')::boolean is true Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE UNIQUE INDEX IF NOT EXISTS config_data_module_configName_idx_unique ON harvard_mod_configuration.config_data ( lower(f_unaccent(jsonb->>'module')) , lower(f_unaccent(jsonb->>'configName')) ) WHERE (jsonb->'code') is null AND (jsonb->'userId') is null AND (jsonb->>'enabled')::boolean is true Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE UNIQUE INDEX IF NOT EXISTS config_data_module_configName_code_userId_idx_unique ON harvard_mod_configuration.config_data ( lower(f_unaccent(jsonb->>'module')) , lower(f_unaccent(jsonb->>'configName')) , lower(f_unaccent(jsonb->>'code')) , lower(f_unaccent(jsonb->>'userId')) ) WHERE (jsonb->'code') is not null AND (jsonb->'userId') is not null AND (jsonb->>'enabled')::boolean is true Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE UNIQUE INDEX IF NOT EXISTS config_data_module_configName_code_userId_idx_unique ON harvard_mod_configuration.config_data ( lower(f_unaccent(jsonb->>'module')) , lower(f_unaccent(jsonb->>'configName')) , lower(f_unaccent(jsonb->>'code')) , lower(f_unaccent(jsonb->>'userId')) ) WHERE (jsonb->'code') is not null AND (jsonb->'userId') is not null AND (jsonb->>'enabled')::boolean Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE UNIQUE INDEX IF NOT EXISTS config_data_module_configName_userId_idx_unique ON harvard_mod_configuration.config_data ( lower(f_unaccent(jsonb->>'module')) , lower(f_unaccent(jsonb->>'configName')) , lower(f_unaccent(jsonb->>'userId')) ) WHERE (jsonb->'code') is null AND (jsonb->'userId') is not null AND (jsonb->>'enabled')::boolean is true Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE UNIQUE INDEX IF NOT EXISTS config_data_module_configName_userId_idx_unique ON harvard_mod_configuration.config_data ( lower(f_unaccent(jsonb->>'module')) , lower(f_unaccent(jsonb->>'configName')) , lower(f_unaccent(jsonb->>'userId')) ) WHERE (jsonb->'code') is null AND (jsonb->'userId') is not null AND (jsonb->>'enabled')::boolean is true Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE INDEX IF NOT EXISTS config_data_configName_idx_like ON harvard_mod_configuration.config_data ((lower(jsonb->>'configName')) text_pattern_ops) WHERE ((jsonb->>'enabled'))::boolean = true Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE INDEX IF NOT EXISTS config_data_configName_idx_like ON harvard_mod_configuration.config_data ((lower(jsonb->>'configName')) text_pattern_ops) WHERE ((jsonb->>'enabled'))::boolean = true Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE INDEX IF NOT EXISTS config_data_code_idx_like ON harvard_mod_configuration.config_data ((lower(jsonb->>'code')) text_pattern_ops) Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE INDEX IF NOT EXISTS config_data_code_idx_like ON harvard_mod_configuration.config_data ((lower(jsonb->>'code')) text_pattern_ops) Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE INDEX IF NOT EXISTS config_data_value_idx_gin ON harvard_mod_configuration.config_data USING GIN ((lower(f_unaccent(jsonb->>'value'))) gin_trgm_ops) Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE INDEX IF NOT EXISTS config_data_value_idx_gin ON harvard_mod_configuration.config_data USING GIN ((lower(f_unaccent(jsonb->>'value'))) gin_trgm_ops) Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: DROP TRIGGER IF EXISTS update_config_data_references ON harvard_mod_configuration.config_data CASCADE Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: DROP TRIGGER IF EXISTS update_config_data_references ON harvard_mod_configuration.config_data CASCADE Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: DROP FUNCTION IF EXISTS harvard_mod_configuration.update_config_data_references() Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: DROP FUNCTION IF EXISTS harvard_mod_configuration.update_config_data_references() Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE OR REPLACE FUNCTION harvard_mod_configuration.set_id_injson_config_data() RETURNS TRIGGER AS $$ DECLARE injectedId text; BEGIN injectedId = '"'||NEW.id||'"'; NEW.jsonb = jsonb_set(NEW.jsonb, '{id}' , injectedId::jsonb , true); RETURN NEW; END; $$ language 'plpgsql' Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE OR REPLACE FUNCTION harvard_mod_configuration.set_id_injson_config_data() RETURNS TRIGGER AS $$ DECLARE injectedId text; BEGIN injectedId = '"'||NEW.id||'"'; NEW.jsonb = jsonb_set(NEW.jsonb, '{id}' , injectedId::jsonb , true); RETURN NEW; END; $$ language 'plpgsql' Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: DROP TRIGGER IF EXISTS set_id_injson_config_data ON harvard_mod_configuration.config_data CASCADE Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: DROP TRIGGER IF EXISTS set_id_injson_config_data ON harvard_mod_configuration.config_data CASCADE Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE TRIGGER set_id_injson_config_data BEFORE INSERT OR UPDATE ON harvard_mod_configuration.config_data FOR EACH ROW EXECUTE PROCEDURE harvard_mod_configuration.set_id_injson_config_data() Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE TRIGGER set_id_injson_config_data BEFORE INSERT OR UPDATE ON harvard_mod_configuration.config_data FOR EACH ROW EXECUTE PROCEDURE harvard_mod_configuration.set_id_injson_config_data() Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE OR REPLACE FUNCTION harvard_mod_configuration.config_data_set_md() RETURNS TRIGGER AS $$ BEGIN NEW.creation_date = to_timestamp(NEW.jsonb->'metadata'->>'createdDate', 'YYYY-MM-DD"T"HH24:MI:SS.MS'); NEW.created_by = NEW.jsonb->'metadata'->>'createdByUserId'; RETURN NEW; END; $$ language 'plpgsql' Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE OR REPLACE FUNCTION harvard_mod_configuration.config_data_set_md() RETURNS TRIGGER AS $$ BEGIN NEW.creation_date = to_timestamp(NEW.jsonb->'metadata'->>'createdDate', 'YYYY-MM-DD"T"HH24:MI:SS.MS'); NEW.created_by = NEW.jsonb->'metadata'->>'createdByUserId'; RETURN NEW; END; $$ language 'plpgsql' Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: DROP TRIGGER IF EXISTS set_config_data_md_trigger ON harvard_mod_configuration.config_data CASCADE Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: DROP TRIGGER IF EXISTS set_config_data_md_trigger ON harvard_mod_configuration.config_data CASCADE Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE TRIGGER set_config_data_md_trigger BEFORE INSERT ON harvard_mod_configuration.config_data FOR EACH ROW EXECUTE PROCEDURE harvard_mod_configuration.config_data_set_md() Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE TRIGGER set_config_data_md_trigger BEFORE INSERT ON harvard_mod_configuration.config_data FOR EACH ROW EXECUTE PROCEDURE harvard_mod_configuration.config_data_set_md() Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE OR REPLACE FUNCTION harvard_mod_configuration.set_config_data_md_json() RETURNS TRIGGER AS $$ DECLARE createdDate timestamp WITH TIME ZONE; createdBy text ; updatedDate timestamp WITH TIME ZONE; updatedBy text ; injectedId text; BEGIN createdBy = NEW.created_by; createdDate = NEW.creation_date; updatedDate = NEW.jsonb->'metadata'->>'updatedDate'; updatedBy = NEW.jsonb->'metadata'->>'updatedByUserId'; if createdBy ISNULL then createdBy = 'undefined'; end if; if updatedBy ISNULL then updatedBy = 'undefined'; end if; if createdDate IS NOT NULL then injectedId = '{"createdDate":"'||to_char(createdDate,'YYYY-MM-DD"T"HH24:MI:SS.MS')||'" , "createdByUserId":"'||createdBy||'", "updatedDate":"'||to_char(updatedDate,'YYYY-MM-DD"T"HH24:MI:SS.MSOF')||'" , "updatedByUserId":"'||updatedBy||'"}'; NEW.jsonb = jsonb_set(NEW.jsonb, '{metadata}' , injectedId::jsonb , false); else NEW.jsonb = NEW.jsonb; end if; RETURN NEW; END; $$ language 'plpg Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE OR REPLACE FUNCTION harvard_mod_configuration.set_config_data_md_json() RETURNS TRIGGER AS $$ DECLARE createdDate timestamp WITH TIME ZONE; createdBy text ; updatedDate timestamp WITH TIME ZONE; updatedBy text ; injectedId text; BEGIN createdBy = NEW.created_by; createdDate = NEW.creation_date; updatedDate = NEW.jsonb->'metadata'->>'updatedDate'; updatedBy = NEW.jsonb->'m Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: DROP TRIGGER IF EXISTS set_config_data_md_json_trigger ON harvard_mod_configuration.config_data CASCADE Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: DROP TRIGGER IF EXISTS set_config_data_md_json_trigger ON harvard_mod_configuration.config_data CASCADE Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE TRIGGER set_config_data_md_json_trigger BEFORE UPDATE ON harvard_mod_configuration.config_data FOR EACH ROW EXECUTE PROCEDURE harvard_mod_configuration.set_config_data_md_json() Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE TRIGGER set_config_data_md_json_trigger BEFORE UPDATE ON harvard_mod_configuration.config_data FOR EACH ROW EXECUTE PROCEDURE harvard_mod_configuration.set_config_data_md_json() Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE TABLE IF NOT EXISTS harvard_mod_configuration.audit_config_data ( id UUID PRIMARY KEY, orig_id UUID NOT NULL, operation char(1) NOT NULL, jsonb jsonb, created_date timestamp not null ) Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE TABLE IF NOT EXISTS harvard_mod_configuration.audit_config_data ( id UUID PRIMARY KEY, orig_id UUID NOT NULL, operation char(1) NOT NULL, jsonb jsonb, created_date timestamp not null ) Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE OR REPLACE FUNCTION harvard_mod_configuration.audit_config_data_changes() RETURNS TRIGGER AS $config_data_audit$ BEGIN IF (TG_OP = 'DELETE') THEN INSERT INTO harvard_mod_configuration.audit_config_data SELECT gen_random_uuid(), OLD.id, 'D', OLD.jsonb, current_timestamp; RETURN OLD; ELSIF (TG_OP = 'UPDATE') THEN INSERT INTO harvard_mod_configuration.audit_config_data SELECT gen_random_uuid(), NEW.id, 'U', NEW.jsonb, current_timestamp; RETURN NEW; ELSIF (TG_OP = 'INSERT') THEN INSERT INTO harvard_mod_configuration.audit_config_data SELECT gen_random_uuid(), NEW.id, 'I', NEW.jsonb, current_timestamp; RETURN NEW; END IF; RETURN NULL; END; $config_data_audit$ LANGUAGE plpgsql Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE OR REPLACE FUNCTION harvard_mod_configuration.audit_config_data_changes() RETURNS TRIGGER AS $config_data_audit$ BEGIN IF (TG_OP = 'DELETE') THEN INSERT INTO harvard_mod_configuration.audit_config_data SELECT gen_random_uuid(), OLD.id, 'D', OLD.jsonb, current_timestamp; RETURN OLD; ELSIF (TG_OP = 'UPDATE') THEN INSERT INTO harvard_mod Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: DROP TRIGGER IF EXISTS audit_config_data ON harvard_mod_configuration.config_data CASCADE Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: DROP TRIGGER IF EXISTS audit_config_data ON harvard_mod_configuration.config_data CASCADE Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: CREATE TRIGGER audit_config_data AFTER INSERT OR UPDATE OR DELETE ON harvard_mod_configuration.config_data FOR EACH ROW EXECUTE PROCEDURE harvard_mod_configuration.audit_config_data_changes() Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: CREATE TRIGGER audit_config_data AFTER INSERT OR UPDATE OR DELETE ON harvard_mod_configuration.config_data FOR EACH ROW EXECUTE PROCEDURE harvard_mod_configuration.audit_config_data_changes() Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: GRANT ALL PRIVILEGES ON audit_config_data TO harvard_mod_configuration Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: GRANT ALL PRIVILEGES ON audit_config_data TO harvard_mod_configuration Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: SET search_path TO harvard_mod_configuration, public Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: SET search_path TO harvard_mod_configuration, public Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: COPY config_data (jsonb) FROM 'data/locales.data' ENCODING 'UTF8' Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Inserted 10 via COPY IN. Tenant: public Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: COPY config_data (jsonb) FROM 'data/locales.data' ENCODING 'UTF8' Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA harvard_mod_configuration TO harvard_mod_configuration Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA harvard_mod_configuration TO harvard_mod_configuration Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Successfully committed: -2073988900 Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postTenant Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57214 POST /_/tenant null HTTP_1_1 201 5 1026 tid=harvard Created Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: DB config read from environment variables Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: Using schema: harvard Mar 22, 2019 4:10:56 PM org.folio.rest.persist.PostgresClient INFO: postgreSQLClientConfig = {"maxPoolSize":26,"port":57384,"queryTimeout":10000,"username":"harvard_mod_configuration","charset":"UTF8","host":"localhost","database":"postgres","password":"..."} Mar 22, 2019 4:10:56 PM io.vertx.ext.asyncsql.impl.PostgreSQLClientImpl INFO: Creating configuration for localhost:57384 Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57222 POST /configurations/entries null HTTP_1_1 201 496 167 tid=harvard Created Received response: '201':'{ "id" : "dbaeb713-bfa7-46d8-a178-ee2574509655", "module" : "CHECKOUT", "configName" : "other_settings", "code" : "audioAlertsEnabled", "enabled" : true, "value" : "some value", "userId" : "a7e55517-9942-4b4c-9fa6-8de3481b70d4", "metadata" : { "createdDate" : "2019-03-22T15:10:56.481+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:56.481+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:56 PM org.folio.rest.impl.ConfigAPI SEVERE: ErrorMessage(fields=Map(Detail -> Key (lower(f_unaccent(jsonb ->> 'module'::text)), lower(f_unaccent(jsonb ->> 'configName'::text)), lower(f_unaccent(jsonb ->> 'code'::text)), lower(f_unaccent(jsonb ->> 'userId'::text)))=(checkout, other_settings, audioalertsenabled, a7e55517-9942-4b4c-9fa6-8de3481b70d4) already exists., s -> harvard_mod_configuration, n -> config_data_module_configname_code_userid_idx_unique, t -> config_data, Line -> 434, File -> nbtinsert.c, SQLSTATE -> 23505, Routine -> _bt_check_unique, V -> ERROR, Message -> duplicate key value violates unique constraint "config_data_module_configname_code_userid_idx_unique", Severity -> ERROR)) com.github.mauricio.async.db.postgresql.exceptions.GenericDatabaseException: ErrorMessage(fields=Map(Detail -> Key (lower(f_unaccent(jsonb ->> 'module'::text)), lower(f_unaccent(jsonb ->> 'configName'::text)), lower(f_unaccent(jsonb ->> 'code'::text)), lower(f_unaccent(jsonb ->> 'userId'::text)))=(checkout, other_settings, audioalertsenabled, a7e55517-9942-4b4c-9fa6-8de3481b70d4) already exists., s -> harvard_mod_configuration, n -> config_data_module_configname_code_userid_idx_unique, t -> config_data, Line -> 434, File -> nbtinsert.c, SQLSTATE -> 23505, Routine -> _bt_check_unique, V -> ERROR, Message -> duplicate key value violates unique constraint "config_data_module_configname_code_userid_idx_unique", Severity -> ERROR)) at com.github.mauricio.async.db.postgresql.PostgreSQLConnection.onError(PostgreSQLConnection.scala:175) at com.github.mauricio.async.db.postgresql.codec.PostgreSQLConnectionHandler.channelRead0(PostgreSQLConnectionHandler.scala:206) at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:297) at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:413) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1359) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:935) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:141) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Thread.java:748) Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57224 POST /configurations/entries null HTTP_1_1 422 313 44 tid=harvard Unprocessable Entity Received response: '422':'{ "errors" : [ { "message" : "Cannot have more than one tenant or user record with the same module, config name and code", "parameters" : [ ], "configName" : "other_settings", "code" : "audioAlertsEnabled", "module" : "CHECKOUT", "userId" : "a7e55517-9942-4b4c-9fa6-8de3481b70d4" } ] }' Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Received response: '201':'{ "id" : "2f3b60b0-a5bb-4eb7-bbce-f9c2f30bb2c9", "module" : "CHECKOUT", "configName" : "main_settings", "code" : "example_setting", "enabled" : true, "value" : "some value", "metadata" : { "createdDate" : "2019-03-22T15:10:56.621+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:56.621+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57226 POST /configurations/entries null HTTP_1_1 201 439 15 tid=harvard Created Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57230 POST /configurations/entries null HTTP_1_1 201 499 16 tid=harvard Created Received response: '201':'{ "id" : "fade7f9e-a5a7-4c65-a09a-2be015b4e3ca", "module" : "CHECKOUT", "configName" : "main_settings", "code" : "example_setting", "enabled" : true, "value" : "a different value", "userId" : "3b1e4a09-2a8e-4da0-b2cc-59a712a57c2e", "metadata" : { "createdDate" : "2019-03-22T15:10:56.630+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:56.630+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57228 POST /configurations/entries null HTTP_1_1 201 495 26 tid=harvard Created Received response: '201':'{ "id" : "a174578b-a566-44ff-8939-e8ce82a6369e", "module" : "CHECKOUT", "configName" : "main_settings", "code" : "example_setting", "enabled" : true, "value" : "another value", "userId" : "5100c834-7f9f-40a2-a5d6-bd3de8c78a94", "metadata" : { "createdDate" : "2019-03-22T15:10:56.624+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:56.624+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57234 POST /configurations/entries null HTTP_1_1 201 416 11 tid=harvard Created Received response: '201':'{ "id" : "c5242769-27a5-40f7-a980-bc2a42c03e8f", "module" : "CHECKOUT", "configName" : "other_settings", "enabled" : true, "value" : "some other value", "metadata" : { "createdDate" : "2019-03-22T15:10:56.666+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:56.666+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57236 POST /configurations/entries null HTTP_1_1 201 409 12 tid=harvard Created Received response: '201':'{ "id" : "bb80f7bc-3e3b-4f4f-a858-c2d9a677553b", "module" : "CHECKOUT", "configName" : "main_settings", "enabled" : true, "value" : "some value", "metadata" : { "createdDate" : "2019-03-22T15:10:56.674+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:56.674+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57238 POST /configurations/entries null HTTP_1_1 201 492 34 tid=harvard Created Received response: '201':'{ "id" : "5fbdb1de-0df6-4311-81e3-6ca793ca0129", "module" : "CHECKOUT", "configName" : "main_settings", "code" : "example_setting", "enabled" : true, "value" : "some value", "userId" : "59cb218b-cef1-47fa-bea3-fa0092dc89d4", "metadata" : { "createdDate" : "2019-03-22T15:10:56.701+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:56.701+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57240 POST /configurations/entries null HTTP_1_1 201 500 14 tid=harvard Created Received response: '201':'{ "id" : "fd7aec6b-536a-407a-8924-3db613867302", "module" : "CHECKOUT", "configName" : "main_settings", "code" : "example_setting", "enabled" : false, "value" : "yet another value", "userId" : "59cb218b-cef1-47fa-bea3-fa0092dc89d4", "metadata" : { "createdDate" : "2019-03-22T15:10:56.728+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:56.728+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Received response: '201':'{ "id" : "6f57e079-1ce0-4641-80e5-f3f4915c9e7f", "module" : "CHECKOUT", "configName" : "main_settings", "code" : "example_setting", "enabled" : false, "value" : "another value", "userId" : "59cb218b-cef1-47fa-bea3-fa0092dc89d4", "metadata" : { "createdDate" : "2019-03-22T15:10:56.730+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:56.730+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57242 POST /configurations/entries null HTTP_1_1 201 496 14 tid=harvard Created Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57244 POST /configurations/entries null HTTP_1_1 201 511 7 tid=harvard Created Received response: '201':'{ "id" : "4a2b1af7-5963-4559-80f4-d0c4a2cb0f30", "module" : "CHECKOUT", "configName" : "other_settings", "code" : "audioAlertsEnabled", "description" : "Whether audio alerts should be made during check out", "enabled" : true, "value" : "true", "metadata" : { "createdDate" : "2019-03-22T15:10:56.763+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:56.763+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking putConfigurationsEntriesByEntryId Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57246 PUT /configurations/entries/4a2b1af7-5963-4559-80f4-d0c4a2cb0f30 null HTTP_1_1 204 0 18 tid=harvard No Content Received response: '204':'' Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking getConfigurationsEntriesByEntryId Received response: '200':'{ "id" : "4a2b1af7-5963-4559-80f4-d0c4a2cb0f30", "module" : "CHECKOUT", "configName" : "other_settings", "code" : "audioAlertsEnabled", "description" : "Whether audio alerts should be made during check out", "enabled" : true, "value" : "true", "metadata" : { "createdDate" : "2019-03-22T15:10:56.763+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:56.782+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57248 GET /configurations/entries/4a2b1af7-5963-4559-80f4-d0c4a2cb0f30 null HTTP_1_1 200 511 33 tid=harvard OK Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57250 POST /configurations/entries null HTTP_1_1 201 410 6 tid=harvard Created Received response: '201':'{ "id" : "d1d047f9-4565-42b7-a3f2-54af18b726c5", "module" : "CHECKOUT", "configName" : "other_settings", "enabled" : true, "value" : "some value", "metadata" : { "createdDate" : "2019-03-22T15:10:56.847+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:56.847+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:56 PM org.folio.rest.impl.ConfigAPI SEVERE: ErrorMessage(fields=Map(Detail -> Key (lower(f_unaccent(jsonb ->> 'module'::text)), lower(f_unaccent(jsonb ->> 'configName'::text)))=(checkout, other_settings) already exists., s -> harvard_mod_configuration, n -> config_data_module_configname_idx_unique, t -> config_data, Line -> 434, File -> nbtinsert.c, SQLSTATE -> 23505, Routine -> _bt_check_unique, V -> ERROR, Message -> duplicate key value violates unique constraint "config_data_module_configname_idx_unique", Severity -> ERROR)) com.github.mauricio.async.db.postgresql.exceptions.GenericDatabaseException: ErrorMessage(fields=Map(Detail -> Key (lower(f_unaccent(jsonb ->> 'module'::text)), lower(f_unaccent(jsonb ->> 'configName'::text)))=(checkout, other_settings) already exists., s -> harvard_mod_configuration, n -> config_data_module_configname_idx_unique, t -> config_data, Line -> 434, File -> nbtinsert.c, SQLSTATE -> 23505, Routine -> _bt_check_unique, V -> ERROR, Message -> duplicate key value violates unique constraint "config_data_module_configname_idx_unique", Severity -> ERROR)) at com.github.mauricio.async.db.postgresql.PostgreSQLConnection.onError(PostgreSQLConnection.scala:175) at com.github.mauricio.async.db.postgresql.codec.PostgreSQLConnectionHandler.channelRead0(PostgreSQLConnectionHandler.scala:206) at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:297) at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:413) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1359) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:935) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:141) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Thread.java:748) Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57252 POST /configurations/entries null HTTP_1_1 422 263 8 tid=harvard Unprocessable Entity Received response: '422':'{ "errors" : [ { "message" : "Cannot have more than one tenant or user record with the same module, config name and code", "parameters" : [ ], "configName" : "other_settings", "code" : null, "module" : "CHECKOUT", "userId" : null } ] }' Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57254 POST /configurations/entries null HTTP_1_1 201 438 7 tid=harvard Created Received response: '201':'{ "id" : "22b37bfd-9b86-4fea-9203-54f5fd67b484", "module" : "some_module", "configName" : "other_settings", "code" : "some_code", "enabled" : false, "value" : "some value", "metadata" : { "createdDate" : "2019-03-22T15:10:56.883+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:56.883+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57256 POST /configurations/entries null HTTP_1_1 201 463 8 tid=harvard Created Received response: '201':'{ "id" : "a8c46aba-db38-4871-899e-de41f694ac35", "module" : "CHECKOUT", "configName" : "other_settings", "enabled" : true, "value" : "some value", "userId" : "365ff677-9db2-4171-b5f9-29e5f3e1399f", "metadata" : { "createdDate" : "2019-03-22T15:10:56.906+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:56.906+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57258 POST /configurations/entries null HTTP_1_1 201 443 6 tid=harvard Created Received response: '201':'{ "id" : "df91e778-7bdc-4f32-b0da-6d14bfe8591d", "module" : "CHECKOUT", "configName" : "other_settings", "code" : "audioAlertsEnabled", "enabled" : true, "value" : "some value", "metadata" : { "createdDate" : "2019-03-22T15:10:56.926+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:56.926+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:56 PM org.folio.rest.impl.ConfigAPI SEVERE: ErrorMessage(fields=Map(Detail -> Key (lower(f_unaccent(jsonb ->> 'module'::text)), lower(f_unaccent(jsonb ->> 'configName'::text)), lower(f_unaccent(jsonb ->> 'code'::text)))=(checkout, other_settings, audioalertsenabled) already exists., s -> harvard_mod_configuration, n -> config_data_module_configname_code_idx_unique, t -> config_data, Line -> 434, File -> nbtinsert.c, SQLSTATE -> 23505, Routine -> _bt_check_unique, V -> ERROR, Message -> duplicate key value violates unique constraint "config_data_module_configname_code_idx_unique", Severity -> ERROR)) com.github.mauricio.async.db.postgresql.exceptions.GenericDatabaseException: ErrorMessage(fields=Map(Detail -> Key (lower(f_unaccent(jsonb ->> 'module'::text)), lower(f_unaccent(jsonb ->> 'configName'::text)), lower(f_unaccent(jsonb ->> 'code'::text)))=(checkout, other_settings, audioalertsenabled) already exists., s -> harvard_mod_configuration, n -> config_data_module_configname_code_idx_unique, t -> config_data, Line -> 434, File -> nbtinsert.c, SQLSTATE -> 23505, Routine -> _bt_check_unique, V -> ERROR, Message -> duplicate key value violates unique constraint "config_data_module_configname_code_idx_unique", Severity -> ERROR)) at com.github.mauricio.async.db.postgresql.PostgreSQLConnection.onError(PostgreSQLConnection.scala:175) at com.github.mauricio.async.db.postgresql.codec.PostgreSQLConnectionHandler.channelRead0(PostgreSQLConnectionHandler.scala:206) at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:297) at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:413) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1359) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:935) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:141) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Thread.java:748) Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57260 POST /configurations/entries null HTTP_1_1 422 279 7 tid=harvard Unprocessable Entity Received response: '422':'{ "errors" : [ { "message" : "Cannot have more than one tenant or user record with the same module, config name and code", "parameters" : [ ], "configName" : "other_settings", "code" : "audioAlertsEnabled", "module" : "CHECKOUT", "userId" : null } ] }' Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57262 POST /configurations/entries null HTTP_1_1 201 437 10 tid=harvard Created Received response: '201':'{ "id" : "d7db2d70-0e07-4675-9a68-7f6d074851d8", "module" : "some_module", "configName" : "other_settings", "code" : "some_code", "enabled" : true, "value" : "some value", "metadata" : { "createdDate" : "2019-03-22T15:10:56.958+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:56.958+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking putConfigurationsEntriesByEntryId Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57264 PUT /configurations/entries/5d53f3cc-ba41-4446-b77d-5d0c480a6e73 null HTTP_1_1 500 46 4 tid=harvard Internal Server Error Received response: '500':'No records match the query, no records updated' Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Received response: '201':'{ "id" : "831ca69a-747f-47c5-98b5-4f57f66315f5", "module" : "CHECKOUT", "configName" : "other_settings", "code" : "audioAlertsEnabled", "description" : "Whether audio alerts should be made during check out", "enabled" : true, "value" : "true", "userId" : "692bb9a9-ff58-4093-86c4-3b036d5c3d2f", "metadata" : { "createdDate" : "2019-03-22T15:10:56.988+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:56.988+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:56 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57266 POST /configurations/entries null HTTP_1_1 201 564 6 tid=harvard Created Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57268 POST /configurations/entries null HTTP_1_1 201 462 14 tid=harvard Created Received response: '201':'{ "id" : "d87161ad-9a66-4eda-af21-73a176dae8bc", "module" : "CHECKOUT", "configName" : "main_settings", "enabled" : true, "value" : "some value", "userId" : "12cde288-1cb9-4a8c-adfd-b246be2404f0", "metadata" : { "createdDate" : "2019-03-22T15:10:57.011+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:57.011+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Received response: '201':'{ "id" : "f94b4c33-b9dc-483c-85e7-1c7526297d03", "module" : "CHECKOUT", "configName" : "main_settings", "enabled" : false, "value" : "another value", "userId" : "12cde288-1cb9-4a8c-adfd-b246be2404f0", "metadata" : { "createdDate" : "2019-03-22T15:10:57.013+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:57.013+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57270 POST /configurations/entries null HTTP_1_1 201 466 14 tid=harvard Created Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Received response: '201':'{ "id" : "f373785a-075c-46ad-bffe-339c176e7f19", "module" : "CHECKOUT", "configName" : "main_settings", "enabled" : false, "value" : "yet another value", "userId" : "12cde288-1cb9-4a8c-adfd-b246be2404f0", "metadata" : { "createdDate" : "2019-03-22T15:10:57.022+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:57.022+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57272 POST /configurations/entries null HTTP_1_1 201 470 16 tid=harvard Created Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Received response: '201':'{ "id" : "678757b9-daa8-45a8-89da-2405459a2b9c", "module" : "CHECKOUT", "configName" : "main_settings", "code" : "example_setting", "enabled" : true, "value" : "some value", "metadata" : { "createdDate" : "2019-03-22T15:10:57.058+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:57.058+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57274 POST /configurations/entries null HTTP_1_1 201 439 14 tid=harvard Created Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57276 POST /configurations/entries null HTTP_1_1 201 443 13 tid=harvard Created Received response: '201':'{ "id" : "00753b53-f364-4350-b0b2-b0d1c769aab8", "module" : "CHECKOUT", "configName" : "main_settings", "code" : "example_setting", "enabled" : false, "value" : "another value", "metadata" : { "createdDate" : "2019-03-22T15:10:57.061+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:57.061+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57278 POST /configurations/entries null HTTP_1_1 201 447 22 tid=harvard Created Received response: '201':'{ "id" : "fe15e950-4be2-4eb3-a102-a7afbc14069e", "module" : "CHECKOUT", "configName" : "main_settings", "code" : "example_setting", "enabled" : false, "value" : "yet another value", "metadata" : { "createdDate" : "2019-03-22T15:10:57.064+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:57.064+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57284 POST /configurations/entries null HTTP_1_1 201 442 7 tid=harvard Created Received response: '201':'{ "id" : "b388d47c-a09d-457b-b615-e10b8e1279ea", "module" : "RENEWAL", "configName" : "main_settings", "code" : "first_setting", "enabled" : true, "value" : "some other value", "metadata" : { "createdDate" : "2019-03-22T15:10:57.097+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:57.097+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57282 POST /configurations/entries null HTTP_1_1 201 437 11 tid=harvard Created Received response: '201':'{ "id" : "bb8c033e-99eb-427c-b372-73f1c1f5b4fb", "module" : "CHECKOUT", "configName" : "main_settings", "code" : "first_setting", "enabled" : true, "value" : "some value", "metadata" : { "createdDate" : "2019-03-22T15:10:57.095+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:57.095+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57286 POST /configurations/entries null HTTP_1_1 201 511 6 tid=harvard Created Received response: '201':'{ "id" : "a3229603-c597-49a1-9e35-a559294f4747", "module" : "CHECKOUT", "configName" : "other_settings", "code" : "audioAlertsEnabled", "description" : "Whether audio alerts should be made during check out", "enabled" : true, "value" : "true", "metadata" : { "createdDate" : "2019-03-22T15:10:57.117+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:57.117+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57288 POST /configurations/entries null HTTP_1_1 201 463 6 tid=harvard Created Received response: '201':'{ "id" : "73d586a2-ea46-446a-b35a-4e2a942e97d8", "module" : "CHECKOUT", "configName" : "other_settings", "enabled" : true, "value" : "some value", "userId" : "9a3aa1e7-4140-437f-ad22-f1b0969d860a", "metadata" : { "createdDate" : "2019-03-22T15:10:57.142+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:57.142+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:57 PM org.folio.rest.impl.ConfigAPI SEVERE: ErrorMessage(fields=Map(Detail -> Key (lower(f_unaccent(jsonb ->> 'module'::text)), lower(f_unaccent(jsonb ->> 'configName'::text)), lower(f_unaccent(jsonb ->> 'userId'::text)))=(checkout, other_settings, 9a3aa1e7-4140-437f-ad22-f1b0969d860a) already exists., s -> harvard_mod_configuration, n -> config_data_module_configname_userid_idx_unique, t -> config_data, Line -> 434, File -> nbtinsert.c, SQLSTATE -> 23505, Routine -> _bt_check_unique, V -> ERROR, Message -> duplicate key value violates unique constraint "config_data_module_configname_userid_idx_unique", Severity -> ERROR)) com.github.mauricio.async.db.postgresql.exceptions.GenericDatabaseException: ErrorMessage(fields=Map(Detail -> Key (lower(f_unaccent(jsonb ->> 'module'::text)), lower(f_unaccent(jsonb ->> 'configName'::text)), lower(f_unaccent(jsonb ->> 'userId'::text)))=(checkout, other_settings, 9a3aa1e7-4140-437f-ad22-f1b0969d860a) already exists., s -> harvard_mod_configuration, n -> config_data_module_configname_userid_idx_unique, t -> config_data, Line -> 434, File -> nbtinsert.c, SQLSTATE -> 23505, Routine -> _bt_check_unique, V -> ERROR, Message -> duplicate key value violates unique constraint "config_data_module_configname_userid_idx_unique", Severity -> ERROR)) at com.github.mauricio.async.db.postgresql.PostgreSQLConnection.onError(PostgreSQLConnection.scala:175) at com.github.mauricio.async.db.postgresql.codec.PostgreSQLConnectionHandler.channelRead0(PostgreSQLConnectionHandler.scala:206) at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:297) at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:413) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1359) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:935) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:141) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Thread.java:748) Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Received response: '422':'{ "errors" : [ { "message" : "Cannot have more than one tenant or user record with the same module, config name and code", "parameters" : [ ], "configName" : "other_settings", "code" : null, "module" : "CHECKOUT", "userId" : "9a3aa1e7-4140-437f-ad22-f1b0969d860a" } ] }' Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57290 POST /configurations/entries null HTTP_1_1 422 297 5 tid=harvard Unprocessable Entity Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57292 POST /configurations/entries null HTTP_1_1 201 413 10 tid=harvard Created Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57294 POST /configurations/entries null HTTP_1_1 201 409 9 tid=harvard Created Received response: '201':'{ "id" : "9cd44e26-4120-4a81-890c-7ffee230e6b4", "module" : "CHECKOUT", "configName" : "main_settings", "enabled" : true, "value" : "some value", "metadata" : { "createdDate" : "2019-03-22T15:10:57.172+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:57.172+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Received response: '201':'{ "id" : "f88ec096-c8a3-4e62-8c8c-bb82ef8522b6", "module" : "CHECKOUT", "configName" : "main_settings", "enabled" : false, "value" : "another value", "metadata" : { "createdDate" : "2019-03-22T15:10:57.168+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:57.168+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57296 POST /configurations/entries null HTTP_1_1 201 417 9 tid=harvard Created Received response: '201':'{ "id" : "ca0cd4fa-45a3-4633-8bfd-78f8ce389f76", "module" : "CHECKOUT", "configName" : "main_settings", "enabled" : false, "value" : "yet another value", "metadata" : { "createdDate" : "2019-03-22T15:10:57.176+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:57.176+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:57 PM org.folio.rest.persist.PostgresClient INFO: CREATE UNLOGGED TABLE IF NOT EXISTS harvard_mod_configuration.mytablecache AS select * from harvard_mod_configuration.config_data where jsonb->>'config_name' = 'validation_rules' Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57298 POST /configurations/entries null HTTP_1_1 201 409 29 tid=harvard Created Received response: '201':'{ "id" : "99800c0c-7df9-44fc-8ee0-d01cf47cb361", "module" : "CHECKOUT", "configName" : "main_settings", "enabled" : true, "value" : "some value", "metadata" : { "createdDate" : "2019-03-22T15:10:57.262+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:57.262+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57300 POST /configurations/entries null HTTP_1_1 201 414 21 tid=harvard Created Received response: '201':'{ "id" : "bb379085-41a0-4a20-8320-abb34b7ca365", "module" : "RENEWAL", "configName" : "main_settings", "enabled" : true, "value" : "some other value", "metadata" : { "createdDate" : "2019-03-22T15:10:57.271+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:57.271+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' SLF4J: Failed to load class "org.slf4j.impl.StaticMDCBinder". SLF4J: Defaulting to no-operation MDCAdapter implementation. SLF4J: See http://www.slf4j.org/codes.html#no_static_mdc_binder for further details. Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57302 POST /configurations/entries null HTTP_1_1 201 464 114 tid=harvard Created Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57304 POST /configurations/entries null HTTP_1_1 201 1280 106 tid=harvard Created locking q -> false Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking deleteAdminKillQuery Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57312 DELETE /admin/kill_query pid=11 HTTP_1_1 404 2 99 tid=harvard Not Found Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57314 POST /configurations/entries null HTTP_1_1 422 323 -1 tid=null Unprocessable Entity {"errors":[{"message":"must match \"^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$\"","type":"1","code":"-1","parameters":[{"key":"metadata.createdByUserId","value":"123456"}]},{"message":"may not be null","type":"1","code":"-1","parameters":[{"key":"metadata.createdDate","value":"null"}]}]} Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57308 POST /configurations/entries null HTTP_1_1 201 1281 138 tid=harvard Created Mar 22, 2019 4:10:57 PM org.folio.rest.persist.PostgresClient SEVERE: ErrorMessage(fields=Map(Position -> 61, Line -> 137, File -> uuid.c, SQLSTATE -> 22P02, Routine -> string_to_uuid, V -> ERROR, Message -> invalid input syntax for type uuid: "123456", Severity -> ERROR)) com.github.mauricio.async.db.postgresql.exceptions.GenericDatabaseException: ErrorMessage(fields=Map(Position -> 61, Line -> 137, File -> uuid.c, SQLSTATE -> 22P02, Routine -> string_to_uuid, V -> ERROR, Message -> invalid input syntax for type uuid: "123456", Severity -> ERROR)) at com.github.mauricio.async.db.postgresql.PostgreSQLConnection.onError(PostgreSQLConnection.scala:175) at com.github.mauricio.async.db.postgresql.codec.PostgreSQLConnectionHandler.channelRead0(PostgreSQLConnectionHandler.scala:206) at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:297) at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:413) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1359) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:935) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:141) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Thread.java:748) Mar 22, 2019 4:10:57 PM org.folio.rest.impl.ConfigAPI SEVERE: com.github.mauricio.async.db.postgresql.exceptions.GenericDatabaseException: ErrorMessage(fields=Map(Position -> 61, Line -> 137, File -> uuid.c, SQLSTATE -> 22P02, Routine -> string_to_uuid, V -> ERROR, Message -> invalid input syntax for type uuid: "123456", Severity -> ERROR)) Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking deleteConfigurationsEntriesByEntryId Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57306 DELETE /configurations/entries/123456 null HTTP_1_1 404 6 143 tid=harvard Not Found Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57316 POST /configurations/entries null HTTP_1_1 201 496 16 tid=harvard Created Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking putConfigurationsEntriesByEntryId Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57318 PUT /configurations/entries/f83746b4-d9d8-42d0-b304-b4eb87973b6d null HTTP_1_1 204 0 11 tid=harvard No Content Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking putConfigurationsEntriesByEntryId Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57322 PUT /configurations/entries/eebcf6bb-aae4-4ef2-8e32-947b561be2da null HTTP_1_1 204 0 7 tid=harvard No Content Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking putConfigurationsEntriesByEntryId Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57320 PUT /configurations/entries/d7119172-d764-4146-89a8-21cad7b50160 null HTTP_1_1 204 0 19 tid=harvard No Content Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking putConfigurationsEntriesByEntryId Mar 22, 2019 4:10:57 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57324 PUT /configurations/entries/ecd39d47-b09a-4c0e-8c2c-4c06bde7bc64 null HTTP_1_1 204 0 6 tid=harvard No Content Mar 22, 2019 4:10:59 PM org.z3950.zing.cql.cql2pgjson.CQL2PgJSON loadDbSchema INFO: loadDbSchema: Loaded 'templates/db_scripts/schema.json' OK Mar 22, 2019 4:10:59 PM org.folio.rest.persist.cql.CQLWrapper INFO: CQL >>> SQL: null >>>LIMIT 10 OFFSET 0 Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking getConfigurationsEntries Received response: '200':'{ "configs" : [ { "facetValues" : [ { "count" : 1, "value" : "system.currency_symbol.en" }, { "count" : 1, "value" : "system.currency_code.en" }, { "count" : 1, "value" : "system.currency_symbol.dk" }, { "count" : 1, "value" : "encoded_example" }, { "count" : 1, "value" : "system.timezone_date.dk" } ], "type" : "code" }, { "facetValues" : [ { "count" : 10, "value" : "SETTINGS" }, { "count" : 4, "value" : "CIRCULATION" } ], "type" : "module" }, { "facetValues" : [ { "count" : 1, "value" : "system.currency_code.en" } ], "type" : "code" }, { "facetValues" : [ { "count" : 1, "value" : "system.currency_symbol.dk" } ], "type" : "code" }, null, { "facetValues" : [ { "count" : 4, "value" : "CIRCULATION" } ], "type" : "module" }, { "facetValues" : [ { "count" : 1, "value" : "encoded_example" } ], "type" : "code" }, { "facetValues" : [ { "count" : 1, "value" : "system.timezone_date.dk" } ], "type" : "code" }, { "id" : "3af6313c-708f-4208-bce6-2e4b6c4c1603", "module" : "SETTINGS", "configName" : "locale", "code" : "system.timezone.en", "description" : "timezone", "default" : true, "enabled" : true, "value" : "GMT-04:00", "userId" : "joeshmoe" }, { "id" : "94ed223f-9e15-41f9-8b42-4494a540c3c1", "module" : "SETTINGS", "configName" : "locale", "code" : "system.timezone_date.en", "description" : "timezone date format", "default" : true, "enabled" : true, "value" : "dd/MM/yyyy" }, { "id" : "bcefcc27-0179-4ad5-9245-4b15850df560", "module" : "SETTINGS", "configName" : "locale", "code" : "system.timezone_time.en", "description" : "timezone time format", "default" : true, "enabled" : true, "value" : "HH:mm:ss a z" }, { "id" : "cc497836-0f60-4b09-a8d2-1ed3b560d63d", "module" : "SETTINGS", "configName" : "locale", "code" : "system.currency_code.en", "description" : "currency", "default" : true, "enabled" : true, "value" : "USD" }, { "id" : "8d8c0cd6-14a1-4d43-ae6f-21fb67b3da10", "module" : "SETTINGS", "configName" : "locale", "code" : "system.currency_symbol.en", "description" : "currency code", "default" : true, "enabled" : true, "value" : "$" }, { "id" : "87c54077-21c0-4cb0-9c93-f1917e08bc80", "module" : "SETTINGS", "configName" : "locale", "code" : "system.timezone.dk", "description" : "timezone", "default" : false, "enabled" : true, "value" : "GMT-01:00" }, { "id" : "18f2e94d-991a-479b-a603-4ab10932d9ed", "module" : "SETTINGS", "configName" : "locale", "code" : "system.timezone_date.dk", "description" : "timezone date format", "default" : false, "enabled" : true, "value" : "MM/dd/yyyy" }, { "id" : "61291b3f-8bd6-4227-9e53-66e088dd9770", "module" : "SETTINGS", "configName" : "locale", "code" : "system.timezone_time.dk", "description" : "timezone time format", "default" : false, "enabled" : true, "value" : "HH:mm:ss a z" }, { "id" : "c243d15c-95b3-4145-ae24-fc7828dd6277", "module" : "SETTINGS", "configName" : "locale", "code" : "system.currency_code.dk", "description" : "currency", "default" : false, "enabled" : true, "value" : "DKK" }, { "id" : "0d08917e-3f5c-4887-949e-0b3b5f21cbe0", "module" : "SETTINGS", "configName" : "locale", "code" : "system.currency_symbol.dk", "description" : "currency code", "default" : false, "enabled" : true, "value" : "kr" } ], "totalRecords" : 14, "resultInfo" : { "totalRecords" : 14, "facets" : [ { "facetValues" : [ { "count" : 1, "value" : "system.currency_symbol.en" }, { "count" : 1, "value" : "system.currency_code.en" }, { "count" : 1, "value" : "system.currency_symbol.dk" }, { "count" : 1, "value" : "encoded_example" }, { "count" : 1, "value" : "system.timezone_date.dk" } ], "type" : "code" }, { "facetValues" : [ { "count" : 10, "value" : "SETTINGS" }, { "count" : 4, "value" : "CIRCULATION" } ], "type" : "module" } ], "diagnostics" : [ ] } }' Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57328 GET /configurations/entries facets=code&facets=module HTTP_1_1 200 4537 182 tid=harvard OK Mar 22, 2019 4:10:59 PM org.folio.rest.persist.cql.CQLWrapper INFO: CQL >>> SQL: module==CIRCULATION >>> WHERE lower(f_unaccent(config_data.jsonb->>'module')) LIKE lower(f_unaccent('CIRCULATION')) LIMIT 10 OFFSET 0 Mar 22, 2019 4:10:59 PM org.folio.rest.persist.PostgresClient SEVERE: ErrorMessage(fields=Map(Position -> 106, Line -> 1087, File -> scan.l, SQLSTATE -> 42601, Routine -> scanner_yyerror, V -> ERROR, Message -> syntax error at or near "module", Severity -> ERROR)) com.github.mauricio.async.db.postgresql.exceptions.GenericDatabaseException: ErrorMessage(fields=Map(Position -> 106, Line -> 1087, File -> scan.l, SQLSTATE -> 42601, Routine -> scanner_yyerror, V -> ERROR, Message -> syntax error at or near "module", Severity -> ERROR)) at com.github.mauricio.async.db.postgresql.PostgreSQLConnection.onError(PostgreSQLConnection.scala:175) at com.github.mauricio.async.db.postgresql.codec.PostgreSQLConnectionHandler.channelRead0(PostgreSQLConnectionHandler.scala:206) at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:297) at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:413) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1359) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:935) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:141) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Thread.java:748) Mar 22, 2019 4:10:59 PM org.folio.rest.impl.ConfigAPI SEVERE: ErrorMessage(fields=Map(Position -> 106, Line -> 1087, File -> scan.l, SQLSTATE -> 42601, Routine -> scanner_yyerror, V -> ERROR, Message -> syntax error at or near "module", Severity -> ERROR)) com.github.mauricio.async.db.postgresql.exceptions.GenericDatabaseException: ErrorMessage(fields=Map(Position -> 106, Line -> 1087, File -> scan.l, SQLSTATE -> 42601, Routine -> scanner_yyerror, V -> ERROR, Message -> syntax error at or near "module", Severity -> ERROR)) at com.github.mauricio.async.db.postgresql.PostgreSQLConnection.onError(PostgreSQLConnection.scala:175) at com.github.mauricio.async.db.postgresql.codec.PostgreSQLConnectionHandler.channelRead0(PostgreSQLConnectionHandler.scala:206) at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:297) at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:413) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1359) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:935) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:141) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Thread.java:748) Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking getConfigurationsEntries Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57330 GET /configurations/entries query=module==CIRCULATION&facets=code&facets=module HTTP_1_1 400 194 39 tid=harvard Bad Request Received response: '400':'ErrorMessage(fields=Map(Position -> 106, Line -> 1087, File -> scan.l, SQLSTATE -> 42601, Routine -> scanner_yyerror, V -> ERROR, Message -> syntax error at or near "module", Severity -> ERROR))' java.lang.AssertionError: Unexpected status code from 'http://localhost:63188/configurations/entries?query=module==CIRCULATION&facets=code&facets=module': 'ErrorMessage(fields=Map(Position -> 106, Line -> 1087, File -> scan.l, SQLSTATE -> 42601, Routine -> scanner_yyerror, V -> ERROR, Message -> syntax error at or near "module", Severity -> ERROR))'. Not equals : 200 != 400 at io.vertx.ext.unit.impl.TestContextImpl.reportAssertionError(TestContextImpl.java:467) at io.vertx.ext.unit.impl.TestContextImpl.assertEquals(TestContextImpl.java:363) at org.folio.rest.RestVerticleTest.lambda$runGETURLoop$29(RestVerticleTest.java:1387) at java.util.ArrayList.forEach(ArrayList.java:1257) at org.folio.rest.RestVerticleTest.runGETURLoop(RestVerticleTest.java:1371) at org.folio.rest.RestVerticleTest.checkResultsFromVariousUrls(RestVerticleTest.java:1290) at org.folio.rest.RestVerticleTest.checkURLs(RestVerticleTest.java:1286) 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 io.vertx.ext.unit.junit.VertxUnitRunner.invokeTestMethod(VertxUnitRunner.java:95) at io.vertx.ext.unit.junit.VertxUnitRunner.lambda$invokeExplosively$0(VertxUnitRunner.java:114) at io.vertx.ext.unit.impl.TestContextImpl$Step.run(TestContextImpl.java:128) at io.vertx.ext.unit.impl.TestContextImpl$Step.access$200(TestContextImpl.java:30) at io.vertx.ext.unit.impl.TestContextImpl.run(TestContextImpl.java:237) at io.vertx.ext.unit.junit.VertxUnitRunner.invokeExplosively(VertxUnitRunner.java:130) at io.vertx.ext.unit.junit.VertxUnitRunner.access$000(VertxUnitRunner.java:39) at io.vertx.ext.unit.junit.VertxUnitRunner$1.evaluate(VertxUnitRunner.java:84) at io.vertx.ext.unit.junit.VertxUnitRunner$2.evaluate(VertxUnitRunner.java:196) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at io.vertx.ext.unit.junit.VertxUnitRunner$2.evaluate(VertxUnitRunner.java:196) at io.vertx.ext.unit.junit.VertxUnitRunner$3.evaluate(VertxUnitRunner.java:211) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121) Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Received response: '201':'{ "id" : "2327e419-bc1a-45a9-9a46-bf1fed09209e", "module" : "CHECKOUT", "configName" : "other_settings", "code" : "audioAlertsEnabled", "description" : "Whether audio alerts should be made during check out", "enabled" : true, "value" : "true", "metadata" : { "createdDate" : "2019-03-22T15:10:59.610+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:59.610+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57332 POST /configurations/entries null HTTP_1_1 201 511 5 tid=harvard Created Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking putConfigurationsEntriesByEntryId Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57334 PUT /configurations/entries/2327e419-bc1a-45a9-9a46-bf1fed09209e null HTTP_1_1 204 0 6 tid=harvard No Content Received response: '204':'' Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking getConfigurationsEntriesByEntryId Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57336 GET /configurations/entries/2327e419-bc1a-45a9-9a46-bf1fed09209e null HTTP_1_1 200 512 8 tid=harvard OK Received response: '200':'{ "id" : "2327e419-bc1a-45a9-9a46-bf1fed09209e", "module" : "CHECKOUT", "configName" : "other_settings", "code" : "audioAlertsEnabled", "description" : "Whether audio alerts should be made during check out", "enabled" : false, "value" : "true", "metadata" : { "createdDate" : "2019-03-22T15:10:59.610+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:59.625+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57338 POST /configurations/entries null HTTP_1_1 201 511 19 tid=harvard Created Received response: '201':'{ "id" : "7ecb1c69-5e48-42ec-84ca-e01996fb987e", "module" : "CHECKOUT", "configName" : "other_settings", "code" : "audioAlertsEnabled", "description" : "Whether audio alerts should be made during check out", "enabled" : true, "value" : "true", "metadata" : { "createdDate" : "2019-03-22T15:10:59.654+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:59.654+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57340 POST /configurations/entries null HTTP_1_1 201 515 13 tid=harvard Created Received response: '201':'{ "id" : "32ef7f21-d789-4461-906c-7e95f24b3b96", "module" : "CHECKOUT", "configName" : "other_settings", "code" : "checkoutTimeoutDuration", "description" : "How long the timeout for a check out session should be", "enabled" : true, "value" : "3", "metadata" : { "createdDate" : "2019-03-22T15:10:59.671+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:59.671+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:59 PM org.folio.rest.persist.cql.CQLWrapper INFO: CQL >>> SQL: module==CHECKOUT >>> WHERE lower(f_unaccent(config_data.jsonb->>'module')) LIKE lower(f_unaccent('CHECKOUT')) LIMIT 10 OFFSET 0 Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking getConfigurationsEntries Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57342 GET /configurations/entries query=module==CHECKOUT HTTP_1_1 200 1220 104 tid=harvard OK Received response: '200':'{ "configs" : [ { "id" : "7ecb1c69-5e48-42ec-84ca-e01996fb987e", "module" : "CHECKOUT", "configName" : "other_settings", "code" : "audioAlertsEnabled", "description" : "Whether audio alerts should be made during check out", "enabled" : true, "value" : "true", "metadata" : { "createdDate" : "2019-03-22T15:10:59.654+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:59.654+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }, { "id" : "32ef7f21-d789-4461-906c-7e95f24b3b96", "module" : "CHECKOUT", "configName" : "other_settings", "code" : "checkoutTimeoutDuration", "description" : "How long the timeout for a check out session should be", "enabled" : true, "value" : "3", "metadata" : { "createdDate" : "2019-03-22T15:10:59.671+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:59.671+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } } ], "totalRecords" : 2, "resultInfo" : { "totalRecords" : 2, "facets" : [ ], "diagnostics" : [ ] } }' Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Received response: '201':'{ "id" : "3585e8b4-063f-47a7-afcf-f890ef8db91d", "module" : "CHECKOUT", "configName" : "other_settings", "code" : "audioAlertsEnabled", "description" : "Whether audio alerts should be made during check out", "enabled" : true, "value" : "true", "metadata" : { "createdDate" : "2019-03-22T15:10:59.801+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:59.801+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57344 POST /configurations/entries null HTTP_1_1 201 511 13 tid=harvard Created Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Received response: '201':'{ "id" : "82d05afe-b1a5-4eae-aff4-40f14df287ad", "module" : "CHECKOUT", "configName" : "other_settings", "code" : "checkoutTimeoutDuration", "description" : "How long the timeout for a check out session should be", "enabled" : true, "value" : "3", "metadata" : { "createdDate" : "2019-03-22T15:10:59.819+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:59.819+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57346 POST /configurations/entries null HTTP_1_1 201 515 8 tid=harvard Created Mar 22, 2019 4:10:59 PM org.folio.rest.persist.cql.CQLWrapper INFO: CQL >>> SQL: module==CHECKOUT sortBy metadata.createdDate/sort.descending >>> WHERE lower(f_unaccent(config_data.jsonb->>'module')) LIKE lower(f_unaccent('CHECKOUT')) ORDER BY lower(f_unaccent(config_data.jsonb->'metadata'->>'createdDate')) DESC LIMIT 10 OFFSET 0 Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking getConfigurationsEntries Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57348 GET /configurations/entries query=module%3D%3DCHECKOUT+sortBy+metadata.createdDate%2Fsort.descending HTTP_1_1 200 1220 28 tid=harvard OK Received response: '200':'{ "configs" : [ { "id" : "82d05afe-b1a5-4eae-aff4-40f14df287ad", "module" : "CHECKOUT", "configName" : "other_settings", "code" : "checkoutTimeoutDuration", "description" : "How long the timeout for a check out session should be", "enabled" : true, "value" : "3", "metadata" : { "createdDate" : "2019-03-22T15:10:59.819+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:59.819+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }, { "id" : "3585e8b4-063f-47a7-afcf-f890ef8db91d", "module" : "CHECKOUT", "configName" : "other_settings", "code" : "audioAlertsEnabled", "description" : "Whether audio alerts should be made during check out", "enabled" : true, "value" : "true", "metadata" : { "createdDate" : "2019-03-22T15:10:59.801+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:59.801+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } } ], "totalRecords" : 2, "resultInfo" : { "totalRecords" : 2, "facets" : [ ], "diagnostics" : [ ] } }' Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57350 POST /configurations/entries null HTTP_1_1 201 437 11 tid=harvard Created Received response: '201':'{ "id" : "a4b1185f-1052-4dcc-a731-a493cbeaad41", "module" : "CHECKOUT", "configName" : "other_settings", "code" : "some_setting", "enabled" : true, "value" : "some value", "metadata" : { "createdDate" : "2019-03-22T15:10:59.875+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:59.875+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Received response: '201':'{ "id" : "54e36252-fe6c-455f-ab0d-c81829887767", "module" : "CHECKOUT", "configName" : "other_settings", "code" : "audioAlertsEnabled", "description" : "Whether audio alerts should be made during check out", "enabled" : true, "value" : "true", "metadata" : { "createdDate" : "2019-03-22T15:10:59.883+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:59.883+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57352 POST /configurations/entries null HTTP_1_1 201 511 12 tid=harvard Created Mar 22, 2019 4:10:59 PM org.folio.rest.persist.PostgresClient SEVERE: ErrorMessage(fields=Map(Detail -> Key (lower(f_unaccent(jsonb ->> 'module'::text)), lower(f_unaccent(jsonb ->> 'configName'::text)), lower(f_unaccent(jsonb ->> 'code'::text)))=(checkout, other_settings, some_setting) already exists., s -> harvard_mod_configuration, n -> config_data_module_configname_code_idx_unique, t -> config_data, Line -> 434, File -> nbtinsert.c, SQLSTATE -> 23505, Routine -> _bt_check_unique, V -> ERROR, Message -> duplicate key value violates unique constraint "config_data_module_configname_code_idx_unique", Severity -> ERROR)) com.github.mauricio.async.db.postgresql.exceptions.GenericDatabaseException: ErrorMessage(fields=Map(Detail -> Key (lower(f_unaccent(jsonb ->> 'module'::text)), lower(f_unaccent(jsonb ->> 'configName'::text)), lower(f_unaccent(jsonb ->> 'code'::text)))=(checkout, other_settings, some_setting) already exists., s -> harvard_mod_configuration, n -> config_data_module_configname_code_idx_unique, t -> config_data, Line -> 434, File -> nbtinsert.c, SQLSTATE -> 23505, Routine -> _bt_check_unique, V -> ERROR, Message -> duplicate key value violates unique constraint "config_data_module_configname_code_idx_unique", Severity -> ERROR)) at com.github.mauricio.async.db.postgresql.PostgreSQLConnection.onError(PostgreSQLConnection.scala:175) at com.github.mauricio.async.db.postgresql.codec.PostgreSQLConnectionHandler.channelRead0(PostgreSQLConnectionHandler.scala:206) at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:297) at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:413) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1359) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:935) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:141) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Thread.java:748) Mar 22, 2019 4:10:59 PM org.folio.rest.impl.ConfigAPI SEVERE: ErrorMessage(fields=Map(Detail -> Key (lower(f_unaccent(jsonb ->> 'module'::text)), lower(f_unaccent(jsonb ->> 'configName'::text)), lower(f_unaccent(jsonb ->> 'code'::text)))=(checkout, other_settings, some_setting) already exists., s -> harvard_mod_configuration, n -> config_data_module_configname_code_idx_unique, t -> config_data, Line -> 434, File -> nbtinsert.c, SQLSTATE -> 23505, Routine -> _bt_check_unique, V -> ERROR, Message -> duplicate key value violates unique constraint "config_data_module_configname_code_idx_unique", Severity -> ERROR)) com.github.mauricio.async.db.postgresql.exceptions.GenericDatabaseException: ErrorMessage(fields=Map(Detail -> Key (lower(f_unaccent(jsonb ->> 'module'::text)), lower(f_unaccent(jsonb ->> 'configName'::text)), lower(f_unaccent(jsonb ->> 'code'::text)))=(checkout, other_settings, some_setting) already exists., s -> harvard_mod_configuration, n -> config_data_module_configname_code_idx_unique, t -> config_data, Line -> 434, File -> nbtinsert.c, SQLSTATE -> 23505, Routine -> _bt_check_unique, V -> ERROR, Message -> duplicate key value violates unique constraint "config_data_module_configname_code_idx_unique", Severity -> ERROR)) at com.github.mauricio.async.db.postgresql.PostgreSQLConnection.onError(PostgreSQLConnection.scala:175) at com.github.mauricio.async.db.postgresql.codec.PostgreSQLConnectionHandler.channelRead0(PostgreSQLConnectionHandler.scala:206) at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:297) at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:413) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1359) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:935) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:141) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Thread.java:748) Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking putConfigurationsEntriesByEntryId Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57354 PUT /configurations/entries/54e36252-fe6c-455f-ab0d-c81829887767 null HTTP_1_1 422 273 16 tid=harvard Unprocessable Entity Received response: '422':'{ "errors" : [ { "message" : "Cannot have more than one tenant or user record with the same module, config name and code", "parameters" : [ ], "configName" : "other_settings", "code" : "some_setting", "module" : "CHECKOUT", "userId" : null } ] }' Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57356 POST /configurations/entries null HTTP_1_1 201 437 17 tid=harvard Created Received response: '201':'{ "id" : "e6cfba0c-88fe-4875-9673-104a727a7be8", "module" : "CHECKOUT", "configName" : "main_settings", "code" : "first_setting", "enabled" : true, "value" : "some value", "metadata" : { "createdDate" : "2019-03-22T15:10:59.933+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:59.933+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57358 POST /configurations/entries null HTTP_1_1 201 444 12 tid=harvard Created Received response: '201':'{ "id" : "40c8836e-58c7-496f-91d9-c1d18bea8ac6", "module" : "CHECKOUT", "configName" : "main_settings", "code" : "second_setting", "enabled" : true, "value" : "some other value", "metadata" : { "createdDate" : "2019-03-22T15:10:59.947+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:59.947+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Received response: '201':'{ "id" : "527de799-a468-4cae-905b-104808d0a278", "module" : "CHECKOUT", "configName" : "other_settings", "enabled" : true, "value" : "{ \"audioAlertsEnabled\": \"true\" }", "metadata" : { "createdDate" : "2019-03-22T15:10:59.965+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:10:59.965+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:10:59 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57360 POST /configurations/entries null HTTP_1_1 201 436 23 tid=harvard Created Mar 22, 2019 4:11:00 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Received response: '201':'{ "id" : "0715a7f3-0baf-4d82-9ae9-782d957dc0d4", "module" : "CHECKOUT", "configName" : "other_settings", "code" : "audioAlertsEnabled", "description" : "Whether audio alerts should be made during check out", "enabled" : true, "value" : "true", "metadata" : { "createdDate" : "2019-03-22T15:11:00.006+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:11:00.006+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:11:00 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57362 POST /configurations/entries null HTTP_1_1 201 511 24 tid=harvard Created Mar 22, 2019 4:11:00 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking putConfigurationsEntriesByEntryId Received response: '204':'' Mar 22, 2019 4:11:00 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57364 PUT /configurations/entries/0715a7f3-0baf-4d82-9ae9-782d957dc0d4 null HTTP_1_1 204 0 21 tid=harvard No Content Mar 22, 2019 4:11:00 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking getConfigurationsEntriesByEntryId Mar 22, 2019 4:11:00 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57366 GET /configurations/entries/0715a7f3-0baf-4d82-9ae9-782d957dc0d4 null HTTP_1_1 200 517 11 tid=harvard OK Received response: '200':'{ "id" : "0715a7f3-0baf-4d82-9ae9-782d957dc0d4", "module" : "a_new_module", "configName" : "a_new_config_name", "code" : "a_new_code", "description" : "Whether audio alerts should be made during check out", "enabled" : true, "value" : "a_new_value", "metadata" : { "createdDate" : "2019-03-22T15:11:00.006+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:11:00.026+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:11:00 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:11:00 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57370 POST /configurations/entries null HTTP_1_1 201 465 20 tid=harvard Created Received response: '201':'{ "id" : "6e0530a8-8d9c-494c-80a5-952bfac0ed2f", "module" : "CHECKOUT", "configName" : "main_settings", "enabled" : true, "value" : "another value", "userId" : "ad403f73-dffd-448c-ad2f-8d5cbf1009c8", "metadata" : { "createdDate" : "2019-03-22T15:11:00.082+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:11:00.082+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:11:00 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Mar 22, 2019 4:11:00 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57368 POST /configurations/entries null HTTP_1_1 201 409 20 tid=harvard Created Received response: '201':'{ "id" : "454e0253-14b9-4f63-8fe8-5b1b0b36e757", "module" : "CHECKOUT", "configName" : "main_settings", "enabled" : true, "value" : "some value", "metadata" : { "createdDate" : "2019-03-22T15:11:00.086+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:11:00.086+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:11:00 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking postConfigurationsEntries Received response: '201':'{ "id" : "c1210783-95d6-450e-96e8-7b43cacdcaa9", "module" : "CHECKOUT", "configName" : "main_settings", "enabled" : true, "value" : "a different value", "userId" : "39b411f8-3da5-458e-8eea-e121cb01ff61", "metadata" : { "createdDate" : "2019-03-22T15:11:00.097+0000", "createdByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085", "updatedDate" : "2019-03-22T15:11:00.097+0000", "updatedByUserId" : "79ff2a8b-d9c3-5b39-ad4a-0a84025ab085" } }' Mar 22, 2019 4:11:00 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57372 POST /configurations/entries null HTTP_1_1 201 469 16 tid=harvard Created Mar 22, 2019 4:11:00 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking putAdminLoglevel Mar 22, 2019 4:11:00 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57374 PUT /admin/loglevel level=FINE&java_package=org.folio.rest.persist HTTP_1_1 200 145 24 tid=harvard OK Mar 22, 2019 4:11:00 PM org.folio.rest.impl.TenantAPI INFO: sending... deleteTenant for harvard Mar 22, 2019 4:11:00 PM org.folio.rest.impl.TenantAPI INFO: Deleting tenant harvard Mar 22, 2019 4:11:00 PM org.folio.rest.impl.TenantAPI INFO: Attempting to run delete script for: harvard Mar 22, 2019 4:11:00 PM org.folio.rest.persist.PostgresClient INFO: Executing multiple statements with id -562701396 Mar 22, 2019 4:11:00 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: REVOKE ALL PRIVILEGES ON DATABASE postgres from harvard_mod_configuration Mar 22, 2019 4:11:00 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: REVOKE ALL PRIVILEGES ON DATABASE postgres from harvard_mod_configuration Mar 22, 2019 4:11:00 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: DROP SCHEMA IF EXISTS harvard_mod_configuration CASCADE Mar 22, 2019 4:11:00 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: DROP SCHEMA IF EXISTS harvard_mod_configuration CASCADE Mar 22, 2019 4:11:00 PM org.folio.rest.persist.PostgresClient INFO: trying to execute: DROP USER IF EXISTS harvard_mod_configuration Mar 22, 2019 4:11:00 PM org.folio.rest.persist.PostgresClient INFO: Successfully executed: DROP USER IF EXISTS harvard_mod_configuration Mar 22, 2019 4:11:00 PM org.folio.rest.persist.PostgresClient INFO: Successfully committed: -562701396 Mar 22, 2019 4:11:00 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle start invoking deleteTenant Mar 22, 2019 4:11:00 PM org.folio.rest.tools.utils.LogUtil INFO: 127.0.0.1:57214 DELETE /_/tenant null HTTP_1_1 204 0 34 tid=harvard No Content Mar 22, 2019 4:11:00 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.RestVerticle runShutdownHook no shutdown hook implementation found, continuing with shutdown Mar 22, 2019 4:11:00 PM io.vertx.ext.asyncsql.impl.PostgreSQLClientImpl INFO: Stopping async SQL client io.vertx.ext.asyncsql.impl.PostgreSQLClientImpl@528edd84 Mar 22, 2019 4:11:00 PM io.vertx.ext.asyncsql.impl.PostgreSQLClientImpl INFO: Stopping async SQL client io.vertx.ext.asyncsql.impl.PostgreSQLClientImpl@5b4a92f8 Mar 22, 2019 4:11:00 PM org.folio.rest.tools.utils.LogUtil INFO: org.folio.rest.persist.PostgresClient stopEmbeddedPostgres called stop on embedded postgress ... Tests run: 30, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 10.65 sec <<< FAILURE! - in org.folio.rest.RestVerticleTest checkURLs(org.folio.rest.RestVerticleTest) Time elapsed: 2.308 sec <<< FAILURE! java.lang.AssertionError: Unexpected status code from 'http://localhost:63188/configurations/entries?query=module==CIRCULATION&facets=code&facets=module': 'ErrorMessage(fields=Map(Position -> 106, Line -> 1087, File -> scan.l, SQLSTATE -> 42601, Routine -> scanner_yyerror, V -> ERROR, Message -> syntax error at or near "module", Severity -> ERROR))'. Not equals : 200 != 400 at org.folio.rest.RestVerticleTest.lambda$runGETURLoop$29(RestVerticleTest.java:1387) at org.folio.rest.RestVerticleTest.runGETURLoop(RestVerticleTest.java:1371) at org.folio.rest.RestVerticleTest.checkResultsFromVariousUrls(RestVerticleTest.java:1290) at org.folio.rest.RestVerticleTest.checkURLs(RestVerticleTest.java:1286) Results : Failed tests: RestVerticleTest.checkURLs:1286->checkResultsFromVariousUrls:1290->runGETURLoop:1371->lambda$runGETURLoop$29:1387 Unexpected status code from 'http://localhost:63188/configurations/entries?query=module==CIRCULATION&facets=code&facets=module': 'ErrorMessage(fields=Map(Position -> 106, Line -> 1087, File -> scan.l, SQLSTATE -> 42601, Routine -> scanner_yyerror, V -> ERROR, Message -> syntax error at or near "module", Severity -> ERROR))'. Not equals : 200 != 400 Tests run: 32, Failures: 1, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] mod-configuration .................................. SUCCESS [ 4.197 s] [INFO] mod-configuration-server ........................... FAILURE [ 25.343 s] [INFO] mod-configuration-client ........................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 29.715 s [INFO] Finished at: 2019-03-22T16:11:01+01:00 [INFO] Final Memory: 61M/770M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project mod-configuration-server: There are test failures. [ERROR] [ERROR] Please refer to /home/adam/folio/mod-configuration/mod-configuration-server/target/surefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :mod-configuration-server