2015-07-20 97 views
3

我有一个运行Ubuntu 14.04并安装了neo4j-enterprise 2.2.3的AWS实例(位于us-west可用区的t1.micro)。Neo4j无法在AWS实例中启动

我可以在没有任何问题的情况下使用空数据库启动服务,但是当我尝试使用少量(〜200mb)数据的数据库启动它时(通过修改conf/neo4j-server中的数据存储目录。 ,我得到的属性)

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]) 

(我写了产生这个数据DB使用BatchInserter一个小程序,并在此内容日志似乎都有关)

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

两个其他注意事项 - 我已经设置最大打开文件到40K(尽管这不应该是一个问题给出的分贝大小限制),并在约2秒

+0

可以发布'$ graph.db.directory/messages.log'文件的内容 –

+0

@ChristopheWillemsen - 完成后,请参阅编辑 – drewmoore

+1

也许是权限问题? graph.db目录中的所有文件是否可由您启动的用户读写? –

回答

1

纯粹为了发生故障纪念这一问题作为解决的缘故 - @MichaelHunger钉在他的评论:这是一个烫发的问题 - 我曾误chown'ed /.../neo4j/data/适当但不/.../neo4j/data/theSpecificDbDirectory/

我会说,因为我喜欢的Neo4j之多(其中是很多),它比我希望的更频繁,我希望它的日志消息更有帮助,这是其中的一种情况...