【问题标题】:Neo4j failing to start in AWS instanceNeo4j 无法在 AWS 实例中启动
【发布时间】:2015-07-20 20:39:41
【问题描述】:

我有一个运行 Ubuntu 14.04 并安装了 neo4j-enterprise 2.2.3 的 AWS 实例(美国西部可用区中的 t1.micro)。

我可以毫无问题地使用空数据库启动服务,但是当我尝试使用具有少量 (~200mb) 数据的数据库启动它时(通过修改 conf/neo4j-server.properties 中的数据存储目录),我明白了

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

令人沮丧的是,当我查看 /data/log/console.log 时,我得到的只是:

2015-07-20 20:33:43.769+0000 INFO  [API] Setting startup timeout to: 120000ms based on 120000
2015-07-20 20:33:44.527+0000 INFO  [API] Successfully shutdown Neo4j Server.

在 neo4j.0.0.log 中:

Jul 20, 2015 5:26:05 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.19 02/11/2015 03:25 AM'

...也就是说,没有任何帮助。

在 /dbDirectory/messages.log 中,我有

2015-07-20 17:40:37.926+0000 INFO  [org.neo4j]: Thread[main,5,main] Starting BatchInserter(EmbeddedBatchInserter[/var/lib/neo4j/data/civ_sm.db])
2015-07-20 17:40:37.946+0000 INFO  [org.neo4j]: Creating new db @ /var/lib/neo4j/data/my.db/neostore
2015-07-20 17:40:38.251+0000 INFO  [org.neo4j]: No lucene scan store index found, this might just be first use. Preparing to rebuild.
2015-07-20 17:40:38.278+0000 INFO  [org.neo4j]: No lucene scan store index found, this might just be first use. Preparing to rebuild.
2015-07-20 17:40:38.403+0000 INFO  [org.neo4j]: Rebuilding lucene scan store, this may take a while
2015-07-20 17:40:38.404+0000 INFO  [org.neo4j]: Lucene scan store rebuilt (roughly -1 nodes)
2015-07-20 17:41:04.646+0000 INFO  [org.neo4j]: Missing counts store, rebuilding it.
2015-07-20 17:41:07.377+0000 INFO  [org.neo4j]: About to rotate counts store at transaction 1 to [/var/lib/neo4j/data/my.db/neostore.counts.db.b], from [/var/lib/neo4j/data/my.db/neostore.counts.db.a].
2015-07-20 17:41:07.382+0000 INFO  [org.neo4j]: Successfully rotated counts store at transaction 1 to [/var/lib/neo4j/data/my.db/neostore.counts.db.b], from [/var/lib/neo4j/data/my.db/neostore.counts.db.a].
2015-07-20 17:41:07.606+0000 INFO  [org.neo4j]: Thread[main,5,main] Clean shutdown on BatchInserter(EmbeddedBatchInserter[/var/lib/neo4j/data/my.db])

(我写了一个小程序,使用BatchInserter生成了这个DB中的数据,这个日志的内容似乎都与创建过程有关,与启动失败无关。)

为了解决这个问题,我将数据库下载到我的本地机器上(运行 Fedora 和相同的 (2.2.3) neo4j 版本),它启动时没有问题。

另外两个注意事项 - 我已将最大打开文件设置为 40k(尽管鉴于 db 的大小有限,这应该不是问题),并且失败发生在 ~2 秒内

【问题讨论】:

  • 你能把$graph.db.directory/messages.log文件的内容贴出来
  • @ChristopheWillemsen - 完成,请参阅编辑
  • 可能是权限问题? graph.db 目录中的所有文件都可以被你启动它的用户读写吗?
  • @MichaelHunger - 是的。

标签: amazon-web-services neo4j


【解决方案1】:

纯粹是为了将此问题标记为已解决 - @MichaelHunger 在他的评论中指出:这是一个烫发问题 - 我错误地将 /.../neo4j/data/ 正确地改成了 /.../neo4j/data/theSpecificDbDirectory/

我会说,尽管我很喜欢 neo4j(很多),但它比我希望的更频繁,我希望它的日志消息更有帮助,这就是其中一种情况......

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-23
    • 2011-10-29
    • 2018-08-30
    • 1970-01-01
    • 2020-04-23
    • 1970-01-01
    • 1970-01-01
    • 2013-06-26
    相关资源
    最近更新 更多