-
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
Problem on Ubuntu 18.04 #4
Comments
WHat parameters have you used for "--with-dovecot" parameter ? |
On Mon, 14 Jan 2019 at 22:52, Joan Moreau ***@***.***> wrote:
What parameters have you used for "--with-dovecot" parameter ?
./configure --prefix=/usr --with-dovecot=/usr/lib/dovecot
Where is located your "dovecot-config" file ?
root@lists:/home/wash# find /usr/ -name dovecot-config
/usr/lib/dovecot/dovecot-config
…--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)
|
Using the same parameters, works properly here |
What does your 10-mail.conf look like?
*My 10-mail.conf:*
mail_location =
maildir:/var/spool/virtual/%d/%n/Maildir:INDEX=/var/spool/virtual/indexes/%d/%1n/%n
namespace inbox {
inbox = yes
}
mail_privileged_group = mail
mail_server_admin = odhiambo@gmail.com
first_valid_uid = 114
auth_socket_path = /var/run/dovecot/auth-userdb
mail_plugin_dir = /usr/lib/dovecot/modules
mail_plugins = $mail_plugins fts fts_xapian
protocol !indexer-worker {
}
*My 90-plugin.conf:*
plugin {
plugin = fts fts_xapian
fts = xapian
fts_xapian = partial=2 full=20
fts_autoindex = yes
fts_enforced = yes
fts_autoindex_exclude = \Junk
fts_autoindex_exclude2 = \Trash
fts_autoindex_exclude3 = \Drafts
fts_autoindex_exclude4 = \Spam
}
root@lists:/home/wash/MongooseIM# doveadm index -u joe@doe -q \*
*Fatal: Plugin 'fts_xapian' not found from directory
/usr/lib/dovecot/modules*
root@lists:/home/wash# ls -al /usr/lib/dovecot/modules
total 1688
drwxr-xr-x 8 root root 12288 Jan 14 18:21 .
drwxr-xr-x 3 root root 12288 Jan 14 18:24 ..
drwxr-xr-x 2 root root 4096 Jan 14 18:21 auth
drwxr-xr-x 2 root root 4096 Jan 14 18:21 dict
drwxr-xr-x 2 root root 4096 Dec 9 18:28 doveadm
-rw-r--r-- 1 root root 92488 Nov 23 14:50 lib01_acl_plugin.so
-rw-r--r-- 1 root root 48368 Nov 23 14:50 lib01_mail_lua_plugin.so
-rw-r--r-- 1 root root 18424 Nov 23 14:50 lib02_imap_acl_plugin.so
-rw-r--r-- 1 root root 18496 Nov 23 14:50 lib02_lazy_expunge_plugin.so
-rw-r--r-- 1 root root 14336 Nov 23 14:50 lib05_mail_crypt_acl_plugin.so
-rw-r--r-- 1 root root 26736 Nov 23 14:50 lib05_pop3_migration_plugin.so
-rw-r--r-- 1 root root 14304 Nov 23 14:50 lib05_snarf_plugin.so
-rw-r--r-- 1 root root 10208 Nov 23 14:50 lib10_last_login_plugin.so
-rw-r--r-- 1 root root 43272 Nov 23 14:50 lib10_mail_crypt_plugin.so
-rw-r--r-- 1 root root 18464 Nov 23 14:50 lib10_mail_filter_plugin.so
-rw-r--r-- 1 root root 97312 Nov 23 14:50 lib10_quota_plugin.so
-rw-r--r-- 1 root root 14208 Nov 23 14:50 lib11_imap_quota_plugin.so
-rw-r--r-- 1 root root 14336 Nov 23 14:50 lib11_trash_plugin.so
-rw-r--r-- 1 root root 18432 Nov 23 14:50 lib15_notify_plugin.so
-rw-r--r-- 1 root root 10176 Nov 23 14:50 lib20_autocreate_plugin.so
-rw-r--r-- 1 root root 10280 Nov 23 14:50 lib20_charset_alias_plugin.so
-rw-r--r-- 1 root root 18464 Nov 23 14:50 lib20_expire_plugin.so
-rw-r--r-- 1 root root 252328 Nov 23 14:50 lib20_fts_plugin.so
-rw-r--r-- 1 root root 5928 Nov 23 14:50 lib20_listescape_plugin.so
-rw-r--r-- 1 root root 14368 Nov 23 14:50 lib20_mailbox_alias_plugin.so
-rw-r--r-- 1 root root 18504 Nov 23 14:50 lib20_mail_log_plugin.so
-rw-r--r-- 1 root root 18408 Nov 23 14:50 lib20_notify_status_plugin.so
-rw-r--r-- 1 root root 52968 Nov 23 14:50 lib20_push_notification_plugin.so
-rw-r--r-- 1 root root 14368 Nov 23 14:50 lib20_quota_clone_plugin.so
-rw-r--r-- 1 root root 14408 Nov 23 14:50 lib20_replication_plugin.so
-rw-r--r-- 1 root root 14248 Nov 23 14:50 lib20_var_expand_crypt.so
-rw-r--r-- 1 root root 81360 Nov 23 14:50 lib20_virtual_plugin.so
-rw-r--r-- 1 root root 47208 Nov 23 14:50 lib20_zlib_plugin.so
-rw-r--r-- 1 root root 80304 Nov 23 14:50 lib21_fts_lucene_plugin.so
-rw-r--r-- 1 root root 47488 Nov 23 14:50 lib21_fts_solr_plugin.so
-rw-r--r-- 1 root root 63560 Nov 23 14:50 lib21_fts_squat_plugin.so
-rw-r--r-- 1 root root 18464 Nov 23 14:50
lib22_push_notification_lua_plugin.so
-rw-r--r-- 1 root root 42960 Nov 23 14:50 lib30_imap_zlib_plugin.so
-rw-r--r-- 1 root root 27144 Nov 23 14:50 lib90_old_stats_plugin.so
-rw-r--r-- 1 root root 26544 Nov 23 14:51 lib90_sieve_plugin.so
-rw-r--r-- 1 root root 38960 Nov 23 14:51 lib95_imap_filter_sieve_plugin.so
-rw-r--r-- 1 root root 10144 Nov 23 14:50 lib95_imap_old_stats_plugin.so
-rw-r--r-- 1 root root 47280 Nov 23 14:51 lib95_imap_sieve_plugin.so
-rw-r--r-- 1 root root 10240 Nov 23 14:50 lib99_welcome_plugin.so
-rw-r--r-- 1 root root 22472 Nov 23 14:50 libdriver_mysql.so
-rw-r--r-- 1 root root 18376 Nov 23 14:50 libdriver_sqlite.so
-rw-r--r-- 1 root root 14248 Nov 23 14:50 libfs_compress.so
-rw-r--r-- 1 root root 26560 Nov 23 14:50 libfs_crypt.so
-rw-r--r-- 1 root root 26536 Nov 23 14:50 libfs_mail_crypt.so
-rw-r--r-- 1 root root 51120 Nov 23 14:50 libssl_iostream_openssl.so
drwxr-xr-x 2 root root 4096 Dec 9 18:28 old-stats
drwxr-xr-x 2 root root 4096 Dec 12 17:41 settings
drwxr-xr-x 2 root root 4096 Dec 9 18:28 sieve
So, maybe for Ubuntu, you need to make the plugin to be installed
in /usr/lib/dovecot/modules ??
…On Tue, 15 Jan 2019 at 16:25, Joan Moreau ***@***.***> wrote:
Using the same parameters, works properly here
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAyuXsZH-YsrUuu_w2VAVIUItYUmGwDMks5vDda2gaJpZM4Z_Tq7>
.
--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)
|
I did another install.
root@lists:/home/wash# doveadm index -u joe@doe -q \*
doveadm(joe@doe): Panic: file mailbox-list.c: line 1244
(mailbox_list_try_mkdir_root): assertion failed: (str_begins(path,
root_dir))
doveadm(joe@doe): Error: Raw backtrace:
/usr/lib/dovecot/libdovecot.so.0(+0xd492e) [0x7f62503a292e] ->
/usr/lib/dovecot/libdovecot.so.0(+0xd4971) [0x7f62503a2971] ->
/usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f625030b824] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mailbox_list_try_mkdir_root+0x388)
[0x7f62506aef78] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mailbox_list_mkdir_root+0x23)
[0x7f62506af1f3] ->
/usr/lib/dovecot/modules/lib21_fts_xapian_plugin.so(+0x36ea)
[0x7f624ec2e6ea] ->
/usr/lib/dovecot/modules/lib20_fts_plugin.so(fts_backend_init+0x95)
[0x7f624f295ce5] ->
/usr/lib/dovecot/modules/lib20_fts_plugin.so(fts_mail_namespaces_added+0xd4)
[0x7f624f29f264] ->
/usr/lib/dovecot/libdovecot-storage.so.0(hook_mail_namespaces_added+0x90)
[0x7f62506a2900] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mail_user_add_namespace+0xf4)
[0x7f62506a85b4] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mail_namespaces_init_finish+0x425)
[0x7f6250693595] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mail_namespaces_init+0x174)
[0x7f6250693d94] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mail_storage_service_next_with_session_suffix+0x74a)
[0x7f62506a62ea] -> doveadm(+0x2bcb1) [0x565266493cb1] -> doveadm(+0x2c9e9)
[0x5652664949e9] -> doveadm(doveadm_cmd_ver2_to_mail_cmd_wrapper+0x216)
[0x5652664958c6] -> doveadm(doveadm_cmd_run_ver2+0x55e) [0x5652664a6a3e] ->
doveadm(doveadm_cmd_try_run_ver2+0x37) [0x5652664a6a97] ->
doveadm(main+0x1d1) [0x565266483dd1] ->
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7f624f90fb97] ->
doveadm(_start+0x2a) [0x56526648426a]
Aborted (core dumped)
On Tue, 15 Jan 2019 at 17:51, Odhiambo Washington <odhiambo@gmail.com>
wrote:
… What does your 10-mail.conf look like?
*My 10-mail.conf:*
mail_location =
maildir:/var/spool/virtual/%d/%n/Maildir:INDEX=/var/spool/virtual/indexes/%d/%1n/%n
namespace inbox {
inbox = yes
}
mail_privileged_group = mail
mail_server_admin = ***@***.***
first_valid_uid = 114
auth_socket_path = /var/run/dovecot/auth-userdb
mail_plugin_dir = /usr/lib/dovecot/modules
mail_plugins = $mail_plugins fts fts_xapian
protocol !indexer-worker {
}
*My 90-plugin.conf:*
plugin {
plugin = fts fts_xapian
fts = xapian
fts_xapian = partial=2 full=20
fts_autoindex = yes
fts_enforced = yes
fts_autoindex_exclude = \Junk
fts_autoindex_exclude2 = \Trash
fts_autoindex_exclude3 = \Drafts
fts_autoindex_exclude4 = \Spam
}
***@***.***:/home/wash/MongooseIM# doveadm index -u ***@***.*** -q \*
*Fatal: Plugin 'fts_xapian' not found from directory
/usr/lib/dovecot/modules*
***@***.***:/home/wash# ls -al /usr/lib/dovecot/modules
total 1688
drwxr-xr-x 8 root root 12288 Jan 14 18:21 .
drwxr-xr-x 3 root root 12288 Jan 14 18:24 ..
drwxr-xr-x 2 root root 4096 Jan 14 18:21 auth
drwxr-xr-x 2 root root 4096 Jan 14 18:21 dict
drwxr-xr-x 2 root root 4096 Dec 9 18:28 doveadm
-rw-r--r-- 1 root root 92488 Nov 23 14:50 lib01_acl_plugin.so
-rw-r--r-- 1 root root 48368 Nov 23 14:50 lib01_mail_lua_plugin.so
-rw-r--r-- 1 root root 18424 Nov 23 14:50 lib02_imap_acl_plugin.so
-rw-r--r-- 1 root root 18496 Nov 23 14:50 lib02_lazy_expunge_plugin.so
-rw-r--r-- 1 root root 14336 Nov 23 14:50 lib05_mail_crypt_acl_plugin.so
-rw-r--r-- 1 root root 26736 Nov 23 14:50 lib05_pop3_migration_plugin.so
-rw-r--r-- 1 root root 14304 Nov 23 14:50 lib05_snarf_plugin.so
-rw-r--r-- 1 root root 10208 Nov 23 14:50 lib10_last_login_plugin.so
-rw-r--r-- 1 root root 43272 Nov 23 14:50 lib10_mail_crypt_plugin.so
-rw-r--r-- 1 root root 18464 Nov 23 14:50 lib10_mail_filter_plugin.so
-rw-r--r-- 1 root root 97312 Nov 23 14:50 lib10_quota_plugin.so
-rw-r--r-- 1 root root 14208 Nov 23 14:50 lib11_imap_quota_plugin.so
-rw-r--r-- 1 root root 14336 Nov 23 14:50 lib11_trash_plugin.so
-rw-r--r-- 1 root root 18432 Nov 23 14:50 lib15_notify_plugin.so
-rw-r--r-- 1 root root 10176 Nov 23 14:50 lib20_autocreate_plugin.so
-rw-r--r-- 1 root root 10280 Nov 23 14:50 lib20_charset_alias_plugin.so
-rw-r--r-- 1 root root 18464 Nov 23 14:50 lib20_expire_plugin.so
-rw-r--r-- 1 root root 252328 Nov 23 14:50 lib20_fts_plugin.so
-rw-r--r-- 1 root root 5928 Nov 23 14:50 lib20_listescape_plugin.so
-rw-r--r-- 1 root root 14368 Nov 23 14:50 lib20_mailbox_alias_plugin.so
-rw-r--r-- 1 root root 18504 Nov 23 14:50 lib20_mail_log_plugin.so
-rw-r--r-- 1 root root 18408 Nov 23 14:50 lib20_notify_status_plugin.so
-rw-r--r-- 1 root root 52968 Nov 23 14:50
lib20_push_notification_plugin.so
-rw-r--r-- 1 root root 14368 Nov 23 14:50 lib20_quota_clone_plugin.so
-rw-r--r-- 1 root root 14408 Nov 23 14:50 lib20_replication_plugin.so
-rw-r--r-- 1 root root 14248 Nov 23 14:50 lib20_var_expand_crypt.so
-rw-r--r-- 1 root root 81360 Nov 23 14:50 lib20_virtual_plugin.so
-rw-r--r-- 1 root root 47208 Nov 23 14:50 lib20_zlib_plugin.so
-rw-r--r-- 1 root root 80304 Nov 23 14:50 lib21_fts_lucene_plugin.so
-rw-r--r-- 1 root root 47488 Nov 23 14:50 lib21_fts_solr_plugin.so
-rw-r--r-- 1 root root 63560 Nov 23 14:50 lib21_fts_squat_plugin.so
-rw-r--r-- 1 root root 18464 Nov 23 14:50
lib22_push_notification_lua_plugin.so
-rw-r--r-- 1 root root 42960 Nov 23 14:50 lib30_imap_zlib_plugin.so
-rw-r--r-- 1 root root 27144 Nov 23 14:50 lib90_old_stats_plugin.so
-rw-r--r-- 1 root root 26544 Nov 23 14:51 lib90_sieve_plugin.so
-rw-r--r-- 1 root root 38960 Nov 23 14:51
lib95_imap_filter_sieve_plugin.so
-rw-r--r-- 1 root root 10144 Nov 23 14:50 lib95_imap_old_stats_plugin.so
-rw-r--r-- 1 root root 47280 Nov 23 14:51 lib95_imap_sieve_plugin.so
-rw-r--r-- 1 root root 10240 Nov 23 14:50 lib99_welcome_plugin.so
-rw-r--r-- 1 root root 22472 Nov 23 14:50 libdriver_mysql.so
-rw-r--r-- 1 root root 18376 Nov 23 14:50 libdriver_sqlite.so
-rw-r--r-- 1 root root 14248 Nov 23 14:50 libfs_compress.so
-rw-r--r-- 1 root root 26560 Nov 23 14:50 libfs_crypt.so
-rw-r--r-- 1 root root 26536 Nov 23 14:50 libfs_mail_crypt.so
-rw-r--r-- 1 root root 51120 Nov 23 14:50 libssl_iostream_openssl.so
drwxr-xr-x 2 root root 4096 Dec 9 18:28 old-stats
drwxr-xr-x 2 root root 4096 Dec 12 17:41 settings
drwxr-xr-x 2 root root 4096 Dec 9 18:28 sieve
So, maybe for Ubuntu, you need to make the plugin to be installed
in /usr/lib/dovecot/modules ??
On Tue, 15 Jan 2019 at 16:25, Joan Moreau ***@***.***>
wrote:
> Using the same parameters, works properly here
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#4 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAyuXsZH-YsrUuu_w2VAVIUItYUmGwDMks5vDda2gaJpZM4Z_Tq7>
> .
>
--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)
--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)
|
Don't understand. You seem to have a problem with Dovecot installation, not related to Xapian plugin Can you clarify your question exactly ? |
On Wed, 16 Jan 2019 at 01:50, Joan Moreau ***@***.***> wrote:
Don't understand. You seem to have a problem with Dovecot installation,
not related to Xapian plugin
.
Can you clarify your question exactly ?
Well, I actually do not understand what is wrong.
For starters, I am running several servers using dovecot-2.3.4 and they are
all configured the same way.
I am only trying to add fts-xapian to the setup according to the
instructions from your github.
I could allow you access to any of the machines to see if you can pinpoint
the problem, no?
…--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)
|
If you need my help, please do provide the log files I asked you before ( the log file of dovecot where FTS Xapian mentions DB_PATH) For the location of the library, I do not know really your setup, but just place lib21_fts_xapian_plugin.* at the same location you have lib21_fts_squat_plugin.xxx |
Have you managed to install the plugin ? |
Hi Joan,
I am actually giving up on the plugin as I don't seem to be getting
something right with it.
The log I sent you is the last one I had after I deleted everything and
started afresh.
Now, if you are willing to help me diagnose by prying on the system(s), I'd
be happy to grant access.
Otherwise I will put this in abeyance for a while...
…On Fri, 18 Jan 2019 at 05:32, Joan Moreau ***@***.***> wrote:
Have you managed to install the plugin ?
Will you send the log ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAyuXpf6hoigQmmTbHMJICOkws3j79f9ks5vETJLgaJpZM4Z_Tq7>
.
--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)
|
Cqn try the following : Step 1 : Install Dovecot without FTS at all (not fts in the conf files), and try to login (imap/pop) as per your own configuration with a test user; Step 2 : do "doveadm index -u joe@doe -q *" replacing "joe@doe" by the same test user Step 3 : Install FTS Xapian and redo the same command ? |
On Fri, 18 Jan 2019 at 10:30, Joan Moreau ***@***.***> wrote:
Cqn try the following :
Step 1 : Install Dovecot without FTS at all (not fts in the conf files),
and try to login (imap/pop) as per your own configuration with a test user;
Step 2 : do "doveadm index -u ***@***.*** -q *" replacing ***@***.***" by the
same test user
[sudo] password for wash:
root@lists:/home/wash# nano /etc/dovecot/conf.d/10-mail.conf
root@lists:/home/wash# /etc/init.d/dovecot restart
[ ok ] Restarting dovecot (via systemctl): dovecot.service.
root@lists:/home/wash# doveadm index -u joe@doe -q \*
root@lists:/home/wash#
No error at all.
Step 3 : Install FTS Xapian and redo the same command ?
root@lists:/home/wash/Xapian/fts-xapian# doveadm index -u joe@doe -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:
fts_backend_default_can_lookup
…--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)
|
Which version of dovecot are you using ? |
I'm running 2.3.4.
The plugin is built from source
…On Fri, Jan 18, 2019, 19:19 Joan Moreau ***@***.*** wrote:
Which version of dovecot are you using ?
Have you rebuild from scratch the plugin ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAyuXknbhP3b49i4IPPq6IITC0_KyUzLks5vEfQIgaJpZM4Z_Tq7>
.
|
I can reproduce your error : just make sure "fts" is in the plugin list syslog_facility = mail mail_plugins = fts fts_xapian default_vsz_limit = 16GB (...) plugin { (...) |
root@lists:/etc/dovecot/conf.d# doveadm index -u dnsadmin@my.co.ke -q \*
doveadm(dnsadmin@my.co.ke): Panic: file mailbox-list.c: line 1244
(mailbox_list_try_mkdir_root): assertion failed: (str_begins(path,
root_dir))
doveadm(dnsadmin@my.co.ke): Error: Raw backtrace:
/usr/lib/dovecot/libdovecot.so.0(+0xd492e) [0x7f522742a92e] ->
/usr/lib/dovecot/libdovecot.so.0(+0xd4971) [0x7f522742a971] ->
/usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f5227393824] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mailbox_list_try_mkdir_root+0x388)
[0x7f5227736f78] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mailbox_list_mkdir_root+0x23)
[0x7f52277371f3] ->
/usr/lib/dovecot/modules/lib21_fts_xapian_plugin.so(+0x36ea)
[0x7f5225cb66ea] ->
/usr/lib/dovecot/modules/lib20_fts_plugin.so(fts_backend_init+0x95)
[0x7f522631dce5] ->
/usr/lib/dovecot/modules/lib20_fts_plugin.so(fts_mail_namespaces_added+0xd4)
[0x7f5226327264] ->
/usr/lib/dovecot/libdovecot-storage.so.0(hook_mail_namespaces_added+0x90)
[0x7f522772a900] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mail_user_add_namespace+0xf4)
[0x7f52277305b4] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mail_namespaces_init_finish+0x425)
[0x7f522771b595] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mail_namespaces_init+0x174)
[0x7f522771bd94] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mail_storage_service_next_with_session_suffix+0x74a)
[0x7f522772e2ea] -> doveadm(+0x2bcb1) [0x556cd3976cb1] -> doveadm(+0x2c9e9)
[0x556cd39779e9] -> doveadm(doveadm_cmd_ver2_to_mail_cmd_wrapper+0x216)
[0x556cd39788c6] -> doveadm(doveadm_cmd_run_ver2+0x55e) [0x556cd3989a3e] ->
doveadm(doveadm_cmd_try_run_ver2+0x37) [0x556cd3989a97] ->
doveadm(main+0x1d1) [0x556cd3966dd1] ->
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7f5226997b97] ->
doveadm(_start+0x2a) [0x556cd396726a]
Aborted (core dumped)
…On Fri, 18 Jan 2019 at 23:32, Joan Moreau ***@***.***> wrote:
I can reproduce your error : just make sure "fts" is in the plugin list
syslog_facility = mail
(...)
mail_plugins = fts fts_xapian
default_vsz_limit = 16GB
(...)
plugin {
plugin = fts fts_xapian
(...)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAyuXm4kLjtHpCE67EBqfH4FG9f6Ssujks5vEi9CgaJpZM4Z_Tq7>
.
--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)
|
Can you please use the latest git of fts-xapian, and send the lines in the log just before this crash ? |
Also a core dump backtrace would be very usefull ( see https://dovecot.org/bugreport.html#coredumps ) |
root@lists:/etc/dovecot/conf.d# gdb --args /usr/lib/dovecot/imap -u
dnsadmin@my.co.ke
GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/lib/dovecot/imap...(no debugging symbols
found)...done.
(gdb) r
Starting program: /usr/lib/dovecot/imap -u dnsadmin@my.co.ke
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
* PREAUTH [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT
SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT
MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS
LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN
CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY LITERAL+ NOTIFY
SPECIAL-USE] Logged in as dnsadmin@my.co.ke
imap(dnsadmin@my.co.ke)<31828><jVM1ASfwQlxUfAAARjYQ3A>: Info: FTS Xapian:
Partial=2, Full=20 DB_PATH=/var/spool/virtual/
my.co.ke/dnsadmin/Maildir/xapian-indexes
imap(dnsadmin@my.co.ke)<31828><jVM1ASfwQlxUfAAARjYQ3A>: Panic: file
mailbox-list.c: line 1244 (mailbox_list_try_mkdir_root): assertion failed:
(str_begins(path, root_dir))
imap(dnsadmin@my.co.ke)<31828><jVM1ASfwQlxUfAAARjYQ3A>: Error: Raw
backtrace: /usr/lib/dovecot/libdovecot.so.0(+0xd492e) [0x7ffff77ce92e] ->
/usr/lib/dovecot/libdovecot.so.0(+0xd4971) [0x7ffff77ce971] ->
/usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7ffff7737824] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mailbox_list_try_mkdir_root+0x388)
[0x7ffff7adaf78] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mailbox_list_mkdir_root+0x23)
[0x7ffff7adb1f3] ->
/usr/lib/dovecot/modules/lib21_fts_xapian_plugin.so(+0x3a63)
[0x7ffff6655a63] ->
/usr/lib/dovecot/modules/lib20_fts_plugin.so(fts_backend_init+0x95)
[0x7ffff6cbdce5] ->
/usr/lib/dovecot/modules/lib20_fts_plugin.so(fts_mail_namespaces_added+0xd4)
[0x7ffff6cc7264] ->
/usr/lib/dovecot/libdovecot-storage.so.0(hook_mail_namespaces_added+0x90)
[0x7ffff7ace900] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mail_user_add_namespace+0xf4)
[0x7ffff7ad45b4] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mail_namespaces_init_finish+0x425)
[0x7ffff7abf595] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mail_namespaces_init+0x174)
[0x7ffff7abfd94] -> /usr/lib/dovecot/imap(client_create_finish+0x10)
[0x55555556e2c0] -> /usr/lib/dovecot/imap(main+0x40b) [0x5555555626db] ->
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7ffff732ab97] ->
/usr/lib/dovecot/imap(_start+0x2a) [0x5555555627ea]
Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb)
…On Sat, 19 Jan 2019 at 11:42, Joan Moreau ***@***.***> wrote:
Also a core dump backtrace would be very usefull ( see
https://dovecot.org/bugreport.html#coredumps )
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAyuXphBPUKPclqF-eUQIiKtTW0PL8ynks5vEtqLgaJpZM4Z_Tq7>
.
--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)
|
Thank you . and can you paste the output of "doveconf -n" ? |
# 2.3.4 (0ecbaf23d): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.4 (60b0f48d)
# OS: Linux 4.15.0-43-generic x86_64 Ubuntu 18.04.1 LTS ext4
# Hostname: lists.my.co.ke
auth_socket_path = /var/run/dovecot/auth-userdb
default_login_user = dovecot
disable_plaintext_auth = no
first_valid_uid = 114
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
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
}
postmaster_address = postmaster@my.co.ke
protocols = " imap lmtp sieve pop3 submission"
service auth {
unix_listener auth-client {
mode = 0600
user = Debian-exim
}
unix_listener auth-userdb {
group = Debian-exim
user = Debian-exim
}
}
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 imap {
mail_plugins = " fts fts_xapian imap_sieve"
}
…On Sat, 19 Jan 2019 at 14:26, Joan Moreau ***@***.***> wrote:
Thank you . and can you paste the output of "doveconf -n" ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAyuXnTHPWy_hIbwuM7zaEzb8yJPjFn7ks5vEwDvgaJpZM4Z_Tq7>
.
--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)
|
ok, I fixed a confusion between DIR and INDEX. Please kindly update fts-xapian (git pull), make , make install and restart dovecot |
root@lists:/etc/dovecot/conf.d# !1950
doveadm index -u dnsadmin@my.co.ke -q \*
doveadm(dnsadmin@my.co.ke): Info: FTS Xapian: Partial=2, Full=20
DB_PATH=/var/spool/virtual/indexes/my.co.ke/d/dnsadmin/xapian-indexes
root@lists:/etc/dovecot/conf.d# ls -al /var/spool/virtual/indexes/
my.co.ke/d/dnsadmin/xapian-indexes/
total 16
drwxrwxrwx 4 Debian-exim Debian-exim 4096 Jan 19 14:44 .
drwxrwxrwx 8 Debian-exim Debian-exim 4096 Jan 19 14:44 ..
drwx------ 2 Debian-exim Debian-exim 4096 Jan 19 14:44
db_4018eb1b40831b5c736b0000463610dc
drwx------ 2 Debian-exim Debian-exim 4096 Jan 19 14:44
db_dd57491240831b5c736b0000463610dc
No more crash!
…On Sat, 19 Jan 2019 at 14:38, Joan Moreau ***@***.***> wrote:
ok, I fixed a confusion between DIR and INDEX.
Please kindly update fts-xapian (git pull), make , make install and
restart dovecot
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAyuXoK8VNms8eBhdjZaGEo54RC8FJ77ks5vEwO-gaJpZM4Z_Tq7>
.
--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)
|
Cool
|
After installation using the instructions:
root@lists:/usr/local/src/fts-xapian# doveadm index -u user@domain -q *
Fatal: Plugin 'fts_xapian' not found from directory /usr/lib/dovecot/modules
root@lists:/usr/local/src/fts-xapian# ls -al /usr/lib/dovecot/ | grep xapian
-rw-r--r-- 1 root root 815898 Jan 14 18:24 lib21_fts_xapian_plugin.a
-rwxr-xr-x 1 root root 1075 Jan 14 18:24 lib21_fts_xapian_plugin.la
-rwxr-xr-x 1 root root 399448 Jan 14 18:24 lib21_fts_xapian_plugin.so
root@lists:/usr/local/src/fts-xapian# ls -al /usr/lib/dovecot/modules/ | grep xapian
root@lists:/usr/local/src/fts-xapian#
So, dovecot is expecting some files in /usr/lib/dovecot/modules/ ??
When I edit 10-mail.conf and put plugin_dir =/usr/lib/dovecot, then:
root@lists:/etc/dovecot/conf.d# doveadm index -u user@domain -q *
Fatal: Couldn't load required plugin /usr/lib/dovecot/lib21_fts_xapian_plugin.so: dlopen() failed: /usr/lib/dovecot/lib21_fts_xapian_plugin.so: undefined symbol: fts_backend_default_can_lookup
root@lists:/etc/dovecot/conf.d#
The text was updated successfully, but these errors were encountered: