The loaded database is not on the latest format

I'm running the following command:
neo4j-admin load --force --from=/root/neo4j.dump --database=neo4j

And I'm getting the following error:
Selecting JVM - Version:11.0.23+9-LTS, Name:OpenJDK 64-Bit Server VM, Vendor:Red Hat, Inc.
Done: 142 files, 55.72MiB processed.
The loaded database is not on the latest format (current:v0.A.9, latest:SF4.3.0). Set dbms.allow_upgrade=true to enable migration.

Now:

  • I have added allow_upgrade=true to the configuration file
  • I've set NEO4J_CONF=/etc/neo4j just in case it wasn't picking up the right file
  • The source database is 3.5.34
  • The destination is 4.4.18
  • I've set NEO4J_DEBUG, but that doesn't provide any extra info (that I can see)
  • The dump file is small (less than 7MB)
  • Running this on CentOS 7

Anyone know what is going wrong?

@spenn

I dont think neo4j-admin load was designed so as to also upgrade a database from one Neo4j version to another. Generally it is used to read a dump file created on same version.

In this case your you would want to migrate your database from 3.5 to 4.4 and as described at Migrate 3.5 - Upgrade and Migration Guide

Okay, thanks. I was aware of the copy way, but that needs both Neo4js installed on the same server. I was hoping to export from neo 3 on old host, copy dump to new host, load into neo 4 there.

The error should say it's not possible, rather than saying to set a config (that doesn't work).

Looks like I'll need to install neo 3 into new machine, load dump file into that, then copy into neo 4.