Hi, I am trying to change the database path by editing neo4j.template on Neo4j AMI on AWS however the neo4j instance is refusing to start after the change.
I get the error consistently that neo4j is starting, and stopping. I looked for anything specific in neo4j logs (debug.log) however couldn't read much from the logs on why the neo4j is failing. I get the error "Connection refused", and I understand it could be because the neo4j instance isn't starting.
The parameters I have changed are and to values as below
dbms.active_database=/disk1/var/lib/neo4j/data/databases/graph.db
dbms.directories.data=/disk1/var/lib/neo4j/data/databases/
Attaching the logs would help, but I can make a couple suggestions.
Instead of the whole path make dbms.active_database=graph.db
and
make dbms.directories.data=/disk1/var/lib/neo4j/data
this is much closer to the original directory structure.
Ensure the the Neo4j user owns /disk1/var/lib/neo4j and all subdirectories beneath it.
Copy the dbms folder from the original /var/lib/neo4j/data to the new location.
Make sure Neo4j owns all the files once you are done copying (e.g. sudo chown -R neo4j:neo4j )
Thank you David. This worked. I had some issues getting the authentication, but then figured out that the dbms didn't have the auth file when I created the new directory path. Now all set.