I just installed 4.1.3 and updated my core configs. solrconfig.xml includes this line:

<!ENTITY index SYSTEM "solrconfig_index.xml">

but the solrconfig_index.xml file isn't included with the configuration. I tried producing it with both drush and via direct download from the admin page of my site. I get the zip file, but in both cases solrconfig_index.xml is missing. With this missing file the solr server throws an error when it tries to load the config for the core:

Can't find resource 'solrconfig_index.xml' in classpath or '/opt/solr/server/solr/mycore'

CommentFileSizeAuthor
#7 3157009.patch1.42 KBmkalkbrenner
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sah62 created an issue. See original summary.

mkalkbrenner’s picture

Category: Bug report » Support request

Read carefully through the comments of #3104189: entity type needs to be installed - Cache, Request Dispatcher, Request Handler first.

Then report if your issue is solved.

sah62’s picture

OK, I've read all of the comments. I believe I've applied all upgrades and updates as necessary. I re-ran 'drush ev "module_load_include('install', 'search_api_solr'); search_api_solr_update_8331();"', pulled down a new configuration zip file, and I'm still seeing the same issue: the newly generated and downloaded solrconfig.xml includes an entity reference to a file named solrconfig_index.xml, but that file isn't included in the downloaded zip file. Things seem to work fine if I create an empty file named solrconfig_index.xml, but I doubt that that's the intended behavior. This happened after my upgrade from 4.1.2 to 4.1.3. I'm not seeing any errors in my solr configuration on my site or on the solr server admin page.

mkalkbrenner’s picture

Category: Support request » Bug report

Cab you provide some more details?
What is the real and the configured Solr Version?

sah62’s picture

My configured and detected solr server versions are both 8.5.1. The schema version is drupal-4.1.0-solr-8.x-0. Is there anything else I can provide?

Misha Sdelal’s picture

Same problem.

mkalkbrenner’s picture

Priority: Normal » Critical
Status: Active » Needs review
FileSize
1.42 KB

I now see what happened :-(
Here's a patch.

mkalkbrenner’s picture

sah62’s picture

I've installed and tested the patch. It works fine for me.

mkalkbrenner’s picture

Thanks for the feedback. The error should have been discovered by our tests. But there is something missing in our new setup for github actions. I fixed that now. And I'll prepared 4.1.4 to fix that critical bug.

  • mkalkbrenner committed 5f741f5 on 4.x
    Issue #3157009 by mkalkbrenner, sah62: Missing solrconfig_index.xml
    
  • mkalkbrenner committed 641de0e on 4.x
    Issue #3157009 by mkalkbrenner, sah62: Missing solrconfig_index.xml
    
mkalkbrenner’s picture

Status: Needs review » Fixed
Eaglecanada’s picture

Just found out the same issue. I just added the one from last version. Wait till it is in 4.1.4. Thanks!

mkalkbrenner’s picture

4.1.4 is already released.

Eaglecanada’s picture

just upgrade from 4.1.3 to 4.1.4, and got this warning:

Notice: Undefined index: CORE.collection in Drupal\search_api_solr\Plugin\SolrConnector\StandardSolrCloudConnector->getStatsSummary() (line 102 of modules\contrib\search_api_solr\src\Plugin\SolrConnector\StandardSolrCloudConnector.php).

Drupal\search_api_solr\Plugin\SolrConnector\StandardSolrCloudConnector->getStatsSummary() (Line: 781)
Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend->viewSettings() (Line: 186)
Drupal\search_api\Entity\Server->viewSettings() (Line: 241)
template_preprocess_search_api_server(Array, 'search_api_server', Array) (Line: 287)
Drupal\Core\Theme\ThemeManager->render('search_api_server', Array) (Line: 431)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 444)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 200)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 226)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 573)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 227)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 117)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object) (Line: 156)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 59)
Drupal\lao_url_redirects\LaoUrlRedirectsStaticPageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

any ideas? 4.1.3 with the manually copy of "solrconfig_index.xml" added to conf working just fine.

Eaglecanada’s picture

update: just realized my solr config was wrong: it was pointing to solr cloud, and I was using the standard. Fixed that, and the error is gone.

but in the Search API Server "View" tab, no information about the Server status, even though the server and index both working. Any suggestions?

mkalkbrenner’s picture

You should open a dedicated issue for that.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.