[Photon] Help needed: exception(s) when starting Photon API
Sarah Hoffmann
lonvia at denofr.de
Tue Sep 14 15:45:14 UTC 2021
Hi,
On Tue, Sep 14, 2021 at 09:36:25AM +0200, Federico Salerno wrote:
> Hi, I'm new on this mailing list.
>
> I have successfully run the Photon API several times and was able to use it
> until today. I didn't change anything relevant as far as I can tell, but now
> I'm having issues starting the API locally on my machine (two of them
> actually).
>
> The problem is related to ElasticSearch but I'm not familiar with it and I'm
> not sure whether it's a bug with Photon or (more likely) something wrong on
> my end. At any rate, this is happening on two different computers - on both
> I run the photon.jar through WSL; I've tried doing it on regular Windows too
> but I get an OutOfMemoryError. I tried restarting the whole machine or
> running everything as admin but so far, no luck.
I presume you run this against one of the dumps that we provide?
> Here's what I get on WSL after running java -jar photon-0.3.5.jar:
Shot in the dark. Could you compile your own Photon with the following PR reverted:
https://github.com/komoot/photon/pull/521/files
(The code has changed quite a bit, just search for setWaitForYellowStatus() in
the source.)
Sarah
>
> 2021-09-14 09:04:04,175 [main] WARN org.elasticsearch.node.Node - version [5.6.16-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:/mnt/d/photon/photon-0.3.5.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
> 2021-09-14 09:04:10,485 [main] INFO de.komoot.photon.elasticsearch.Server - started elastic search node
> 2021-09-14 09:04:10,485 [main] INFO de.komoot.photon.App - Make sure that the ES cluster is ready, this might take some time.
> 2021-09-14 09:04:40,581 [main] INFO de.komoot.photon.App - ES cluster is now ready.
> Exception in thread "main" NoShardAvailableActionException[No shard available for [get [photon][place][DATABASE_PROPERTIES]: routing [null]]]; nested: RemoteTransportException[[drcDLAY][127.0.0.1:9300][indices:data/read/get[s]]]; nested: IllegalIndexShardStateException[CurrentState[RECOVERING] operations only allowed when shard state is one of [POST_RECOVERY, STARTED, RELOCATED]];
> at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.perform(TransportSingleShardAction.java:209)
> at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.onFailure(TransportSingleShardAction.java:196)
> at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.access$1300(TransportSingleShardAction.java:123)
> at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction$2.handleException(TransportSingleShardAction.java:252)
> at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1085)
> at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:1189)
> at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1167)
> at org.elasticsearch.transport.TransportService$7.onFailure(TransportService.java:673)
> at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.onFailure(ThreadContext.java:660)
> at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:39)
> at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
> at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> at java.base/java.lang.Thread.run(Thread.java:829)
> Caused by: RemoteTransportException[[drcDLAY][127.0.0.1:9300][indices:data/read/get[s]]]; nested: IllegalIndexShardStateException[CurrentState[RECOVERING] operations only allowed when shard state is one of [POST_RECOVERY, STARTED, RELOCATED]];
> Caused by: [photon/PeFQJMl2SPyO9w9QeZUBNA][[photon][0]] IllegalIndexShardStateException[CurrentState[RECOVERING] operations only allowed when shard state is one of [POST_RECOVERY, STARTED, RELOCATED]]
> at org.elasticsearch.index.shard.IndexShard.readAllowed(IndexShard.java:1104)
> at org.elasticsearch.index.shard.IndexShard.get(IndexShard.java:615)
> at org.elasticsearch.index.get.ShardGetService.innerGet(ShardGetService.java:154)
> at org.elasticsearch.index.get.ShardGetService.get(ShardGetService.java:82)
> at org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:95)
> at org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:44)
> at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$ShardTransportHandler.messageReceived(TransportSingleShardAction.java:294)
> at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$ShardTransportHandler.messageReceived(TransportSingleShardAction.java:287)
> at org.elasticsearch.transport.TransportRequestHandler.messageReceived(TransportRequestHandler.java:33)
> at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69)
> at org.elasticsearch.transport.TransportService$7.doRun(TransportService.java:662)
> at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:675)
> at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
> at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
> at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> at java.base/java.lang.Thread.run(Thread.java:829)
>
> The warnings at the beginning were there even when the API used to work,
> they're probably unrelated but I left them in for good measure.
>
> Please tell me what to try to make this work again. Thank you in advance for
> the help.
>
> _______________________________________________
> Photon mailing list
> Photon at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/photon
More information about the Photon
mailing list