CLI commands fail on 4.0 enterprise AMI

I am building a casual cluster in AWS using the official Neo4j 4.0 enterprise AMI (ami-014f0e29bd8f8e168). After provisioning the EC2 instance I am unable to use the CLI tools.

ubuntu@ip-10-0-0-11:~$ sudo neo4j --version
Error: Could not find or load main class com.neo4j.server.enterprise.EnterpriseEntryPoint
Caused by: java.lang.ClassNotFoundException: com.neo4j.server.enterprise.EnterpriseEntryPoint
ubuntu@ip-10-0-0-11:~$ sudo neo4j-admin --version
WARNING: Max 1024 open files allowed, minimum of 40000 recommended. See the Neo4j manual.
Error: Could not find or load main class org.neo4j.cli.AdminTool
Caused by: java.lang.ClassNotFoundException: org.neo4j.cli.AdminTool

I rebuilt the instance using the latest Neo4j 3.5.8 enterprise AMI (ami-0e630224fe45f7c40) and it worked just fine.

ubuntu@ip-10-0-0-12:~$ sudo neo4j --version
neo4j 3.5.8
ubuntu@ip-10-0-0-12:~$ sudo neo4j-admin --version
WARNING: Max 1024 open files allowed, minimum of 40000 recommended. See the Neo4j manual.
neo4j-admin 3.5.8

Is there a change in the 4.0 AMIs that I'm not aware of? I looked in the documentation and it seems to indicate neo4j-admin, for example, should work.

Any ideas?


I'm a bit confused, as we shouldn't have a 4.0 AMI available (release is currently blocked, but due out soon). Is this an upgrade instead?

If so, you might want to make sure you're using JRE 11, and double check the 4.0 migration guide

Unless my information is faulty it looks like you do have a 4.0 AMI available. Check out ami-014f0e29bd8f8e168, which is named neo4j-enterprise-1-4.0.0-apoc 2020-01-20T01_40_02Z and is owned by account id 385155106615.

This is a brand new EC2 instance.

Based on your comment about Java I checked both AMIs to see what they had on the path.

Neo4j 4.0 Enterprise (ami-014f0e29bd8f8e168)

ubuntu@ip-10-0-0-11:~$ java -version
openjdk version "11.0.5" 2019-10-15
OpenJDK Runtime Environment (build 11.0.5+10-post-Ubuntu-2ubuntu116.04)
OpenJDK 64-Bit Server VM (build 11.0.5+10-post-Ubuntu-2ubuntu116.04, mixed mode, sharing)

Neo4j 3.5.8 Enterprise (ami-0e630224fe45f7c40)

ubuntu@ip-10-0-0-12:~$ java -version
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (build 1.8.0_242-8u242-b08-0ubuntu3~16.04-b08)
OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)

Looks like JRE 11 is available.

While that is the right account id for neo4j AMIs, to my knowledge this shouldn't be released yet. You may be using an image that is still being built out, I'd recommend not using this at the present time.

I've reached out for more info on this, I'll add more info when I get it.

1 Like

Ah, ok. I would recommend changing the visibility on that AMI until it's ready for public consumption.

Yes, I'm pinging the relevant folks about it, it's likely a switch was flipped accidentally exposing it.

When is this AMI likely to be in a working state and made available?

I believe we're aiming for a release within the next week or two. Stay tuned for updates.