Sailfish OS has a worker called Tracker. Tracker harvests all media/document folders in Sailfish device and in the memory card (if any), creating a registry of files found. This registry is called media database here.
Sailfish media database contains the locations of music files, pictures, videos and documents.
1. Sailfish Utilities
It may happen that the database gets corrupted. Then it is possible to refresh it by using Sailfish Utilities.The device should be restarted after this. It may take a couple of minutes before Tracker has re-created the database.
2. Command line
Should the database be badly corrupted then it may be necessary to go to the command line (Terminal app) and reset the database there. Guidance for Developer mode. Note that those commands do not erase any media files - they only clear the registry.
In terminal type
tracker reset -e
tracker reset -r
tracker reset [OPTION...]
Help Options: -h, --help Show help options
-r, --hard Kill all Tracker processes and remove all databases
-e, --soft Same as --hard but the backup & journal are restored after restart
-y, --yes Skip interactive verification for reset.
-c, --config Remove all configuration files so they are re-generated
on next start
Erase indexed information about a file, works recursively for directories.
3. Printout example
[nemo@sony ~]$ tracker reset -e
CAUTION: This process may irreversibly delete data.
Although most content indexed by Tracker can be safely reindexed, it can't be assured that this is the case for all data. Be aware that you may be incurring in a data loss situation,
proceed at your own risk.
Are you sure you want to proceed? [y|N]: y
Found 4 PIDs?
Killed process 15410 ? ?tracker-miner-fs?
Killed process 15411 ? ?tracker-extract?
Killed process 15412 ? ?tracker-store?
Killed process 22142 ? ?tracker?
Setting database locations
Checking database directories exist
Checking database version
Checking database files exist
Removing all database/storage files
Removing first index file:'/home/nemo/.cache/tracker/first-index.txt'
Removing last crawl file:'/home/nemo/.cache/tracker/last-crawl.txt'
Removing db-locale file:'/home/nemo/.cache/tracker/db-locale.txt'