我在localhost上运行neo4j服务器时遇到一些问题:
当我使用./neo4j start
启动时,它仅在没有网络连接(以太网或wifi)时才有效。
如果我在连接时尝试启动服务器,则消息waiting for server to be ready.....
永远不会结束,并在2分钟后被杀死。
在console.log和messages.log中一切正常。
我无法弄清楚互联网连接可能导致这种情况的原因。 (每个neo4j版本都会出现错误,我正在运行Fedora 20)
编辑:我已经测试过要关闭我的防火墙,但它没有改变任何东西。
Edit2:如果我在设置网络连接之前启动neo4j服务器它工作正常(我仍然可以在网络连接启动后使用它)。只有当我尝试在有活动连接时启动服务器时才会出现此问题。
这是Fedora 20上neo4j 1.9.9的控制台日志。它在[main]行之后被卡住,并且在2min超时后生成了堆栈。 对于发行版中提供的每个neo4j版本,我都有相同的行为。
sudo ./neo4j console
Starting Neo4j Server console-mode...
Using additional JVM arguments: -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled
10:36:57.927 [main] INFO org.neo4j.server.CommunityNeoServer - Setting startup timeout to: 120000ms based on -1
org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.transaction.XaDataSourceManager@52aa430a' failed to stop. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:530)
at org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:157)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:123)
at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:284)
at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:116)
at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:96)
at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:207)
at org.neo4j.server.database.CommunityDatabase.start(CommunityDatabase.java:60)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:170)
at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:103)
at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:57)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource@3f32f5c' failed to stop. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:530)
at org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:157)
at org.neo4j.kernel.impl.transaction.XaDataSourceManager.stop(XaDataSourceManager.java:149)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:526)
... 10 more
Caused by: org.neo4j.kernel.impl.nioneo.store.UnderlyingStorageException: Failed to flush file channel /home/gdaniel/Téléchargements/neo4j-community-1.9.9/data/graph.db/neostore
at org.neo4j.kernel.impl.nioneo.store.PersistenceWindowPool.flushAll(PersistenceWindowPool.java:333)
at org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore.flushAll(CommonAbstractStore.java:560)
at org.neo4j.kernel.impl.nioneo.store.NeoStore.flushAll(NeoStore.java:251)
at org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.stop(NeoStoreXaDataSource.java:305)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:526)
... 13 more
Caused by: java.nio.channels.ClosedChannelException
at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:99)
at sun.nio.ch.FileChannelImpl.force(FileChannelImpl.java:367)
at org.neo4j.kernel.impl.nioneo.store.StoreFileChannel.force(StoreFileChannel.java:89)
at org.neo4j.kernel.impl.nioneo.store.PersistenceWindowPool.flushAll(PersistenceWindowPool.java:329)
... 17 more
org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.extension.KernelExtensions@7a171efb' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:512)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:115)
at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:284)
at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:116)
at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:96)
at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:207)
at org.neo4j.server.database.CommunityDatabase.start(CommunityDatabase.java:60)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:170)
at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:103)
at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:57)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.index.lucene.LuceneKernelExtension@46b0b225' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:512)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:115)
at org.neo4j.kernel.extension.KernelExtensions.start(KernelExtensions.java:113)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:506)
... 9 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.index.impl.lucene.LuceneDataSource@7dbff9ea' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:512)
at org.neo4j.kernel.lifecycle.LifeSupport.bringToState(LifeSupport.java:419)
at org.neo4j.kernel.lifecycle.LifeSupport.add(LifeSupport.java:331)
at org.neo4j.kernel.impl.transaction.XaDataSourceManager.registerDataSource(XaDataSourceManager.java:196)
at org.neo4j.index.lucene.LuceneKernelExtension.start(LuceneKernelExtension.java:86)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:506)
... 12 more
Caused by: java.lang.RuntimeException: java.nio.channels.ClosedByInterruptException
at org.neo4j.kernel.impl.index.IndexProviderStore.<init>(IndexProviderStore.java:85)
at org.neo4j.index.impl.lucene.LuceneDataSource.newIndexStore(LuceneDataSource.java:298)
at org.neo4j.index.impl.lucene.LuceneDataSource.start(LuceneDataSource.java:222)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:506)
... 17 more
Caused by: java.nio.channels.ClosedByInterruptException
at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202)
at sun.nio.ch.FileChannelImpl.position(FileChannelImpl.java:290)
at org.neo4j.kernel.impl.nioneo.store.StoreFileChannel.position(StoreFileChannel.java:76)
at org.neo4j.kernel.impl.nioneo.store.StoreFileChannel.position(StoreFileChannel.java:28)
at org.neo4j.kernel.impl.index.IndexProviderStore.write(IndexProviderStore.java:169)
at org.neo4j.kernel.impl.index.IndexProviderStore.create(IndexProviderStore.java:153)
at org.neo4j.kernel.impl.index.IndexProviderStore.<init>(IndexProviderStore.java:61)
... 20 more