maya
maya

Reputation: 51

Neo4j-admin dump is failing

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"?

Upvotes: 5

Views: 5946

Answers (4)

ewianda
ewianda

Reputation: 61

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

Upvotes: 0

Anca
Anca

Reputation: 1

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.

Upvotes: 0

M.Kiuchi
M.Kiuchi

Reputation: 113

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

Upvotes: 10

cybersam
cybersam

Reputation: 67009

This may be a known issue in version 3.5.0.

Upvotes: 0

Related Questions