Skip to content

Windows: CrateDB fails to start on Docker for Windows with -Cdiscovery.type=single-node #325

@amotl

Description

@amotl

@michaelkremmel reported this the other day. Thank you.

Problem

After executing the command docker run --name=cratedb --rm -it --network=cratedb-demo --publish=4200:4200 --publish=5432:5432 --env=CRATE_HEAP_SIZE=2g docker.io/crate -Cdiscovery.type=single-node I got the following warning and it was not clear to me what it means or if it could affect anything I tried to achieve with the tutorial.

WARNING: Using incubator modules: jdk.incubator.vector
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "String.isEmpty()" because "kvp.value" is null
        at io.crate.server.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:67)
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:120)
        at org.elasticsearch.cli.Command.main(Command.java:86)
        at io.crate.bootstrap.CrateDB.main(CrateDB.java:68)

Workaround

Turned out that the CrateDB container run only for a few seconds and stopped. After some trial and error I just removed -Cdiscovery.type=single-node which made it work, however I'm not sure what implications that has, so please don't consider it as a fix, but just as a workaround from my side and if possible find out what is causing the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions