-
Notifications
You must be signed in to change notification settings - Fork 20
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
Error with sievec #16
Comments
Can you share your config file ? (doveconf -n) |
ping ? |
root@lists:/etc/dovecot/conf.d# doveadm index -A -q \*
Fatal: Couldn't load required plugin
/usr/lib/dovecot/modules/lib21_fts_xapian_plugin.so: dlopen() failed:
/usr/lib/dovecot/modules/lib21_fts_xapian_plugin.so: undefined symbol:
_ZTIN6icu_608ByteSinkE
# 2.3.4.1 (3c0b8769e): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.4 (60b0f48d)
# OS: Linux 4.15.0-45-generic x86_64 Ubuntu 18.04.1 LTS ext4
# Hostname: lists.my.co.ke
auth_socket_path = /var/run/dovecot/auth-userdb
debug_log_path = /var/log/dovecot/debug.log
default_login_user = dovecot
disable_plaintext_auth = no
first_valid_uid = 114
hostname = lists.my.co.ke
info_log_path = /var/log/dovecot/info.log
log_path = /var/log/dovecot/error.log
mail_location =
maildir:/var/spool/virtual/%d/%n/Maildir:INDEX=/var/spool/virtual/indexes/%d/%1n/%n
mail_plugins = " fts fts_xapian"
mail_privileged_group = mail
mail_server_admin = odhiambo@gmail.com
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation subaddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables body enotify
environment mailbox date index ihave duplicate mime foreverypart
extracttext vacation-seconds
namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
}
passdb {
driver = pam
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
plugin {
fts = xapian
fts_autoindex = yes
fts_autoindex_exclude = \Junk
fts_autoindex_exclude2 = \Trash
fts_autoindex_exclude3 = \Drafts
fts_autoindex_exclude4 = \Spam
fts_enforced = yes
fts_xapian = partial=2 full=20
plugin = fts fts_xapian
sieve = ~/.dovecot.sieve
sieve_default = /var/lib/dovecot/sieve/default.sieve
sieve_extensions = +vacation-seconds
sieve_global = /var/lib/dovecot/sieve/global/
sieve_vacation_default_period = 10d
sieve_vacation_max_period = 30d
sieve_vacation_min_period = 1h
}
postmaster_address = postmaster@my.co.ke
protocols = imap pop3 lmtp sieve sieve
service auth {
unix_listener auth-client {
mode = 0600
user = Debian-exim
}
unix_listener auth-userdb {
group = Debian-exim
user = Debian-exim
}
}
service managesieve-login {
inet_listener sieve {
port = 4190
}
process_min_avail = 0
service_count = 1
vsz_limit = 64 M
}
service managesieve {
process_limit = 1024
}
service stats {
unix_listener stats-reader {
user = Debian-exim
}
unix_listener stats-writer {
user = Debian-exim
}
}
service submission-login {
inet_listener submission {
port = 2587
}
}
ssl_cert = </etc/letsencrypt/live/lists.my.co.ke/fullchain.pem
ssl_client_ca_dir = /etc/ssl/certs
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
userdb {
driver = passwd
}
userdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
protocol lmtp {
info_log_path = /var/log/dovecot/lmtp.log
log_path = /var/log/dovecot/lmtp-errors.log
mail_plugins = " fts fts_xapian sieve"
}
protocol lda {
info_log_path = /var/log/dovecot/lda.log
log_path = /var/log/dovecot/lda-errors.log
mail_plugins = " fts fts_xapian sieve"
}
protocol imap {
mail_plugins = " fts fts_xapian sieve"
}
protocol sieve {
info_log_path = /var/log/dovecot/sieve.log
log_path = /var/log/dovecot/sieve-errors.log
managesieve_implementation_string = Dovecot
managesieve_max_compile_errors = 5
managesieve_max_line_length = 65536
}
protocol pop3 {
mail_plugins = " fts fts_xapian"
}
protocol submission {
mail_plugins = " fts fts_xapian"
}
…On Tue, 26 Feb 2019 at 01:56, Joan Moreau ***@***.***> wrote:
ping ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAyuXgB9EGH29FbmWhgOeVGGDsRgkSBWks5vRGo6gaJpZM4bGAXP>
.
--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)
|
It seems you upgraded libicu on your server .
So you need to recompile fts-xapian (autoreconf -vi ; PANDOC=false
./configure --with-dovecot=/path/to/dovecot ; make ; sudo make install )
|
*I have done that, but the error is still there:*
*root@lists:/home/wash/Xapian/fts-xapian# doveadm index -A -q \*Fatal:
Couldn't load required plugin
/usr/lib/dovecot/modules/lib21_fts_xapian_plugin.so: dlopen() failed:
/usr/lib/dovecot/modules/lib21_fts_xapian_plugin.so: undefined symbol:
_ZTIN6icu_608ByteSinkE*
…On Tue, 26 Feb 2019 at 12:12, Joan Moreau ***@***.***> wrote:
It seems you upgraded libicu on your server .
So you need to recompile fts-xapian (autoreconf -vi ; PANDOC=false
./configure --with-dovecot=/path/to/dovecot ; make ; sudo make install )
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAyuXryDttU0zAkj9TVvOCscjEqK-T3Zks5vRPqNgaJpZM4bGAXP>
.
--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)
|
Can you give the output of |
wash@lists:/usr/lib/dovecot/modules$ ldd lib21_fts_xapian_plugin.so
linux-vdso.so.1 (0x00007ffecedb4000)
libxapian.so.30 => /usr/lib/x86_64-linux-gnu/libxapian.so.30
(0x00007f3d3da65000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(0x00007f3d3d6dc000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3d3d2eb000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1
(0x00007f3d3d0d3000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f3d3cecb000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f3d3ccae000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1
(0x00007f3d3caa7000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f3d3c709000)
/lib64/ld-linux-x86-64.so.2 (0x00007f3d3e07a000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f3d3c4ea000)
…On Tue, 26 Feb 2019 at 16:42, Joan Moreau ***@***.***> wrote:
Can you give the output of
ldd lib21_fts_xapian_plugin.so
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAyuXgGXLDpdMUpvNREl5-2Tor_vvgdeks5vRTm6gaJpZM4bGAXP>
.
--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)
|
You are missing quite a few lib indeed.
Can you do a clean "git clone" (deleting the old files) ?
On 2019-02-26 22:09, Odhiambo WASHINGTON wrote:
***@***.***:/usr/lib/dovecot/modules$ ldd lib21_fts_xapian_plugin.so
linux-vdso.so.1 (0x00007ffecedb4000)
libxapian.so.30 => /usr/lib/x86_64-linux-gnu/libxapian.so.30
(0x00007f3d3da65000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(0x00007f3d3d6dc000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3d3d2eb000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1
(0x00007f3d3d0d3000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f3d3cecb000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f3d3ccae000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1
(0x00007f3d3caa7000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f3d3c709000)
/lib64/ld-linux-x86-64.so.2 (0x00007f3d3e07a000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f3d3c4ea000)
On Tue, 26 Feb 2019 at 16:42, Joan Moreau ***@***.***> wrote:
> Can you give the output of
> ldd lib21_fts_xapian_plugin.so
>
> --
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#16 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAyuXgGXLDpdMUpvNREl5-2Tor_vvgdeks5vRTm6gaJpZM4bGAXP>
> .
>
--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)
--
You are receiving this because you commented.
Reply to this email directly, view it on GitHub [1], or mute the thread [2].
|
After cloning afresh and reinstalling:
root@lists:/home/wash/Xapian/fts-xapian# /etc/init.d/dovecot start
[ ok ] Starting dovecot (via systemctl): dovecot.service.
root@lists:/home/wash/Xapian/fts-xapian# doveadm index -A -q \*
doveadm(nobody): Error:
mkdir(/var/spool/virtual/indexes//n/nobody/xapian-indexes) failed:
Permission denied (euid=65534(nobody) egid=65534(nogroup) missing +w
perm:
/var/spool/virtual/indexes/, dir owned by 114:117 mode=0755)
doveadm(nobody): Error: Xapian: can not create
'/var/spool/virtual/indexes//n/nobody/xapian-indexes'
Segmentation fault (core dumped)
root@lists:/home/wash/Xapian/fts-xapian# ls -al /var/spool/virtual/
total 24
drwxrwxrwt 6 Debian-exim Debian-exim 4096 Jan 15 18:10 .
drwxr-xr-x 7 root root 4096 Dec 22 18:38 ..
drwxr-xr-x 3 Debian-exim Debian-exim 4096 Jan 15 18:29 indexes
drwxrwxrwt 7 Debian-exim Debian-exim 4096 Dec 23 18:59 my.co.ke
drwxrwxrwt 3 Debian-exim Debian-exim 4096 Dec 9 18:45 sieve
drwxrwxrwt 2 Debian-exim Debian-exim 4096 Dec 9 15:54 .vacations
…On Tue, 26 Feb 2019 at 17:40, Joan Moreau ***@***.***> wrote:
You are missing quite a few lib indeed.
Can you do a clean "git clone" (deleting the old files) ?
On 2019-02-26 22:09, Odhiambo WASHINGTON wrote:
> ***@***.***:/usr/lib/dovecot/modules$ ldd lib21_fts_xapian_plugin.so
> linux-vdso.so.1 (0x00007ffecedb4000)
> libxapian.so.30 => /usr/lib/x86_64-linux-gnu/libxapian.so.30
> (0x00007f3d3da65000)
> libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
> (0x00007f3d3d6dc000)
> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3d3d2eb000)
> libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1
> (0x00007f3d3d0d3000)
> librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f3d3cecb000)
> libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f3d3ccae000)
> libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1
> (0x00007f3d3caa7000)
> libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f3d3c709000)
> /lib64/ld-linux-x86-64.so.2 (0x00007f3d3e07a000)
> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
> (0x00007f3d3c4ea000)
>
> On Tue, 26 Feb 2019 at 16:42, Joan Moreau ***@***.***>
wrote:
>
>> Can you give the output of
>> ldd lib21_fts_xapian_plugin.so
>>
>> --
>> You are receiving this because you authored the thread.
>> Reply to this email directly, view it on GitHub
>> <#16 (comment)
>,
>> or mute the thread
>> <
https://github.com/notifications/unsubscribe-auth/AAyuXgGXLDpdMUpvNREl5-2Tor_vvgdeks5vRTm6gaJpZM4bGAXP
>
>> .
>>
>
> --
> Best regards,
> Odhiambo WASHINGTON,
> Nairobi,KE
> +254 7 3200 0004/+254 7 2274 3223
> "Oh, the cruft.", grep ^[^#] :-)
>
> --
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub [1], or mute the thread
[2].
Links:
------
[1]
#16 (comment)
[2]
https://github.com/notifications/unsubscribe-auth/ACLmB-5y-1BJ652l3WjYaUGP6CijYUwuks5vRUACgaJpZM4bGAXP
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAyuXoqHzx4EIwG1sAj606V0Wzgwx_Qtks5vRUdngaJpZM4bGAXP>
.
--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)
|
Please fix some issues in your configuration file: Add in the top paragraph:
Remove:
Fix: You have 2 "userdb" paragraph
You must choose only one (either unix auth or sql auth ) Replace:
Start "plugin" paragaph with:
and remove the other "plugin = .." line |
Now I do not get error messages.
Does the below look okay now?
# 2.3.4.1 (3c0b8769e): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.4 (60b0f48d)
# OS: Linux 4.15.0-45-generic x86_64 Ubuntu 18.04.2 LTS ext4
# Hostname: lists.my.co.ke
auth_socket_path = /var/run/dovecot/auth-userdb
debug_log_path = /var/log/dovecot/debug.log
default_login_user = dovecot
default_vsz_limit = 2 G
disable_plaintext_auth = no
first_valid_uid = 114
hostname = lists.my.co.ke
info_log_path = /var/log/dovecot/info.log
log_path = /var/log/dovecot/error.log
mail_gid = Debian-exim
mail_location =
maildir:/var/spool/virtual/%d/%n/Maildir:INDEX=/var/spool/virtual/indexes/%d/%1n/%n
mail_plugins = fts fts_xapian
mail_privileged_group = mail
mail_server_admin = odhiambo@gmail.com
mail_uid = Debian-exim
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation subaddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables body enotify
environment mailbox date index ihave duplicate mime foreverypart
extracttext vacation-seconds
namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
plugin {
fts = xapian
fts_autoindex = yes
fts_autoindex_exclude = \Junk
fts_autoindex_exclude2 = \Trash
fts_autoindex_exclude3 = \Drafts
fts_autoindex_exclude4 = \Spam
fts_enforced = yes
fts_xapian = partial=2 full=20
plugin = fts fts_xapian managesieve sieve
sieve = ~/.dovecot.sieve
sieve_default = /var/lib/dovecot/sieve/default.sieve
sieve_extensions = +vacation-seconds
sieve_global = /var/lib/dovecot/sieve/global/
sieve_vacation_default_period = 10d
sieve_vacation_max_period = 30d
sieve_vacation_min_period = 1h
}
postmaster_address = postmaster@my.co.ke
protocols = imap pop3 lmtp sieve
service auth {
unix_listener auth-client {
mode = 0600
user = Debian-exim
}
unix_listener auth-userdb {
group = Debian-exim
user = Debian-exim
}
}
service managesieve-login {
inet_listener sieve {
port = 4190
}
process_min_avail = 0
service_count = 1
vsz_limit = 64 M
}
service managesieve {
process_limit = 1024
}
service stats {
unix_listener stats-reader {
user = Debian-exim
}
unix_listener stats-writer {
user = Debian-exim
}
}
service submission-login {
inet_listener submission {
port = 2587
}
}
ssl_cert = </etc/letsencrypt/live/lists.my.co.ke/fullchain.pem
ssl_client_ca_dir = /etc/ssl/certs
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
userdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
protocol lmtp {
info_log_path = /var/log/dovecot/lmtp.log
log_path = /var/log/dovecot/lmtp-errors.log
mail_plugins = fts fts_xapian sieve
}
protocol lda {
info_log_path = /var/log/dovecot/lda.log
log_path = /var/log/dovecot/lda-errors.log
mail_plugins = fts fts_xapian sieve
}
protocol sieve {
info_log_path = /var/log/dovecot/sieve.log
log_path = /var/log/dovecot/sieve-errors.log
managesieve_implementation_string = Dovecot
managesieve_max_compile_errors = 5
managesieve_max_line_length = 65536
}
…On Wed, 27 Feb 2019 at 02:14, Joan Moreau ***@***.***> wrote:
Please fix some issues in your configuration file:
Add in the top paragraph:
mail_gid = Debian-exim
mail_uid = Debian-exim
default_vsz_limit = 2GB
Remove:
protocol imap { mail_plugins = " fts fts_xapian sieve" }
protocol pop3 { mail_plugins = " fts fts_xapian" }
protocol submission { mail_plugins = " fts fts_xapian" }
Fix:
protocols = imap pop3 lmtp sieve sieve
into
protocols = imap pop3 lmtp sieve
You have 2 "userdb" paragraph
userdb { driver = passwd }
userdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql }
You must choose only one (either unix auth or sql auth )
Replace:
protocol lda { info_log_path = /var/log/dovecot/lda.log log_path =
/var/log/dovecot/lda-errors.log mail_plugins = " fts fts_xapian sieve" }
by
protocol lda {
info_log_path = /var/log/dovecot/lda.log
log_path = /var/log/dovecot/lda-errors.log
mail_plugins = $mail_plugins sieve
}
Start "plugin" paragaph with:
plugin {
plugin = fts fts_xapian managesieve sieve
and remove the other "plugin = .." line
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAyuXg7d3iF0UFWraas_LRbC7E55RybXks5vRb_ggaJpZM4bGAXP>
.
--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)
|
It looks ok. As far as Xapian FTS plugin is concerned, I consider the problem solved. For Dovecot support, you may contact the Dovecot mailing list directly : dovecot@dovecot.org |
Ubuntu-18.04:
root@lists:/home/wash/Xapian/fts-xapian# sievec /var/lib/dovecot/sieve/default.sieve
sievec(root): Fatal: Couldn't load required plugin /usr/lib/dovecot/modules/lib21_fts_xapian_plugin.so: dlopen() failed: /usr/lib/dovecot/modules/lib21_fts_xapian_plugin.so: undefined symbol: _ZTIN6icu_608ByteSinkE
The text was updated successfully, but these errors were encountered: