Failure while starting the neo4j server in HA mdoe

53 views
Skip to first unread message

abhijith K

unread,
Oct 11, 2012, 3:13:51 AM10/11/12
to ne...@googlegroups.com
Hi All,
         Im getting below error:

neo4j-enterprise-1.8$ ./bin/neo4j start
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
Starting Neo4j Server...WARNING: not changing user
process [7666]... waiting for server to be ready................................................................. Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.

Also please find the log attached.

Error is in
2012-10-11 12:36:01,868 ERROR [neo4j]: Problems copying store from master
org.neo4j.com.ComException: Client could not connect to localhost/127.0.0.1:6001

Actually the port number 6001 is wrong.
I've set: 2012-10-11 12:36:01,868 ERROR [neo4j]: Problems copying store from master
neo4j.properties:52:ha.server = localhost:6002

Please help.

Regards,
Abhijith K

messages.log

David Montag

unread,
Oct 11, 2012, 3:21:27 AM10/11/12
to ne...@googlegroups.com
Hi Abhijith,

Can you please share conf/neo4j.properties, conf/neo4j-server.properties, conf/coord.cfg, and data/coordinator/myid from each of the instances?

Thanks,
David



--
 
 



--
Neo Technology, www.neotechnology.com
Skype: ddmontag

As a friend of Neo, register for GraphConnect and get a 20% discount. Code: GCFON

abhijith K

unread,
Oct 11, 2012, 4:26:02 AM10/11/12
to ne...@googlegroups.com

abhijith K

unread,
Oct 11, 2012, 4:29:42 AM10/11/12
to ne...@googlegroups.com
Hi Dave,
            Please find them attached.
myid cant be attached. It contains 2 as a character.

Regards,
Abhijith K
coord-wrapper.conf
coord.cfg
neo4j-server.properties
neo4j-wrapper.conf
neo4j.properties

David Montag

unread,
Oct 11, 2012, 1:35:45 PM10/11/12
to ne...@googlegroups.com
Hi Abhijith,

Thanks for providing the files. It looks like you've followed the tutorial in our documentation, which is tailored for a single-machine setup. However, when running HA across multiple servers (as one usually does), you don't need to change any port numbers. So I suggest to you to make the following changes.

=> Make sure coord.cfg is the same file on all servers, and make sure it has these parts:

server.1=10.232.16.147:2888:3888    
server.2=10.232.16.148:2888:3888
server.3=10.232.16.145:2888:3888
clientPort=2182

=> In neo4j.properties, set the following properties, and replace X with 101,102,103 for each server:


Also, comment out the setting for ha.server. You usually don't need to set that property.

=> Make sure data/coordinator/myid has values 1,2,3 for each server.

Please make those changes and let me know how it works out. Remember that you need to start all ZooKeeper instances before starting the Neo4j instances.

Best,
David

abhijith K

unread,
Oct 12, 2012, 12:53:34 AM10/12/12
to ne...@googlegroups.com
Thanks a lot Dave. Its working fine now.

David Montag

unread,
Oct 12, 2012, 2:11:04 AM10/12/12
to ne...@googlegroups.com
Happy to help :)

David
Reply all
Reply to author
Forward
0 new messages