Store and its lock file has been locked by another process: /var/lib/neo4j/data/databases/graph.db/store_lock

青春壹個敷衍的年華 提交于 2019-12-10 16:02:05

问题


what I did

neo4j console

(work fine)

ctrl-C

upon restarting I have message above.

I delete /var/lib/neo4j/data/databases/graph.db/store_lock

then I have

Externally locked: /var/lib/neo4j/data/databases/graph.db/neostore

Is there any way of cleaning lock ? (short of reinstalling)


回答1:


You can kill the java process and delete the store_lock file. It doesn't seem to harm the database integrity.




回答2:


Killing the Java process and deleting the store_lock worked for me:

Found the lingering process,

ps aux | grep "org.neo4j.server"

killed it,

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

and deleted

sudo rm /var/lib/neo4j/data/databases/graph.db/store_lock

Allegedly, just killing the lingering process may do the trick but I went ahead and deleted the lock anyway.



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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!