how to connect mater-slave from different VMs

47 views
Skip to first unread message

shahar nakash

unread,
Jul 5, 2016, 7:09:37 PM7/5/16
to Neo4j
I have 2 VM one should be the master and the second is the slave
but its seems that I always have binding exception
note: when I'm creating local cluster of 3 instances its works (3 different instances on the same machine )

config file for local 3 instances 
dbms.backup.enabled=true
dbms.backup.address=0.0.0.0:6362
dbms.connector.bolt.type=BOLT
dbms.connector.bolt.enabled=true
dbms.connector.bolt.tls_level=OPTIONAL
dbms.connector.bolt.address=0.0.0.0:7687
dbms.connector.http.type=HTTP
dbms.connector.http.enabled=true
dbms.connector.http.address=0.0.0.0:7474
dbms.connector.https.type=HTTP
dbms.connector.https.enabled=true
dbms.connector.https.encryption=TLS
dbms.connector.https.address=localhost:7473
dbms.mode=HA
ha.server_id=1
ha.host.coordination=127.0.0.1:5001
ha.host.data=127.0.0.1:6001 

I understand that in ha.initial_hosts I should put that other server ip but it seem not to work
what should i do?

Michael Hunger

unread,
Jul 6, 2016, 5:12:31 PM7/6/16
to ne...@googlegroups.com
you need different entries for each of the instances for each of these settings (different port or different server id)

dbms.backup.address=0.0.0.0:6362
dbms.connector.bolt.address=0.0.0.0:7687
dbms.connector.http.address=0.0.0.0:7474
dbms.connector.https.address=localhost:7473
ha.server_id=1
ha.host.coordination=127.0.0.1:5001
ha.host.data=127.0.0.1:6001 

--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

shahar nakash

unread,
Jul 7, 2016, 9:09:07 AM7/7/16
to Neo4j

this is the error that i get 
F:\neo4j-enterprise-3.0.3\bin>neo4j console
2016-07-07 12:57:06.739+0000 INFO  Starting...
2016-07-07 13:00:33.050+0000 INFO  Write transactions to database disabled
2016-07-07 13:00:34.254+0000 INFO  Bolt enabled on 0.0.0.0:7687.
2016-07-07 13:00:34.274+0000 INFO  Initiating metrics...
2016-07-07 13:00:36.968+0000 INFO  Attempting to join cluster of [23.102.11.44:5001, 13.69.147.146:5001]
2016-07-07 13:01:07.328+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@295c9df5' was successfully initialized, but failed to start. Please see attached cause exception. Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@295c9df5' was successfully initialized, but failed to start. Please see attached cause exception.
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@295c9df5' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:68)
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:217)
        at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:87)
        at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:66)
        at org.neo4j.server.enterprise.EnterpriseEntryPoint.main(EnterpriseEntryPoint.java:32)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@295c9df5' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:444)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:189)
        ... 3 more
Caused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.ha.factory.HighlyAvailableFacadeFactory, F:\neodb\databases\graph.db
        at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:144)
        at org.neo4j.kernel.ha.factory.HighlyAvailableFacadeFactory.newFacade(HighlyAvailableFacadeFactory.java:42)
        at org.neo4j.kernel.ha.HighlyAvailableGraphDatabase.<init>(HighlyAvailableGraphDatabase.java:41)
        at org.neo4j.server.enterprise.EnterpriseNeoServer.lambda$static$0(EnterpriseNeoServer.java:80)
        at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:89)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434)
        ... 5 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.cluster.client.ClusterJoin@5d7ef7ec' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:444)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
        at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:140)
        ... 10 more
Caused by: java.util.concurrent.TimeoutException
        at org.neo4j.cluster.statemachine.StateMachineProxyFactory$ResponseFuture.get(StateMachineProxyFactory.java:300)
        at org.neo4j.cluster.client.ClusterJoin.joinByConfig(ClusterJoin.java:143)
        at org.neo4j.cluster.client.ClusterJoin.start(ClusterJoin.java:82)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434)
        ... 14 more

Reply all
Reply to author
Forward
0 new messages