We have moved to a new Sailfish OS Forum. Please start new discussions there.

# Sailfish Utilities tracker reset.

Doesn't seem to work as expected. After you ruin it both the media player and the gallery display 0 files.

Tried it two times. After a reboot after the first time it found all the files. Now without a reboot still 0 after quite some time and after taking some pics.

What i noticed is that the command in the utilities code is tracker-control -krs while people here use tracker-control -es

Any way to fix this without rebooting. (no dev mode /terminal installed)

edit retag close delete

After Update 10, it showed 0 files in gallery, Documents, Music. Fortunately for me, when I took a photo it updated the Index.

( 2014-12-23 06:55:45 +0300 )edit

Sort by » oldest newest most voted

It depends on how many files are on your device. If you have e.g. over 2000 pics and much music it can take a long time to re-index. You can watch the process for example with lighthouse, there is a process called 'tracker-store' in 1.0.7.x it took around 50% of cpu. While indexing is going on you will see this process. An answer from a jolla sailor relating to tracker-store said, that it can take up to 24h and more to reindex all. So maybe start the process and look, if tracker-store is working and then just keep calm until tracker-store is not using much cpu anymore.

more

Just 36 pics and around 50 flac albums on the SD card. Rebooted it and it worked.

( 2014-12-23 13:37:21 +0300 )edit

So it works now permanent? I mean also after rebooting the device? Nice to hear! :)

( 2014-12-23 13:42:52 +0300 )edit

Yes a reboot makes it work. But you should not need to reboot. ;)

( 2014-12-23 13:44:20 +0300 )edit

( 2014-12-23 13:48:24 +0300 )edit

Putting this in an answer because it wouldn't be clear in a comment, from the tracker-control manpage:

-k, --kill=[all|store|miners]
This uses SIGKILL to stop all Tracker processes found matching the
parameter, if no extra parameter is passed, all will be assumed. This is
not advised unless you are having problems stopping Tracker in the first
place. This GUARANTEES death.
-r, --hard-reset
This kills all processes in the same way that --kill does but it also
removes all databases. Restarting tracker-store re-creates the databases.
-s, --start
Starts all miners. This indirectly starts tracker-store too because it is
needed for miners to operate properly.


This just seems excessive, here is what tracker-control -es does:

-e, --soft-reset
A soft reset works exactly the same way that --hard-reset does, with the
exception that the backup and journal are not removed. These are restored
when tracker-store is restarted.
-s, --start
Starts all miners. This indirectly starts tracker-store too because it is
needed for miners to operate properly


So using the tracker reset from Utilities completely kills tracker and removes all databases (so they need to be entirely rebuilt, which takes a lot of time), whereas using tracker-control -es only restarts tracker, keeping the databases.

more