Neo4j-enterprise-4.0.0-beta03mr03: can't restore from a backup

Using the tarball for unix/mac:

neo4j-enterprise-4.0.0-beta03mr03:
https://go.neo4j.com/download-thanks-beta.html?edition=enterprise&release=4.0.0-beta03mr03&flavour=unix&_ga=2.25100602.1648887418.1573658975-45179281.1558019619

Trying to restore from a 3.x backup throws the following exception:

Error: Could not find or load main class org.neo4j.cli.AdminTool
Caused by: java.lang.ClassNotFoundException: org.neo4j.cli.AdminTool

Using java 11 doesn't seem to resolve it either using adoptopenjdk-11.jdk

Could this be a java version issue? Reading the installation docs closer I see openJDK Zulu is called out specifically:

https://neo4j.com/docs/operations-manual/4.0-preview/installation/requirements/#ftn.d0e734

EDIT:

./bin/neo4j-admin restore --from=backups/dev.neo4j.service.internal-us-west-2.consul --database=dev.db --force
Error: Could not find or load main class org.neo4j.cli.AdminTool
Caused by: java.lang.ClassNotFoundException: org.neo4j.cli.AdminTool

java --version
openjdk 11.0.5 2019-10-15
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.5+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.5+10, mixed mode)

no luck :disappointed:

Going the Docker route seems to be a viable workaround:

  1. Start up the RC in Docker - mounting the backups directory
#!/bin/bash

docker run \
    --publish=7474:7474 --publish=7687:7687 \
    --volume=$PWD/backups:/backups \
    --volume=$PWD/data:/data \
    --volume=$PWD/logs:/logs \
--env=NEO4J_ACCEPT_LICENSE_AGREEMENT=yes \
--name neo4j-4.0 \
neo4j/neo4j-experimental:4.0.0-beta03mr03-enterprise
  1. shell into the running container with:

docker exec -it neo4j-4.0 bash

  1. Restore from backup and start neo4j
./bin/neo4j-admin restore --from=/backups/dev.neo4j.service.internal-us-west-2.consul --database=dev.db --force
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.commons.lang3.reflect.FieldUtils (file:/var/lib/neo4j/lib/commons-lang3-3.9.jar) to field sun.nio.ch.FileChannelImpl.fd
WARNING: Please consider reporting this to the maintainers of org.apache.commons.lang3.reflect.FieldUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
root@8d12a28f2c0f:/var/lib/neo4j# ./bin/neo4j restart
Neo4j not running
Starting Neo4j.
Started neo4j (pid 452). It is available at http://0.0.0.0:7474/
There may be a short delay until the server is ready.
See /logs/neo4j.log for current status.

please post the command you ran to run restore

./bin/neo4j-admin restore --from backups/dev.neo4j.service.internal-us-west-2.consul --database=dev.db --force
Error: Could not find or load main class org.neo4j.cli.AdminTool
Caused by: java.lang.ClassNotFoundException: org.neo4j.cli.AdminTool

Sent it to the team, thanks a lot for the issue report.

Please note that usually backups and migrations are not guaranteed to work in milestone releases.