localgovdrupal / localgov_search_solr

Default solr index and configuration for Sitewide search for LocalGov Drupal
0 stars 0 forks source link

Issue starting solr-sitewide.local.gov #13

Open 2dareis2do opened 1 year ago

2dareis2do commented 1 year ago

When starting the localgo project with lando start, I am getting the following:

Starting localgov_solr-sitewide_1 ... done

Waiting until solr-sitewide service is ready... Waiting until solr-sitewide service is ready... Waiting until solr-sitewide service is ready...

SERVICES appserver, database, mailhog, adminer, chromedriver, solr-sitewide

SOLR SITEWIDE URLS ✖ http://solr-sitewide.localgov.lndo.site/ [302] - REQUEST FAILED WIT…

When trying to visit

http://solr-sitewide.localgov.lndo.site/

I get cannot connect to server.

stephen-cox commented 1 year ago

The Solr container in Lando is a little flaky and will refuse to start if the configuration has changed in an incompatible way - something that can happen without doing anything.

A lando destroy followed by a lando start should sort it out, but you will lose everything.

The following might work without destroying everything

lando ssh -s solr-sitewide
solr delete -p 8983 -c sitewide
exit
lando rebuild -y
2dareis2do commented 1 year ago

Ok thanks,

I have done lando destroy, restarted and run lando start again. I get the same error from the command line, 302 bad request, however I can see solr is running at http://solr-sitewide.localgov.lndo.site/solr/

Here it reports

SolrCore Initialization Failures sitewide: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load conf for core sitewide: Error loading solr config from /var/solr/data/sitewide/conf/solrconfig.xml

stephen-cox commented 1 year ago

You'll need to update the Solr config. Try running lando update-solr-config and then doing a lando rebuild.

This was added with #93, but it looks like we failed to document it. Will create an issue for Solr docs

2dareis2do commented 1 year ago

ok.

After started lando e.g. lando start then running lando drush si localgov -y; followed by lando update-solr-config I get

There are no commands defined in the "search-api" namespace.

2dareis2do commented 1 year ago

Ok I have logged in and tried enabling search api. Not sure this is enabled as part of the profile.

Ok so now I get lando update-solr-config

In CommandHelper.php line 525:

There are no servers present.

I tried rebuilding and but it is the same afaict.