Skip to content

Environment Variable MEILI_IGNORE_DUMP_IF_DB_EXISTS requires a value but documentation says it requires a value to not be present #3203

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

Open
albert-sway opened this issue Mar 22, 2025 · 1 comment

Comments

@albert-sway
Copy link

Describe the bug
Environment Variable MEILI_IGNORE_DUMP_IF_DB_EXISTS requires a value but documentation says it requires a value to not be present.

To Reproduce
Steps to reproduce the behavior:

  1. In docker compose, set - MEILI_IGNORE_DUMP_IF_DB_EXISTS= (empty string)
  2. Start meilisearch.

Expected behavior
Dump should be ignored without error if db already exists.

Meilisearch version:
v1.3

@irevoire
Copy link
Member

irevoire commented Mar 24, 2025

Hey, yes, I see your problem. We must update the documentation.

If you’re using the CLI flag, as the documentation states, you should use the flag and don’t specify any value: ./meilisearch --ignore-dump-if-db-exists --import-dump xxxx.dump.
If you’re using the environment variable or the config file, you must assign the value true or false as stated in the error message: MEILI_IGNORE_DUMP_IF_DB_EXISTS=true MEILI_IMPORT_DUMP=xxxx.dump ./meilisearch.

This has been true for all versions since the v1.0 of Meilisearch I believe.

@irevoire irevoire transferred this issue from meilisearch/meilisearch Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants