Hi Team,
I have a docker environment with neo4j 4. x version installed and the data we are storing in the persistent volume
When I upgrade neo4j from 4.x to 5.x. I am facing the below exception. Kindly help me on the same.
NEO4JLABS_PLUGINS has been renamed to NEO4J_PLUGINS since Neo4j 5.0.0.
The old name will still work, but is likely to be deprecated in future releases.
Installing Plugin 'apoc' from /var/lib/neo4j/labs/apoc-*-core.jar to /var/lib/neo4j/plugins/apoc.jar
Applying default values for plugin apoc to neo4j.conf
/docker-entrypoint.sh: line 361: expand_commands_optionally: command not found
==== RUNNING ENTRY POINT CUSTOMIZATIONS =====
==== NAMESPACE: sandbox-kathir
==== graphileonSSOEnabled parameter is not set, fallback to default values
2023-03-16 12:53:17.317+0000 WARN Setting 'dbms.allow_upgrade' is removed. It no longer has any effect.
2023-03-16 12:53:17.322+0000 WARN Use of deprecated setting 'dbms.jvm.additional'. It is replaced by 'server.jvm.additional'.
2023-03-16 12:53:17.322+0000 WARN Use of deprecated setting 'dbms.memory.pagecache.size'. It is replaced by 'server.memory.pagecache.size'.
2023-03-16 12:53:17.322+0000 WARN Use of deprecated setting 'dbms.memory.heap.max_size'. It is replaced by 'server.memory.heap.max_size'.
2023-03-16 12:53:17.323+0000 WARN Use of deprecated setting 'dbms.memory.heap.initial_size'. It is replaced by 'server.memory.heap.initial_size'.
2023-03-16 12:53:17.323+0000 WARN Use of deprecated setting 'dbms.unmanaged_extension_classes'. It is replaced by 'server.unmanaged_extension_classes'.
2023-03-16 12:53:17.323+0000 WARN Unrecognized setting. No declared setting with name: gitlab.username.
2023-03-16 12:53:17.324+0000 WARN Unrecognized setting. No declared setting with name: google.maps.api.key.
2023-03-16 12:53:17.324+0000 WARN Unrecognized setting. No declared setting with name: usps.api.endpoint.
2023-03-16 12:53:17.324+0000 WARN Unrecognized setting. No declared setting with name: usps.api.userid.
2023-03-16 12:53:17.324+0000 WARN Unrecognized setting. No declared setting with name: gitlab.access.token.
2023-03-16 12:53:17.324+0000 WARN Unrecognized setting. No declared setting with name: usps.api.target.
2023-03-16 12:53:17.336+0000 INFO Starting...
2023-03-16 12:53:17.980+0000 INFO This instance is ServerId{16192906} (16192906-f07a-4ada-9d4f-7294638185bd)
2023-03-16 12:53:18.913+0000 INFO ======== Neo4j 5.5.0 ========
2023-03-16 12:53:29.124+0000 ERROR Failed to start Neo4j on 0.0.0.0:7474.
java.lang.RuntimeException: Error starting Neo4j database server at /data/databases
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:256) ~[neo4j-5.5.0.jar:5.5.0]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.build(DatabaseManagementServiceFactory.java:194) ~[neo4j-5.5.0.jar:5.5.0]
at org.neo4j.server.CommunityBootstrapper.createNeo(CommunityBootstrapper.java:36) ~[neo4j-5.5.0.jar:5.5.0]
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:170) ~[neo4j-5.5.0.jar:5.5.0]
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:86) ~[neo4j-5.5.0.jar:5.5.0]
at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:30) ~[neo4j-5.5.0.jar:5.5.0]
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.dbms.database.DefaultSystemGraphInitializer@76ececd' was successfully initialized, but failed to start. Please see the attached cause exception "The selected target store format 'AF4.3.0' (introduced in 4.3.0) is no longer supported".
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:370) ~[neo4j-common-5.5.0.jar:5.5.0]
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:92) ~[neo4j-common-5.5.0.jar:5.5.0]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:247) ~[neo4j-5.5.0.jar:5.5.0]
... 5 more
Suppressed: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.dbms.database.DatabaseLifecycles$AllDatabaseStopper@5c5812c' failed to stop. Please see the attached cause exception "System database is not (yet) available".
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:384) ~[neo4j-common-5.5.0.jar:5.5.0]
at org.neo4j.kernel.lifecycle.LifeSupport.stopInstances(LifeSupport.java:212) ~[neo4j-common-5.5.0.jar:5.5.0]
at org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:120) ~[neo4j-common-5.5.0.jar:5.5.0]
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:97) ~[neo4j-common-5.5.0.jar:5.5.0]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:247) ~[neo4j-5.5.0.jar:5.5.0]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.build(DatabaseManagementServiceFactory.java:194) ~[neo4j-5.5.0.jar:5.5.0]
at org.neo4j.server.CommunityBootstrapper.createNeo(CommunityBootstrapper.java:36) ~[neo4j-5.5.0.jar:5.5.0]
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:170) ~[neo4j-5.5.0.jar:5.5.0]
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:86) ~[neo4j-5.5.0.jar:5.5.0]
at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:30) ~[neo4j-5.5.0.jar:5.5.0]
Caused by: org.neo4j.graphdb.DatabaseShutdownException: This database is shutdown.
at org.neo4j.kernel.database.SystemGraphDatabaseIdRepository.execute(SystemGraphDatabaseIdRepository.java:52) ~[neo4j-kernel-5.5.0.jar:5.5.0]
at org.neo4j.kernel.database.SystemGraphDatabaseIdRepository.getByName(SystemGraphDatabaseIdRepository.java:40) ~[neo4j-kernel-5.5.0.jar:5.5.0]
at org.neo4j.kernel.database.DatabaseIdRepository.getByName(DatabaseIdRepository.java:55) ~[neo4j-common-5.5.0.jar:5.5.0]
at org.neo4j.kernel.database.MapCachingDatabaseIdRepository.lambda$getByName$0(MapCachingDatabaseIdRepository.java:53) ~[neo4j-kernel-5.5.0.jar:5.5.0]
at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) ~[?:?]
at org.neo4j.kernel.database.MapCachingDatabaseIdRepository.getByName(MapCachingDatabaseIdRepository.java:52) ~[neo4j-kernel-5.5.0.jar:5.5.0]
at org.neo4j.kernel.database.DatabaseIdRepository.getByName(DatabaseIdRepository.java:55) ~[neo4j-common-5.5.0.jar:5.5.0]
at org.neo4j.dbms.database.DatabaseRepository.getDatabaseContext(DatabaseRepository.java:54) ~[neo4j-kernel-5.5.0.jar:5.5.0]
at org.neo4j.dbms.database.DatabaseLifecycles.defaultContext(DatabaseLifecycles.java:76) ~[neo4j-5.5.0.jar:5.5.0]
at org.neo4j.dbms.database.DatabaseLifecycles$AllDatabaseStopper.stop(DatabaseLifecycles.java:150) ~[neo4j-5.5.0.jar:5.5.0]
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:380) ~[neo4j-common-5.5.0.jar:5.5.0]
... 9 more
Caused by: org.neo4j.dbms.api.DatabaseManagementException: System database is not (yet) available
at org.neo4j.kernel.database.SystemGraphDatabaseIdRepository.execute(SystemGraphDatabaseIdRepository.java:52) ~[neo4j-kernel-5.5.0.jar:5.5.0]
at org.neo4j.kernel.database.SystemGraphDatabaseIdRepository.getByName(SystemGraphDatabaseIdRepository.java:40) ~[neo4j-kernel-5.5.0.jar:5.5.0]
at org.neo4j.kernel.database.DatabaseIdRepository.getByName(DatabaseIdRepository.java:55) ~[neo4j-common-5.5.0.jar:5.5.0]
at org.neo4j.kernel.database.MapCachingDatabaseIdRepository.lambda$getByName$0(MapCachingDatabaseIdRepository.java:53) ~[neo4j-kernel-5.5.0.jar:5.5.0]
at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) ~[?:?]
at org.neo4j.kernel.database.MapCachingDatabaseIdRepository.getByName(MapCachingDatabaseIdRepository.java:52) ~[neo4j-kernel-5.5.0.jar:5.5.0]
at org.neo4j.kernel.database.DatabaseIdRepository.getByName(DatabaseIdRepository.java:55) ~[neo4j-common-5.5.0.jar:5.5.0]
at org.neo4j.dbms.database.DatabaseRepository.getDatabaseContext(DatabaseRepository.java:54) ~[neo4j-kernel-5.5.0.jar:5.5.0]
at org.neo4j.dbms.database.DatabaseLifecycles.defaultContext(DatabaseLifecycles.java:76) ~[neo4j-5.5.0.jar:5.5.0]
at org.neo4j.dbms.database.DatabaseLifecycles$AllDatabaseStopper.stop(DatabaseLifecycles.java:150) ~[neo4j-5.5.0.jar:5.5.0]
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:380) ~[neo4j-common-5.5.0.jar:5.5.0]
... 9 more
Caused by: org.neo4j.graphdb.DatabaseShutdownException: This database is shutdown.
at org.neo4j.kernel.availability.DatabaseAvailabilityGuard.assertDatabaseAvailable(DatabaseAvailabilityGuard.java:154) ~[neo4j-kernel-5.5.0.jar:5.5.0]
at org.neo4j.kernel.impl.factory.GraphDatabaseFacade.beginKernelTransaction(GraphDatabaseFacade.java:166) ~[neo4j-kernel-5.5.0.jar:5.5.0]
at org.neo4j.kernel.impl.factory.GraphDatabaseFacade.beginTransactionInternal(GraphDatabaseFacade.java:135) ~[neo4j-kernel-5.5.0.jar:5.5.0]
at org.neo4j.kernel.impl.factory.GraphDatabaseFacade.beginTransaction(GraphDatabaseFacade.java:92) ~[neo4j-kernel-5.5.0.jar:5.5.0]
at org.neo4j.kernel.impl.factory.GraphDatabaseTransactions.beginTransaction(GraphDatabaseTransactions.java:113) ~[neo4j-kernel-5.5.0.jar:5.5.0]
at org.neo4j.kernel.impl.factory.GraphDatabaseTransactions.beginTransaction(GraphDatabaseTransactions.java:107) ~[neo4j-kernel-5.5.0.jar:5.5.0]
at org.neo4j.kernel.impl.factory.GraphDatabaseTransactions.beginTransaction(GraphDatabaseTransactions.java:102) ~[neo4j-kernel-5.5.0.jar:5.5.0]
at org.neo4j.kernel.impl.factory.GraphDatabaseTransactions.beginTx(GraphDatabaseTransactions.java:93) ~[neo4j-kernel-5.5.0.jar:5.5.0]
at org.neo4j.dbms.database.SystemGraphComponents.initializeSystemGraph(SystemGraphComponents.java:97) ~[neo4j-kernel-5.5.0.jar:5.5.0]
at org.neo4j.dbms.database.DefaultSystemGraphInitializer.initializeSystemGraph(DefaultSystemGraphInitializer.java:38) ~[neo4j-5.5.0.jar:5.5.0]
at org.neo4j.dbms.database.SystemGraphInitializer.start(SystemGraphInitializer.java:27) ~[neo4j-kernel-5.5.0.jar:5.5.0]
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:353) ~[neo4j-common-5.5.0.jar:5.5.0]
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:92) ~[neo4j-common-5.5.0.jar:5.5.0]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:247) ~[neo4j-5.5.0.jar:5.5.0]
... 5 more
Caused by: org.neo4j.kernel.impl.storemigration.UnableToMigrateException: The selected target store format 'AF4.3.0' (introduced in 4.3.0) is no longer supported
at org.neo4j.kernel.impl.storemigration.StoreMigrator.doUpgradeCheck(StoreMigrator.java:374) ~[neo4j-kernel-5.5.0.jar:5.5.0]
at org.neo4j.kernel.impl.storemigration.StoreMigrator.upgradeIfNeeded(StoreMigrator.java:242) ~[neo4j-kernel-5.5.0.jar:5.5.0]
at org.neo4j.kernel.database.Database.upgradeStore(Database.java:751) ~[neo4j-kernel-5.5.0.jar:5.5.0]
at org.neo4j.kernel.database.Database.specificStart(Database.java:388) ~[neo4j-kernel-5.5.0.jar:5.5.0]
at org.neo4j.kernel.database.AbstractDatabase.start(AbstractDatabase.java:156) ~[neo4j-kernel-5.5.0.jar:5.5.0]
at org.neo4j.dbms.database.DatabaseLifecycles.startDatabase(DatabaseLifecycles.java:120) ~[neo4j-5.5.0.jar:5.5.0]
at org.neo4j.dbms.database.DatabaseLifecycles$SystemDatabaseStarter.start(DatabaseLifecycles.java:143) ~[neo4j-5.5.0.jar:5.5.0]
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:353) ~[neo4j-common-5.5.0.jar:5.5.0]
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:92) ~[neo4j-common-5.5.0.jar:5.5.0]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:247) ~[neo4j-5.5.0.jar:5.5.0]
... 5 more
2023-03-16 12:53:29.127+0000 INFO Neo4j Server shutdown initiated by request
2023-03-16 12:53:29.128+0000 INFO Stopped.