Starting Neo4j failed,Store and its lock file has been locked by another process,Please ensure no ot
  qtZfd3hQNMld 2023年11月02日 54 0


目录

​​问题​​

​​分析​​

​​WIN解决方案​​

​​Linux解决方案​​

​​参考链接:​​


问题

今日启动Neo4j失败,Error日志:

Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@565b064f' was successfully initialized, but failed to start. Please see the attached cause exception "Store and its lock file has been locked by another process: C:\Users\LENOVO\.Neo4jDesktop\neo4jDatabases\database-ff8a74ba-2ca9-47e7-9ae2-3970f74f40c8\installation-3.5.2\data\databases\store_lock. Please ensure no other process is using this database, and that the directory is writable (required even for read-only access)". Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@565b064f' was successfully initialized, but failed to start. Please see the attached cause exception "Store and its lock file has been locked by another process: C:\Users\LENOVO\.Neo4jDesktop\neo4jDatabases\database-ff8a74ba-2ca9-47e7-9ae2-3970f74f40c8\installation-3.5.2\data\databases\store_lock. Please ensure no other process is using this database, and that the directory is writable (required even for read-only access)".

分析

从log日志我们能够得出,大概是因为这个store_lock锁文件。

Starting Neo4j failed,Store and its lock file has been locked by another process,Please ensure no ot_图数据库

 

WIN解决方案

1. Neo4j先关闭,然后把该文件删除。

如果提示说:该文件被其他应用程序使用,请重试。那就打开任务管理器,把Java process干掉。

2. 然后重启Neo4j即可。

Linux解决方案

找到进程

ps aux | grep "org.neo4j.server"

kill the process

kill -9 <pid-of-neo4js-java-process>

删除store_lock文件

sudo rm /你自己的路径/store_lock

参考链接

​https://stackoverflow.com/questions/44757181/store-and-its-lock-file-has-been-locked-by-another-process-var-lib-neo4j-data​

【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
  6JiBnf5NytA2   2023年11月13日   23   0   0 neo4j数据库实例
  3PLN4iWezbye   2023年11月13日   34   0   0 windowsneo4j
  6JiBnf5NytA2   2023年11月13日   25   0   0 neo4j数据库实例
  QFbc3MtZbTbh   2023年11月13日   24   0   0 neo4jneo4j安装
  pntxtgITaE76   2023年11月13日   28   0   0 neo4j
  pntxtgITaE76   2023年11月13日   31   0   0 neo4j
qtZfd3hQNMld