Kmail searching issues
Russ Kepler
russ at kepler-eng.com
Sat Feb 18 16:44:31 GMT 2017
A year ago I figured that the email searching had finally turned the corner
and was working reliably and well. Since then something has changed as the
results from a Kontact Edit->Find Messages has no resemblance to the search
done in the folder. The former brings up a bunch of mail none of which
contain the search term while the latter bring up appropriate emails all
containing the search term. All I can figure is that the latter search is
done physically against the email files and the former is using a corrupted
index.
Deciding to repair the index I stopped everything with 'akonadictl stop',
cleared the directory .local/share/baloo/email , reset .kde/share/config/
baloorc to contain initialIndexingDone=false under the [Akonadi] section and
restarted. It looked like indexing was running with occasional bursts of
activity but after 14 days of running indexing the Edit->Find Messages was
still not returning anything.
So I stopped and shut things down and restarted with akonadictl start. This
time I saw some results but not as many as expected and now the indexing
didn't seem to be running anymore. Stopping things and looking for problems
with 'akonadictl fsck' isn't working (but worked a few minutes ago) as the
command hangs (even after no other akonadi processes can be seen).
On starting I do see these errors:
akonadi_baloo_indexer(21083): "DatabaseLockError" "DatabaseLockError: Unable
to get write lock on /home/russ/.local/share/baloo/email/: already locked"
akonadi_baloo_indexer(21083): "DatabaseLockError" "DatabaseLockError: Unable
to get write lock on /home/russ/.local/share/baloo/emailContacts/: already
locked"
even after stopping akonadi, clearing the 'flintlock' file from the directory
and restarting, so it *looks* like there's more than one indexer running.
Another anomaly is that I see the line:
QString AgentManager::agentInstanceType(const QString&) Agent instance with
identifier "akonadi_baloo_indexer" does not exist
and
void AgentManager::removeAgentInstance(const QString&) Agent instance
"akonadi_baloo_indexer" has no interface!
PreprocessorManager::unregisterInstance( "akonadi_baloo_indexer" )
early in the output, suggesting maybe some configuration error?
Any suggestions?
P.S.: I just tried to make sure that I was seeing all the log entries and
stopped and restarted with akonadictl. On the restart the final few lines
are:
akonadi_baloo_indexer(21490): Could not obtain lock for Xapian Database. This
is bad
akonadi_baloo_indexer(21490): "DatabaseLockError" "DatabaseLockError: Unable
to get write lock on /home/russ/.local/share/baloo/notes/: already locked"
akonadi_baloo_indexer(21490): "DatabaseLockError" "DatabaseLockError: Unable
to get write lock on /home/russ/.local/share/baloo/calendars/: already locked"
akonadi_baloo_indexer(21490)/libakonadi: Unable to register service
"org.freedesktop.Akonadi.Agent.akonadi_baloo_indexer" at dbus: ""
KCrash: Application 'akonadi_baloo_indexer' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
KCrash: Connect sock_file=/home/russ/.kde/socket-main/kdeinit4__0
Unable to start Dr. Konqi
Not forwarding the crash to Apport.
More information about the kdepim-users
mailing list