Islandora-Devops / isle-dc

ISLE 8 - Dockerized Islandora 8 Deployment orchestrated with docker-compose
MIT License
23 stars 60 forks source link

`make production` with latest islandora-starter-site failing #392

Closed joecorall closed 6 months ago

joecorall commented 6 months ago

NIghtly build failing on make production with The "search_api_index" entity type does not exist..

Not sure if an issue here or islandora-starter-site

rosiel commented 6 months ago

Is this a module race condition? I know that there are a number of non-fatal errors due to the order of module and config enabling... perhaps they finally caught up with us

joecorall commented 6 months ago

Yeah seems like a race. The nightly build sometimes succeeds and sometimes fails. Or possibly a missed dependency for the search_api somewhere? The failure looks like maybe that module isn't installed or needs a cache flush to have it registered in Drupal's internals.

DonRichards commented 6 months ago

We could add this prior to hydrate and check if solr is ready

docker-compose exec -T drupal with-contenv bash -lc "drush cr"
# Then check is solr is up before hydrating
@echo "Checking if Solr's healthy"
docker-compose exec -T solr bash -c 'curl -s http://localhost:8983/solr/admin/info/system?wt=json' | jq -r .lucene || (echo "Solr is not healthy, waiting 10 seconds." && sleep 10)