I am experimenting with the master/replica distributed roles in https://github.com/orientechnologies/orientdb/issues/3772 in v2.1-rc6. I am basically trying to follow the setup at https://orientdb.com/docs/last/Tutorial-Setup-a-distributed-database.html with modified settings of default-distributed-db-config.json as described in the github ticket. On the 2nd node, I have only gotten something like
2015-08-04 00:23:50:728 INFO [testnode2] Publishing online status for database testnode2.MovieRatings... [OHazelcastDistributedDatabase]Exception in thread "main" java.lang.IllegalStateException: Current database instance (com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx@6d1310f6) is not active on current thread (Thread[main,5,main]). Current active database is: com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx@3228d990 at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.checkIfActive(ODatabaseDocumentTx.java:3133) at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.close(ODatabaseDocumentTx.java:1128) at com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.installDatabaseFromNetwork(OHazelcastPlugin.java:1057) at com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.installDatabase(OHazelcastPlugin.java:924) at com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.installNewDatabases(OHazelcastPlugin.java:1337) at com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.startup(OHazelcastPlugin.java:184) at com.orientechnologies.orient.server.OServer.registerPlugins(OServer.java:964) at com.orientechnologies.orient.server.OServer.activate(OServer.java:333) at com.orientechnologies.orient.server.OServerMain.main(OServerMain.java:41) On the 2nd node, when I try to connect locally with the console i get Connecting to database [remote:localhost/MovieRatings] with user 'yourUsername'...Error during acquiring of connection to URL 127.0.0.1:2424/MovieRatings com.orientechnologies.common.io.OIOException: Error on connecting to 127.0.0.1:2424/MovieRatings at com.orientechnologies.orient.client.remote.ORemoteConnectionManager.createNetworkConnection(ORemoteConnectionManager.java:244) at com.orientechnologies.orient.client.remote.ORemoteConnectionManager$1.createNewResource(ORemoteConnectionManager.java:80) at com.orientechnologies.orient.client.remote.ORemoteConnectionManager$1.createNewResource(ORemoteConnectionManager.java:77) at com.orientechnologies.common.concur.resource.OResourcePool.getResource(OResourcePool.java:91) at com.orientechnologies.orient.client.remote.ORemoteConnectionManager.acquire(ORemoteConnectionManager.java:101) at com.orientechnologies.orient.client.remote.OStorageRemote.getAvailableNetwork(OStorageRemote.java:2096) at com.orientechnologies.orient.client.remote.OStorageRemote.openRemoteDatabase(OStorageRemote.java:1839) at com.orientechnologies.orient.client.remote.OStorageRemote.open(OStorageRemote.java:224) at com.orientechnologies.orient.client.remote.OStorageRemoteThread.open(OStorageRemoteThread.java:89) at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.open(ODatabaseDocumentTx.java:249) at com.orientechnologies.orient.console.OConsoleDatabaseApp.connect(OConsoleDatabaseApp.java:232) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.orientechnologies.common.console.OConsoleApplication.execute(OConsoleApplication.java:375) at com.orientechnologies.common.console.OConsoleApplication.executeCommands(OConsoleApplication.java:240) at com.orientechnologies.common.console.OConsoleApplication.run(OConsoleApplication.java:129) at com.orientechnologies.orient.graph.console.OGremlinConsole.main(OGremlinConsole.java:64) Caused by: com.orientechnologies.orient.enterprise.channel.binary.ONetworkProtocolException: Cannot read protocol version from remote server /127.0.0.1:2424: java.io.EOFException at com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.<init>(OChannelBinaryAsynchClient.java:98) at com.orientechnologies.orient.client.remote.ORemoteConnectionManager.createNetworkConnection(ORemoteConnectionManager.java:231) ... 18 more Can not open database with url 127.0.0.1:2424/MovieRatings com.orientechnologies.common.io.OIOException: Cannot open a connection to remote server: 127.0.0.1:2424/MovieRatings at com.orientechnologies.orient.client.remote.OStorageRemote.getAvailableNetwork(OStorageRemote.java:2107) at com.orientechnologies.orient.client.remote.OStorageRemote.openRemoteDatabase(OStorageRemote.java:1839) at com.orientechnologies.orient.client.remote.OStorageRemote.open(OStorageRemote.java:224) at com.orientechnologies.orient.client.remote.OStorageRemoteThread.open(OStorageRemoteThread.java:89) at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.open(ODatabaseDocumentTx.java:249) at com.orientechnologies.orient.console.OConsoleDatabaseApp.connect(OConsoleDatabaseApp.java:232) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.orientechnologies.common.console.OConsoleApplication.execute(OConsoleApplication.java:375) at com.orientechnologies.common.console.OConsoleApplication.executeCommands(OConsoleApplication.java:240) at com.orientechnologies.common.console.OConsoleApplication.run(OConsoleApplication.java:129) at com.orientechnologies.orient.graph.console.OGremlinConsole.main(OGremlinConsole.java:64) Caused by: com.orientechnologies.common.io.OIOException: Error on connecting to 127.0.0.1:2424/MovieRatings at com.orientechnologies.orient.client.remote.ORemoteConnectionManager.createNetworkConnection(ORemoteConnectionManager.java:244) at com.orientechnologies.orient.client.remote.ORemoteConnectionManager$1.createNewResource(ORemoteConnectionManager.java:80) at com.orientechnologies.orient.client.remote.ORemoteConnectionManager$1.createNewResource(ORemoteConnectionManager.java:77) at com.orientechnologies.common.concur.resource.OResourcePool.getResource(OResourcePool.java:91) at com.orientechnologies.orient.client.remote.ORemoteConnectionManager.acquire(ORemoteConnectionManager.java:101) at com.orientechnologies.orient.client.remote.OStorageRemote.getAvailableNetwork(OStorageRemote.java:2096) ... 13 more Caused by: com.orientechnologies.orient.enterprise.channel.binary.ONetworkProtocolException: Cannot read protocol version from remote server /127.0.0.1:2424: java.io.EOFException at com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.<init>(OChannelBinaryAsynchClient.java:98) at com.orientechnologies.orient.client.remote.ORemoteConnectionManager.createNetworkConnection(ORemoteConnectionManager.java:231) ... 18 more Error: com.orientechnologies.orient.core.exception.OStorageException: Cannot create a connection to remote server address(es): [127.0.0.1:2424] Any tips on getting this to work? -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
