Ask / Submit
1

Sailfish Utilities tracker reset.

asked 2014-12-23 00:44:13 +0300

ApB gravatar image

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 flag offensive close delete

Comments

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

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

2 Answers

Sort by » oldest newest most voted
2

answered 2014-12-23 12:42:22 +0300

updated 2014-12-23 12:49:56 +0300

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.

edit flag offensive delete publish link more

Comments

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

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

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

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

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

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

Ok I got your point ;) So my answer was quite misleading, sorry ;)

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

answered 2014-12-23 14:19:12 +0300

nthn gravatar image

updated 2014-12-23 14:20:59 +0300

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.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
4 followers

Stats

Asked: 2014-12-23 00:44:13 +0300

Seen: 980 times

Last updated: Dec 23 '14