Page MenuHomeSolus

gnome-documents and gnome-books fail to open
Closed, ResolvedPublic

Description

I've installed from the command line and from the software center with the same result. When I try to run either of them, I get the following errors:

(org.gnome.Documents:8561): Gjs-WARNING **: JS ERROR: Unable to connect to the tracker database: Tracker.Error: Failed to load SPARQL backend: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
Application<.vfunc_startup@resource:///org/gnome/Documents/js/application.js:374:26
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
main@resource:///org/gnome/Documents/js/main.js:48:12
run@resource:///org/gnome/gjs/modules/package.js:221:12
@/usr/bin/gnome-documents:6:1


(org.gnome.Documents:8561): Gjs-WARNING **: JS ERROR: TypeError: Application.modeController is null
IndexingNotification<._init@resource:///org/gnome/Documents/js/notifications.js:189:9
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
_Base.prototype._construct@resource:///org/gnome/gjs/modules/_legacy.js:18:5
Class.prototype._construct/newClass@resource:///org/gnome/gjs/modules/_legacy.js:114:32
NotificationManager<._init@resource:///org/gnome/Documents/js/notifications.js:345:38
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
Application<._createWindow@resource:///org/gnome/Documents/js/application.js:430:31
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
Application<.vfunc_activate@resource:///org/gnome/Documents/js/application.js:485:13
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
main@resource:///org/gnome/Documents/js/main.js:48:12
run@resource:///org/gnome/gjs/modules/package.js:221:12
@/usr/bin/gnome-documents:6:1

Since it appears to be related to tracker, I've tried re-installing tracker. Same result.

Event Timeline

Can't reproduce, is this still an issue?

Yes. Just re-installed gnome-documents and tried to run. It returns the same error.

Can you check that tracker is installed?

Yep.

sudo eopkg it tracker
Password: 
The following package(s) are already installed and are not going to be installed again:
tracker
No packages to install.

I've had similar trouble with tracker in the past. I suggest first running tracker status in a terminal to see if tracker is indeed running and all the miners are loaded. If not, start it with tracker daemon -s and then add that to your autostart programs.

When this has happened to me the only fix I found that actually worked was tracker daemon -t to terminate all the tracker processes and miners, then deleting the database ~/.local/share/tracker.

Next I'd start tracker and the miners again with tracker daemon -s and let it rebuild it's database.

Tracker's usually pretty trouble-free, when there is a problem, it's most often caused by a corrupted database. It's a pain having to rebuild the database, but it's gotten it all working again for me when I used it. Hope it helps.

Getting close! I halted tracker processes and deleted the database as suggested. When I restarted with tracker daemon -s, though, I got some Tracker-CRITICAL errors, including one that seems to suggest that it's not actually scanning the file system. I can now get gnome-documents and gnome-books to start, but they just say "No documents/books found."

$ tracker daemon -s
Starting miners…

(tracker daemon:21861): Tracker-CRITICAL **: Could not create proxy on the D-Bus session bus, Error calling StartServiceByName for org.freedesktop.Tracker1.Miner.Files: GDBus.Error:org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'org.freedesktop.Tracker1.Miner.Files': timed out

(tracker daemon:21861): Tracker-CRITICAL **: Could not create proxy on the D-Bus session bus, Error calling StartServiceByName for org.freedesktop.Tracker1.Miner.Extract: Timeout was reached
  ✓ RSS/ATOM Feeds

(tracker daemon:21861): Tracker-CRITICAL **: No D-Bus proxy found for miner 'org.freedesktop.Tracker1.Miner.Files'
  ✗ File System (perhaps a disabled plugin?)

(tracker daemon:21861): Tracker-CRITICAL **: No D-Bus proxy found for miner 'org.freedesktop.Tracker1.Miner.Extract'
  ✗ Extractor (perhaps a disabled plugin?)
  ✓ Applications

Do you have tracker-miners installed? It's a separate package from tracker itself. If it is, try reinstalling it.

If not, stop tracker again, install the package, then start tracker. Shouldn't need to touch the database again.

cenewk claimed this task.

tracker-miners was already installed, but reinstalling and stopping/starting tracker again did the trick!

Thanks for the help!