mehdi_ajroud
Graph Buddy

Anyone can help me with this issue please ?

Comments
Benoit
Graph Buddy

Hi Mehdi,

You are trying to start a Neo4j server (version 3.1.4) with a graph.db folder of an other version (v0.A.9 was introduced in 3.4).

So you need to upgrade your neo4j server with a 3.4 version to beable to use your graph.db folder.

Cheers

mehdi_ajroud
Graph Buddy

Hi Benoit ,

Thanks for your quick answer 🙂
Is there any command to upgrade the neo4j server version ?

Benoit
Graph Buddy

Normally you just have to run the upgrade command on your server : sudo apt-get upgrade

mehdi_ajroud
Graph Buddy

sudo apt-get upgrade worked for me ! but still have some exceptions like :

majroud@Scores-Analyst:~$ neo4j console
Active database: graph.db
Directories in use:
  home:         /var/lib/neo4j
  config:       /etc/neo4j
  logs:         /var/log/neo4j
  plugins:      /var/lib/neo4j/plugins
  import:       /home/majroud/neo4j/import
  data:         /var/lib/neo4j/data
  certificates: /var/lib/neo4j/certificates
  run:          /var/run/neo4j
Starting Neo4j.
WARNING: Max 1024 open files allowed, minimum of 40000 recommended. See the Neo4j manual.
2018-11-19 14:19:59.359+0000 WARN  WARNING! Deprecated configuration options used. See manual for details
2018-11-19 14:19:59.365+0000 WARN  dbms.allow_format_migration has been replaced with dbms.allow_upgrade.
2018-11-19 14:19:59.393+0000 INFO  ======== Neo4j 3.4.10 ========
2018-11-19 14:19:59.433+0000 INFO  Starting...
2018-11-19 14:20:02.873+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@2f6e28bc' was successfully initialized, but failed to start. Please see the attached cause exception "/var/lib/neo4j/data/databases/graph.db/neostore.propertystore.db.strings.id (Permission non accordée)". Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@2f6e28bc' was successfully initialized, but failed to start. Please see the attached cause exception "/var/lib/neo4j/data/databases/graph.db/neostore.propertystore.db.strings.id (Permission non accordée)".
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@2f6e28bc' was successfully initialized, but failed to start. Please see the attached cause exception "/var/lib/neo4j/data/databases/graph.db/neostore.propertystore.db.strings.id (Permission non accordée)".
	at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:68)
	at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:220)
	at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:111)
	at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:79)
	at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:32)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@2f6e28bc' was successfully initialized, but failed to start. Please see the attached cause exception "/var/lib/neo4j/data/databases/graph.db/neostore.propertystore.db.strings.id (Permission non accordée)".
	at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:466)
	at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
	at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:212)
	... 3 more
Caused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory, /var/lib/neo4j/data/databases/graph.db
	at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:212)
	at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:125)
	at org.neo4j.server.CommunityNeoServer.lambda$static$0(CommunityNeoServer.java:58)
	at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:88)
	at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:445)
	... 5 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.NeoStoreDataSource@3c989952' was successfully initialized, but failed to start. Please see the attached cause exception "/var/lib/neo4j/data/databases/graph.db/neostore.propertystore.db.strings.id (Permission non accordée)".
	at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:466)
	at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
	at org.neo4j.kernel.impl.transaction.state.DataSourceManager.start(DataSourceManager.java:100)
	at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:445)
	at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
	at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:208)
	... 9 more
