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

Error when starting Strapi: meilisearch: No such file or directory (os error 2) #986

Open
Matb85 opened this issue Dec 3, 2024 · 3 comments
Labels
bug Something isn't working needs more info This issue needs a minimal complete and verifiable example

Comments

@Matb85
Copy link

Matb85 commented Dec 3, 2024

Description
Whenever I start Strapi I get the error shown on screenshots

Expected behavior
Provide better errror message (what is the path of the missing file or dir?) or fix the issue

Current behavior
Whenever I start Strapi I get the error shown on screenshots

Screenshot 2024-12-03 at 13 28 55

Screenshots or Logs

Screenshot 2024-12-03 at 13 34 55

Environment (please complete the following information):

  • OS: Macos 15
  • Meilisearch version: v1.3.3
  • strapi-plugin-meilisearch version: 0.13.1
  • Browser: Chrome
  • Strapi version: 5.4.2
@brunoocasali
Copy link
Member

Hi @Matb85 can you share your meilisearch plugin config file?

@brunoocasali brunoocasali added bug Something isn't working needs more info This issue needs a minimal complete and verifiable example labels Dec 11, 2024
@Matb85
Copy link
Author

Matb85 commented Dec 11, 2024

Screenshot 2024-12-11 at 17 45 22

@Matb85
Copy link
Author

Matb85 commented Dec 12, 2024

Nevermind, I have resolved the issue myself.

It had nothing to do with strapi-plugin-meilisearch - my meili_data folder was missing on my server. I just followed again the installation tutorial and now everything is working.

https://www.meilisearch.com/docs/learn/self_hosted/install_meilisearch_locally

I believe that if the plugin had had better logging I would have found the issue much faster.

The error was being shown during execution of this function:

Screenshot 2024-12-12 at 11 01 02

I did not know that the catch statement in this function logs errors returned in http reuests by the meilisearch instance, not errors caused by the plugin's logic itself:

strapi2.log.error(`meilisearch: ${e.message}`);

I would change this to something like:

strapi2.log.error(`meilisearch GET request error: ${e.message}`);

@Matb85 Matb85 closed this as completed Dec 12, 2024
@Matb85 Matb85 reopened this Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs more info This issue needs a minimal complete and verifiable example
Projects
None yet
Development

No branches or pull requests

2 participants