无法为Neo4j高可用性加载webadmin

时间:2013-11-12 17:16:57

标签: neo4j

我在linux机器上安装了3个neo4j版本1.9.4的实例,分别位于3个不同的目录中:Neo4j01neo4j02neo4j03

我更新了配置文件neo4j.propertiesneo4j-server.properties,如链接(http://docs.neo4j.org/chunked/milestone/ha-setup-tutorial.html)中所述。

当我一个接一个地启动所有neo4j实例时,它们都成功安装,但是经过一段时间后,3个neo4j进程/实例中的2个会自动消失。我通过ps -aef | grep neo4j注意到了它。

当我查看控制台日志时,我发现以下错误:

2013-11-12 16:37:32.512+0000 INFO  [Cluster] Checking store consistency with master
2013-11-12 16:37:33.174+0000 INFO  [Cluster] Store is consistent
2013-11-12 16:37:33.176+0000 INFO  [Cluster] Catching up with master
2013-11-12 16:37:33.276+0000 INFO  [Cluster] Now consistent with master
2013-11-12 16:37:34.442+0000 INFO  [Cluster] ServerId 2, successfully moved to slave for master ha://localhost.localdomain:6363?serverId=1
2013-11-12 16:37:34.689+0000 INFO  [Cluster] Instance 1 is available as backup at backup://localhost.localdomain:6366
2013-11-12 16:37:34.798+0000 INFO  [Cluster] Instance 2 (this server) is available as slave at ha://localhost.localdomain:6364?serverId=2
2013-11-12 16:37:35.036+0000 INFO  [Cluster] Database available for write transactions
2013-11-12 16:37:35.360+0000 INFO  [API] Successfully started database
2013-11-12 16:37:36.079+0000 INFO  [API] Starting HTTP on port :7474 with 10 threads available
2013-11-12 16:37:40.596+0000 INFO  [Cluster] Instance 3 has failed
2013-11-12 16:37:43.654+0000 INFO  [API] Enabling HTTPS on port :7473
2013-11-12 16:38:01.081+0000 INFO  [API] Mounted REST API at: /db/manage/
2013-11-12 16:38:01.158+0000 INFO  [API] Mounted discovery module at [/]
2013-11-12 16:38:02.375+0000 INFO  [API] Loaded server plugin "CypherPlugin"
2013-11-12 16:38:02.449+0000 INFO  [API] Loaded server plugin "GremlinPlugin"
2013-11-12 16:38:02.462+0000 INFO  [API] Mounted REST API at [/db/data/]
2013-11-12 16:38:02.534+0000 INFO  [API] Mounted management API at [/db/manage/]
2013-11-12 16:38:03.568+0000 INFO  [API] Mounted webadmin at [/webadmin]
2013-11-12 16:38:06.189+0000 INFO  [API] Mounting static content at [/webadmin] from [webadmin-html]
2013-11-12 16:38:30.844+0000 DEBUG [API] Failed to start Neo Server on port [7474], reason [org.mortbay.util.MultiException[java.net.BindException: Address already in use, java.net.BindException: Address already in use]]
2013-11-12 16:38:30.880+0000 DEBUG [API] org.neo4j.server.ServerStartupException: Starting Neo4j Server failed: org.mortbay.util.MultiException[java.net.BindException: Address already in use, java.net.BindException: Address already in use]
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:211) ~[neo4j-server-1.9.4.jar:1.9.4]
        at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:86) [neo4j-server-1.9.4.jar:1.9.4]
        at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:49) [neo4j-server-1.9.4.jar:1.9.4]
    Caused by: java.lang.RuntimeException: org.mortbay.util.MultiException[java.net.BindException: Address already in use, java.net.BindException: Address already in use]
        at org.neo4j.server.web.Jetty6WebServer.startJetty(Jetty6WebServer.java:334) ~[neo4j-server-1.9.4.jar:1.9.4]
        at org.neo4j.server.web.Jetty6WebServer.start(Jetty6WebServer.java:154) ~[neo4j-server-1.9.4.jar:1.9.4]
        at org.neo4j.server.AbstractNeoServer.startWebServer(AbstractNeoServer.java:344) ~[neo4j-server-1.9.4.jar:1.9.4]
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:187) ~[neo4j-server-1.9.4.jar:1.9.4]
        ... 2 common frames omitted
    Caused by: org.mortbay.util.MultiException: Multiple exceptions
        at org.mortbay.jetty.Server.doStart(Server.java:188) ~[jetty-6.1.25.jar:6.1.25]
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) ~[jetty-util-6.1.25.jar:6.1.25]
        at org.neo4j.server.web.Jetty6WebServer.startJetty(Jetty6WebServer.java:330) ~[neo4j-server-1.9.4.jar:1.9.4]
        ... 5 common frames omitted
2013-11-12 16:38:30.894+0000 DEBUG [API] Failed to start Neo Server on port [7474]

现在,只有neo4j01进程正在运行,neo4j02neo4j03进程已消失。但即使neo4j01进程已启动并正在运行,我也无法访问http://htname:7474/webadmin/#/info/org.neo4j/High%20Availability/处的webadmin页面。

拜托,有人可以对此有所了解吗?

1 个答案:

答案 0 :(得分:0)

您可能需要查看https://github.com/neo-technology/neo4j-enterprise-local-qa。它包含一个rakefile,可以自动完成3个实例的本地设置。在本地克隆回购,并使用

rake setup_cluster start_cluster

将本地运行的群集联机。关机可以通过

完成
rake stop_cluster

machine[ABC]/conf/中找到配置。