Jan Eden wrote:
I tried setting permissions on /opt/mailman/fulltext_index to 777 temporarily, but the issue remained (as expected). It occurs in the Whoosh backend of Haystack (whoosh_backend.py, line 132-133):
if self.use_file_storage and not os.path.exists(self.path): os.makedirs(self.path)
where self.path is referenced, which is defined in line 110 (as part of the __init__ function):
def __init__(self, connection_alias, **connection_options): super().__init__(connection_alias, **connection_options) self.setup_complete = False self.use_file_storage = True self.post_limit = getattr(connection_options, "POST_LIMIT", 128 * 1024 * 1024) self.path = connection_options.get("PATH")
Unfortunately, I cannot see where the PATH key for connection_options is defined.
It is defined in the HAYSTACK_CONNECTIONS dictionary in your Django settings.