Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Starting Neo4j Server failed: Component '' was successfully initialized, but failed to start

Tags:

neo4j

I installed Neo4j community version yesterday on Windows 7. Had no problems running and working with it. Today I tried to start up the server again but received the following error message:

Starting Neo4j Server failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@76c898cd' was successfully initialized, but failed to start. Please see attached cause exception.

That's what I found in the message.log file in the database folder

    org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.api.impl.index.LuceneLabelScanStore@7ad7c442' failed to initialize. Please see attached cause exception.
    at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:489) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.lifecycle.LifeSupport.init(LifeSupport.java:72) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:106) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.NeoStoreDataSource.start(NeoStoreDataSource.java:530) ~[neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:507) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:115) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.impl.transaction.state.DataSourceManager.start(DataSourceManager.java:117) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:507) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:115) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:331) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:59) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.server.database.LifecycleManagingDatabase$1.newGraphDatabase(LifecycleManagingDatabase.java:44) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:110) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:507) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:115) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:203) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.desktop.runtime.DatabaseActions.start(DatabaseActions.java:71) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.desktop.ui.StartDatabaseActionListener$1.run(StartDatabaseActionListener.java:61) [neo4j-desktop-2.2.4.jar:2.2.4]
    at java.awt.event.InvocationEvent.dispatch(Unknown Source) [na:1.7.0_65]
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [na:1.7.0_65]
    at java.awt.EventQueue.access$200(Unknown Source) [na:1.7.0_65]
    at java.awt.EventQueue$3.run(Unknown Source) [na:1.7.0_65]
    at java.awt.EventQueue$3.run(Unknown Source) [na:1.7.0_65]
    at java.security.AccessController.doPrivileged(Native Method) [na:1.7.0_65]
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) [na:1.7.0_65]
    at java.awt.EventQueue.dispatchEvent(Unknown Source) [na:1.7.0_65]
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [na:1.7.0_65]
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [na:1.7.0_65]
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [na:1.7.0_65]
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [na:1.7.0_65]
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [na:1.7.0_65]
    at java.awt.EventDispatchThread.run(Unknown Source) [na:1.7.0_65]