Caused by: org.neo4j.kernel.impl.store.UnderlyingStorageException: Unable to init id file /var/lib/neo4j/data/databases/graph.db/neostore.propertystore.db.strings.id
	at org.neo4j.kernel.impl.store.id.IdContainer.init(IdContainer.java:102)
	at org.neo4j.kernel.impl.store.id.IdGeneratorImpl.<init>(IdGeneratorImpl.java:111)
	at org.neo4j.kernel.impl.store.id.DefaultIdGeneratorFactory.instantiate(DefaultIdGeneratorFactory.java:69)
	at org.neo4j.kernel.impl.store.id.DefaultIdGeneratorFactory.open(DefaultIdGeneratorFactory.java:60)
	at org.neo4j.kernel.impl.store.id.BufferingIdGeneratorFactory.open(BufferingIdGeneratorFactory.java:70)
	at org.neo4j.kernel.impl.store.id.BufferingIdGeneratorFactory.open(BufferingIdGeneratorFactory.java:62)
	at org.neo4j.kernel.impl.store.CommonAbstractStore.openIdGenerator(CommonAbstractStore.java:702)
	at org.neo4j.kernel.impl.store.CommonAbstractStore.loadIdGenerator(CommonAbstractStore.java:367)
	at org.neo4j.kernel.impl.store.CommonAbstractStore.loadStorage(CommonAbstractStore.java:230)
	at org.neo4j.kernel.impl.store.CommonAbstractStore.checkAndLoadStorage(CommonAbstractStore.java:213)
	at org.neo4j.kernel.impl.store.CommonAbstractStore.initialise(CommonAbstractStore.java:134)
	at org.neo4j.kernel.impl.store.NeoStores.initialize(NeoStores.java:280)
	at org.neo4j.kernel.impl.store.NeoStores.createDynamicStringStore(NeoStores.java:598)
	at org.neo4j.kernel.impl.store.NeoStores.createDynamicStringStore(NeoStores.java:592)
	at org.neo4j.kernel.impl.store.StoreType$5.open(StoreType.java:72)
	at org.neo4j.kernel.impl.store.StoreType$5.open(StoreType.java:67)
	at org.neo4j.kernel.impl.store.NeoStores.openStore(NeoStores.java:273)
	at org.neo4j.kernel.impl.store.NeoStores.getOrCreateStore(NeoStores.java:318)
	at org.neo4j.kernel.impl.store.NeoStores.<init>(NeoStores.java:149)
	at org.neo4j.kernel.impl.store.StoreFactory.openNeoStores(StoreFactory.java:160)
	at org.neo4j.kernel.impl.store.StoreFactory.openAllNeoStores(StoreFactory.java:124)
	at org.neo4j.kernel.impl.storageengine.impl.recordstorage.RecordStorageEngine.<init>(RecordStorageEngine.java:200)
	at org.neo4j.kernel.NeoStoreDataSource.buildStorageEngine(NeoStoreDataSource.java:574)
	at org.neo4j.kernel.NeoStoreDataSource.start(NeoStoreDataSource.java:434)
	at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:445)
	... 14 more
Caused by: java.io.FileNotFoundException: /var/lib/neo4j/data/databases/graph.db/neostore.propertystore.db.strings.id (Permission non accordée)
	at java.io.RandomAccessFile.open0(Native Method)
	at java.io.RandomAccessFile.open(RandomAccessFile.java:316)
	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)
	at org.neo4j.io.fs.DefaultFileSystemAbstraction.open(DefaultFileSystemAbstraction.java:69)
	at org.neo4j.io.fs.DefaultFileSystemAbstraction.open(DefaultFileSystemAbstraction.java:54)
	at org.neo4j.kernel.impl.store.id.IdContainer.init(IdContainer.java:93)
	... 38 more
2018-11-19 14:20:02.879+0000 INFO  Neo4j Server shutdown initiated by request```
Benoit
Graph Buddy

Know you have a permission problem, your user doesn't have access to some files in the folder /var/lib/neo4j/data/databases/graph.db.

Can you do a sudo chown -R majroud /var/lib/neo4j/data and try again.
Also, be sure that the Neo4j service is not already running.

mehdi_ajroud
Graph Buddy

Thank you so much @Benoit It works now

Benoit
Graph Buddy

Y'a pas de quoi ! Amuse-toi bien avec Neo à présent ^^

A+

Version history
Last update:
‎11-19-2018 04:40 AM
Updated by:
Contributors