Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sphinx Reindex #12

Open
bmv234 opened this issue Feb 24, 2020 · 4 comments
Open

Sphinx Reindex #12

bmv234 opened this issue Feb 24, 2020 · 4 comments

Comments

@bmv234
Copy link

bmv234 commented Feb 24, 2020

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
Copy link
Owner

woa7 commented Feb 24, 2020

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

@bmv234
Copy link
Author

bmv234 commented Feb 24, 2020

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
Copy link
Owner

woa7 commented Feb 24, 2020

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
Copy link
Author

bmv234 commented Mar 3, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants