Replication is failing

118 views
Skip to first unread message

Pradeep B K

unread,
Aug 12, 2015, 9:46:38 PM8/12/15
to OrientDB
Hi Everyone,

I am trying to setup a distributed database by following steps mentioned in below link.



I created one new database in node 1 but it is not getting replicated in node 2. I can see only GratefulDeadConcerts db is getting replicated. Did someone came across this before?


Help will be greatly appreciated.

Regards,
Pradeep

SavioL

unread,
Aug 13, 2015, 5:17:59 AM8/13/15
to OrientDB
Hi,
 have you taken these steps?

1) modifying the file Hazelcast as follows on all PCs on the network you want to use as nodes:
<network>
    <port auto-increment="true">2434</port>
    <join>
      <multicast enabled="FALSE">
        <multicast-group>235.1.1.1</multicast-group>
        <multicast-port>2434</multicast-port>
      </multicast>
      <tcp-ip enabled="true">
        <member>IP_PC_1:2434</member>
        <member>IP_PC_2:2434</member>
      </tcp-ip>
     </join>
  </network>


2) Run the first node by entering the name of the node

3) run the second node by entering the name of the node

at this point the two nodes must be pointed out and synchronize.
from any node by going to study page(localhost:2480) you should see the same db on any node.

regards,
Savio L.

Pradeep B K

unread,
Aug 13, 2015, 12:45:15 PM8/13/15
to OrientDB
Hi Saviol,

Thank you for your reply. I have followed exactly the same steps.After both the nodes get discovered, If i try to connect database through console or java client wither i get 

2015-08-12 22:50:19:615 WARNI Distributed server is not yet ONLINE (status=STARTING), reject incoming connection from /127.0.0.1:42581. If you are trying to shutdown the server, please kill the process [OServerNetworkListener]

or


Caused by: com.orientechnologies.common.io.OIOException: Error on connecting to 127.0.0.1:2424/mydb

at com.orientechnologies.orient.client.remote.ORemoteConnectionManager.createNetworkConnection(ORemoteConnectionManager.java:246) [orientdb-client-2.1.0.jar:2.1.0]

at com.orientechnologies.orient.client.remote.ORemoteConnectionManager$1.createNewResource(ORemoteConnectionManager.java:80) [orientdb-client-2.1.0.jar:2.1.0]

at com.orientechnologies.orient.client.remote.ORemoteConnectionManager$1.createNewResource(ORemoteConnectionManager.java:77) [orientdb-client-2.1.0.jar:2.1.0]

at com.orientechnologies.common.concur.resource.OResourcePool.getResource(OResourcePool.java:94) [orientdb-core-2.1.0.jar:2.1.0]

at com.orientechnologies.orient.client.remote.ORemoteConnectionManager.acquire(ORemoteConnectionManager.java:101) [orientdb-client-2.1.0.jar:2.1.0]

at com.orientechnologies.orient.client.remote.OStorageRemote.getAvailableNetwork(OStorageRemote.java:2103) [orientdb-client-2.1.0.jar:2.1.0]

... 10 more

Caused by: com.orientechnologies.orient.enterprise.channel.binary.ONetworkProtocolException: Cannot read protocol version from remote server /127.0.0.1:2424: java.net.SocketTimeoutException: Read timed out

at com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.<init>(OChannelBinaryAsynchClient.java:98) [orientdb-enterprise-2.1.0.jar:2.1.0]

at com.orientechnologies.orient.client.remote.ORemoteConnectionManager.createNetworkConnection(ORemoteConnectionManager.java:233) [orientdb-client-2.1.0.jar:2.1.0]

... 15 more



Can you please help me why this is happening. 

Reply all
Reply to author
Forward
0 new messages