Neo4j-admin dump is failing

Viewed 3252

I'm trying to dump a database on Neo4j Desktop 3.5.0 with:

...\bin> neo4j-admin dump --database=graph.db --to=/backup/db1.dump

And getting

command failed: Active logical log detected, this might be a source of inconsistencies.
Please recover database before running the dump.
To perform recovery please start database and perform clean shutdown.

The documentation states that "neo4j-admin must be invoked as the neo4j user in order to ensure the appropriate file permissions.". Might that be the problem?

If so, how to "invoke as the neo4j user"?

4 Answers

found workaround.

  1. shutdown database
  2. open terminal
  3. run bin/neo4j console
  4. after startup, hit Ctrl+C to shutdown database
  5. then, run neo4j-admin dump respectivery

confirmed on Neo4j Desktop 1.1.15

I had the same problem on Neo4j 4.1, what worked for me was to simply:

  • Stop the database
  • Start the database
  • Stop it again

After which neo4j-admin dump worked. Credit for the solution to @folterj's last answer on this thread.

For me I was using different neo4j versions for creating (4.4.0) and dumping (4.2.6) the database

Related