meilisearch: Error when deleting index: DirectoryNotEmpty
Description
When deleting an index using $client->deleteIndex('Posts') I see in the MeiliSearch output the error below. However, the index does seem to be deleted in the sense that $client->getAllIndexes() no longer shows the one I just tried to delete.
ERROR meilisearch_lib::index_controller::index_resolver] Error while deleting index: Internal(Os { code: 39, kind: DirectoryNotEmpty, message: "Directory not empty" })
Expected behavior There should not be an error
Current behavior
There’s a DirectoryNotEmpty error
Screenshots or Logs See above
Environment (please complete the following information):
- OS: Ubuntu running in a Virtualbox (Laravel Homestead) on MacOS
- MeiliSearch version: 0.23.1
- meilisearch-php version: ^0.19.2
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17 (10 by maintainers)
Hello @stefkes thanks for opening this issue. It seems related to MeiliSearch and not to meilisearch-php library, so I move the issue into the right repo 😃 I will move it back if it appears it’s finally a meilisearch-php issue
Currently checking with the devs of the core team to know better where this issue could come from
We are getting same error on
v0.30.0rc2. Running Meilisearch instance on Kubernetes with persistent volume.simple request like
will return
logs
then when I check Tasks:
The thing is, that index was deleted as a result.
So the information that it is not possible to delete the index is wrong
Hi,
I have the same issue here, Meilisearch is on Clever-cloud, index of ~4M entries. v0.24
ERROR meilisearch_lib::index_controller::index_resolver] Error while deleting index: Internal(Os { code: 39, kind: DirectoryNotEmpty, message: "Directory not empty" })Edit : The index was deleted anyway, but the machine crashed and restarted.