MeilisearchApiError when trying to use new Content Library in Sumac

Dear team,

I’ve updated our instance to Sumac today, as I’m quite excited to (a) get rid of Elasticsearch and (b) use the new content library which sound really awesome. Currently running tutor version 19.0.0 and as far as I can tell, the upgrade went smooth.

When using the new content library however, I was able to create the library itself, but whenever I try to create anything within the library (whether its a collection or actual content), it fails silently (from frontend perspective).

The logs indicate an error communicating with Meilisearch:

meilisearch-1      | 2025-01-02T17:35:38.438585Z  INFO HTTP request{method=GET host="meilisearch:7700" route=/indexes/tutor_studio_content query_parameters= user_agent=Meilisearch Python (v0.31.5) status_code=200}: meilisearch: close time.busy=195µs time.idle=277µs
meilisearch-1      | 2025-01-02T17:35:38.442793Z  WARN HTTP request{method=GET host="meilisearch:7700" route=/indexes/tutor_studio_content/documents/lib-collectionmakerspacedarmstadtmksp-sharedtest-225761bd query_parameters= user_agent=Meilisearch Python (v0.31.5) status_code=404 error=Document `lib-collectionmakerspacedarmstadtmksp-sharedtest-225761bd` not found.}: tracing_actix_web::middleware: Error encountered while processing the incoming HTTP request: ResponseError { code: 404, message: "Document `lib-collectionmakerspacedarmstadtmksp-sharedtest-225761bd` not found.", error_code: "document_not_found", error_type: "invalid_request", error_link: "https://docs.meilisearch.com/errors#document_not_found" }
meilisearch-1      | 2025-01-02T17:35:38.442900Z  INFO HTTP request{method=GET host="meilisearch:7700" route=/indexes/tutor_studio_content/documents/lib-collectionmakerspacedarmstadtmksp-sharedtest-225761bd query_parameters= user_agent=Meilisearch Python (v0.31.5) status_code=404 error=Document `lib-collectionmakerspacedarmstadtmksp-sharedtest-225761bd` not found.}: meilisearch: close time.busy=323µs time.idle=214µs
cms-1              | 2025-01-02 17:35:38,443 WARNING 30 [openedx.core.djangoapps.content.search.api] [user 5] [ip 93.229.83.127] api.py:659 - Unable to fetch document lib-collectionmakerspacedarmstadtmksp-sharedtest-225761bd from tutor_studio_content: MeilisearchApiError. Error code: document_not_found. Error message: Document `lib-collectionmakerspacedarmstadtmksp-sharedtest-225761bd` not found. Error documentation: https://docs.meilisearch.com/errors#document_not_found Error type: invalid_request
meilisearch-1      | 2025-01-02T17:35:38.463813Z  INFO HTTP request{method=PUT host="meilisearch:7700" route=/indexes/tutor_studio_content/documents query_parameters= user_agent=Meilisearch Python (v0.31.5) status_code=202}: meilisearch: close time.busy=381µs time.idle=17.1ms

Did I miss any step during the upgrade?

Stupid me forgot to add the Meilisearch URL to the reverse proxy. After doing that, everything suddenly started to work perfectly fine.

3 Likes