Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Index Exception when searching for a Keyword like "Berlin" #429

Closed
andrh87 opened this issue Jul 14, 2019 · 6 comments
Closed

No Index Exception when searching for a Keyword like "Berlin" #429

andrh87 opened this issue Jul 14, 2019 · 6 comments

Comments

@andrh87
Copy link

andrh87 commented Jul 14, 2019

Hi,

iam new to this project. The following problem occours when i try to start a search on

http://213.109.161.28:2322/api?q=berlin

Exception:

2019-07-14 15:45:00,651 [qtp2001717675-56] ERROR spark.http.matching.GeneralError -
org.elasticsearch.index.IndexNotFoundException: no such index
at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver$WildcardExpressionResolver.infe(IndexNameExpressionResolver.java:676) ~[photon-0.3.1.jar:?]
at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver$WildcardExpressionResolver.innerResolve(IndexNameExpressionResolver.java:630) ~[photon-0.3.1.jar:?]
at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver$WildcardExpressionResolver.resolve(IndexNameExpressionResolver.java:578) ~[photon-0.3.1.jar:?]
at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.concreteIndices(IndexNameExpressionResolver.java:168) ~[photon-0.3.1.jar:?]
at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.concreteIndices(IndexNameExpressionResolver.java:140) ~[photon-0.3.1.jar:?]
at org.elasticsearch.action.search.TransportSearchAction.executeSearch(TransportSearchAction.java:263) ~[photon-0.3.1.jar:?]
at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:186) ~[photon-0.3.1.jar:?]
at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:65) ~[photon-0.3.1.jar:?]
at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:170) ~[photon-0.3.1.jar:?]
at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:142) ~[photon-0.3.1.jar:?]
at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:84) ~[photon-0.3.1.jar:?]
at org.elasticsearch.client.node.NodeClient.executeLocally(NodeClient.java:83) ~[photon-0.3.1.jar:?]
at org.elasticsearch.client.node.NodeClient.doExecute(NodeClient.java:72) ~[photon-0.3.1.jar:?]
at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:408) ~[photon-0.3.1.jar:?]
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:80) ~[photon-0.3.1.jar:?]
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:54) ~[photon-0.3.1.jar:?]
at de.komoot.photon.searcher.BaseElasticsearchSearcher.search(BaseElasticsearchSearcher.java:28) ~[photon-0.3.1.jar:?]
at de.komoot.photon.searcher.AbstractPhotonRequestHandler.handle(AbstractPhotonRequestHandler.java:28) ~[photon-0.3.1.jar:?]
at de.komoot.photon.SearchRequestHandler.handle(SearchRequestHandler.java:52) ~[photon-0.3.1.jar:?]
at de.komoot.photon.SearchRequestHandler.handle(SearchRequestHandler.java:26) ~[photon-0.3.1.jar:?]
at spark.RouteImpl$1.handle(RouteImpl.java:72) ~[photon-0.3.1.jar:?]

This is what i have done:

I downloaded the latest version of photon jar 0.3.1 to the dir ~/

then i loaded the db-file-latest und extracted it a DIR on another partition.

I started the photon with:

java -jar photon-0.3.1.jar -data-dir /media/hunner/photon_data

WHen started there are warnings:

2019-07-14 15:48:27,147 [main] WARN org.elasticsearch.node.Node - version [5.5.0-SNAPSHOT] is a pre-release version of Elasticsearch and is not suitable for production
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.netty.util.internal.ReflectionUtil (file:/root/photon/target/photon-0.3.1.jar) to constructor java.nio.DirectByteBuffer(long,int)
WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.ReflectionUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2019-07-14 15:48:32,377 [main] INFO de.komoot.photon.elasticsearch.Server - started elastic search node
2019-07-14 15:48:32,457 [Thread-0] WARN org.eclipse.jetty.server.AbstractConnector - Ignoring deprecated socket close linger time

When I do a search then, theres only happens the 500 http error "no such index".

Has anybody a idea what iam doing wrong?

@andrh87
Copy link
Author

andrh87 commented Jul 14, 2019

Now, after i tried to start another version of the jar, photon isnt starting anymore with the error:

Exception in thread "main" java.lang.IllegalStateException: failed to load plugin - Plugin information:
Name: lang-painless
Description: An easy, safe and fast scripting language for Elasticsearch
Version: 5.5.0
Native Controller: false

  • Classname: org.elasticsearch.painless.PainlessPlugin due to jar hell
    at org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:376)
    at org.elasticsearch.plugins.PluginsService.(PluginsService.java:140)
    at org.elasticsearch.node.Node.(Node.java:312)
    at de.komoot.photon.elasticsearch.Server$MyNode.(Server.java:58)
    at de.komoot.photon.elasticsearch.Server.start(Server.java:112)
    at de.komoot.photon.App.main(App.java:51)
    Caused by: java.lang.IllegalStateException: jar hell!
    class: org.objectweb.asm.AnnotationVisitor
    jar1: /media/hunner/photon_data/photon_data/elasticsearch/modules/lang-painless/asm-debug-all-5.1.jar
    jar2: /media/hunner/photon_data/photon_data/elasticsearch/modules/lang-painless/asm-debug-all.jar
    at org.elasticsearch.bootstrap.JarHell.checkClass(JarHell.java:282)
    at org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:192)
    at org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:374)
    ... 5 more

@andrh87
Copy link
Author

andrh87 commented Jul 14, 2019

Btw: Iam using Ubuntu 18.04 and iam running photon as root user

@andrh87
Copy link
Author

andrh87 commented Jul 14, 2019

Update:

After deleting photon_data and reunpacking the source the jar starts again. But still the "index not found" exception occurs on every search term i tried

@lonvia
Copy link
Collaborator

lonvia commented Jul 15, 2019

Duplicate of #427

@lonvia lonvia marked this as a duplicate of #427 Jul 15, 2019
@lonvia lonvia closed this as completed Jul 15, 2019
@alejandrojcastaneira
Copy link

@andrh87 maybe a little bit late, but in my case, this was solved by not including the phonton_data folder as part of the data-dir argument, just until the parent folder, in your example I think it would be java -jar photon-0.3.1.jar -data-dir /media/hunner

@vovavili
Copy link

@andrh87 maybe a little bit late, but in my case, this was solved by not including the phonton_data folder as part of the data-dir argument, just until the parent folder, in your example I think it would be java -jar photon-0.3.1.jar -data-dir /media/hunner

This did it for me, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants