[SolrCloud] No config data found after SolrCloud server restart

2018-02-05 Thread A.Guptar
Hello,

We are having issues with SolrCloud 5.4.1 instances after the hosting
servers have been restarted.

Scenario:
We have 3 servers, on which SolrCloud 5.4.1 was configured and setup to be
used with an external ZooKeeper ensemble.
Once configured and setup, it works fine until there is a full server
restart.
The error "No config data found at path xxx" is obtained.
As a workaround, we stopped the ZooKeeper and SolrCloud services and deleted
all the relevant data before re-creating everything from scratch.

I use the following commands for creating the config and collections in ZK
and SolrCloud.

function UploadZooKeeperConfig {
...
Start-Process -FilePath ${zkCliPath}\${zkcli} -ArgumentList "-zkhost
${zkHost}:${zkPort} -cmd upconfig -confdir ${configPath} -confname
$confName"
...
}

UploadZooKeeperConfig -configPath "D:\basic_configs\conf" -confName
"TestCollectionConfig" -zkHost "x.x.x.x"

$expression =
"http://localhost:8983/solr/admin/collections?action=CREATE&name=TestCollection&numShards=1&replicationFactor=3&collection.configName=TestCollectionConfig";

Invoke-WebRequest -Uri $expression

The following command is used to start SolrCloud.

bin\solr start -cloud -z "xxx:2181,yyy:2181,zzz:2181" -m 16g -f

Below is the zoo.cfg used within SolrCloud.

# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
dataDir=D:\zookeeper\data\1
# NOTE: Solr defaults the dataDir to /zoo_data
# the port at which the clients will connect
clientPort=2181
# NOTE: Solr sets this based on zkRun / zkHost params
server.1=xxx:2888:3888
server.2=yyy:2888:3888
server.3=zzz:2888:3888

Please let me know if there is anything that is required to prevent files to
be deleted upon server restart.

Thanks.



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Re: [SolrCloud] No config data found after SolrCloud server restart

2018-02-05 Thread A.Guptar
Hello,

I have removed the -cloud from the startup script and restarted the server.
Issue still persists.

Attached is the solr.log file.

solr.zip   

Thanks for the help.



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Re: [SolrCloud] No config data found after SolrCloud server restart

2018-02-08 Thread A.Guptar
Hello Shawn,

I managed to finally find the issue.

The zoo.cfg in Zookeeper and Solr was different and there was an autopurge
option enabled in Zookeeper.

After removing the autopurge option and aligning the zoo.cfg in Zookeeper
and Solr, the configs and aliases no longer went missing after server
restart.

Thanks for your help :).

A.Guptar



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html