Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "search_api_index" entity type does not exist. #66

Closed
nigelgbanks opened this issue Sep 16, 2024 · 14 comments
Closed

The "search_api_index" entity type does not exist. #66

nigelgbanks opened this issue Sep 16, 2024 · 14 comments

Comments

@nigelgbanks
Copy link
Contributor

Issue is occurring on integration tests, can't reproduce locally, seems to be a race condition, previously described here:

Islandora-Devops/isle-dc#392

@nigelgbanks
Copy link
Contributor Author

The error actually occurs when doing a cache:rebuild:

https://github.com/Islandora-Devops/isle-site-template/actions/runs/10883717356/job/30197464465

drupal-dev-1  | + drush --root=/var/www/drupal --uri=https://islandora.dev/ cache:rebuild
drupal-dev-1  | 
drupal-dev-1  | In EntityTypeManager.php line 142:
drupal-dev-1  | 
drupal-dev-1  |   The "search_api_index" entity type does not exist.  
drupal-dev-1  | 
drupal-dev-1  |

@nigelgbanks
Copy link
Contributor Author

Not much to go off from the actual installation as to what the true problem is.

Just two warnings.

+ /usr/local/bin/install-drupal-site.sh --driver mysql --host mariadb --port 3306 --db-user drupal_default --db-password password --db-name drupal_default minimal --account-mail=webmaster@localhost.com --account-name=admin --account-pass=password --site-mail=webmaster@localhost.com --locale=en '--site-name=Islandora Digital Collections' --sites-subdir=default --existing-config
drupal-dev-1  | s6-rc: info: service fpm successfully started
drupal-dev-1  | s6-rc: info: service nginx: starting
drupal-dev-1  | Installing site.
drupal-dev-1  | 127.0.0.1 - - [16/Sep/2024:12:25:40 +0000] "GET /status HTTP/1.1" 200 381 "-" "curl/8.10.0" "-"
drupal-dev-1  | s6-rc: info: service nginx successfully started
drupal-dev-1  |  You are about to:
drupal-dev-1  |  * DROP all tables in your 'drupal_default' database.
drupal-dev-1  | 
drupal-dev-1  |  [warning] Undefined array key 1 SiteInstallCommands.php:82
drupal-dev-1  |  [warning] Undefined array key 1 SiteInstallCommands.php:82

@nigelgbanks
Copy link
Contributor Author

@nigelgbanks
Copy link
Contributor Author

Seems like this is a red herring.

@nigelgbanks
Copy link
Contributor Author

Comes from this new feature: drush-ops/drush@5cb8282

@nigelgbanks
Copy link
Contributor Author

I'm leaning more towards an issue with the https://github.com/Islandora-Devops/islandora-starter-site, in that some module is not installing itself properly due to missing dependencies, or some such.

@nigelgbanks
Copy link
Contributor Author

@nigelgbanks
Copy link
Contributor Author

More from other branches.

Error: Class "Drupal\search_api\Entity\Server" not found in /var/www/drupal/solr.php on line 6 #0 /var/www/drupal/vendor/drush/drush/src/Commands/core/PhpCommands.php(107): include()
#1 [internal function]: Drush\Commands\core\PhpCommands->script()
#2 /var/www/drupal/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array()
#3 /var/www/drupal/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback()
#4 /var/www/drupal/vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter()
#5 /var/www/drupal/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(387): Consolidation\AnnotatedCommand\CommandProcessor->process()
#6 /var/www/drupal/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute()
#7 /var/www/drupal/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run()
#8 /var/www/drupal/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
#9 /var/www/drupal/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#10 /var/www/drupal/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run()
#11 /var/www/drupal/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun()
#12 /var/www/drupal/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run()
#13 /var/www/drupal/vendor/drush/drush/drush(4): require('/var/www/drupal...')
#14 /var/www/drupal/vendor/bin/drush(119): include('/var/www/drupal...')
#15 {main}
Error: Class "Drupal\search_api\Entity\Server" not found in include() (line 6 of /var/www/drupal/solr.php).

#65

@nigelgbanks
Copy link
Contributor Author

Ah thats from the other test after the ping.

@nigelgbanks
Copy link
Contributor Author

Maybe will fix? #74

@nigelgbanks
Copy link
Contributor Author

It did not

@joecorall
Copy link
Contributor

Great work on #76 @nigelgbanks. Closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants