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
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.
Are you sure no java process is running against the datastore before you start the neo4j server to view your data?