neo4j无法在我的机器上启动

时间:2015-05-21 07:07:42

标签: neo4j homebrew graph-databases

我使用brew install neo4j,当我尝试通过neo4j start启动终端时,它将继续加载,如下所示。

$ neo4j start 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 -XX:-OmitStackTraceInFastThrow -Dneo4j.ext.udc.source=homebrew
-Djava.awt.headless=true Starting Neo4j Server...WARNING: not changing user process [9320]... waiting for server to be ready        ...........................................................................   ...........................................................................    ...........................................................................    ......................................................................

Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.

我已经从neo4j检查了一些日志......但它没有显示任何错误

来自/usr/local/Cellar/neo4j/2.1.6/libexec/data/graph.db/messages.log

的日志信息
2015-05-21 06:46:44.248+0000 INFO  [o.n.k.i.n.s.StoreFactory]: [/usr/local/Cellar/neo4j/2.1.6/libexec/data/graph.db/neostore.schemastore.db] brickCount=0 brickSize=0b mappedMem=0b (storeSize=64b)
2015-05-21 06:46:44.248+0000 INFO  [o.n.k.i.n.s.StoreFactory]: [/usr/local/Cellar/neo4j/2.1.6/libexec/data/graph.db/neostore.relationshipgroupstore.db] brickCount=0 brickSize=0b mappedMem=0b (storeSize=25b)
2015-05-21 06:46:44.249+0000 INFO  [o.n.k.i.n.s.StoreFactory]: [/usr/local/Cellar/neo4j/2.1.6/libexec/data/graph.db/neostore] brickCount=0 brickSize=0b mappedMem=0b (storeSize=81b)
2015-05-21 06:46:44.310+0000 INFO  [o.n.k.a.i.i.LuceneLabelScanStore]: No lucene scan store index found, this might just be first use. Preparing to rebuild.
2015-05-21 06:46:44.333+0000 INFO  [o.n.k.a.i.i.LuceneLabelScanStore]: No lucene scan store index found, this might just be first use. Preparing to rebuild.
2015-05-21 06:46:44.414+0000 INFO  [o.n.k.i.t.x.XaLogicalLog]: Opened logical log [/usr/local/Cellar/neo4j/2.1.6/libexec/data/graph.db/nioneo_logical.log.1] version=0, lastTxId=1 (clean)
2015-05-21 06:46:44.417+0000 INFO  [o.n.k.a.i.i.LuceneLabelScanStore]: Rebuilding lucene scan store, this may take a while
2015-05-21 06:46:44.418+0000 INFO  [o.n.k.a.i.i.LuceneLabelScanStore]: Lucene scan store rebuilt (roughly -1 nodes)
2015-05-21 06:46:44.421+0000 INFO  [o.n.k.i.t.TxManager]: TM new log: tm_tx_log.1
2015-05-21 06:46:44.425+0000 INFO  [o.n.k.i.t.KernelHealth]: Kernel health set to OK

来自/usr/local/Cellar/neo4j/2.1.6/libexec/data/log/console.log

的消息
2015-05-21 06:46:43.878+0000 INFO  [API] Setting startup timeout to: 120000ms based on -1
2015-05-21 06:57:03.825+0000 INFO  [API] Successfully shutdown Neo4j Server.

我尝试使用brew重新安装neo4j,但它没有帮助。 我正在使用mac机器。 java版/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/bin/java

1 个答案:

答案 0 :(得分:0)

您可以尝试运行bin/neo4j console让它完成启动。

可能是创建/更新索引或内部结构的时间超过120秒超时?

2015-05-21 06:46:44.417+0000 INFO  [o.n.k.a.i.i.LuceneLabelScanStore]: Rebuilding lucene scan store, this may take a while
2015-05-21 06:46:44.418+0000 INFO  [o.n.k.a.i.i.LuceneLabelScanStore]: Lucene scan store rebuilt (roughly -1 nodes)