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

Problem on Ubuntu 18.04 #4

Closed
odhiambo opened this issue Jan 14, 2019 · 24 comments
Closed

Problem on Ubuntu 18.04 #4

odhiambo opened this issue Jan 14, 2019 · 24 comments

Comments

@odhiambo
Copy link

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#

@grosjo
Copy link
Owner

grosjo commented Jan 14, 2019

WHat parameters have you used for "--with-dovecot" parameter ?
Where is located your "dovecot-config" file ?

@odhiambo
Copy link
Author

odhiambo commented Jan 14, 2019 via email

@grosjo
Copy link
Owner

grosjo commented Jan 15, 2019

Using the same parameters, works properly here

@odhiambo
Copy link
Author

odhiambo commented Jan 15, 2019 via email

@odhiambo
Copy link
Author

odhiambo commented Jan 15, 2019 via email

@grosjo
Copy link
Owner

grosjo commented Jan 15, 2019

Don't understand. You seem to have a problem with Dovecot installation, not related to Xapian plugin
.

Can you clarify your question exactly ?

@odhiambo
Copy link
Author

odhiambo commented Jan 15, 2019 via email

@grosjo
Copy link
Owner

grosjo commented Jan 16, 2019

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

@grosjo grosjo mentioned this issue Jan 16, 2019
@grosjo
Copy link
Owner

grosjo commented Jan 18, 2019

Have you managed to install the plugin ?
Will you send the log ?

@odhiambo
Copy link
Author

odhiambo commented Jan 18, 2019 via email

@grosjo
Copy link
Owner

grosjo commented Jan 18, 2019

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 ?

@odhiambo
Copy link
Author

odhiambo commented Jan 18, 2019 via email

@grosjo
Copy link
Owner

grosjo commented Jan 18, 2019

Which version of dovecot are you using ?
Have you rebuild from scratch the plugin ?

@odhiambo
Copy link
Author

odhiambo commented Jan 18, 2019 via email

@grosjo
Copy link
Owner

grosjo commented Jan 18, 2019

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

(...)

@odhiambo
Copy link
Author

odhiambo commented Jan 18, 2019 via email

@grosjo
Copy link
Owner

grosjo commented Jan 19, 2019

Can you please use the latest git of fts-xapian, and send the lines in the log just before this crash ?

@grosjo
Copy link
Owner

grosjo commented Jan 19, 2019

Also a core dump backtrace would be very usefull ( see https://dovecot.org/bugreport.html#coredumps )

@odhiambo
Copy link
Author

odhiambo commented Jan 19, 2019 via email

@grosjo
Copy link
Owner

grosjo commented Jan 19, 2019

Thank you . and can you paste the output of "doveconf -n" ?

@odhiambo
Copy link
Author

odhiambo commented Jan 19, 2019 via email

@grosjo
Copy link
Owner

grosjo commented Jan 19, 2019

ok, I fixed a confusion between DIR and INDEX.

Please kindly update fts-xapian (git pull), make , make install and restart dovecot

@odhiambo
Copy link
Author

odhiambo commented Jan 19, 2019 via email

@grosjo
Copy link
Owner

grosjo commented Jan 19, 2019 via email

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