【问题标题】:Neo4j server not starting in 120 secondsNeo4j 服务器未在 120 秒内启动
【发布时间】:2014-06-11 14:21:09
【问题描述】:

我正在尝试在 AWS 上运行 Neo4j 服务器,但出现以下错误:

* Restarting Neo4j Graph Database neo4j
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
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
Starting Neo4j Server...WARNING: not changing user
process [26079]... waiting for server to be ready.......... Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.

谷歌搜索发现建议将最大打开文件数增加到40000个;我试过了,但不幸的是结果是一样的。

规格:

  • 操作系统版本:Ubuntu 14.04 LTS
  • Neo4j:2.0.3 稳定版

另外,我在停止服务器后通过批量导入器从两个 CSV 文件批量导入,但是当我在导入后重新启动服务器时,它没有启动并产生上述错误。

【问题讨论】:

    标签: import neo4j runtime-error graph-databases


    【解决方案1】:

    要增加允许打开的文件数,请查看http://docs.neo4j.org/chunked/stable/linux-performance-guide.html#_setting_the_number_of_open_files

    如果仍未启动,请检查data/log/console.log 或使用neo4j start-no-wait

    【讨论】:

      【解决方案2】:

      感谢@Stefan Armbruster 的建议

      我刚刚想通了。

      在安装时,neo4j 会询问您“运行 neo4j 的用户”,我让它默认为“neo4j”。

      但实际用户必须定义​​为root。

      【讨论】:

      • 认真的吗?除非需要特权端口,否则不应以 root 身份运行服务。
      • 它需要特权访问系统,因此我不得不这样做
      【解决方案3】:

      如果上述方法均无帮助,请尝试此操作,以防您从旧版本升级以及迁移数据的内容。

      1.创建位于 data/ 文件夹中的默认数据库文件夹的副本。

      2.将旧数据库中的所有文件复制到此文件夹中覆盖或替换原始内容。

      1. 确保删除空格或仅重命名而不使用空格。
      2. 编辑 neo4j-server.properties 并使用 db 文件设置新创建的文件夹。 (org.neo4j.server.database.location = 数据/文件夹名称)
      3. 编辑 neo4j.properties。将 (#allow_store_upgrade=true) 取消注释为 allow_store_upgrade=true
      4. 重新启动服务器。

      【讨论】:

        猜你喜欢
        • 2013-03-08
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-03-02
        • 1970-01-01
        • 1970-01-01
        • 2015-01-18
        相关资源
        最近更新 更多