Uploaded image for project: 'Corda'
  1. CORDA-2651

Useless migration error when finance workflow jar is not installed

    Details

    • Type: Bug
    • Status: Done (View workflow)
    • Priority: Medium
    • Resolution: Done
    • Affects versions: Corda 4 RC06
    • Fix versions: Corda 4.1
    • Components: None
    • Labels:
      None
    • Severity:
      Medium
    • Target Version/s:
    • Feature Team:
      Corda Core
    • Sprint:
      Corda Core Sprint 1, Corda Core Sprint 2

      Description

      This is utterly useless:

      [ERROR] 2019-02-20T14:39:52,245Z [main] internal.NodeStartupLogging.invoke - Could not create the DataSource: Error parsing master.changelog.json: Could not create the DataSource: Error parsing master.changelog.json [errorCode=1897w3o, moreInformationAt=https://errors.corda.net/OS/4.0-RC06/1897w3o]
      net.corda.nodeapi.internal.persistence.CouldNotCreateDataSourceException: Could not create the DataSource: Error parsing master.changelog.json
      at net.corda.node.internal.AbstractNodeKt.startHikariPool(AbstractNode.kt:1088) ~[corda-node-4.0-RC06.jar:?]
      at net.corda.node.internal.AbstractNode.startDatabase(AbstractNode.kt:765) ~[corda-node-4.0-RC06.jar:?]
      at net.corda.node.internal.Node.startDatabase(Node.kt:405) ~[corda-node-4.0-RC06.jar:?]
      at net.corda.node.internal.AbstractNode.start(AbstractNode.kt:340) ~[corda-node-4.0-RC06.jar:?]
      at net.corda.node.internal.Node.start(Node.kt:419) ~[corda-node-4.0-RC06.jar:?]
      at net.corda.node.internal.NodeStartup.startNode(NodeStartup.kt:185) ~[corda-node-4.0-RC06.jar:?]
      at net.corda.node.internal.NodeStartupCli$runProgram$2.run(NodeStartup.kt:110) ~[corda-node-4.0-RC06.jar:?]
      at net.corda.node.internal.NodeStartup$initialiseAndRun$5.invoke(NodeStartup.kt:162) ~[corda-node-4.0-RC06.jar:?]
      at net.corda.node.internal.NodeStartup$initialiseAndRun$5.invoke(NodeStartup.kt:117) ~[corda-node-4.0-RC06.jar:?]
      at net.corda.node.internal.NodeStartupLogging$DefaultImpls.attempt(NodeStartup.kt:450) ~[corda-node-4.0-RC06.jar:?]
      at net.corda.node.internal.NodeStartup.attempt(NodeStartup.kt:117) ~[corda-node-4.0-RC06.jar:?]
      at net.corda.node.internal.NodeStartup.initialiseAndRun(NodeStartup.kt:160) ~[corda-node-4.0-RC06.jar:?]
      at net.corda.node.internal.NodeStartupCli.runProgram(NodeStartup.kt:108) ~[corda-node-4.0-RC06.jar:?]
      at net.corda.cliutils.CordaCliWrapper.call(CordaCliWrapper.kt:184) ~[corda-tools-cliutils-4.0-RC06.jar:?]
      at net.corda.cliutils.CordaCliWrapper.call(CordaCliWrapper.kt:152) ~[corda-tools-cliutils-4.0-RC06.jar:?]
      at picocli.CommandLine.execute(CommandLine.java:1056) ~[picocli-3.8.0.jar:3.8.0]
      at picocli.CommandLine.access$900(CommandLine.java:142) ~[picocli-3.8.0.jar:3.8.0]
      at picocli.CommandLine$RunLast.handle(CommandLine.java:1246) ~[picocli-3.8.0.jar:3.8.0]
      at picocli.CommandLine$RunLast.handle(CommandLine.java:1214) ~[picocli-3.8.0.jar:3.8.0]
      at picocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:1122) ~[picocli-3.8.0.jar:3.8.0]
      at picocli.CommandLine.parseWithHandlers(CommandLine.java:1405) ~[picocli-3.8.0.jar:3.8.0]
      at net.corda.cliutils.CordaCliWrapperKt.start(CordaCliWrapper.kt:72) ~[corda-tools-cliutils-4.0-RC06.jar:?]
      at net.corda.node.Corda.main(Corda.kt:13) ~[corda-node-4.0-RC06.jar:?]
      Caused by: liquibase.exception.ChangeLogParseException: Error parsing master.changelog.json
      at liquibase.parser.core.yaml.YamlChangeLogParser.parse(YamlChangeLogParser.java:98) ~[liquibase-core-3.5.5.jar:?]
      at liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:229) ~[liquibase-core-3.5.5.jar:?]
      at liquibase.Liquibase.changeLogSync(Liquibase.java:811) ~[liquibase-core-3.5.5.jar:?]
      at net.corda.nodeapi.internal.persistence.SchemaMigration.migrateOlderDatabaseToUseLiquibase(SchemaMigration.kt:207) ~[corda-node-api-4.0-RC06.jar:?]
      at net.corda.nodeapi.internal.persistence.SchemaMigration.nodeStartup(SchemaMigration.kt:56) ~[corda-node-api-4.0-RC06.jar:?]
      at net.corda.node.internal.AbstractNodeKt.startHikariPool(AbstractNode.kt:1081) ~[corda-node-4.0-RC06.jar:?]
      ... 22 more
      Caused by: liquibase.exception.SetupException: migration/cash.changelog-init.xml does not exist
      at liquibase.changelog.DatabaseChangeLog.handleChildNode(DatabaseChangeLog.java:322) ~[liquibase-core-3.5.5.jar:?]
      at liquibase.changelog.DatabaseChangeLog.load(DatabaseChangeLog.java:282) ~[liquibase-core-3.5.5.jar:?]
      at liquibase.parser.core.yaml.YamlChangeLogParser.parse(YamlChangeLogParser.java:91) ~[liquibase-core-3.5.5.jar:?]
      at liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:229) ~[liquibase-core-3.5.5.jar:?]
      at liquibase.Liquibase.changeLogSync(Liquibase.java:811) ~[liquibase-core-3.5.5.jar:?]
      at net.corda.nodeapi.internal.persistence.SchemaMigration.migrateOlderDatabaseToUseLiquibase(SchemaMigration.kt:207) ~[corda-node-api-4.0-RC06.jar:?]
      at net.corda.nodeapi.internal.persistence.SchemaMigration.nodeStartup(SchemaMigration.kt:56) ~[corda-node-api-4.0-RC06.jar:?]
      at net.corda.node.internal.AbstractNodeKt.startHikariPool(AbstractNode.kt:1081) ~[corda-node-4.0-RC06.jar:?]
      ... 22 more
      Caused by: liquibase.exception.ChangeLogParseException: migration/cash.changelog-init.xml does not exist
      at liquibase.parser.core.xml.XMLChangeLogSAXParser.parseToNode(XMLChangeLogSAXParser.java:100) ~[liquibase-core-3.5.5.jar:?]
      at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:17) ~[liquibase-core-3.5.5.jar:?]
      at liquibase.changelog.DatabaseChangeLog.include(DatabaseChangeLog.java:478) ~[liquibase-core-3.5.5.jar:?]
      at liquibase.changelog.DatabaseChangeLog.handleChildNode(DatabaseChangeLog.java:320) ~[liquibase-core-3.5.5.jar:?]
      at liquibase.changelog.DatabaseChangeLog.load(DatabaseChangeLog.java:282) ~[liquibase-core-3.5.5.jar:?]
      at liquibase.parser.core.yaml.YamlChangeLogParser.parse(YamlChangeLogParser.java:91) ~[liquibase-core-3.5.5.jar:?]
      at liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:229) ~[liquibase-core-3.5.5.jar:?]
      at liquibase.Liquibase.changeLogSync(Liquibase.java:811) ~[liquibase-core-3.5.5.jar:?]
      at net.corda.nodeapi.internal.persistence.SchemaMigration.migrateOlderDatabaseToUseLiquibase(SchemaMigration.kt:207) ~[corda-node-api-4.0-RC06.jar:?]
      at net.corda.nodeapi.internal.persistence.SchemaMigration.nodeStartup(SchemaMigration.kt:56) ~[corda-node-api-4.0-RC06.jar:?]
      at net.corda.node.internal.AbstractNodeKt.startHikariPool(AbstractNode.kt:1081) ~[corda-node-4.0-RC06.jar:?]
      ... 22 more

      Additionally link with error code gives me "

      {"errors":["Invalid release version path parameter format. Use <major>.<minor>[.<patch>][-SNAPSHOT] e.g., \"3.2\" or \"4.0.2-SNAPSHOT\"."]}

      "

        Attachments

          Activity

            People

            • Assignee:
              rui.almeida Rui Almeida
              Reporter:
              Katarzyna.Streich Katarzyna Streich
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: