Hi list,
I have some issues with enabling xapian search on a CentOS 8 box with
Cyrus 3.0.7
From the doc [1], I read that if CJK support is not required I can use
the stock Xapian 1.4 packages. So I installed them via "yum install
xapian-core xapian-bindings xapian-core-libs". Then, I setup cyrus as
from the docs:
# imapd.conf
sync_log: on
sync_log_channels: squatter
search_engine: xapian
search_index_headers: 0
search_batchsize: 8192
defaultsearchtier: temp
tempsearchpartition-default: /tmp (test dir)
# cyrus.conf
DAEMON {
# run a rolling squatter
squatter cmd="squatter -R"
}
However, the squatter process is died just after cyrus was restartd:
# /var/log/maillog
Nov 28 16:58:47 localhost cyrus/master[1009233]: process type:DAEMON
name:squatter path:/usr/sbin/squatter age:0.010s pid:1009261 exited,
status 75
Nov 28 16:58:47 localhost cyrus/master[1009233]: service squatter/daemon
pid 1009261 in READY state: terminated abnormally
Nov 28 16:58:47 localhost cyrus/master[1009233]: too many failures for
service squatter/daemon, disabling until next SIGHUP
Executing it manually resulted in the followig error:
[root@localhost ~]# sudo -u cyrus squatter -R -d
cyrus/squatter[1009343]: Reprocessing sync log file
/var/lib/imap/sync/squatter/log-run
fatal error: could not construct search text receiver
Running squatter without -R seems to end with a "done indexing
mailboxes" message; however, I am quite sure no index was really taken:
[root@localhost]# sudo -u cyrus squatter -d -r -u redacted@xxxxxxxxxxx
cyrus/squatter[1008994]: indexing mailboxes
cyrus/squatter[1008994]: done indexing mailboxes
I must do something wrong... does anyone have some suggestions?
As a side note, with an older Cyrus 2.3 box I was able to use squat full
text index, but it seems to be partially broken on Cyrus 3.x (while
index search works, full text search does not work):
https://github.com/cyrusimap/cyrus-imapd/issues/2598
If a workaround for the squat issue above exists, I can revert to using
it rathen than xapian.
Regards.
[1]
https://www.cyrusimap.org/imap/developer/install-xapian.html#configuring-xapian
--
Danti Gionatan
Supporto Tecnico
Assyoma S.r.l. - www.assyoma.it
email: g.danti@xxxxxxxxxx - info@xxxxxxxxxx
GPG public key ID: FF5F32A8
------------------------------------------
Cyrus: Info
Permalink: https://cyrus.topicbox.com/groups/info/T0f0489ac9d5b972a-M9ef7504d96329c381a375396
Delivery options: https://cyrus.topicbox.com/groups/info/subscription