[Dovecot] FTS indexing
I'm reacreating all FTS indices on all my users' INBOX folders:
mkdir ~%s/Maildir/lucene-indexes && chown %s:users ~%s/Maildir/lucene-indexes doveadm index -u %s -q INBOX
In "ps auxwww" I'm seeing this:
tbudkevy 29186 3.7 0.0 6616 3056 ? S 18:11 0:15 dovecot/indexer-worker [tschuetz INBOX]
how can a dovecot/indexer-worker actually access the INBOX of the user "tschuetz" (where "tbudkevy" doesn't have access, due to the different UID)...?
Should ~%s/Maildir/lucene-indexes be filled after having run the command sequence for all users?
-- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt@charite.de | http://www.charite.de
On 11.9.2012, at 19.23, Ralf Hildebrandt wrote:
I'm reacreating all FTS indices on all my users' INBOX folders: mkdir ~%s/Maildir/lucene-indexes && chown %s:users ~%s/Maildir/lucene-indexes
You shouldn't need to do this. It's created automatically. Also by "recreating" do you mean that the users already had Lucene indexes and you deleted them?
tbudkevy 29186 3.7 0.0 6616 3056 ? S 18:11 0:15 dovecot/indexer-worker [tschuetz INBOX]
how can a dovecot/indexer-worker actually access the INBOX of the user "tschuetz" (where "tbudkevy" doesn't have access, due to the different UID)...?
indexer-worker runs basically as chroot, but it doesn't bother switching back to root immediately. My guess is that this was a very brief race condition in ps between reading process's UID and the command line. Unless you can easily reproduce this?
Should ~%s/Maildir/lucene-indexes be filled after having run the command sequence for all users?
Only if there was something in the INBOX. Also if users already had previous Lucene indexes it doesn't work, you need to run doveadm fts rescan because dovecot.index remembers which message was last indexed to Lucene.
- Timo Sirainen tss@iki.fi:
On 11.9.2012, at 19.23, Ralf Hildebrandt wrote:
I'm reacreating all FTS indices on all my users' INBOX folders: mkdir ~%s/Maildir/lucene-indexes && chown %s:users ~%s/Maildir/lucene-indexes
You shouldn't need to do this. It's created automatically. Also by "recreating" do you mean that the users already had Lucene indexes and you deleted them?
There weren't any. That's why I tried creating them!
tbudkevy 29186 3.7 0.0 6616 3056 ? S 18:11 0:15 dovecot/indexer-worker [tschuetz INBOX]
how can a dovecot/indexer-worker actually access the INBOX of the user "tschuetz" (where "tbudkevy" doesn't have access, due to the different UID)...?
indexer-worker runs basically as chroot, but it doesn't bother switching back to root immediately. My guess is that this was a very brief race condition in ps between reading process's UID and the command line. Unless you can easily reproduce this?
Can't :)
Should ~%s/Maildir/lucene-indexes be filled after having run the command sequence for all users?
Only if there was something in the INBOX.
My users ALWAYS have something in their inbox :)
Also if users already had previous Lucene indexes it doesn't work, you need to run doveadm fts rescan because dovecot.index remembers which message was last indexed to Lucene.
OK; I'll try that. Where do I finde the lucene index? I didn't find any trace of ~%s/Maildir/lucene-indexes so I was worried and tried to create the directories.
-- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt@charite.de | http://www.charite.de
- Ralf Hildebrandt Ralf.Hildebrandt@charite.de:
OK; I'll try that. Where do I finde the lucene index? I didn't find any trace of ~%s/Maildir/lucene-indexes so I was worried and tried to create the directories.
I fucked up royally: I somehow managed to have fts but not fts_lucene in my list of plugins...
-- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt@charite.de | http://www.charite.de
On 11.9.2012, at 20.04, Ralf Hildebrandt wrote:
- Ralf Hildebrandt Ralf.Hildebrandt@charite.de:
OK; I'll try that. Where do I finde the lucene index? I didn't find any trace of ~%s/Maildir/lucene-indexes so I was worried and tried to create the directories.
I fucked up royally: I somehow managed to have fts but not fts_lucene in my list of plugins...
It should log errors about that if plugin { fts=lucene } I think?
- Timo Sirainen tss@iki.fi:
I fucked up royally: I somehow managed to have fts but not fts_lucene in my list of plugins...
It should log errors about that if plugin { fts=lucene } I think?
Well, I somehow managed to sprinkle the plugin lines in such a way that no error was triggered. Now I put fts and fts_lucene into mail_plugins and everything works.
-- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt@charite.de | http://www.charite.de
participants (2)
-
Ralf Hildebrandt
-
Timo Sirainen