REPRODUCIBILITY (% or how often): 100
BUILD ID = OS VERSION (Settings > About product): 4.1.0.23
HARDWARE (XA2, Xperia 10…): Xperia 10 ii dual
UI LANGUAGE: English
REGRESSION: (compared to previous public release: Yes, No, ?): yes
DESCRIPTION:
Index for media files & documents not updating.
After mount a encrypted sd-card, the tracker daemon reindex stuck.
tracker daemon
Miners:
16 May 2021, 12:20:12: 25% File System - Processing… 02m 57s remaining
there is no process that shows an activity („ps -ef“ and „top“)
10 minutes after the mount of the SD-Card the tracker directory ~/.cache/tracker shows no activity
2228228 drwxr-xr-x 2 defaultu defaultu 4096 May 16 12:11 .
2228227 drwxrwx— 19 defaultu defaultu 4096 May 16 11:04 …
2228484 -rw-r–r-- 1 defaultu defaultu 10 May 16 12:11 db-locale.txt
2228373 -rw-r–r-- 1 defaultu defaultu 2 May 16 12:11 db-version.txt
2230780 -rw-r–r-- 1 defaultu defaultu 5 May 16 12:11 first-index.txt
2230779 -rw-r–r-- 1 defaultu defaultu 10 May 16 12:11 last-crawl.txt
2228381 -rw-r–r-- 1 defaultu defaultu 6410240 May 16 12:16 meta.db
2228767 -rw-r–r-- 1 defaultu defaultu 98304 May 16 12:16 meta.db-shm
2228758 -rw-r–r-- 1 defaultu defaultu 10240000 May 16 12:16 meta.db-wal
2230776 -rw-r–r-- 1 defaultu defaultu 363086 May 16 12:11 ontologies.gvdb
2233828 -rw-r–r-- 1 defaultu defaultu 1 May 15 22:09 parser-version.txt
PRECONDITIONS:
STEPS TO REPRODUCE:
Reset Tracker with „tracker reset -e“
Wait till tracker reindex is finish (without SD-Card)
([defaultuser@X10II-p1rat tracker]$ tracker daemon
Store:
16 May 2021, 12:12:08: 0% Store - Idle
Miners:
16 May 2021, 12:12:08: ✓ File System - Idle
16 May 2021, 12:12:08: ✓ Extractor - Idle)
mount encrypted SD-Card
EXPECTED RESULT: Index for media files & documents finish
ACTUAL RESULT: stuck in the middle of nowwhere
ADDITIONAL INFORMATION:
[defaultuser@X10II-p1rat tracker]$ tracker daemon
Store:
16 May 2021, 12:16:11: 0% Store - Idle
Miners:
16 May 2021, 12:16:11: 19% File System - Processing… 04m 05s remaining
16 May 2021, 12:16:11: ✗ Extractor - Not running or is a disabled plugin
[defaultuser@X10II-p1rat tracker]$ tracker daemon
Store:
16 May 2021, 12:16:12: 0% Store - Idle
Miners:
16 May 2021, 12:16:12: 25% File System - Processing… 02m 57s remaining
16 May 2021, 12:16:12: ✗ Extractor - Not running or is a disabled plugin
[defaultuser@X10II-p1rat tracker]$ tracker status
Currently indexed: 1857 files, 357 folders
Remaining space on database partition: 99.7 GB (97.64%)
Data is still being indexed: Estimated 02m 57s left
[defaultuser@X10II-p1rat tracker]$ tracker daemon
Store:
16 May 2021, 12:18:03: 0% Store - Idle
Miners:
16 May 2021, 12:18:03: 25% File System - Processing… 02m 57s remaining
16 May 2021, 12:18:03: ✗ Extractor - Not running or is a disabled plugin
I have encountered similar issues on X10 II but I have 32 Gb SD-card that isn’t encrypted. It seems that some photos & images are not indexed as there are usually thousands of photos that are missing on my side. It also seems that if I start re-indexing them on Utilities it loses everything and gets stuck somewhere. I don’t have any logs however.
Happened to me as well with an unencrypted 64GB card, so I just moved everything over to the main memory and now it works. Of course that isn’t a solution to the problem.
Okay, I found the offending sparql query, that makes tracker crash and burn for me. For me tracker dies with the following debug messages:
(tracker-miner-fs:1197): Tracker-CRITICAL **: 14:36:25.957: Could not execute sparql: GDBus.Error:org.freedesktop.Tracker1.SparqlError.Internal: Not a ISO 8601 date string. Allowed form is [-]CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm]
thank you for your research. Very mysterious.
Sometimes a tracker reset -e works for a sucessful re-indexing.
Could you tell me how to find the debug messages?
tracker -e didn’t work for me. I think this is a bug with tracker interpreting no modification date as date(INT_MAX), which won’t cause issues on 32bit, but on 64bit the year gets very big.
For debugging I ran G_MESSAGES_DEBUG=all strace -s 1024 /usr/libexec/tracker-miner-fs after killing the tracker processes with tracker daemon -k and then starting the remaining ones with tracker daemon -s.
Thanks for highlighting that this was fixed @olf. Just to tie everything together, @jovirkkuexplains in the other thread that Tracker was upgraded from version 2.3.6 to 3.1.2 with the release of Suomenlinna (4.3.0), which is likely the source of the fix (also mentioned in the Suomenlinna Release Notes).
I’ve tagged this bug report as ‘fixed’. If anyone is still experiencing this, please do say.
Erm, sorry, but no, I did not! I merely denoted that this “seems to be fixed in SailfishOS 4.3.0” and provided a reference for that. I have not tested anything, did you?
Hence I believe it is a bit premature to "tag this bug report as ‘fixed’ ", unless there is some proof that this is fixed (in contrast to just assume or guess that this bug is fixed).
From what I understood of @KuroNeko’s nice analysis, the crash was fixed upstream by commit c6beebb1c5, which was then brought into the Sailfish OS trackier-miners repository with commit c67a65daac, which I can see was released in Sailfish OS 4.3.0.
As such, I don’t think it makes sense to create an internal bug report about this (hence the fixed tag), but I will do if anyone is still experiencing it on 4.4.0.
@p1rat, @KuroNeko: would you in a position to test this out again and confirm either way?
Thanks @KuroNeko, that’s good to hear. It would still be good to get confirmation from @p1rat in case it turns out it was a different issue, but hopefully it was the same and the same fix will apply.