Closed simonszu closed 2 months ago
Check the piler1 index:
mysql -h0 -P9306
show index piler1 status;
Yeah, it looks like manticore lost its index. When triggering reindex -a
from the piler container, the index grows and more and more mails are visible in piler's WebUI. However, is there a way to not have manticore lose its index? The START=no
setting is set in /etc/default/manticore
in the manticore container. Is there anything else i could try? In worst case, a cronjob in the piler container which excutes reindex -a
periodically?
Yes. Put the manticore data dir to a persistent volume.
Actually, i did. Excerpt from my ansible playbook to deploy piler:
- name: Start container for manticore
docker_container:
name: manticore
image: manticoresearch/manticore:6.3.2
restart_policy: always
volumes:
- "{{ docker_datadir }}/piler/manticore/data:/var/lib/manticore"
- "{{ docker_datadir }}/piler/manticore/config/manticore.conf:/etc/manticoresearch/manticore.conf"
labels:
com.centurylinklabs.watchtower.scope: "regular"
networks:
- name: backend
become: yes
Even if i did not put the manticore data dir to a persistent volume, the data should have stayed there until the manticore container would have been recreated, which it wasn't.
So, more likely an issue to open against the manticore project, you say?
Not sure. Before doing so, I'd verify that the index configured in manticore.conf is actually on the data volume. Anyway, I don't think it's a piler issue.
Describe the bug In the past days i have installed piler and imported my email history to it. It was working fine and i was able to browse my whole archive as an Auditor. As of today morning, Piler believes that only around 18 mails (the newest ones) are present in my archive, i am not able to search for older emails - the query simply returns 0 results. According to the statistics page which is viewable as an Admin, the mails are still there. Since i did not modify anything overnight, i am quite surprised by this behavior and am struggling to get these mails back to viewable.
To Reproduce Steps to reproduce the behavior:
Expected behavior The messages are visible like they were yesterday
Screenshots Master Admin view:
Auditor view:
This is an installation only for myself, so all emails are from my account and should be visible to me.
Piler version:
Additional context Installed via Docker.
Latest logs:
Especially the line
2024-09-04T07:29:45.323866+00:00 b992c39d3608 piler-webui[32]: sphinx query: 'SELECT id FROM piler1 WHERE MATCH('') ORDER BY
sentDESC LIMIT 0,20 OPTION max_matches=1000' in 0.00 s, 18 hits, 18 total found
is interesting. Why does manticore only return 18 hits?I am aware of the FAQ "I can't see any results, however the sphinx query in the maillog reports 0 hits, and >0 total found" which recommends to use "or even manticore search 6.x". I have manticore running via Docker as well, and i am using version 6.3.2.
I am also aware of the FAQ "I can see only today's emails in the archive and not any single previous emails." which is exactly my problem. However, the
START="no"
setting is default in manticore's docker image. I am currently trying to reindex manticore withreindex -a
in the piler image, which apparently does something. However, i still want to prevent this problem happening in the future. Not sure how the FAQ applies to this problem when everything runs as a container.