question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

i downloaded crate from github but when I try to run it with “./app/build/install/crate/bin/crate” I get this:

ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console. Set system property 'log4j2.debug' to show Log4j2 internal initialization logging.
[2018-04-04T17:58:07,650][INFO ][o.e.n.Node               ] [Lastìa de Framónt] initializing ...
[2018-04-04T17:58:07,841][INFO ][o.e.e.NodeEnvironment    ] [Lastìa de Framónt] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [423.1gb], net total_space [450.3gb], types [rootfs]
[2018-04-04T17:58:07,841][INFO ][o.e.e.NodeEnvironment    ] [Lastìa de Framónt] heap size [955.3mb], compressed ordinary object pointers [true]
[2018-04-04T17:58:08,681][INFO ][i.c.plugin               ] [Lastìa de Framónt] plugins loaded: [hyperLogLog, lang-js, jmx-monitoring]
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.
[2018-04-04T17:58:09,703][INFO ][o.e.p.PluginsService     ] [Lastìa de Framónt] no modules loaded
[2018-04-04T17:58:09,707][INFO ][o.e.p.PluginsService     ] [Lastìa de Framónt] loaded plugin [crate-azure-discovery]
[2018-04-04T17:58:09,708][INFO ][o.e.p.PluginsService     ] [Lastìa de Framónt] loaded plugin [es-repository-hdfs]
[2018-04-04T17:58:09,708][INFO ][o.e.p.PluginsService     ] [Lastìa de Framónt] loaded plugin [io.crate.plugin.BlobPlugin]
[2018-04-04T17:58:09,708][INFO ][o.e.p.PluginsService     ] [Lastìa de Framónt] loaded plugin [io.crate.plugin.CrateCorePlugin]
[2018-04-04T17:58:09,708][INFO ][o.e.p.PluginsService     ] [Lastìa de Framónt] loaded plugin [io.crate.plugin.HttpTransportPlugin]
[2018-04-04T17:58:09,709][INFO ][o.e.p.PluginsService     ] [Lastìa de Framónt] loaded plugin [io.crate.plugin.PluginLoaderPlugin]
[2018-04-04T17:58:09,709][INFO ][o.e.p.PluginsService     ] [Lastìa de Framónt] loaded plugin [io.crate.plugin.SrvPlugin]
[2018-04-04T17:58:09,709][INFO ][o.e.p.PluginsService     ] [Lastìa de Framónt] loaded plugin [io.crate.udc.plugin.UDCPlugin]
[2018-04-04T17:58:09,710][INFO ][o.e.p.PluginsService     ] [Lastìa de Framónt] loaded plugin [org.elasticsearch.analysis.common.CommonAnalysisPlugin]
[2018-04-04T17:58:09,710][INFO ][o.e.p.PluginsService     ] [Lastìa de Framónt] loaded plugin [org.elasticsearch.discovery.ec2.Ec2DiscoveryPlugin]
[2018-04-04T17:58:09,710][INFO ][o.e.p.PluginsService     ] [Lastìa de Framónt] loaded plugin [org.elasticsearch.plugin.repository.url.URLRepositoryPlugin]
[2018-04-04T17:58:09,710][INFO ][o.e.p.PluginsService     ] [Lastìa de Framónt] loaded plugin [org.elasticsearch.repositories.s3.S3RepositoryPlugin]
[2018-04-04T17:58:09,710][INFO ][o.e.p.PluginsService     ] [Lastìa de Framónt] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
[2018-04-04T17:58:09,749][INFO ][o.e.n.Node               ] [Lastìa de Framónt] node name [Lastìa de Framónt], node ID [Eedk7KCiTvCK90JaUr0RYg]
[2018-04-04T17:58:09,754][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [Lastìa de Framónt] fatal error in thread [main], exiting
java.lang.ExceptionInInitializerError: null
        at io.crate.node.CrateNode.startUpLogging(CrateNode.java:85) ~[crate-app-3.0.0-SNAPSHOT-.jar:3.0.0-SNAPSHOT-]
        at org.elasticsearch.node.Node.<init>(Node.java:285) ~[crate-app-3.0.0-SNAPSHOT-.jar:3.0.0-SNAPSHOT-]
        at io.crate.node.CrateNode.<init>(CrateNode.java:66) ~[crate-app-3.0.0-SNAPSHOT-.jar:3.0.0-SNAPSHOT-]
        at org.elasticsearch.bootstrap.BootstrapProxy$1.<init>(BootstrapProxy.java:205) ~[crate-app-3.0.0-SNAPSHOT-.jar:3.0.0-SNAPSHOT-]
        at org.elasticsearch.bootstrap.BootstrapProxy.setup(BootstrapProxy.java:205) ~[crate-app-3.0.0-SNAPSHOT-.jar:3.0.0-SNAPSHOT-]
        at org.elasticsearch.bootstrap.BootstrapProxy.init(BootstrapProxy.java:277) ~[crate-app-3.0.0-SNAPSHOT-.jar:3.0.0-SNAPSHOT-]
        at io.crate.bootstrap.CrateDB.init(CrateDB.java:155) ~[crate-app-3.0.0-SNAPSHOT-.jar:3.0.0-SNAPSHOT-]
        at io.crate.bootstrap.CrateDB.execute(CrateDB.java:135) ~[crate-app-3.0.0-SNAPSHOT-.jar:3.0.0-SNAPSHOT-]
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:85) ~[crate-app-3.0.0-SNAPSHOT-.jar:3.0.0-SNAPSHOT-]
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.1.3.jar:3.0.0-SNAPSHOT-]
        at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.1.3.jar:3.0.0-SNAPSHOT-]
        at io.crate.bootstrap.CrateDB.main(CrateDB.java:88) ~[crate-app-3.0.0-SNAPSHOT-.jar:3.0.0-SNAPSHOT-]
        at io.crate.bootstrap.CrateDB.main(CrateDB.java:81) ~[crate-app-3.0.0-SNAPSHOT-.jar:3.0.0-SNAPSHOT-]
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 7
        at java.lang.String.substring(String.java:1963) ~[?:1.8.0_162]
        at io.crate.Build.<clinit>(Build.java:49) ~[crate-app-3.0.0-SNAPSHOT-.jar:3.0.0-SNAPSHOT-]
        ... 13 more

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mxmcommented, Apr 5, 2018

This happens when you don’t have git installed or you downloaded the pure source without the .git directory. Either way, the build hash can’t be determined. Seems like nobody has ever done that 😃

Fix: https://github.com/crate/crate/pull/7137

0reactions
julian05060506commented, May 8, 2018

I put log4j-slf4j-impl-2.11.0.jar into crate/lib ,solved. you can download this jar from http://mvnrepository.com/,search this jar

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to find crate when compiling even after successfully ...
I ran cargo build successfully and attempted to compile the Rust source again. Cargo runs the compiler for you.
Read more >
[Solved] Fix Armoury Crate Not Working Fast (2022 Method)
This is a definitive guide to fix armoury crate not working issues with detailed solutions. You can also know about various problems that ......
Read more >
Can't find crate when compiling : r/rust - Reddit
Use cargo new --bin projectname , then inside the directory it makes, cargo run will automatically find crates like rand and correctly pass...
Read more >
Dog won't go in the crate? Fixed in 7 mins - YouTube
Copy link. Info. Shopping. Tap to unmute. If playback doesn't begin shortly, try restarting your device. Your browser can't play this video.
Read more >
Unable to run tests on dylib sub-crate in a workspace ... - GitHub
I have a workspace set up where the root crate is a normal library crate and one of the sub-crates has crate-type dylib....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found