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 743727 - Tracker 1.3.2 fails to start (on a user that was running tracker 1.2.x before)
Tracker 1.3.2 fails to start (on a user that was running tracker 1.2.x before)
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: General
1.3.x
Other Linux
: Normal major
: ---
Assigned To: tracker-general
tracker-general
Depends on:
Blocks:
 
 
Reported: 2015-01-30 08:51 UTC by Dominique Leuenberger
Modified: 2015-03-05 19:05 UTC
See Also:
GNOME target: 3.16
GNOME version: ---


Attachments
data-manager: Account for cardinality=0 on DB migration (1.89 KB, patch)
2015-02-13 13:01 UTC, Carlos Garnacho
accepted-commit_now Details | Review

Description Dominique Leuenberger 2015-01-30 08:51:28 UTC
My first walks with GNOME 3.15.4 brought me also Tracker 1.3.2, which does not start.

I get errors in the form:

dimstar@zeus:~> /usr/lib/tracker-store 

(tracker-store:17990): Tracker-CRITICAL **: Fatal error dealing with ontology changes: NOT NULL constraint failed: nfo:Media_nfo:hasMediaStream.nfo:hasMediaStream (strerror of errno (not necessarily related): No such file or directory)

(tracker-store:17990): Tracker-CRITICAL **: Cannot initialize database: NOT NULL constraint failed: nfo:Media_nfo:hasMediaStream.nfo:hasMediaStream (strerror of errno (not necessarily related): No such file or directory)
dimstar@zeus:~> tracker daemon -s
Starting miners…

(tracker daemon:18015): Tracker-CRITICAL **: Could not create proxy on the D-Bus session bus, Error calling StartServiceByName for org.freedesktop.Tracker1.Miner.Userguides: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.freedesktop.Tracker1.Miner.Userguides exited with status 1

(tracker daemon:18015): 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.Spawn.ChildExited: Process org.freedesktop.Tracker1.Miner.Files exited with status 1

(tracker daemon:18015): Tracker-CRITICAL **: Could not create proxy on the D-Bus session bus, Error calling StartServiceByName for org.freedesktop.Tracker1.Miner.Extract: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.freedesktop.Tracker1.Miner.Extract exited with status 1

(tracker daemon:18015): Tracker-CRITICAL **: Could not create proxy on the D-Bus session bus, Error calling StartServiceByName for org.freedesktop.Tracker1.Miner.Applications: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.freedesktop.Tracker1.Miner.Applications exited with status 1

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

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

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

(tracker daemon:18015): Tracker-CRITICAL **: No D-Bus proxy found for miner 'org.freedesktop.Tracker1.Miner.Applications'
  ✗ Applications (perhaps a disabled plugin?)
dimstar@zeus:~> 


It appears as a user that does not yet have a tracker database can get it started.
Comment 1 Carlos Garnacho 2015-02-13 13:01:00 UTC
Created attachment 296775 [details] [review]
data-manager: Account for cardinality=0 on DB migration

If a property changes from maxCardinality 1 to many, the database
format is updated to cope with that, but at the time of migrating
data, it doesn't account for resources having no elements. In order
to avoid constraint errors, those must be skipped.
Comment 2 Martyn Russell 2015-02-13 23:53:23 UTC
Review of attachment 296775 [details] [review]:

Looks good to me. This would explain some of the errors reported lately that I could simply not reproduce with my dataset too.

Thanks for the patch Carlos, looks good to me. Might be worth running it by Philip too, since he had a hand in the recent cardinality patching.
Comment 3 André Klapper 2015-02-22 21:08:49 UTC
(In reply to Martyn Russell from comment #2)
> Review of attachment 296775 [details] [review] [review]:
> 
> Looks good to me.

So could this patch get merged please?

Or are you waiting for Philip here?

> Might be worth running it by
> Philip too, since he had a hand in the recent cardinality patching.
Comment 4 Carlos Garnacho 2015-02-24 11:54:08 UTC
(In reply to André Klapper from comment #3)
> (In reply to Martyn Russell from comment #2)
> > Review of attachment 296775 [details] [review] [review] [review]:
> > 
> > Looks good to me.
> 
> So could this patch get merged please?
> 
> Or are you waiting for Philip here?

I tried to get hold of him as he did the original feature, and this part of code is more of his domain than mine.

But I'm just pushing it now, the patch is simple and makes complete sense AFAICT.
Comment 5 Carlos Garnacho 2015-02-24 11:54:56 UTC
Attachment 296775 [details] pushed as eac52e3 - data-manager: Account for cardinality=0 on DB migration
Comment 6 Bastien Nocera 2015-03-03 17:40:51 UTC
(In reply to Carlos Garnacho from comment #5)
> Attachment 296775 [details] pushed as eac52e3 - data-manager: Account for
> cardinality=0 on DB migration

Is this patch in a release yet? It's making Videos come up empty on start, and gnome-documents and gnome-books fail to start for my user.
Comment 7 Martyn Russell 2015-03-05 19:05:30 UTC
I believe this was released in 1.3.4, 2 days ago, see:
https://mail.gnome.org/archives/tracker-list/2015-March/msg00009.html