woa7 / docker-piler

Docker: piler is an open source email archiving application with lots of features aimed for the enterprises, http://www.mailpiler.org/
GNU General Public License v3.0
6 stars 5 forks source link

Sphinx Reindex #12

Open bmv234 opened 4 years ago

bmv234 commented 4 years ago

I has the following issue:

Some Linux distributions (notably Debian and Ubuntu) have a daily cron job to reindex everything. Unfortunately this ruins the sphinx index files piler relies on. However the older emails are not lost you still have them, they are just disappeared from the sphinx index. To bring them back, perform the following steps.

Edit /etc/default/sphinxsearch, and set START=“no”.

I recommend you to use the piler shipped init.d/rc.searchd script to start searchd. You may call it from /etc/rc.local. (Note that it starts it as user piler, so make sure /var/piler/sphinx has proper ownership.)

Reindex old emails. After that older emails should appear after the next indexing is done.

cd /tmp

reindex -a

My question is since this is in a Docker container, do you happen to know where the '/etc/default/sphinxsearch' location is and what all needs to be modified to resolve this issue. I search from the sphinxsearch location and couldn't find it. I had to reindex to get old emails to show back up in search, but I have not made the proper modifications to keep this from happening again. Any suggestions? Running Ubuntu 18.04

woa7 commented 4 years ago

which docker image/version you have tryed? the default reindex form the os shut be allready set to START=“no”

bmv234 commented 4 years ago

I pulled woa7/piler:latest

Then I'm not sure why I lost my index. I had updated the host os and rebooted, then the next time I used the auditor search it only has emails from that day. Then I proceeded to rebuild to get all the emails back.

woa7 commented 4 years ago

in woa7/piler:latest it shut be with the fixes form / out of the deb org package.

can you test it with woa7/piler:focal ? if its with this the same problem, than i know its some bug in the start.sh

bmv234 commented 4 years ago

When I reboot the OS I lose the index and have to rebuild it. Any suggestions?