HA configuration problem

67 views
Skip to first unread message

chiaradiamarcelo

unread,
Mar 2, 2012, 10:26:18 AM3/2/12
to Neo4j
Hi everyone,

im trying to set up a cluster with 3 virtual machines. I have a
Coordinator running in each machine. I have an Embedded Neo4j graph in
one of them, and a Neo4j Server in the other two.

I start the coordinators, then the embedded graph, and everything
works fine.
But when I start any of the other Neo4j Server, it throws this
exception:


3/2/12 7:09:08 AM org.neo4j.server.NeoServerWithEmbeddedWebServer
INFO: Starting
Neo Server on port [7474] with [10] threads available
3/2/12 7:09:08 AM org.neo4j.server.database.Database INFO: Using
database at C:\
neo4j-db
3/2/12 7:09:16 AM org.neo4j.server.NeoServerBootstrapper SEVERE:
org.neo4j.com.IllegalProtocolVersionException: Unexpected internal
protocol vers
ion 1, expected 2. Header:[00000100][00000001]
at
org.neo4j.com.DechunkingChannelBuffer.assertSameProtocolVersion(Dechu
nkingChannelBuffer.java:136)
at
org.neo4j.com.DechunkingChannelBuffer.readNextChunk(DechunkingChannel
Buffer.java:104)
at
org.neo4j.com.DechunkingChannelBuffer.<init>(DechunkingChannelBuffer.
java:59)
at org.neo4j.com.Client.sendRequest(Client.java:210)
at
org.neo4j.kernel.ha.MasterClient.getMasterIdForCommittedTx(MasterClie
nt.java:249)
at
org.neo4j.kernel.HAGraphDb.ensureDataConsistencyWithMaster(HAGraphDb.
java:818)
at org.neo4j.kernel.HAGraphDb.reevaluateMyself(HAGraphDb.java:
682)
at org.neo4j.kernel.HAGraphDb.newMaster(HAGraphDb.java:1092)
at org.neo4j.kernel.HAGraphDb.startUp(HAGraphDb.java:300)
at org.neo4j.kernel.HAGraphDb.<init>(HAGraphDb.java:167)
at org.neo4j.kernel.HAGraphDb.<init>(HAGraphDb.java:131)
at
org.neo4j.kernel.HighlyAvailableGraphDatabase.<init>(HighlyAvailableG
raphDatabase.java:55)
at org.neo4j.server.enterprise.EnterpriseNeoServerBootstrapper
$DatabaseM
ode$2.createDatabase(EnterpriseNeoServerBootstrapper.java:55)
at
org.neo4j.server.database.Database.createDatabase(Database.java:81)
at org.neo4j.server.database.Database.<init>(Database.java:64)
at
org.neo4j.server.NeoServerWithEmbeddedWebServer.startDatabase(NeoServ
erWithEmbeddedWebServer.java:181)
at
org.neo4j.server.NeoServerWithEmbeddedWebServer.start(NeoServerWithEm
beddedWebServer.java:93)
at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:87)
at
org.neo4j.server.advanced.AdvancedNeoServerBootstrapper.start(Advance
dNeoServerBootstrapper.java:38)
at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:52)
3/2/12 7:09:16 AM org.neo4j.server.NeoServerBootstrapper SEVERE:
Failed to start
Neo Server on port [7474]

I cant find the problem. I dont know what protocol it is talking
about. Can you give me a hand?

By the way, I'm using neo4j 1.6, for embedded and Neo4 Servers too.

Thanks!

chiaradiamarcelo

unread,
Mar 2, 2012, 11:54:13 AM3/2/12
to Neo4j
Any help would be appreciated.

Jim Webber

unread,
Mar 2, 2012, 1:13:41 PM3/2/12
to ne...@googlegroups.com
Are you sure you're using 1.6 everywhere?

I believe this error is thrown because the HA protocol is inconsistent with expectations of the instance that throws it.

Jim

On 2 Mar 2012, at 16:54, chiaradiamarcelo wrote:

> Any help would be appreciated.

chiaradiamarcelo

unread,
Mar 2, 2012, 1:31:38 PM3/2/12
to Neo4j
Well, In my pom.xml on my java project i have these dependencies:

<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-ha</artifactId>
<version>1.6</version>
</dependency>

<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-management</artifactId>
<version>1.6</version>
</dependency>

and I downloaded the Neo4j Enterprise edition. Version 1.6.1 to run
the Coordinators and the NEo4j Servers.

The thing is that i can make a cluster with only Neo4j Servers, or
with only Embedded graph, but not mixed. I need to do it mixed so I
can use the webadmin console.

chiaradiamarcelo

unread,
Mar 2, 2012, 2:57:35 PM3/2/12
to Neo4j
Hi, i resolve it. My dependencies were worng, i just changed them to
1.6.1

Thanks for the help!
Reply all
Reply to author
Forward
0 new messages