Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't upload configset due to authentication being disabled by default #21

Open
gene-miller opened this issue Jun 21, 2024 · 1 comment

Comments

@gene-miller
Copy link

Following the documentation for setting up solr with zookeeper produced the following error when attempting to upload a config set:

 Configset upload failed with error code 400: Solr HTTP error: OK (400) { "responseHeader":{ "status":400, "QTime":66}, "error":{ "metadata":[ "error-class","org.apache.solr.common.SolrException", "root-error-class","org.apache.solr.common.SolrException"], "msg":"Trying to make an unstrusted ConfigSet update on a trusted configSet", "code":400}} 

This is caused by the fact that authentication is disabled by default.

it was necessary to manually enable authentication from inside the solr container using:

solr auth enable -type basicAuth -prompt true -z zookeeper:2181 -blockUnknown true
@gene-miller gene-miller changed the title Can't upload config set due to authentication being disabled by default Can't upload configset due to authentication being disabled by default Jun 21, 2024
@csandanov
Copy link
Member

init action should be run once zookeeper and solr started. You can run action from inside the container as make init -f /usr/local/bin/actions.mk. ZK_HOST env var must be set

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants