You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Satya Marivada <sa...@gmail.com> on 2018/07/10 13:09:21 UTC

error on health check from command line

Hi,

How do I supply the basic auth credentials for the below healthcheck that
has to be done from command line?

$ ./bin/solr healthcheck -c poi -z host1:2181,host2:2181,host3:2181

ERROR: Solr requires authentication for https://host1:15101/solr/shard1/.
Please supply valid credentials. HTTP code=401

Thanks,
Satya

Re: error on health check from command line

Posted by Satya Marivada <sa...@gmail.com>.
Additional information: Using solr-6.3.0

Also tried, no luck:

./bin/solr healthcheck -c poi -z host1:2181,host2:2181,host3:2181
SOLR_AUTH_TYPE=“basic”
SOLR_AUTHENTICATION_OPTS="-Dbasicauth=username:password"

On Tue, Jul 10, 2018 at 9:09 AM Satya Marivada <sa...@gmail.com>
wrote:

> Hi,
>
> How do I supply the basic auth credentials for the below healthcheck that
> has to be done from command line?
>
> $ ./bin/solr healthcheck -c poi -z host1:2181,host2:2181,host3:2181
>
> ERROR: Solr requires authentication for https://host1:15101/solr/shard1/.
> Please supply valid credentials. HTTP code=401
>
> Thanks,
> Satya
>