OriginTrail / ot-node

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

Invalid Sparql endpoint #3362

Open hottogo opened 3 weeks ago

hottogo commented 3 weeks ago

Issue description

Nack response from node during GetInitCommand, with invalid sparql endpoint response.

Expected behavior

Normal response from node during chatter, not invalid sparql

Actual behavior

Error and no such file exception, nack response and invalid sparql error

Steps to reproduce the problem

  1. Run v8 testnet
  2. Sync paranet
  3. Try to query nodes

Specifications

Node version: OriginTrail Node v8.1.0+beta.12 Using node.js version: 16.20.1 Platform: Ubuntu 20.04 Base Sepolia Node wallet: 0xDab6bF4EC47e6C8eE7F3CfDc69247f785324021F Node libp2p identity: 44

Contact details

Error logs

[2024-10-27 03:50:22] DEBUG: getKnowledgeAssetLocator(knowledgeAssetId=0x13b019b3b286cbeb2d1269fbacb949b41c038b554e9858fdb71a2bd0d05c7902) call has been successfully executed; Result: 0xb8B904c73D2fB4D8c173298A51c27Fab70222c32,5679263; RPC: https://sepolia.base.org. [2024-10-27 03:50:22] DEBUG: getKnowledgeAssetLocator(knowledgeAssetId=0x0c029b0e67cf1b517c6430ba7b0153fd5b1bae277d7c6ce0cdbdbdfc91f78811) call has been successfully executed; Result: 0xb8B904c73D2fB4D8c173298A51c27Fab70222c32,5679493; RPC: https://sepolia.base.org. [2024-10-27 03:50:22] DEBUG: getKnowledgeAssetLocator(knowledgeAssetId=0x4a01f3f64aa0f600f8c2106614d26660aeb37f82fd1d2be2183bf25999b508f9) call has been successfully executed; Result: 0xb8B904c73D2fB4D8c173298A51c27Fab70222c32,5974130; RPC: https://sepolia.base.org. [2024-10-27 03:50:22] DEBUG: {Operation ID: 5d82416a-4184-46c3-8f5d-a54fa7a5b532} [v1_0_0GetInitCommand] (Command ID: 1927e921-065c-497b-9c46-f3a25eac54c6) Processing get response with status: FAILED for operationId: 4ab1c9ba-d98e-4e24-babb-e6ab3f95495e, keyword: 0xb8b904c73d2fb4d8c173298a51c27fab70222c32fbe13e2c45458247c65946136d9b9fc88947b4201e596e7d9e5abf228f16b149. Total number of nodes: 20, number of nodes in batch: 2 number of leftover nodes: 10, number of responses: 9, Completed: 0, Failed: 9 [2024-10-27 03:50:22] TRACE: {Operation ID: 5d82416a-4184-46c3-8f5d-a54fa7a5b532} [v1_0_0GetInitCommand] (Command ID: 1927e921-065c-497b-9c46-f3a25eac54c6) Error message for operation id: 4ab1c9ba-d98e-4e24-babb-e6ab3f95495e, keyword: 0xb8b904c73d2fb4d8c173298a51c27fab70222c32fbe13e2c45458247c65946136d9b9fc88947b4201e596e7d9e5abf228f16b149 : Received NACK response from node during v1_0_0GetInitCommand. Error message: Invalid SPARQL endpoint response from http://localhost:9999/blazegraph/namespace/public-current/sparql (HTTP status 500): SPARQL-QUERY: queryStr=ASK WHERE { GRAPH { ?s ?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.

botnumberseven commented 3 weeks ago

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