When I checked /var/log/neo4j/debug.log, the following error appeared.
”””
2024-04-25 01:32:49.278+0000 ERROR [o.n.d.d.DatabaseLifecycles] Failed to start DatabaseId{ca992062[neo4j]}
java.lang.RuntimeException: java.lang.IllegalStateException: Failed to read current store version.
at org.neo4j.kernel.database.AbstractDatabase.handleStartupFailure(AbstractDatabase.java:215) ~[neo4j-kernel-5.19.0.jar:5.19.0]
at org.neo4j.kernel.database.AbstractDatabase.start(AbstractDatabase.java:168) ~[neo4j-kernel-5.19.0.jar:5.19.0]
at org.neo4j.dbms.database.DatabaseLifecycles.startDatabase(DatabaseLifecycles.java:123) [neo4j-5.19.0.jar:5.19.0]
at org.neo4j.dbms.database.DatabaseLifecycles.initialiseDefaultDatabase(DatabaseLifecycles.java:89) [neo4j-5.19.0.jar:5.19.0]
at org.neo4j.dbms.database.DatabaseLifecycles$DefaultDatabaseStarter.start(DatabaseLifecycles.java:185) [neo4j-5.19.0.jar:5.19.0]
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:347) [neo4j-common-5.19.0.jar:5.19.0]
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:91) [neo4j-common-5.19.0.jar:5.19.0]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:269) [neo4j-5.19.0.jar:5.19.0]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.build(DatabaseManagementServiceFactory.java:213) [neo4j-5.19.0.jar:5.19.0]
at org.neo4j.server.CommunityBootstrapper.createNeo(CommunityBootstrapper.java:38) [neo4j-5.19.0.jar:5.19.0]
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:184) [neo4j-5.19.0.jar:5.19.0]
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:99) [neo4j-5.19.0.jar:5.19.0]
at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:30) [neo4j-5.19.0.jar:5.19.0]
Caused by: java.lang.IllegalStateException: Failed to read current store version.
at org.neo4j.kernel.impl.storemigration.StoreMigrator.doUpgradeCheck(StoreMigrator.java:392) ~[neo4j-kernel-5.19.0.jar:5.19.0]
at org.neo4j.kernel.impl.storemigration.StoreMigrator.upgradeIfNeeded(StoreMigrator.java:248) ~[neo4j-kernel-5.19.0.jar:5.19.0]
at org.neo4j.kernel.database.Database.upgradeStore(Database.java:784) ~[neo4j-kernel-5.19.0.jar:5.19.0]
at org.neo4j.kernel.database.Database.specificStart(Database.java:415) ~[neo4j-kernel-5.19.0.jar:5.19.0]
at org.neo4j.kernel.database.AbstractDatabase.start(AbstractDatabase.java:160) ~[neo4j-kernel-5.19.0.jar:5.19.0]
... 11 more
Caused by: java.nio.file.AccessDeniedException: /var/lib/neo4j/data/databases/neo4j/neostore
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:90) ~[?:?]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) ~[?:?]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[?:?]
at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:181) ~[?:?]
at java.nio.channels.FileChannel.open(FileChannel.java:298) ~[?:?]
at org.neo4j.io.fs.DefaultFileSystemAbstraction.open(DefaultFileSystemAbstraction.java:71) ~[neo4j-io-5.19.0.jar:5.19.0]
at org.neo4j.io.fs.DefaultFileSystemAbstraction.open(DefaultFileSystemAbstraction.java:57) ~[neo4j-io-5.19.0.jar:5.19.0]
at org.neo4j.io.pagecache.impl.SingleFilePageSwapper.createStoreChannel(SingleFilePageSwapper.java:143) ~[neo4j-io-5.19.0.jar:5.19.0]
at org.neo4j.io.pagecache.impl.SingleFilePageSwapper.(SingleFilePageSwapper.java:119) ~[neo4j-io-5.19.0.jar:5.19.0]
at org.neo4j.io.pagecache.impl.SingleFilePageSwapperFactory.createPageSwapper(SingleFilePageSwapperFactory.java:80) ~[neo4j-io-5.19.0.jar:5.19.0]
at org.neo4j.io.pagecache.impl.muninn.MuninnPagedFile.(MuninnPagedFile.java:218) ~[neo4j-io-5.19.0.jar:5.19.0]
at org.neo4j.io.pagecache.impl.muninn.MuninnPageCache.map(MuninnPageCache.java:683) ~[neo4j-io-5.19.0.jar:5.19.0]
at org.neo4j.dbms.database.DatabasePageCache.map(DatabasePageCache.java:96) ~[neo4j-kernel-5.19.0.jar:5.19.0]
at org.neo4j.io.pagecache.PageCache.map(PageCache.java:115) ~[neo4j-io-5.19.0.jar:5.19.0]
at org.neo4j.kernel.impl.store.MetaDataStore$FieldAccess.readValue(MetaDataStore.java:575) ~[neo4j-record-storage-engine-5.19.0.jar:5.19.0]
at org.neo4j.kernel.impl.store.MetaDataStore$FieldAccess.isLegacyFieldValid(MetaDataStore.java:558) ~[neo4j-record-storage-engine-5.19.0.jar:5.19.0]
at org.neo4j.kernel.impl.storemigration.RecordStoreVersionCheck.readVersion(RecordStoreVersionCheck.java:70) ~[neo4j-record-storage-engine-5.19.0.jar:5.19.0]
at org.neo4j.kernel.impl.storemigration.RecordStoreVersionCheck.getAndCheckUpgradeTargetVersion(RecordStoreVersionCheck.java:143) ~[neo4j-record-storage-engine-5.19.0.jar:5.19.0]
at org.neo4j.kernel.impl.storemigration.StoreMigrator.doUpgradeCheck(StoreMigrator.java:384) ~[neo4j-kernel-5.19.0.jar:5.19.0]
at org.neo4j.kernel.impl.storemigration.StoreMigrator.upgradeIfNeeded(StoreMigrator.java:248) ~[neo4j-kernel-5.19.0.jar:5.19.0]
at org.neo4j.kernel.database.Database.upgradeStore(Database.java:784) ~[neo4j-kernel-5.19.0.jar:5.19.0]
at org.neo4j.kernel.database.Database.specificStart(Database.java:415) ~[neo4j-kernel-5.19.0.jar:5.19.0]
at org.neo4j.kernel.database.AbstractDatabase.start(AbstractDatabase.java:160) ~[neo4j-kernel-5.19.0.jar:5.19.0]
... 11 more
”””