- OS: Ubuntu 20.04 LTS (GNU/Linux 5.4.0-1028-aws x86_64)
- neo4j version: 4.4.4
- which plugins / extensions / procedures do you use:
neo4j-admin check-consistency --backup=...
I created a dump file using
neo4j-admin dump --to=/data/neo4j/backup/my-db-20240516.dump --verbose --database=my-db
Then I wanted to run the consistency check following option 4 from this article: Four ways to check the consistency of a Neo4j graph - Knowledge Base
After running this command
neo4j-admin check-consistency --backup=/data/neo4j/backup/my-db-20240516.dump --verbose --report-dir=/data/neo4j/backup/report_dir
I get the following error:
Selecting JVM - Version:11.0.11+9-Ubuntu-0ubuntu2.20.04, Name:OpenJDK 64-Bit Server VM, Vendor:Ubuntu
Executing command line: /usr/lib/jvm/java-11-openjdk-amd64/bin/java -cp /var/lib/neo4j/plugins/*:/etc/neo4j/*:/usr/share/neo4j/lib/* -Xmx32505856k -XX:+UseG1GC -XX:-OmitStackTraceInFastThrow -XX:+AlwaysPreTouch -XX:+UnlockExperimentalVMOptions -XX:+TrustFinalNonStaticFields -XX:+DisableExplicitGC -XX:MaxInlineLevel=15 -Djdk.nio.maxCachedBufferSize=262144 -Dio.netty.tryReflectionSetAccessible=true -XX:+ExitOnOutOfMemoryError -Djdk.tls.ephemeralDHKeySize=2048 -Djdk.tls.rejectClientInitiatedRenegotiation=true -XX:FlightRecorderOptions=stackdepth=256 -XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints -Dfile.encoding=UTF-8 org.neo4j.cli.AdminTool check-consistency --backup=/data/neo4j/backup/my-db-20240516.dump --report-dir=/data/neo4j/backup/report_dir --verbose
neo4j 4.4.4
VM Name: OpenJDK 64-Bit Server VM
VM Vendor: Ubuntu
VM Version: 11.0.11+9-Ubuntu-0ubuntu2.20.04
JIT compiler: HotSpot 64-Bit Tiered Compilers
VM Arguments: [-Xmx32505856k, -XX:+UseG1GC, -XX:-OmitStackTraceInFastThrow, -XX:+AlwaysPreTouch, -XX:+UnlockExperimentalVMOptions, -XX:+TrustFinalNonStaticFields, -XX:+DisableExplicitGC, -XX:MaxInlineLevel=15, -Djdk.nio.maxCachedBufferSize=262144, -Dio.netty.tryReflectionSetAccessible=true, -XX:+ExitOnOutOfMemoryError, -Djdk.tls.ephemeralDHKeySize=2048, -Djdk.tls.rejectClientInitiatedRenegotiation=true, -XX:FlightRecorderOptions=stackdepth=256, -XX:+UnlockDiagnosticVMOptions, -XX:+DebugNonSafepoints, -Dfile.encoding=UTF-8]
org.neo4j.cli.CommandFailedException: Report directory path doesn't exist or not a directory: /data/neo4j/backup/my-db-20240516.dump
at org.neo4j.consistency.CheckConsistencyCommand.execute(CheckConsistencyCommand.java:118)
at org.neo4j.cli.AbstractCommand.call(AbstractCommand.java:71)
at org.neo4j.cli.AbstractCommand.call(AbstractCommand.java:34)
at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
at picocli.CommandLine.access$1300(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2346)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2311)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
at picocli.CommandLine.execute(CommandLine.java:2078)
at org.neo4j.cli.AdminTool.execute(AdminTool.java:93)
at org.neo4j.cli.AdminTool.main(AdminTool.java:79)
If I remove the --report-dir
flag, and run
neo4j-admin check-consistency --backup=/data/neo4j/backup/my-db-20240516.dump --verbose
I get the same error (shortened to the important part):
org.neo4j.cli.CommandFailedException: Report directory path doesn't exist or not a directory: /data/neo4j/backup/my-db-20240516.dump
In both cases, the consistency checker seems to think that the dump file I provided for the --backup
flag is the report directory and the value of --report-dir
seems to be ignored.
Is this a bug or am I using the consistency check command wrong?
Edit 1
After running the dump command, I checked the file with file my-db-20240516.dump
, like the article at Four ways to check the consistency of a Neo4j graph - Knowledge Base suggests. However, in my case I simply get back my-db-20240516.dump: data
, and running tar xvzf indra-20240516.dump
returns
gzip: stdin: not in gzip format
so I assume it is ready to be checked from here.