cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! Site migration is underway. Expect disruption to service on Thursday, Feb. 9!

Unable to start neo4j DB

roopakkpal
Node

Neo4j won't start after accidentally upgrading it from 4.2.4 to 4.4.8. Gives below error. 

 

 

 

 

Caused by: org.neo4j.kernel.impl.transaction.log.entry.UnsupportedLogVersionException: Log file contains entries with prefix 4, and the highest supported prefix is 3. This indicates that the log files originates from a newer version of neo4j.
	at org.neo4j.kernel.impl.transaction.log.entry.LogVersionSelector.select(LogVersionSelector.java:54) ~[neo4j-wal-4.2.4.jar:4.2.4]
	at org.neo4j.kernel.impl.transaction.log.entry.VersionAwareLogEntryReader.readLogEntry(VersionAwareLogEntryReader.java:94) ~[neo4j-wal-4.2.4.jar:4.2.4]
	at org.neo4j.kernel.impl.transaction.log.LogEntryCursor.next(LogEntryCursor.java:53) ~[neo4j-kernel-4.2.4.jar:4.2.4]
	at org.neo4j.kernel.impl.transaction.log.files.checkpoint.CheckpointLogFile.findLatestCheckpoint(CheckpointLogFile.java:114) ~[neo4j-kernel-4.2.4.jar:4.2.4]
	at org.neo4j.kernel.impl.transaction.log.files.checkpoint.DetachedLogTailScanner.findLogTail(DetachedLogTailScanner.java:68) ~[neo4j-kernel-4.2.4.jar:4.2.4]
	at org.neo4j.kernel.impl.transaction.log.files.checkpoint.AbstractLogTailScanner.getTailInformation(AbstractLogTailScanner.java:241) ~[neo4j-kernel-4.2.4.jar:4.2.4]
	at org.neo4j.kernel.impl.transaction.log.files.checkpoint.CheckpointLogFile.getTailInformation(CheckpointLogFile.java:185) ~[neo4j-kernel-4.2.4.jar:4.2.4]
	at org.neo4j.kernel.impl.transaction.log.files.checkpoint.CompositeCheckpointLogFile.getTailInformation(CompositeCheckpointLogFile.java:105) ~[neo4j-kernel-4.2.4.jar:4.2.4]
	at org.neo4j.kernel.impl.transaction.log.files.TransactionLogFiles.getTailInformation(TransactionLogFiles.java:103) ~[neo4j-kernel-4.2.4.jar:4.2.4]
	at org.neo4j.kernel.recovery.Recovery.validateStoreId(Recovery.java:403) ~[neo4j-kernel-4.2.4.jar:4.2.4]
	at org.neo4j.kernel.database.Database.checkStoreId(Database.java:571) ~[neo4j-kernel-4.2.4.jar:4.2.4]
	at org.neo4j.kernel.database.Database.validateStoreAndTxLogs(Database.java:534) ~[neo4j-kernel-4.2.4.jar:4.2.4]
	at org.neo4j.kernel.database.Database.start(Database.java:419) ~[neo4j-kernel-4.2.4.jar:4.2.4]
	at org.neo4j.dbms.database.AbstractDatabaseManager.startDatabase(AbstractDatabaseManager.java:187) ~[neo4j-4.2.4.jar:4.2.4]
	at com.neo4j.dbms.database.MultiDatabaseManager.forSingleDatabase(MultiDatabaseManager.java:141) ~[neo4j-dbms-enterprise-4.2.4.jar:4.2.4]
	at com.neo4j.dbms.database.MultiDatabaseManager.startDatabase(MultiDatabaseManager.java:119) ~[neo4j-dbms-enterprise-4.2.4.jar:4.2.4]
	at com.neo4j.dbms.Transition$Prepared.doTransitionAction(Transition.java:101) ~[neo4j-dbms-enterprise-4.2.4.jar:4.2.4]
	at com.neo4j.dbms.Transition$Prepared.doTransition(Transition.java:88) ~[neo4j-dbms-enterprise-4.2.4.jar:4.2.4]
	at com.neo4j.dbms.DbmsReconciler.doTransitionStep(DbmsReconciler.java:355) ~[neo4j-dbms-enterprise-4.2.4.jar:4.2.4]
	at com.neo4j.dbms.DbmsReconciler.doTransitionStep(DbmsReconciler.java:356) ~[neo4j-dbms-enterprise-4.2.4.jar:4.2.4]
	at com.neo4j.dbms.DbmsReconciler.doTransitionStep(DbmsReconciler.java:356) ~[neo4j-dbms-enterprise-4.2.4.jar:4.2.4]
	at com.neo4j.dbms.DbmsReconciler.lambda$doTransitions$12(DbmsReconciler.java:324) ~[neo4j-dbms-enterprise-4.2.4.jar:4.2.4]
	at com.neo4j.dbms.DbmsReconciler.namedJob(DbmsReconciler.java:335) ~[neo4j-dbms-enterprise-4.2.4.jar:4.2.4]
	at com.neo4j.dbms.DbmsReconciler.doTransitions(DbmsReconciler.java:325) ~[neo4j-dbms-enterprise-4.2.4.jar:4.2.4]
	at com.neo4j.dbms.DbmsReconciler.lambda$doTransitions$10(DbmsReconciler.java:310) ~[neo4j-dbms-enterprise-4.2.4.jar:4.2.4]
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
	at java.lang.Thread.run(Thread.java:829) ~[?:?]
2022-06-30 12:40:39.887+0000 INFO  [o.n.g.f.DatabaseManagementServiceFactory] Shutdown started

 

 

 

 

 
Tried downgrading to 4.2.4 also but no luck. Please help.
1 REPLY 1

You can try to upgrade incrementally first to 4.3 then 4.4

Also your database needs to be cleanly shut down prior to an upgrade attempt.