Hi there, I'm struggling with setting up a test implementation of SolrCloud using Vagrant.
I've got two vagrant boxes on a private network: * One Ubuntu machine running Zookeeper * One Ubuntu machine running Solr My zookeeper config is as follows: tickTime=4000 dataDir=/home/vagrant/zookeeper-data clientPort=2181 server.1=localhost:2888:3888 Zookeeper is running as expected. I’m starting it in foreground mode with the command below: bin/zkServer.sh start-foreground I’m then starting Solr in cloud mode: bin/solr start -c -z 172.28.128.3:2181 At this point, all seems well. Nothing bad shows up in the Solr logs, and no alarming messages coming through in the console for Zookeeper. I then try and create a collection with the command below: bin/solr create -c mycollection -d data_driven_schema_configs It’s then that I start seeing lots of errors in the Solr logs, and lots of repetitive messages appearing in Zookeeper: These two Solr errors over and over: java.io.IOException: Xid out of order. Got Xid 1299 with err 0 expected Xid 1298 for a packet with details: clientPath:null serverPath:null finished:false header:: 1298,14 replyHeader:: 0,0,-4 request:: org.apache.zookeeper.MultiTransactionRecord@95acc4f3 response:: org.apache.zookeeper.MultiResponse@0 There was a problem trying to register as the leader:org.apache.solr.common.SolrException: Could not register as the leader because creating the ephemeral registration node in ZooKeeper failed And this from Zookeeper: [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@251] - Accepted socket connection from /172.28.128.4:54548 2016-08-21 21:33:39,137 - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@770] - Client attempting to renew session 0x156aefeba2d0004 at /172.28.128.4:54548 2016-08-21 21:33:39,145 - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1580] - Established session 0x156aefeba2d0004 with negotiated timeout 15000 for client /172.28.128.4:54548 2016-08-21 21:33:39,147 - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@593] - Dropping packet at server of type 14 2016-08-21 21:33:39,154 - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@634] - EndOfStreamException: Unable to read additional data from client sessionid 0x156aefeba2d0004, likely client has closed socket 2016-08-21 21:33:39,155 - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1435] - Closed socket connection for client /172.28.128.4:54548 which had sessionid 0x156aefeba2d0004 2016-08-21 21:33:40,698 - INFO Finally, the collection creation fails with the following message: ERROR: Failed to create collection 'mycollection' due to: create the collection time out:180s I can't find any useful references to these errors in SO or in the docs. Can anyone help me diagnose the problem? Many thanks, Chris Chris Rogers Digital Projects Manager Bodleian Digital Library Systems and Services chris.rog...@bodleian.ox.ac.uk<mailto://chris.rog...@bodleian.ox.ac.uk>