Hello,
My name is Erica and I am using Neo4j v4.0.5 Community Edition on an Ubuntu Linux 18.04 EC2 instance. When I run neo4j-admin import, the data imports successfully, the database fails to start when I run sudo service neo4j start
: (below is an excerpt of my debug.log)
2020-06-23 16:56:55.713+0000 ERROR [o.n.d.d.DefaultDatabaseManager] Failed to start database: neo4j An error occurred! Unable to start database with name `neo4j`.
org.neo4j.dbms.api.DatabaseManagementException: An error occurred! Unable to start database with name `neo4j`.
at org.neo4j.dbms.database.AbstractDatabaseManager.startDatabase(AbstractDatabaseManager.java:191)
at org.neo4j.dbms.database.DefaultDatabaseManager.startDatabase(DefaultDatabaseManager.java:132)
at org.neo4j.dbms.database.DefaultDatabaseManager.initialiseDefaultDatabase(DefaultDatabaseManager.java:64)
at org.neo4j.dbms.database.DefaultDatabaseInitializer.start0(DefaultDatabaseInitializer.java:39)
at org.neo4j.kernel.lifecycle.SafeLifecycle.transition(SafeLifecycle.java:124)
at org.neo4j.kernel.lifecycle.SafeLifecycle.start(SafeLifecycle.java:138)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:444)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:111)
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:160)
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.build(DatabaseManagementServiceFactory.java:147)
at org.neo4j.server.database.CommunityGraphFactory.newDatabaseManagementService(CommunityGraphFactory.java:36)
at org.neo4j.server.database.LifecycleManagingDatabaseService.start(LifecycleManagingDatabaseService.java:88)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:444)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:111)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:157)
at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:114)
at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:89)
at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:35)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Mismatching store id. Store StoreId: StoreId{creationTime=1592930762152, randomId=-7903980276561267047, storeVersion=3471765337752883975, upgradeTime=1592930762152, upgradeTxId=1}. Transaction log StoreId: StoreId{creationTime=1592930741648, randomId=-1125231581799010715, storeVersion=3471765337752883975, upgradeTime=1592930741648, upgradeTxId=1}
at org.neo4j.kernel.database.Database.start(Database.java:478)
at org.neo4j.dbms.database.AbstractDatabaseManager.startDatabase(AbstractDatabaseManager.java:187)
... 17 more
Caused by: java.lang.RuntimeException: Mismatching store id. Store StoreId: StoreId{creationTime=1592930762152, randomId=-7903980276561267047, storeVersion=3471765337752883975, upgradeTime=1592930762152, upgradeTxId=1}. Transaction log StoreId: StoreId{creationTime=1592930741648, randomId=-1125231581799010715, storeVersion=3471765337752883975, upgradeTime=1592930741648, upgradeTxId=1}
at org.neo4j.kernel.recovery.Recovery.validateStoreId(Recovery.java:388)
at org.neo4j.kernel.database.Database.start(Database.java:377)
... 18 more
When I run cypher-shell -d system
and run show databases;
, I receive the following:
+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
| name | address | role | requestedStatus | currentStatus | error | default |
+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
| "neo4j" | "localhost:7687" | "standalone" | "online" | "offline" | "An error occurred! Unable to start database with name `neo4j`." | TRUE |
| "system" | "localhost:7687" | "standalone" | "online" | "online" | "" | FALSE |
+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
I have looked in the following locations for advice:
-
Unable to start server. "Mismatching store id" on newly created DB. · Issue #12388 · neo4j/neo4j · GitHub
- The suggestion at the bottom of removing the transaction data, store lock, and system data worked once for me. However, I received the error
Caused by: java.lang.NoClassDefFoundError: org/neo4j/graphdb/event/TransactionEventHandler
in subsequent attempts, which also prevented the database from starting, making this solution inviable.
- The suggestion at the bottom of removing the transaction data, store lock, and system data worked once for me. However, I received the error
-
Neo4j v4.0 `Mismatching store id` - #5 by malik
- The advice here seemed to be that you shouldn't copy the database. I do not have this issue because I am using neo4j-admin import. Also, another piece of advice was to follow migration guides. To mitigate this, I uninstalled and reinstalled neo4j completely using
sudo apt purge neo4j
(then I deleted the directories that weren't empty) and usedsudo apt install neo4j
, installing 4.0.5. I wasn't looking to transfer any data from 4.0.5, rather to start fresh on 4.0.5.
- The advice here seemed to be that you shouldn't copy the database. I do not have this issue because I am using neo4j-admin import. Also, another piece of advice was to follow migration guides. To mitigate this, I uninstalled and reinstalled neo4j completely using
-
Getting an error "Mismatching store id" - #2 by maciej.krzywdaa
- This also recommended avoiding copying the database from version 3.5. Once again, I used neo4j-admin import.
-
Solving the "Store copy failed due to store ID mismatch" error - Knowledge Base
- This did not apply because its steps were for Enterprise Edition.
Please let me know if you have any suggestions or questions. My team wants version 4.0 to work because its neo4j-admin import allows for the flag --read-buffer-size.
Thank you,
Erica Wood