Caused by: java.nio.channels.OverlappingFileLockException: null
    at sun.nio.ch.SharedFileLockTable.checkList(Unknown Source) ~[na:1.7.0_65]
    at sun.nio.ch.SharedFileLockTable.add(Unknown Source) ~[na:1.7.0_65]
    at sun.nio.ch.FileChannelImpl.tryLock(Unknown Source) ~[na:1.7.0_65]
    at java.nio.channels.FileChannel.tryLock(Unknown Source) ~[na:1.7.0_65]
    at org.apache.lucene.store.NativeFSLock.obtain(NativeFSLockFactory.java:217) ~[neo4j-desktop-2.2.4.jar:2.2.4]
    at org.apache.lucene.store.Lock.obtain(Lock.java:72) ~[neo4j-desktop-2.2.4.jar:2.2.4]
    at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1098) ~[neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.api.impl.index.LuceneIndexWriter.<init>(LuceneIndexWriter.java:57) ~[neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.api.impl.index.TrackingLuceneIndexWriter.<init>(TrackingLuceneIndexWriter.java:41) ~[neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.api.impl.index.IndexWriterFactories$2.create(IndexWriterFactories.java:58) ~[neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.api.impl.index.LuceneLabelScanStore.init(LuceneLabelScanStore.java:253) ~[neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:483) [neo4j-desktop-2.2.4.jar:2.2.4]
    ... 31 common frames omitted
2015-08-27 00:34:39.895+0000 INFO  [o.n.k.i.DiagnosticsManager]: --- STOPPING diagnostics START ---
2015-08-27 00:34:39.896+0000 INFO  [o.n.k.i.DiagnosticsManager]: --- STOPPING diagnostics END ---
2015-08-27 00:34:39.908+0000 INFO  [o.n.k.EmbeddedGraphDatabase]: Shutdown started
2015-08-27 00:34:39.916+0000 ERROR [o.n.s.d.LifecycleManagingDatabase]: Failed to start database.
java.lang.RuntimeException: Error starting org.neo4j.kernel.EmbeddedGraphDatabase, \\zeus\home\085Home\waleczek\My Documents\Neo4j\default.graphdb
    at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:335) ~[neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:59) ~[neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.server.database.LifecycleManagingDatabase$1.newGraphDatabase(LifecycleManagingDatabase.java:44) ~[neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:110) ~[neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:507) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:115) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:203) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.desktop.runtime.DatabaseActions.start(DatabaseActions.java:71) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.desktop.ui.StartDatabaseActionListener$1.run(StartDatabaseActionListener.java:61) [neo4j-desktop-2.2.4.jar:2.2.4]
    at java.awt.event.InvocationEvent.dispatch(Unknown Source) [na:1.7.0_65]
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [na:1.7.0_65]
    at java.awt.EventQueue.access$200(Unknown Source) [na:1.7.0_65]
    at java.awt.EventQueue$3.run(Unknown Source) [na:1.7.0_65]
    at java.awt.EventQueue$3.run(Unknown Source) [na:1.7.0_65]
    at java.security.AccessController.doPrivileged(Native Method) [na:1.7.0_65]
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) [na:1.7.0_65]
    at java.awt.EventQueue.dispatchEvent(Unknown Source) [na:1.7.0_65]
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [na:1.7.0_65]
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [na:1.7.0_65]
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [na:1.7.0_65]
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [na:1.7.0_65]
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [na:1.7.0_65]
    at java.awt.EventDispatchThread.run(Unknown Source) [na:1.7.0_65]
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.transaction.state.DataSourceManager@59314fe9' was successfully initialized, but failed to start. Please see attached cause exception.
    at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:513) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:115) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:331) ~[neo4j-desktop-2.2.4.jar:2.2.4]
    ... 22 common frames omitted
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.NeoStoreDataSource@6c2a7bf9' was successfully initialized, but failed to start. Please see attached cause exception.
    at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:513) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:115) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.impl.transaction.state.DataSourceManager.start(DataSourceManager.java:117) ~[neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:507) [neo4j-desktop-2.2.4.jar:2.2.4]
    ... 24 common frames omitted
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.api.impl.index.LuceneLabelScanStore@7ad7c442' failed to initialize. Please see attached cause exception.
    at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:489) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.lifecycle.LifeSupport.init(LifeSupport.java:72) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:106) [neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.NeoStoreDataSource.start(NeoStoreDataSource.java:530) ~[neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:507) [neo4j-desktop-2.2.4.jar:2.2.4]
    ... 27 common frames omitted
Caused by: java.nio.channels.OverlappingFileLockException: null
    at sun.nio.ch.SharedFileLockTable.checkList(Unknown Source) ~[na:1.7.0_65]
    at sun.nio.ch.SharedFileLockTable.add(Unknown Source) ~[na:1.7.0_65]
    at sun.nio.ch.FileChannelImpl.tryLock(Unknown Source) ~[na:1.7.0_65]
    at java.nio.channels.FileChannel.tryLock(Unknown Source) ~[na:1.7.0_65]
    at org.apache.lucene.store.NativeFSLock.obtain(NativeFSLockFactory.java:217) ~[neo4j-desktop-2.2.4.jar:2.2.4]
    at org.apache.lucene.store.Lock.obtain(Lock.java:72) ~[neo4j-desktop-2.2.4.jar:2.2.4]
    at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1098) ~[neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.api.impl.index.LuceneIndexWriter.<init>(LuceneIndexWriter.java:57) ~[neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.api.impl.index.TrackingLuceneIndexWriter.<init>(TrackingLuceneIndexWriter.java:41) ~[neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.api.impl.index.IndexWriterFactories$2.create(IndexWriterFactories.java:58) ~[neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.api.impl.index.LuceneLabelScanStore.init(LuceneLabelScanStore.java:253) ~[neo4j-desktop-2.2.4.jar:2.2.4]
    at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:483) [neo4j-desktop-2.2.4.jar:2.2.4]
    ... 31 common frames omitted
2015-08-27 00:34:39.918+0000 INFO  [o.n.s.CommunityNeoServer]: Successfully shutdown Neo4j Server.

I deleted all database folders, since I only played around with the given Movie example. I also tried setting allow_store_upgrade=true , both without success.

I did however restart my laptop today and windows installed some updates. Currently I am wondering if that could have caused the error.

Thanks for any hints.

like image 305
Alexander Avatar asked Aug 27 '15 00:08

Alexander


People also ask

Can not connect to Neo4j?

Troubleshooting steps: Ensure that the address is correct. Ensure that if the server is listening for bolt connections on a port other than 7687, that you pass the port explicitly to your client (e.g. cypher-shell) or other program you have written. Ensure that firewall rules do not prohibit traffic on the bolt port.

Does Neo4j provide REST API?

The Neo4j REST API is designed with discoverability in mind, so that you can start with a GET on the Service root and from there discover URIs to perform other requests.


1 Answers

Move your database from remote location to local drive.

from \\zeus\home\085Home\waleczek\My Documents\Neo4j\default.graphdb

e.g. to C:\some\directory\neo4j\default.graphdb

And change location in configuration file accordingly.

Or map your remote as a network drive.
http://windows.microsoft.com/en-us/windows/create-shortcut-map-network-drive#1TC=windows-7

like image 82
MicTech Avatar answered Oct 05 '22 14:10

MicTech