We installed the latest version of the enterprise version. We loaded a graph database from dumb using this command: sudo neo4j-admin load --from=/path/to/database.dump --database=neo4j --force. After starting neo4j service and starting database, the database itself is not starting. In the debug.log we're getting this error messages: Hastebin: Send and Save Text or Code Snippets for Free | Toptal®
We checked the permissions. It didn't help. We also created a new user with full permission and created a new database, which also ended in the same error like above.
I could be entirely mistaken but from your output of ps -eaf | grep java the first column is the user that started the process and in this case it is neo4j.
As a test locally an on a Ubuntu server and as logged in as neo4j I ran
and thus the 1st column reports root which would indicate the java process was started by root.
As you files under data/ are owned by root:root but your ps -eaf | grep java reports a 1st column of neo4j I would expect that java is running as neo4j. So I'm not convinced
Yes, we are starting and running as root.
How was Neo4j installed? tar file? debian install? rpm ??? ????
sudo is a safety mechanism. Having sudo privileges means you can do potentially dangerous things (by having root permission), but only when prefixing a unix command with sudo.
It looks to me like you install neo4j but didn't give other users write permission to the necessary neo4j files.
When you run sudo ./neo4j start you're running neo4j as root. This is potentially dangerous thing to do, as neo4j could by accident write, delete, or read files that it shouldn't.
I suspect you need to figure out how to properly install neo4j. I'm not sure how to do that with debian. Sorry.
Similar error. neo4j java.lang.RuntimeException: java.nio.file.AccessDeniedException: /var/lib/neo4j/data/dbms[...]auth.ini.tmp
Luckily solved. In the instructions on how to set up your server, they mention that you can set-initial-password . But I forgot i have to be a sudo user. So across all the tutorial I had to do a sudo. My java was 17 so It was ok. Many thanks for this great documentation!