Neo4j Database Recovery
In the rare case of having problems with a corrupt Neo4j database, try the following steps (GNU/Linux and OS X only):
-
Download the Neo4j server in the version Structr is using.
wget http://dist.neo4j.org/neo4j-enterprise-2.2.8-unix.tar.gz
-
Unpack the downloaded file
tar xvf neo4j-enterprise-2.2.8-unix.tar.gz
-
Enter the directory just created
cd neo4j-enterprise-2.2.8
-
Configure Neo4j to access your database
Copy the
db/
directory of your Structr instance todata/graph.db
or modify the parameterorg.neo4j.server.database.location
inconf/neo4j-server.properties
to reflect the location of your Structrdb/
directory. -
Start Neo4j
bin/neo4j start
-
Wach the log file
Depending on whether you copied the database or edited the configuration, it’s either
tail -100f data/graph.db/messages.log
or
tail -100f <structr-main-directory>/db/messages.log
-
Stop Neo4j
bin/neo4j stop
If the database doesn’t start properly, try downloading an older version and repeat the procedure.