Can't Connect to SearchStax
- jayParticipant4 years ago #21966
I’m trying to connect to SearchStax and I keep getting “We could not join your Solr server. Your Solr path could be malformed, or your Solr server down (Solr code 404)”.
WPSOLR index name: Test
Server Protocol: https
Server Host: xxxxxxxxx-xxxxxxxx-us-east-2-aws.searchstax.com/solr/
Server Port: 8983
Solr index path: /Test or /solr/TestTesting with WPSolr 20.1
jayParticipant4 years ago #21968That produces:
We could not join your Solr server. Your Solr path could be malformed, or your Solr server down (Solr code 400){ “responseHeader”:{ “status”:400, “QTime”:7}, “error”:{ “metadata”:[ “error-class”,”org.apache.solr.common.SolrException”, “root-error-class”,”org.apache.solr.common.SolrException”], “msg”:”Error CREATEing SolrCore ‘Test’: non legacy mode coreNodeName missing {configSet=Test}”, “code”:400}}
jayParticipant4 years ago #21971For a Test collection:
{ “responseHeader”:{ “status”:400, “QTime”:9}, “Operation create caused exception:”:”org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: collection already exists: Test”, “exception”:{ “msg”:”collection already exists: Test”, “rspCode”:400}, “error”:{ “metadata”:[ “error-class”,”org.apache.solr.common.SolrException”, “root-error-class”,”org.apache.solr.common.SolrException”], “msg”:”collection already exists: Test”, “code”:400}}jayParticipant4 years ago #21973I see Test1 was created in the cloud tree.
{ “responseHeader”:{ “status”:400, “QTime”:1459}, “failure”:{ “10.0XX.XXX.XXX:8983_solr”:”org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:Error from server at https://10.0XX.XXX.XXX:8983/solr: Error CREATEing SolrCore ‘Test1_shard1_replica_n1’: Unable to create core [Test1_shard1_replica_n1] Caused by: The configset for this collection was uploaded without any authentication in place, and use of is not available for collections with untrusted configsets. To use this component, re-upload the configset after enabling authentication and authorization.”}, “Operation create caused exception:”:”org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Underlying core creation failed while creating collection: Test1″, “exception”:{ “msg”:”Underlying core creation failed while creating collection: Test1″, “rspCode”:400}, “error”:{ “metadata”:[ “error-class”,”org.apache.solr.common.SolrException”, “root-error-class”,”org.apache.solr.common.SolrException”], “msg”:”Underlying core creation failed while creating collection: Test1″, “code”:400}}wpsolrKeymaster4 years ago #21974Recent versions of SolrCloud require that the user you use to create the index has also the rights to upload the configuration files.
Source: https://lucene.apache.org/solr/guide/8_4/configsets-api.html#configsets-upload
A configset is uploaded in a “trusted” mode if authentication is enabled and the upload operation is performed as an authenticated request
This can be done only in SearchStax.
wpsolrKeymaster3 years, 12 months ago #22062SearchStax support kindly installed me a deployment with Solr 8.4.0, and I could create an index from WPSOLR.
2 conditions appear to be necessary:
– Create a user/pwd and use it during index creation with WPSOLR. The user will automatically be added to security.json as an authenticated user with permissions to upload the config files.
– Add an IP filter in your deployment security menu:
> “IP/Range in CIDR format”: 0.0.0.0/0
> “Service”: Solr
You must be logged in to reply to this topic.