Report this

What is the reason for this report?

neo4j install in ubuntu droplet lock file issues

Posted on June 22, 2020

After following the instructions at this tutorial https://www.digitalocean.com/community/tutorials/how-to-install-neo4j-on-an-ubuntu-vps , attempting to start neo4j results in the exception Store and its lock file has been locked by another process: /var/lib/neo4j/data/databases/store_lock

I tried install neo4j 3.5 and 4.0 on ubuntu 18 as well as ubuntu 20 and get the same issues each time; installing on a local ubuntu VM seems to work fine. (more details at the neo4j community: https://community.neo4j.com/t/neo4j-on-ubuntu-vps/20396/3)

Are there any droplet settings that need to be configured?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Heya,

Just came across this answer and decided to write some general guidelines for anyone who comes across this in the future despite the old question.

It looks like the Neo4j database might be locked by another process on your droplet. To resolve this issue, you can try the following steps:

  1. Stop the Neo4j service using the command:
    sudo systemctl stop neo4j
  1. Find and kill any remaining Neo4j processes using these commands:
  1. sudo lsof | grep "store_lock"
  2. sudo kill -9 [PID]
Replace `[PID]` with the process ID found in the previous step.
  1. Delete the lock file using the command:
  1. sudo rm /var/lib/neo4j/data/databases/store_lock
  1. Start the Neo4j service using the command:
    sudo systemctl start neo4j

Make sure you don’t have multiple instances of Neo4j running or any crontab jobs that could interfere with it. Also, always use systemctl commands when starting and stopping the service to avoid lock issues.

If you’re still experiencing issues after following these steps, please refer to the DigitalOcean community and official Neo4j documentation for more information:

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.