Neo4j: Unable to lock store

后端 未结 2 905
悲哀的现实
悲哀的现实 2021-01-19 19:07

I\'m using Neo4j graph DB and viewing the data on the browser. So whenever I run a code, i need to change database location field in neo4j-server.properties file.

W

相关标签:
2条回答
  • 2021-01-19 19:37

    There is another process using the db. For instance, you opened it with another program (e.g. a gremlin shell in a terminal) or there is another neo4j instance running.

    If you are using a Unix-like system (Linux, MacOSX, etc.), then you can use lsof to determine the processes that have opened your db. For instance, if the path to my db is /home/user/db/myneo4j.db, then I would search for:

    $ lsof /home/user/db/myneo4j.db/neostore.propertystore.db.index
    

    Or you can just try:

    $ lsof | grep myneo4j.db
    

    That will tell you the process ID that has taken (locked) the database.

    0 讨论(0)
  • 2021-01-19 19:47

    Are you sure no java process is running against the datastore before you start the neo4j server to view your data?

    0 讨论(0)
提交回复
热议问题