【问题标题】:neo4j failed to start on my machineneo4j 无法在我的机器上启动
【发布时间】:2015-05-21 07:07:41
【问题描述】:

我使用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

【问题讨论】:

    标签: neo4j homebrew graph-databases


    【解决方案1】:

    你能不能尝试运行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)
    

    【讨论】:

    • 它显示WARNING: Max 256 open files allowed, minimum of 40 000 recommended. See the Neo4j manual. Neo4j Server already running with pid 78232
    猜你喜欢
    • 2023-03-30
    • 1970-01-01
    • 2014-05-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-06-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多