- Issue created by @somebodysysop
- πΊπΈUnited States somebodysysop
Here is where it gets confusing.
In my dblog I get:
type: search_api
location: search_api_attachments
message: Could not load the following items on index Solr sbn01 index: "entity:file/28364:en".I get the message for file entities 28363 through 28369.
The problem is, my file fids end at 28362. There are no fids in my file_usage or file_managed tables with these fids. I have repeatedly cleared the queue before re-indexing, but keep getting the same timeouts.
I don't know if this is an issue with search_api or search_api_attachments.
In any event, I can't get anywhere because the htmlfilter keeps crashing the site.
- Status changed to Fixed
about 1 year ago 10:50pm 28 October 2023 - πΊπΈUnited States somebodysysop
So, this is not a bug, per se, but a problem, I assume, with the size of my index.
This was not actually the entire solution, but was part of it:
https://www.drupal.org/forum/support/post-installation/2018-10-03/attemp... β
Exact steps to resolve:
Increase timeout in /etc/php.ini and httpd.conf
Restart web server
drush sqlq "DELETE FROM semaphore WHERE name = 'cron';" --uri=master1and1-9.schoolboard.net
Gets rid of the cron semaphores in database
https://www.drupal.org/forum/support/post-installation/2018-10-03/attem β β¦
drush cr --uri=master1and1-9.schoolboard.net
Clears cache so that next cron run will read most current /etc/php.ini maximum execution time
Reduce Index batch size.
The default is 300 but I reduced it to 5.
Re-Index
Had to repeat the above a few times, but eventually it got through the indexing.
- π¦πΉAustria drunken monkey Vienna, Austria
Seems like this might be the same problem as reported in π Performance issues after fixing 'PHP 8.1 preg_replace()' issue Needs review . Please try whether the patch I posted there resolves the problem for you.
Itβs good you were able to work around it, but such an immense decrease in indexing performance is still not acceptable. - πΊπΈUnited States somebodysysop
Thank you! I've got 8 more sites to go, so this will be extremely helpful.
- π¨π¦Canada nruest
Applying the patch mentioned in #4 solved the issue for me.
- πΊπΈUnited States somebodysysop
I got this error when trying to install Search API 8.x-1.x-dev in Drupal 9.5.11:
Problem 1
- drupal/search_api[dev-1.x, 1.x-dev] require drupal/core ^10.0 -> found drupal/core[10.0.0-beta1, ..., 10.1.6] but the package is fixed to 9.5.11 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- drupal/search_api 1.x-dev is an alias of drupal/search_api dev-1.x and thus requires it to be installed too.
- Root composer.json requires drupal/search_api 1.x-dev@dev -> satisfiable by drupal/search_api[1.x-dev (alias of dev-1.x)].Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Automatically closed - issue fixed for 2 weeks with no activity.