Skip to content

'load-search-indexes.sh' fails with '/media/searchdump/*.tar.zst: Cannot open: No such file or directory' #296

@hilbertglm

Description

@hilbertglm

I was following the steps to set up search indexes via the command:

sudo docker compose run --rm search load-search-indexes.sh

and received the error:

Thu Feb 20 15:22:58 UTC 2025: Load * search index...
tar (child): /media/searchdump/*.tar.zst: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

The problem was a file permission problem on the /media/searchdump directory. I think I was running as the user 'solr', and needed to be 'root'. It appears to be loading now when I took the following steps:

  • sudo docker exec -it --user root musicbrainz-docker-search-1 bash
  • load-search-indexes.sh

It think I could also have added the '--user root' to the 'docker compose run...' command, but I did not test that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions