OriginTrail / ot-node

OriginTrail Decentralized Knowledge Graph network node
https://origintrail.io
Apache License 2.0
208 stars 75 forks source link

Sparql query - java no such file exception at blazegraph.jnl - v8 testnet #3349

Closed hottogo closed 1 month ago

hottogo commented 1 month ago

Issue description

Getting an error of nosuchfileexception in sparql query for java.

Expected behavior

Should be able to query that data, located in blazegraph.jnl at /root/ot-node/blazegraph

Actual behavior

Encounters the below error. Node seems to still run and be able to sync however.

Steps to reproduce the problem

  1. Run v8 testnet and restart node.
  2. Run paranet in config.

Specifications

Operational wallet:

Contact details

Error logs

SPARQL-QUERY: queryStr=PREFIX schema: http://schema.org/ ASK WHERE { GRAPH {

?p ?o } } java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.RuntimeException: java.nio.file.NoSuchFileException: /root/ot-node/blazegraph.jnl at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191) at com.bigdata.rdf.sail.webapp.BigdataServlet.submitApiTask(BigdataServlet.java:294) at com.bigdata.rdf.sail.webapp.QueryServlet.doSparqlQuery(QueryServlet.java:678) at com.bigdata.rdf.sail.webapp.QueryServlet.doPost(QueryServlet.java:275) at com.bigdata.rdf.sail.webapp.RESTServlet.doPost(RESTServlet.java:269) at com.bigdata.rdf.sail.webapp.MultiTenancyServlet.doPost(MultiTenancyServlet.java:195) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:535) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1340) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1242) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:335) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.eclipse.jetty.server.Server.handle(Server.java:503) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126) at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.RuntimeException: java.nio.file.NoSuchFileException: /root/ot-node/blazegraph.jnl at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191) at com.bigdata.rdf.sail.webapp.QueryServlet$SparqlQueryTask.call(QueryServlet.java:889) at com.bigdata.rdf.sail.webapp.QueryServlet$SparqlQueryTask.call(QueryServlet.java:695) at com.bigdata.rdf.task.ApiTaskForIndexManager.call(ApiTaskForIndexManager.java:68) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ... 1 more Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.nio.file.NoSuchFileException: /root/ot-node/blazegraph.jnl at com.bigdata.rdf.lexicon.LexiconRelation.addTerms(LexiconRelation.java:2060) at com.bigdata.rdf.lexicon.LexiconRelation.addTerms(LexiconRelation.java:1898) at com.bigdata.rdf.sparql.ast.eval.ASTDeferredIVResolution.resolveIVs(ASTDeferredIVResolution.java:1158) at com.bigdata.rdf.sparql.ast.eval.ASTDeferredIVResolution.resolve(ASTDeferredIVResolution.java:462) at com.bigdata.rdf.sparql.ast.eval.ASTDeferredIVResolution.resolveQuery(ASTDeferredIVResolution.java:268) at com.bigdata.rdf.sparql.ast.eval.ASTEvalHelper.evaluateBooleanQuery(ASTEvalHelper.java:137) at com.bigdata.rdf.sail.BigdataSailBooleanQuery.evaluate(BigdataSailBooleanQuery.java:77) at com.bigdata.rdf.sail.BigdataSailBooleanQuery.evaluate(BigdataSailBooleanQuery.java:59) at com.bigdata.rdf.sail.webapp.BigdataRDFContext$AskQueryTask.doQuery(BigdataRDFContext.java:1646) at com.bigdata.rdf.sail.webapp.BigdataRDFContext$AbstractQueryTask.innerCall(BigdataRDFContext.java:1569) at com.bigdata.rdf.sail.webapp.BigdataRDFContext$AbstractQueryTask.call(BigdataRDFContext.java:1534) at com.bigdata.rdf.sail.webapp.BigdataRDFContext$AbstractQueryTask.call(BigdataRDFContext.java:747) ... 4 more Caused by: java.lang.RuntimeException: java.nio.file.NoSuchFileException: /root/ot-node/blazegraph.jnl at com.bigdata.rwstore.RWStore$ReopenFileChannel.getAsyncChannel(RWStore.java:4967) at com.bigdata.io.FileChannelUtility.readAllAsync(FileChannelUtility.java:406) at com.bigdata.rwstore.RWStore.getData(RWStore.java:2262) at com.bigdata.rwstore.RWStore.getData(RWStore.java:2072) at com.bigdata.journal.RWStrategy.readFromLocalStore(RWStrategy.java:732) at com.bigdata.journal.RWStrategy.read(RWStrategy.java:155) at com.bigdata.journal.AbstractJournal.read(AbstractJournal.java:4307) at com.bigdata.btree.AbstractBTree.readNodeOrLeaf(AbstractBTree.java:4533) at com.bigdata.btree.Node._getChild(Node.java:2746) at com.bigdata.btree.AbstractBTree$1.compute(AbstractBTree.java:377) at com.bigdata.btree.AbstractBTree$1.compute(AbstractBTree.java:360) at com.bigdata.util.concurrent.Memoizer$1.call(Memoizer.java:77) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at com.bigdata.util.concurrent.Memoizer.compute(Memoizer.java:92) at com.bigdata.btree.AbstractBTree.loadChild(AbstractBTree.java:546) at com.bigdata.btree.Node.getChild(Node.java:2644) at com.bigdata.btree.Node.lookup(Node.java:938) at com.bigdata.btree.AbstractBTree.lookup(AbstractBTree.java:2455) at com.bigdata.btree.AbstractBTree.lookup(AbstractBTree.java:2383) at com.bigdata.rdf.lexicon.Term2IdWriteProc.applyOnce(Term2IdWriteProc.java:370) at com.bigdata.rdf.lexicon.Term2IdWriteProc.applyOnce(Term2IdWriteProc.java:117) at com.bigdata.btree.proc.AbstractKeyArrayIndexProcedure.apply(AbstractKeyArrayIndexProcedure.java:381) at com.bigdata.btree.AbstractBTree.submit(AbstractBTree.java:3297) at com.bigdata.rdf.lexicon.Term2IdWriteTask.call(Term2IdWriteTask.java:239) at com.bigdata.rdf.lexicon.LexiconRelation.addTerms(LexiconRelation.java:2058) ... 15 more Caused by: java.nio.file.NoSuchFileException: /root/ot-node/blazegraph.jnl at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116) at java.base/sun.nio.fs.UnixFileSystemProvider.newAsynchronousFileChannel(UnixFileSystemProvider.java:201) at java.base/java.nio.channels.AsynchronousFileChannel.open(AsynchronousFileChannel.java:253) at java.base/java.nio.channels.AsynchronousFileChannel.open(AsynchronousFileChannel.java:311) at com.bigdata.rwstore.RWStore$ReopenFileChannel.getAsyncChannel(RWStore.java:4964) ... 39 more ## Disclaimer Please be aware that the issue reported on a public repository allows everyone to see your node logs, node details, and contact details. If you have any sensitive information, feel free to share it by sending an email to [tech@origin-trail.com](tech@origin-trail.com).
botnumberseven commented 1 month ago

looks similar to https://github.com/OriginTrail/ot-node/issues/3344

Mihajlo-Pavlovic commented 1 month ago

The logs you shared are missing context. This error can happen on your node if you are missing blazgraph. Jul file if you are using local blazgraph. This error can also appear as a response from different remote nodes that don't have blazgraph problem, and the error is propagated as an explanation for negative response.

If you can do a local store then it's remote error sam as in #3344

hottogo commented 1 month ago

Ok I will try to get you some more logs for context.