FS#55046 - tracker returns 0 results. "no such tokenizer: TrackerTokenizer"

Attached to Project: Arch Linux
Opened by Johannes Rohr (jro) - Sunday, 06 August 2017, 07:05 GMT
Last edited by Jan Alexander Steffens (heftig) - Monday, 07 August 2017, 18:39 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

whenever I try to search something in tracker I get zero results dispite tens of thousands of files indexed. The console says:

Could not get search results, GDBus.Error:org.freedesktop.Tracker1.SparqlError.Internal: no such tokenizer: TrackerTokenizer

I have already done rm -rf ~/.config/tracker to have all reindexed. but that doesn't change a thing.

Additional info:
* package version(s) tracker 0.12.1-1
* config and/or log files etc.


Steps to reproduce:
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Monday, 07 August 2017, 18:39 GMT
Reason for closing:  Fixed
Additional comments about closing:  tracker 1.12.2-1
Comment by Johannes Rohr (jro) - Sunday, 06 August 2017, 07:33 GMT
I did a tracker reset -r which seems to have solved it
Comment by Johannes Rohr (jro) - Sunday, 06 August 2017, 07:35 GMT
I guess the database was no longer compatible to current tracker versions and in such a case, it should be automatically converted or recreated
Comment by Johannes Rohr (jro) - Sunday, 06 August 2017, 07:52 GMT
unfortunately this success message was permature. It worked on Debian, but on Arch I still get

no such tokenizer: TrackerTokenizer
Comment by Johannes Rohr (jro) - Sunday, 06 August 2017, 07:55 GMT
I have opened a bug in the GNOME bugzilla at https://bugzilla.gnome.org/show_bug.cgi?id=785876
Comment by Eli Schwartz (eschwartz) - Sunday, 06 August 2017, 14:50 GMT
  • Field changed: Status (Unconfirmed → Assigned)
  • Field changed: Category (Packages: Extra → Upstream Bugs)
  • Task assigned to Jan Alexander Steffens (heftig)
Comment by Jake Dane (jakedane) - Sunday, 06 August 2017, 19:35 GMT
My bug https://bugs.archlinux.org/task/55054 was closed as duplicate of this one but upstream has provided a different patch for my bug. See https://bugzilla.gnome.org/show_bug.cgi?id=785883#c2.

I, and upstream, have determined that the "no such tokenizer: TrackerTokenizer" error stems from tracker requiring a code change to work with sqlite 3.20.0 that was just upgraded to on Arch Linux.

I've tried the patch jro and eschwartz linked to at https://bugzilla.gnome.org/attachment.cgi?id=357047&action=edit but that doesn't resolve my issue and tracker 1.12 with that patch applied still gives "no such tokenizer: TrackerTokenizer" after upgrading sqlite to 3.20.0.
Comment by Jake Dane (jakedane) - Monday, 07 August 2017, 07:09 GMT
A patch is available from upstream that works with tracker 1.12.1 and 1.99.1: https://bugzilla.gnome.org/attachment.cgi?id=357074&action=diff. At compile time it detects whether sqlite version 3.20.0 or newer is installed and then uses the correct code for that.

I've tested this just now on Arch Linux' tracker 1.12.1-1 and it resolves the issue.

Loading...