Migration code does not respect SEARCH_INDEX #661

Closed
opened 5 years ago by RAOF · 1 comments
RAOF commented 5 years ago (Migrated from github.com)

Run plm migration run in a read-only directory, with the SEARCH_INDEX environment variable pointing at a writable directory.
plm migration run will error out with:

Running migration 20190428201506
thread 'main' panicked at 'Failed to run migrations: Search(IndexCreationError)', src/libcore/result.rs:997:5

As far as I can tell this is because up.sql doesn't check the SEARCH_INDEX variable, although it's not entirely obvious what the contents of path passed in there is.

<!-- Describe your bug, explaining how to reproduce it, and what was expected --> Run `plm migration run` in a read-only directory, with the `SEARCH_INDEX` environment variable pointing at a writable directory. `plm migration run` will error out with: ``` Running migration 20190428201506 thread 'main' panicked at 'Failed to run migrations: Search(IndexCreationError)', src/libcore/result.rs:997:5 ``` As far as I can tell this is because `up.sql` doesn't check the `SEARCH_INDEX` variable, although it's not entirely obvious what the contents of `path` passed in there is.
RAOF commented 5 years ago (Migrated from github.com)

For those playing at home, this can be mostly worked around by passing --path to plm, pointing to the parent directory of search_index. This does require that your search index directory is called search_index, but if your search index is /path/to/search_index then
plm migration run --path /path/to/ will correctly perform the migrations.

For those playing at home, this can be mostly worked around by passing `--path` to `plm`, pointing to the parent directory of `search_index`. This does require that your search index directory is *called* `search_index`, but if your search index is `/path/to/search_index` then `plm migration run --path /path/to/` will correctly perform the migrations.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Plume/Plume#661
Loading…
There is no content yet.