gpt4 book ai didi

java - org.apache.lucene.store.LockObtainFailedException : Lock obtain timed out: NativeFSLock@/var/database/schema/label/lucene/write. 锁

转载 作者:行者123 更新时间:2023-11-30 06:18:30 25 4
gpt4 key购买 nike

我刚收到这个错误错误日志:org.apache.lucene.store.LockObtainFailedException:锁获取超时:NativeFSLock@/var/database/schema/label/lucene/write.lock org.apache.lucene.store.Lock.obtain(Lock.java:84) org.apache.lucene.index.IndexWriter.(IndexWriter.java:1098) org.neo4j.kernel.api.impl.index.IndexWriterFactories$1.create(IndexWriterFactories.java:44) org.neo4j.kernel.api.impl.index.LuceneLabelScanStore.init(LuceneLabelScanStore.java:301) org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:474) org.neo4j.kernel.lifecycle.LifeSupport.init(LifeSupport.java:72) org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.start(NeoStoreXaDataSource.java:337) org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:498) org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:115) org.neo4j.kernel.impl.transaction.XaDataSourceManager.start(XaDataSourceManager.java:165) org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:498) org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:115) org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:310) org.neo4j.kernel.EmbeddedGraphDatabase.(EmbeddedGraphDatabase.java:100) org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:92) org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:197) org.neo4j.graphdb.factory.GraphDatabaseFactory.newEmbeddedDatabase(GraphDatabaseFactory.java:69) com.util.Neo4JConnectionHelper.getDBInstance(Neo4JConnectionHelper.java:31) com.test.CreateNode.migrateData1(CreateNode.java:42) com.test.CreateNode.doGet(CreateNode.java:33) javax.servlet.http.HttpServlet.service(HttpServlet.java:621) javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

我已经使用 Java 代码和库创建了我的数据库,所以请检查我是否直接关闭服务器,以便在出现此错误时如何恢复该数据库。

如何通过代码从文件中删除写锁请分享您对此的看法。

最佳答案

您是否在同一目录中运行 Neo4j 的第二个实例?

如果没有备份您的 graphdb 目录,请删除 /var/database/schema/label/lucene/write.lock 并重试。

关于java - org.apache.lucene.store.LockObtainFailedException : Lock obtain timed out: NativeFSLock@/var/database/schema/label/lucene/write. 锁,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24488462/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com