Hi,
when trying to reattach a message thread in the Hyperkitty web
interface, the following error occurs:
> Internal Server Error: /archives/list/testlist@lists.eden.one/thread/T6MCILAVQYV5QIOGHJB3JNJ26Z7E2Z35/reattach-suggest
>
> PermissionError at /archives/list/testlist@lists.eden.one/thread/T6MCILAVQYV5QIOGHJB3JNJ26Z7E2Z35/reattach-suggest
> [Errno 13] Permission denied: 'fulltext_index'
The error occurs while haystack attempts to create a directory –
> File "/opt/mailman/venv/lib/python3.10/site-packages/haystack/backends/whoosh_backend.py", line 412, in search
> self.setup()
> File "/opt/mailman/venv/lib/python3.10/site-packages/haystack/backends/whoosh_backend.py", line 133, in setup
> os.makedirs(self.path)
> File "/usr/lib/python3.10/os.py", line 225, in makedirs
> mkdir(name, mode)
>
> Exception Type: PermissionError at /archives/list/testlist@lists.eden.one/thread/T6MCILAVQYV5QIOGHJB3JNJ26Z7E2Z35/reattach-suggest
> Exception Value: [Errno 13] Permission denied: 'fulltext_index'
> Raised during: hyperkitty.views.thread.reattach_suggest
> Request information:
> USER: mailman
– but the existing directory /opt/mailman/fulltext_index (and its
contents) are readable and writeable by mailman:mailman:
> drwxrwxr-x 2 mailman mailman 4096 Nov 27 08:00 fulltext_index/
>
> -rw-rw-r-- 1 mailman mailman 4473 Nov 27 08:00 _MAIN_65.toc
> -rw-rw-r-- 1 mailman mailman 15456 Nov 27 08:00 MAIN_bc0cs2aohovftat6.seg
> -rw-rw-r-- 1 mailman mailman 15454 Nov 27 06:00 MAIN_brbo8i8edmlz0za4.seg
> -rw-rw-r-- 1 mailman mailman 15462 Nov 27 07:00 MAIN_ewnemc7lsnodd3y7.seg
> -rw-rw-r-- 1 mailman mailman 157324 Nov 27 04:00 MAIN_qag60g1rrumshtc2.seg
> -rw-rw-r-- 1 mailman mailman 15459 Nov 27 05:00 MAIN_w6e0ohurasusy61d.seg
> -rwxrwxr-x 1 mailman mailman 0 Nov 24 16:00 MAIN_WRITELOCK*
I fail to see where haystack tries (and fails) to create the directory.
FWIW, deleting threads is not a problem.
Thanks,
Jan