[这对我来说真的不像StackOverflow问题,但是谷歌集团明确地将我重定向到这里。]
我试图在Arch Linux上运行Neo4j,但是缺乏成功。运行bin/neo4j console
次。我正在使用neo4j-community-1.9.5
。所有这些信息都是在解开后立即第一次运行。
输出到控制台:
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 2013-12-07 00:00:02.698+0000 DEBUG [API] You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7. 2013-12-07 00:00:03.225+0000 INFO [API] Setting startup timeout to: 120000ms based on -1 16:00:03.687 [main] WARN o.neo4j.kernel.EmbeddedGraphDatabase - You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7. org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.transaction.XaDataSourceManager@4d9ecb' failed to stop. Please see attached cause exception. at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:515) at org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:146) at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:112) at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:262) at org.neo4j.kernel.EmbeddedGraphDatabase.(EmbeddedGraphDatabase.java:106) at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:88) at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:207) at org.neo4j.server.database.CommunityDatabase.start(CommunityDatabase.java:54) at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:168) at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:87) at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:50) Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource@1394a8d' failed to stop. Please see attached cause exception. at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:515) at org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:146) at org.neo4j.kernel.impl.transaction.XaDataSourceManager.stop(XaDataSourceManager.java:149) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:511) ... 10 more Caused by: java.lang.RuntimeException: java.nio.channels.ClosedByInterruptException at org.neo4j.kernel.impl.transaction.xaframework.LogBackedXaDataSource.stop(LogBackedXaDataSource.java:72) at org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.stop(NeoStoreXaDataSource.java:301) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:511) ... 13 more Caused by: java.nio.channels.ClosedByInterruptException at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202) at sun.nio.ch.FileChannelImpl.writeInternal(FileChannelImpl.java:743) at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:723) at org.neo4j.kernel.impl.transaction.xaframework.DirectMappedLogBuffer.writeOut(DirectMappedLogBuffer.java:159) at org.neo4j.kernel.impl.transaction.xaframework.DirectMappedLogBuffer.force(DirectMappedLogBuffer.java:172) at org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.releaseCurrentLogFile(XaLogicalLog.java:678) at org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.close(XaLogicalLog.java:703) at org.neo4j.kernel.impl.transaction.xaframework.LogBackedXaDataSource.stop(LogBackedXaDataSource.java:68) ... 15 more org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.extension.KernelExtensions@6d3bea' was successfully initialized, but failed to start. Please see attached cause exception. at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497) at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104) at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:262) at org.neo4j.kernel.EmbeddedGraphDatabase.(EmbeddedGraphDatabase.java:106) at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:88) at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:207) at org.neo4j.server.database.CommunityDatabase.start(CommunityDatabase.java:54) at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:168) at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:87) at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:50) Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.index.lucene.LuceneKernelExtension@183608e' was successfully initialized, but failed to start. Please see attached cause exception. at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497) at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104) at org.neo4j.kernel.extension.KernelExtensions.start(KernelExtensions.java:113) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491) ... 9 more Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.index.impl.lucene.LuceneDataSource@12d3734' was successfully initialized, but failed to start. Please see attached cause exception. at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497) at org.neo4j.kernel.lifecycle.LifeSupport.bringToState(LifeSupport.java:404) at org.neo4j.kernel.lifecycle.LifeSupport.add(LifeSupport.java:318) 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:491) ... 12 more Caused by: java.lang.RuntimeException: java.nio.channels.ClosedByInterruptException at org.neo4j.kernel.impl.index.IndexProviderStore.(IndexProviderStore.java:85) at org.neo4j.index.impl.lucene.LuceneDataSource.newIndexStore(LuceneDataSource.java:299) at org.neo4j.index.impl.lucene.LuceneDataSource.start(LuceneDataSource.java:223) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491) ... 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.index.IndexProviderStore.write(IndexProviderStore.java:169) at org.neo4j.kernel.impl.index.IndexProviderStore.create(IndexProviderStore.java:153) at org.neo4j.kernel.impl.index.IndexProviderStore.(IndexProviderStore.java:61) ... 20 more 2013-12-07 00:02:15.217+0000 DEBUG [API] Failed to start database. 2013-12-07 00:02:15.221+0000 DEBUG [API] org.neo4j.server.ServerStartupException: Startup took longer than 120000ms, and was stopped. You can disable this behavior by setting 'org.neo4j.server.startup_timeout' to 0. Error code: 1 at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:204) ~[neo4j-server-1.9.5.jar:1.9.5] at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:87) [neo4j-server-1.9.5.jar:1.9.5] at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:50) [neo4j-server-1.9.5.jar:1.9.5] 2013-12-07 00:02:15.225+0000 DEBUG [API] Failed to start Neo Server on port [7474] 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 2013-12-07 00:00:02.698+0000 DEBUG [API] You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7. 2013-12-07 00:00:03.225+0000 INFO [API] Setting startup timeout to: 120000ms based on -1 16:00:03.687 [main] WARN o.neo4j.kernel.EmbeddedGraphDatabase - You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7. org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.transaction.XaDataSourceManager@4d9ecb' failed to stop. Please see attached cause exception. at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:515) at org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:146) at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:112) at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:262) at org.neo4j.kernel.EmbeddedGraphDatabase.(EmbeddedGraphDatabase.java:106) at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:88) at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:207) at org.neo4j.server.database.CommunityDatabase.start(CommunityDatabase.java:54) at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:168) at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:87) at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:50) Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource@1394a8d' failed to stop. Please see attached cause exception. at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:515) at org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:146) at org.neo4j.kernel.impl.transaction.XaDataSourceManager.stop(XaDataSourceManager.java:149) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:511) ... 10 more Caused by: java.lang.RuntimeException: java.nio.channels.ClosedByInterruptException at org.neo4j.kernel.impl.transaction.xaframework.LogBackedXaDataSource.stop(LogBackedXaDataSource.java:72) at org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.stop(NeoStoreXaDataSource.java:301) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:511) ... 13 more Caused by: java.nio.channels.ClosedByInterruptException at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202) at sun.nio.ch.FileChannelImpl.writeInternal(FileChannelImpl.java:743) at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:723) at org.neo4j.kernel.impl.transaction.xaframework.DirectMappedLogBuffer.writeOut(DirectMappedLogBuffer.java:159) at org.neo4j.kernel.impl.transaction.xaframework.DirectMappedLogBuffer.force(DirectMappedLogBuffer.java:172) at org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.releaseCurrentLogFile(XaLogicalLog.java:678) at org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.close(XaLogicalLog.java:703) at org.neo4j.kernel.impl.transaction.xaframework.LogBackedXaDataSource.stop(LogBackedXaDataSource.java:68) ... 15 more org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.extension.KernelExtensions@6d3bea' was successfully initialized, but failed to start. Please see attached cause exception. at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497) at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104) at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:262) at org.neo4j.kernel.EmbeddedGraphDatabase.(EmbeddedGraphDatabase.java:106) at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:88) at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:207) at org.neo4j.server.database.CommunityDatabase.start(CommunityDatabase.java:54) at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:168) at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:87) at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:50) Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.index.lucene.LuceneKernelExtension@183608e' was successfully initialized, but failed to start. Please see attached cause exception. at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497) at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104) at org.neo4j.kernel.extension.KernelExtensions.start(KernelExtensions.java:113) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491) ... 9 more Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.index.impl.lucene.LuceneDataSource@12d3734' was successfully initialized, but failed to start. Please see attached cause exception. at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497) at org.neo4j.kernel.lifecycle.LifeSupport.bringToState(LifeSupport.java:404) at org.neo4j.kernel.lifecycle.LifeSupport.add(LifeSupport.java:318) 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:491) ... 12 more Caused by: java.lang.RuntimeException: java.nio.channels.ClosedByInterruptException at org.neo4j.kernel.impl.index.IndexProviderStore.(IndexProviderStore.java:85) at org.neo4j.index.impl.lucene.LuceneDataSource.newIndexStore(LuceneDataSource.java:299) at org.neo4j.index.impl.lucene.LuceneDataSource.start(LuceneDataSource.java:223) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491) ... 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.index.IndexProviderStore.write(IndexProviderStore.java:169) at org.neo4j.kernel.impl.index.IndexProviderStore.create(IndexProviderStore.java:153) at org.neo4j.kernel.impl.index.IndexProviderStore.(IndexProviderStore.java:61) ... 20 more 2013-12-07 00:02:15.217+0000 DEBUG [API] Failed to start database. 2013-12-07 00:02:15.221+0000 DEBUG [API] org.neo4j.server.ServerStartupException: Startup took longer than 120000ms, and was stopped. You can disable this behavior by setting 'org.neo4j.server.startup_timeout' to 0. Error code: 1 at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:204) ~[neo4j-server-1.9.5.jar:1.9.5] at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:87) [neo4j-server-1.9.5.jar:1.9.5] at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:50) [neo4j-server-1.9.5.jar:1.9.5] 2013-12-07 00:02:15.225+0000 DEBUG [API] Failed to start Neo Server on port [7474]
日志文件的内容:
Dec 06, 2013 4:00:01 PM org.neo4j.server.logging.Logger log WARNING: You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7. Dec 06, 2013 4:00:03 PM org.neo4j.server.logging.Logger log INFO: Setting startup timeout to: 120000ms based on -1 Dec 06, 2013 4:02:15 PM org.neo4j.server.logging.Logger log SEVERE: Failed to start database. Dec 06, 2013 4:02:15 PM org.neo4j.server.logging.Logger log SEVERE: org.neo4j.server.ServerStartupException: Startup took longer than 120000ms, and was stopped. You can disable this behavior by setting 'org.neo4j.server.startup_timeout' to 0. Error code: 1 at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:204) at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:87) at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:50) Dec 06, 2013 4:02:15 PM org.neo4j.server.logging.Logger log SEVERE: Failed to start Neo Server on port [7474]
Java版本信息:
java version "1.7.0_45" OpenJDK Runtime Environment (IcedTea 2.4.3) (ArchLinux build 7.u45_2.4.3-1-i686) OpenJDK Server VM (build 24.45-b08, mixed mode)
有谁知道这里发生了什么?或者我可以在哪里挖掘更多信息?或者我能做些什么呢?
答案 0 :(得分:2)
Neo4j目前仅在Oracle JDK上受支持,您在OpenJDK上运行。
另外,请确保您的文件数设置正确无误,请参阅http://docs.neo4j.org/chunked/stable/configuration-linux-notes.html#_setting_the_number_of_open_files。
检查你是否有足够的权限让Neo4j写入data / graph.db文件夹。
答案 1 :(得分:0)
我恢复到1.8.3版本,第二个版本恢复到最新版本。该版本工作正常,足以达到我的目的。问题未得到诊断,但已得到足够的解决。