繁体   English   中英

Neo4j无法在AWS实例中启动

[英]Neo4j failing to start in AWS instance

我有一个运行Ubuntu 14.04的AWS实例(在us-west可用区域中为t1.micro),安装了neo4j-enterprise 2.2.3。

我可以使用空数据库启动服务而没有任何问题,但是当我尝试使用少量(~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在这个数据库中生成数据,并且这个日志的内容似乎都与创建过程有关。没有任何事情与启动失败有关。)

尝试隔离问题,我将数据库下载到我的本地机器(运行Fedora和相同的(2.2.3)neo4j版本),它开始没有问题。

另外两个注意事项 - 我已经将max-open文件设置为40k(尽管在db的大小有限的情况下这应该不是问题),并且在~2秒内发生故障

纯粹是为了将这个问题标记为已解决 - @MichaelHunger在他的评论中将其钉在了一起:这是一个烫发问题 - 我错误地chown'ed /.../neo4j/data/恰当而不是/.../neo4j/data/theSpecificDbDirectory/

我会说,尽管我喜欢neo4j(这很多),它比我想要的更频繁,我希望它的日志消息更有帮助,这就是其中一个案例......

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM