meilisearch/meilisearch-aws

Default config for max opened files

Closed this issue · 7 comments

I got this error using the image:

MeiliSearch ApiException: Http Status: 500 - Message: Too many open files (os error 24) - Error code: internal - Error type: internal_error - Error link: https://docs.meilisearch.com/errors#internal

HI @neylsongularte,
Thanks for raising this issue. This is a bug in the v0.23.0. I will remove this image from the AMIs, sorry it's still there.
If you using the AMI v0.23.1 tell me I will transfert this issue on Meilisearch repository.

I am using the image 'MeiliSearch-v0.23.1-Debian-10.3 - ami-0a41e0dd1daecbfd4'.

I solved the problem by putting LimitNOFILE /etc/systemd/system/meilisearch.service and changing ulimit.

Now i have the problem with:

MeiliSearch ApiException: Http Status: 500 - Message: Cannot allocate memory (os error 12) - Error code: internal - Error type: internal_error - Error link: https://docs.meilisearch.com/errors#internal

I think we can close this issue here since this is completely an issue on MeilISearch side as meilisearch/meilisearch#1841 describes it

The curiosity here is that it solves the problem of too many open files by changing the systemd file.

The curiosity here is that it solves the problem of too many open files by changing the systemd file.

I'm not sure to understand, what do you mean?

@alallema hi, is this problem resolved ? i still face with this error with meilisearch version 0.28.1

Hi @hungdhm-0574,
Depending on your dataset size it could cf doc. But if you encounter this error in another situation than the one described I recommend you to open an issue on meilisearch repository directly.