Importing graph.dump of 3.x into Neo4j of 5.x failed.
su kui
root@6eb24e7bf97d:/var/lib/neo4j/bin# neo4j-admin database load --from-path=/var/lib/neo4j/ ckg1 --overwrite-destination=true --verbose
Executing command line: /opt/java/openjdk/bin/java -cp /var/lib/neo4j/plugins/
:/var/lib/neo4j/conf/
:/var/lib/neo4j/lib/* -XX:+UseParallelGC -XX:-OmitStackTraceInFastThrow -XX:+UnlockExperimentalVMOptions -XX:+TrustFinalNonStaticFields -XX:+DisableExplicitGC -Djdk.nio.maxCachedBufferSize=1024 -Dio.netty.tryReflectionSetAccessible=true -XX:+ExitOnOutOfMemoryError -Djdk.tls.ephemeralDHKeySize=2048 -XX:FlightRecorderOptions=stackdepth=256 -XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED -Dlog4j2.disable.jmx=true -Dfile.encoding=UTF-8 org.neo4j.cli.AdminTool database load --from-path=/var/lib/neo4j/ ckg1 --overwrite-destination=true --verboseneo4j 5.15.0
VM Name: OpenJDK 64-Bit Server VM
VM Vendor: Eclipse Adoptium
VM Version: 17.0.9+9
JIT compiler: HotSpot 64-Bit Tiered Compilers
VM Arguments: [-XX:+UseParallelGC, -XX:-OmitStackTraceInFastThrow, -XX:+UnlockExperimentalVMOptions, -XX:+TrustFinalNonStaticFields, -XX:+DisableExplicitGC, -Djdk.nio.maxCachedBufferSize=1024, -Dio.netty.tryReflectionSetAccessible=true, -XX:+ExitOnOutOfMemoryError, -Djdk.tls.ephemeralDHKeySize=2048, -XX:FlightRecorderOptions=stackdepth=256, -XX:+UnlockDiagnosticVMOptions, -XX:+DebugNonSafepoints, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/java.io=ALL-UNNAMED, --add-opens=java.base/sun.nio.ch=ALL-UNNAMED, -Dlog4j2.disable.jmx=true, -Dfile.encoding=UTF-8]
Configuration files used (ordered by priority):
/var/lib/neo4j/conf/neo4j-admin.conf
/var/lib/neo4j/conf/neo4j.conf
--------------------
Done: 190 files, 26.39GiB processed.
Failed to load database 'ckg1': Can not read store version of database ckg1Load failed for databases: 'ckg1'
org.neo4j.cli.CommandFailedException: Load failed for databases: 'ckg1'
at org.neo4j.commandline.dbms.LoadCommand.checkFailure(LoadCommand.java:224)
at org.neo4j.commandline.dbms.LoadCommand.loadDump(LoadCommand.java:212)
at org.neo4j.commandline.dbms.LoadCommand.execute(LoadCommand.java:150)
at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
at picocli.CommandLine.access$1500(CommandLine.java:148)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
at picocli.CommandLine.execute(CommandLine.java:2170)
at org.neo4j.cli.AdminTool.execute(AdminTool.java:94)
at org.neo4j.cli.AdminTool.main(AdminTool.java:82)
Caused by: java.lang.IllegalStateException: Can not read store version of database ckg1
at org.neo4j.commandline.dbms.StoreVersionLoader.loadStoreVersionAndCheckDowngrade(StoreVersionLoader.java:95)
at org.neo4j.dbms.archive.Loader.getStoreVersion(Loader.java:132)
at org.neo4j.commandline.dbms.LoadDumpExecutor.execute(LoadDumpExecutor.java:82)
at org.neo4j.commandline.dbms.LoadCommand.loadDump(LoadCommand.java:202)
... 13 more
Caused by: java.lang.IllegalArgumentException: Unable to read store with version 'v0.A.9'. Please make sure that database is migrated properly to be supported by current version of neo4j.
at org.neo4j.kernel.impl.store.LegacyMetadataHandler.storeIdFromLegacyMetadata(LegacyMetadataHandler.java:146)
at org.neo4j.kernel.impl.store.LegacyMetadataHandler.readMetadata44FromStore(LegacyMetadataHandler.java:98)
at org.neo4j.kernel.impl.storemigration.RecordStoreVersionCheck.readVersion(RecordStoreVersionCheck.java:74)
at org.neo4j.kernel.impl.storemigration.RecordStoreVersionCheck.getAndCheckUpgradeTargetVersion(RecordStoreVersionCheck.java:143)
at org.neo4j.commandline.dbms.StoreVersionLoader.loadStoreVersionAndCheckDowngrade(StoreVersionLoader.java:92)
... 16 more
Gregory King
Hi, unfortunately you won't be able to upgrade straight from 3 to 5. Upgrades between versions is much improved in the 5.x series, but you'll need to read up more on steps you'll need to take to achieve that.