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!
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:
sudo systemctl stop neo4j
- sudo lsof | grep "store_lock"
- sudo kill -9 [PID]
Replace `[PID]` with the process ID found in the previous step.
- sudo rm /var/lib/neo4j/data/databases/store_lock
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!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.