Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-19900

FIWARE.Question.Tech.CrateDB is failing to start.

    Details

    • Type: Monitor
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: FIWARE-TECH-HELP
    • Labels:

      Description

      Created question in FIWARE Q/A platform on 03-08-2022 at 13:08
      Please, ANSWER this question AT https://stackoverflow.com/questions/73222369/cratedb-is-failing-to-start

      Question:
      CrateDB is failing to start

      Description:
      After figuring everything out I am close to finish up this project but it seems the new crateDB version is failing to start. Here is my crate docker-compose.yml file:
      crate:
      image: crate:4.1.4
      hostname: crate
      expose:

      • "4200"
      • "4300"
      • "5432"
        networks:
      • default
        ports:
      • "4200:4200"
      • "4300:4300"
      • "5432:5432"
        command:
        -Clicense.enterprise=false -Cauth.host_based.enabled=false -Ccl>
        -Chttp.cors.enabled=truue -Chttp.cors.allow-origin="*"
        environment:
      • CRATE_HEAP_SIZE=2g

      And here is the exit code:
      srdjan-crate-1 | [2022-08-03T13:02:41,141][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [Schermerspitze] uncaught exception in thread [main]
      srdjan-crate-1 | org.elasticsearch.bootstrap.StartupException: ElasticsearchException[java.io.IOException: failed to read /data/data/nodes/0/_state/node-2.st]; nested: IOException[failed to read /data/data/nodes/0/_state/node-2.st]; nested: XContentParseException[[-1:36] [node_meta_data] unknown field [node_version], parser not found];
      srdjan-crate-1 | at org.elasticsearch.bootstrap.StartupExceptionProxy.<init>(StartupExceptionProxy.java:31) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at io.crate.bootstrap.CrateDB.init(CrateDB.java:162) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at io.crate.bootstrap.CrateDB.execute(CrateDB.java:138) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:82) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-7.0.0.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-7.0.0.jar:4.1.4]
      srdjan-crate-1 | at io.crate.bootstrap.CrateDB.main(CrateDB.java:91) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at io.crate.bootstrap.CrateDB.main(CrateDB.java:84) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | Caused by: org.elasticsearch.ElasticsearchException: java.io.IOException: failed to read /data/data/nodes/0/_state/node-2.st
      srdjan-crate-1 | at org.elasticsearch.ExceptionsHelper.maybeThrowRuntimeAndSuppress(ExceptionsHelper.java:158) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.gateway.MetaDataStateFormat.loadGeneration(MetaDataStateFormat.java:416) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.gateway.MetaDataStateFormat.loadLatestStateWithGeneration(MetaDataStateFormat.java:435) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.gateway.MetaDataStateFormat.loadLatestState(MetaDataStateFormat.java:456) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.env.NodeEnvironment.loadOrCreateNodeMetaData(NodeEnvironment.java:406) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:302) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.node.Node.<init>(Node.java:239) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at io.crate.node.CrateNode.<init>(CrateNode.java:63) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.bootstrap.BootstrapProxy$1.<init>(BootstrapProxy.java:184) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.bootstrap.BootstrapProxy.setup(BootstrapProxy.java:184) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.bootstrap.BootstrapProxy.init(BootstrapProxy.java:252) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at io.crate.bootstrap.CrateDB.init(CrateDB.java:158) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | ... 6 more
      srdjan-crate-1 | Caused by: java.io.IOException: failed to read /data/data/nodes/0/_state/node-2.st
      srdjan-crate-1 | at org.elasticsearch.gateway.MetaDataStateFormat.loadGeneration(MetaDataStateFormat.java:410) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.gateway.MetaDataStateFormat.loadLatestStateWithGeneration(MetaDataStateFormat.java:435) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.gateway.MetaDataStateFormat.loadLatestState(MetaDataStateFormat.java:456) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.env.NodeEnvironment.loadOrCreateNodeMetaData(NodeEnvironment.java:406) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:302) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.node.Node.<init>(Node.java:239) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at io.crate.node.CrateNode.<init>(CrateNode.java:63) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.bootstrap.BootstrapProxy$1.<init>(BootstrapProxy.java:184) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.bootstrap.BootstrapProxy.setup(BootstrapProxy.java:184) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.bootstrap.BootstrapProxy.init(BootstrapProxy.java:252) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at io.crate.bootstrap.CrateDB.init(CrateDB.java:158) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | ... 6 more
      srdjan-crate-1 | Caused by: org.elasticsearch.common.xcontent.XContentParseException: [-1:36] [node_meta_data] unknown field [node_version], parser not found
      srdjan-crate-1 | at org.elasticsearch.common.xcontent.ObjectParser.getParser(ObjectParser.java:326) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.common.xcontent.ObjectParser.parse(ObjectParser.java:150) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.common.xcontent.ObjectParser.apply(ObjectParser.java:174) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.env.NodeMetaData$1.fromXContent(NodeMetaData.java:110) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.env.NodeMetaData$1.fromXContent(NodeMetaData.java:94) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.gateway.MetaDataStateFormat.read(MetaDataStateFormat.java:303) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.gateway.MetaDataStateFormat.loadGeneration(MetaDataStateFormat.java:406) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.gateway.MetaDataStateFormat.loadLatestStateWithGeneration(MetaDataStateFormat.java:435) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.gateway.MetaDataStateFormat.loadLatestState(MetaDataStateFormat.java:456) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.env.NodeEnvironment.loadOrCreateNodeMetaData(NodeEnvironment.java:406) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:302) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.node.Node.<init>(Node.java:239) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at io.crate.node.CrateNode.<init>(CrateNode.java:63) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.bootstrap.BootstrapProxy$1.<init>(BootstrapProxy.java:184) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.bootstrap.BootstrapProxy.setup(BootstrapProxy.java:184) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at org.elasticsearch.bootstrap.BootstrapProxy.init(BootstrapProxy.java:252) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | at io.crate.bootstrap.CrateDB.init(CrateDB.java:158) ~[crate-app.jar:4.1.4]
      srdjan-crate-1 | ... 6 more
      srdjan-crate-1 exited with code 1

      All i need is some data pushing container, I am using FIWARE tutorials and webinar in order to visualize my data, and the crateDB container always fails to start, I mean it starts but later it just goes off... any help will be appreciated, thanks in advance!

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        11d 4h 55m 1 Fernando Lopez 15/Aug/22 12:27 PM
        In Progress In Progress Answered Answered
        1s 1 Fernando Lopez 15/Aug/22 12:27 PM
        Answered Answered Closed Closed
        2s 1 Fernando Lopez 15/Aug/22 12:27 PM

          People

          • Assignee:
            jason.fox Jason Fox
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: