Neo4j V5.26.5 on AWS running in EC2
I'm trying to run backup and restore on a stand alone single server (not clustered) in AWS EC2.
The initial Neo4j server runs correctly, I add some test nodes, then take a backup. Once I restore the backup to the same instance it won't start.
To restore the backup I stop the service (sudo systemctl stop neo4j
), then restore both the system and neo4j databases:
sudo neo4j-admin database restore --overwrite-destination=true --from-path=s3://myBucket/myDirectory/system.backup system
sudo neo4j-admin database restore --overwrite-destination=true --from-path=s3://myBucket/myDirectory/neo4j.backup neo4j
then I try to start neo4j again (sudo systemctl start neo4j
)
/bin/neo4j status --verbose
neo4j 5.26.5
VM Name: OpenJDK 64-Bit Server VM
VM Vendor: Amazon.com Inc.
VM Version: 17.0.14+7-LTS
JIT compiler: HotSpot 64-Bit Tiered Compilers
VM Arguments: [-Xmx128m, -Dapp.name=neo4j, -Dapp.pid=4179, -Dapp.repo=/usr/share/neo4j/repo, -Dapp.home=/usr/share/neo4j, -Dbasedir=/usr/share/neo4j]
Configuration files used (ordered by priority):
/etc/neo4j/neo4j.conf
--------------------
org.neo4j.cli.CommandFailedException: Neo4j is not running.
at org.neo4j.server.startup.Bootloader$Dbms.status(Bootloader.java:528)
at org.neo4j.server.startup.StatusCommand.execute(StatusCommand.java:37)
at org.neo4j.cli.AbstractCommand.call(AbstractCommand.java:92)
at org.neo4j.cli.AbstractCommand.call(AbstractCommand.java:37)
at picocli.CommandLine.executeUserObject(CommandLine.java:2045)
at picocli.CommandLine.access$1500(CommandLine.java:148)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2465)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2457)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2419)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2421)
at picocli.CommandLine.execute(CommandLine.java:2174)
at org.neo4j.server.startup.Neo4jAdminCommand.call(Neo4jAdminCommand.java:123)
at org.neo4j.server.startup.Neo4jAdminCommand.call(Neo4jAdminCommand.java:42)
at picocli.CommandLine.executeUserObject(CommandLine.java:2045)
at picocli.CommandLine.access$1500(CommandLine.java:148)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2465)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2457)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2419)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2421)
at picocli.CommandLine.execute(CommandLine.java:2174)
at org.neo4j.server.startup.Neo4jCommand.main(Neo4jCommand.java:41)
at org.neo4j.server.startup.Neo4jBoot.main(Neo4jBoot.java:30)
The error in the neo4j.log file is:
2025-04-16 13:02:39.889+0000 INFO Starting...
2025-04-16 13:02:46.686+0000 INFO ======== Neo4j 5.26.5 ========
2025-04-16 13:02:46.714+0000 INFO This instance is ServerId{4488b52a} (4488b52a-46f3-4918-b891-52ea97490881)
2025-04-16 13:02:47.286+0000 INFO Resolved endpoints with LIST{endpoints:'[10.0.130.209:7476]'} to '[10.0.130.209:7476]'
2025-04-16 13:02:49.144+0000 INFO Resolved endpoints with LIST{endpoints:'[10.0.130.209:7476]'} to '[10.0.130.209:7476]'
2025-04-16 13:03:01.854+0000 ERROR Failed to start Neo4j on 0.0.0.0:7474.
java.lang.RuntimeException: Error starting Neo4j database server at /var/lib/neo4j/data/databases
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:288) ~[neo4j-5.26.5.jar:5.26.5]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.build(DatabaseManagementServiceFactory.java:223) ~[neo4j-5.26.5.jar:5.26.5]
at com.neo4j.server.enterprise.EnterpriseDBMSProvider.createManagementService(EnterpriseDBMSProvider.java:39) ~[neo4j-enterprise-5.26.5.jar:5.26.5]
at com.neo4j.server.enterprise.EnterpriseDBMSProvider.<init>(EnterpriseDBMSProvider.java:29) ~[neo4j-enterprise-5.26.5.jar:5.26.5]
at com.neo4j.server.enterprise.EnterpriseDBMSFactory.createManagementService(EnterpriseDBMSFactory.java:19) ~[neo4j-enterprise-5.26.5.jar:5.26.5]
at com.neo4j.server.enterprise.EnterpriseBootstrapper.createNeo(EnterpriseBootstrapper.java:25) ~[neo4j-enterprise-5.26.5.jar:5.26.5]
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:185) [neo4j-5.26.5.jar:5.26.5]
This is a backup from the same instance of the server and database so it should be perfect.
Any help would be welcome.