Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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'
Comment | File | Size | Author |
---|---|---|---|
#7 | 3157009.patch | 1.42 KB | mkalkbrenner |
Comments
Comment #2
mkalkbrennerRead 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.
Comment #3
sah62 CreditAttribution: sah62 commentedOK, 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.
Comment #4
mkalkbrennerCab you provide some more details?
What is the real and the configured Solr Version?
Comment #5
sah62 CreditAttribution: sah62 commentedMy 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?
Comment #6
Misha Sdelal CreditAttribution: Misha Sdelal commentedSame problem.
Comment #7
mkalkbrennerI now see what happened :-(
Here's a patch.
Comment #8
mkalkbrennerComment #9
sah62 CreditAttribution: sah62 commentedI've installed and tested the patch. It works fine for me.
Comment #10
mkalkbrennerThanks 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.
Comment #12
mkalkbrennerComment #13
Eaglecanada CreditAttribution: Eaglecanada commentedJust found out the same issue. I just added the one from last version. Wait till it is in 4.1.4. Thanks!
Comment #14
mkalkbrenner4.1.4 is already released.
Comment #15
Eaglecanada CreditAttribution: Eaglecanada commentedjust 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.
Comment #16
Eaglecanada CreditAttribution: Eaglecanada commentedupdate: 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?
Comment #17
mkalkbrennerYou should open a dedicated issue for that.