'Neo4j - unable to get routing for database neo4j - unavailable after system upgrade

I have been running a neo4j database for a while without problem.

Yesterday our server OS was update from centos-8 to centos-stream, and since this upgrade our neo4j database does not start anymore.

The service is listed as running but on every query it says: Unable to get a routing table for database 'neo4j' because this database is unavailable.

I cannot log in to the cypher shell because it shuts down with the same error.

I'm not sure what I can do here, I would like to not reset the database as we need the information in there.

The versions I'm running are as follows: neo4j-4.3.6-1.noarch neo4j-java11-adapter-1-1.noarch



Solution 1:[1]

I had similar issue, so I checked the logs and found the below error in the logs.

Caused by: java.nio.file.AccessDeniedException: /var/lib/neo4j/data/databases/neo4j/neostore

The fix for the above issue is to change the ownership of noe4j databases folders and files.

cd /var/lib/neo4j/data
sudo chown -R neo4j:neo4j databases/
sudo chown -R neo4j:neo4j transactions/

Restart the neo4j service

sudo systemctl restart neo4j.service

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Saji Xavier