After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 785876 - No search results returned: Could not get search results, GDBus.Error:org.freedesktop.Tracker1.SparqlError.Internal: no such tokenizer: TrackerTokenizer
No search results returned: Could not get search results, GDBus.Error:org.fre...
Status: RESOLVED DUPLICATE of bug 785883
Product: tracker
Classification: Core
Component: General
1.12.x
Other Linux
: Normal normal
: ---
Assigned To: tracker-general
tracker-general
https://bugs.archlinux.org/task/55046
Depends on:
Blocks:
 
 
Reported: 2017-08-06 07:00 UTC by Johannes Rohr
Modified: 2017-08-22 10:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
libtracker-data: Do not reuse TrackerDBInterface used for DB checks (1.50 KB, patch)
2017-08-06 10:21 UTC, Carlos Garnacho
committed Details | Review

Description Johannes Rohr 2017-08-06 07:00:12 UTC
Whenever I try to search for something, I will get

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

and zero results

In the meantime, I tried rm -rf .cache/tracker to have everything reindexed, but that didn't change a thing (there are tens of thousands of documents in the index but still it hever returns search results.

I am on current arch linux
Comment 1 Johannes Rohr 2017-08-06 07:32:17 UTC
I guess for now this can be closed again. a tracker reset -r did the trick.
Comment 2 Johannes Rohr 2017-08-06 07:54:27 UTC
Actually, the latter worked only on Debian Stretch with tracker 0.10.1, on Arch with Tracker 0.12, the situation is still unchanged. Did another tracker reset -r, but when running tracker search [some search term] I still get zero results and the above error message.
Comment 3 Johannes Rohr 2017-08-06 07:56:04 UTC
sorry, this is the last change for now: Reopening.
Comment 4 Carlos Garnacho 2017-08-06 10:18:06 UTC
(In reply to Johannes Rohr from comment #2)
> Actually, the latter worked only on Debian Stretch with tracker 0.10.1, on
> Arch with Tracker 0.12.

I assume you mean 1.10/1.12?

> the situation is still unchanged. Did another
> tracker reset -r, but when running tracker search [some search term] I still
> get zero results and the above error message.

Resetting the database won't help. Tokenizers need to be registered at runtime for every underlying database connection, so this is definitely a runtime error.

The good news is that this bug was found and fixed in master (bug #784926, although the symptoms were different there). I'm pushing a backported fix to 1.12.

In the mean time, you can work around it by running tracker search with the TRACKER_SPARQL_BACKEND=bus envvar set.
Comment 5 Carlos Garnacho 2017-08-06 10:21:14 UTC
The following fix has been pushed:
0bd32cd libtracker-data: Do not reuse TrackerDBInterface used for DB checks
Comment 6 Carlos Garnacho 2017-08-06 10:21:20 UTC
Created attachment 357047 [details] [review]
libtracker-data: Do not reuse TrackerDBInterface used for DB checks

It is just too soon to let it initialize like the others, just drop it
and let the TrackerDBManager create proper ones on demand.
(Cherry picked from commit 5c61827 on master)
Comment 7 Johannes Rohr 2017-08-06 11:11:13 UTC

> 
> In the mean time, you can work around it by running tracker search with the
> TRACKER_SPARQL_BACKEND=bus envvar set.

Does not work here unfortunately, therefore reopening:

TRACKER_SPARQL_BACKEND=bus tracker search linux
Suchergebnisse konnten nicht angefordert werden, GDBus.Error:org.freedesktop.Tracker1.SparqlError.Internal: no such tokenizer: TrackerTokenizer
Comment 8 Carlos Garnacho 2017-08-06 11:58:19 UTC
Please only reopen this bug if you have tested the *patch* that has been pushed and found it doesn't fix the problem for you. REOPENED only applies if the fix was ineffective/incomplete, or the bug was reintroduced in other ways.

The workaround just lowers the chances for this to happen, if it didn't work for you, such is life. You can also use nautilus or tracker-needle as the tracker search interface, where there's again lower chances for this to happen just by how queries are performed asynchronously.
Comment 10 Carlos Garnacho 2017-08-22 10:34:51 UTC

*** This bug has been marked as a duplicate of bug 785883 ***