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

Re-index the multimedia database failed [answered]

asked 2018-05-01 17:40:18 +0300

cemoi71 gravatar image

Hello,

i have the problem that sfos don't display all images on the device.
And if i want to re-index it, with the utility Tool in Option.
Then it appears the notification "clean failed" (translation from French "nettoyer: echec") right away.
Have someone the same experience?
Is there a cli alternative too?

Could someone help me to solve it please?

I have a jp1 with version 2.1.4.14

Many thanks in advance.

Cheers

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by cemoi71
close date 2018-05-02 10:22:29.492284

2 Answers

Sort by » oldest newest most voted
2

answered 2018-05-01 18:06:50 +0300

Spam Hunter gravatar image

updated 2018-05-02 10:38:00 +0300

cemoi71 gravatar image

For the record: I know I've answered this question before, but I cannot recall the original question, so my answer is a duplicate for sure, but here you go,

In terminal, type this;

tracker reset

This should display the options for tracker;

[nemo@Sailfish ~]$ tracker reset
Usage:
  tracker reset [OPTION...]

Help Options:
  -h, --help          Show help options

Application 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
  -f, --file=FILE     Erase indexed information about a file, works recursively for directories

I personally tend to use; tracker reset -e

Edit cemoi71 2.05.2018: Here are some already existing links of threads done on subject (mentioned from Edz above)
https://together.jolla.com/question/182151/clearing-tracker-database/
https://together.jolla.com/question/156674/2109-re-index-mediaplayer-with-new-tracker/

More to know with tjc-search with keywords tracker reset...
Command tracker-control seems to be obsolete now.

edit flag offensive delete publish link more

Comments

hi, thx for reply
with -e option,it tells that all my data may be deleted. is it meant all? or just those for indexing? i'll looking for word "tracker" for finding the dup. was not an easy searching till now.

cemoi71 ( 2018-05-01 19:39:37 +0300 )edit

@cemoi71 to the best of my knowledge it means just those for indexing.

@lakutalo thanks, but no, not that particular question, never mind eh, this isn't the first duplicate her on tjc and I'm sure it won't be the last! :)

The new place is great!, facing west, so I get some pretty nice sunsets and the mountains. Still feels a little wintry here of a morning and evening, but day time temps are nice enough. Come August, I will be cooked alive!, thank f**k for electric roller shutters! ;)

Spam Hunter ( 2018-05-01 22:12:10 +0300 )edit

@lakutalotracker -control command is no more that usual.
It seems to work with the reset -e function, but I didn't confirm the command after i read that it may delete datas.
@Edz i'd t believe you. the warning message is a little too imprecise. we may understood a lot's more datas.
I'd like to search a little bit further. Thank you anyway, you gave me a clue.

cemoi71 ( 2018-05-01 22:37:15 +0300 )edit

https://together.jolla.com/question/182151/clearing-tracker-database/
https://together.jolla.com/question/156674/2109-re-index-mediaplayer-with-new-tracker/

it didn't work with tracker reset -e i get after confirmation
"abreviation d'une classe (par ex. nfo:FileDataObject).
--get - longhand=CLASSE Renvoie
L'espace de noms complet d'une classe"

"Abbreviation of a class (e.g. Nfo:FileDataObject).
--get - longhand=CLASSE Send back
The space of full names of a class"...

cemoi71 ( 2018-05-02 00:30:58 +0300 )edit
1

answered 2018-05-02 10:21:46 +0300

cemoi71 gravatar image

updated 2018-05-02 10:23:43 +0300

Damned !!!
I just saw that is a known issue by 2.1.4.14 Version:
Sfos v2.1.4.14 release note known issues

Then i should "only" wait for 2.2.0...

edit flag offensive delete publish link more

Comments

However this weekend happened that it works suddenly again. I don'T know why.
Strangely i had an android game (onirim) which didn't work any more since 2 month.
Then after i remarked that the indexation work again, this game work too!!!
Really strange...
@spiiroin I talk to you because it is known that sfos with 2.1.4.14 as an issue for the multimedia indexation. I had this issue on my jp1 with this version. And know it works again.
Strangely, since then the android game that i talk about above work again too.
Do you have an interest by jolla about this strange phenomenon for investigation?

cemoi71 ( 2018-05-21 20:14:33 +0300 )edit

Hi, this usually happens when there's a file present that crashes the tracker extractor because it's malformed or otherwise strange. If you can find out which file is causing your crash and send it to me, then I can tackle the problem. We found and fixed one problem with short mp3 files containing weird Xing headers crashing tracker in 2.1.4: https://together.jolla.com/question/167715/tracker-not-tracking-properly

The failure of the tracker reset function of the Sailfish Utils has been fixed for 2.2.0 though. The script wasn't being launched correctly.

Andy Branson ( 2018-05-22 13:38:20 +0300 )edit

@Andy Branson wow cool! what a surprise answer. are you a jolla member? (just surprised to have a feedback from an other person than the one i ask before ;-) ).

Right... i gave a short look on the mentioned thread... i think i'll try it something later.. before i wanted to ask something about the tracker.
1) If you see the action in answer below, with tracker reset or with the utility command, those actions let generate some logs on the device. May i see something in a error.log file or something like that?
I believe now, that if it works again, then the file which made this make no problem anymore, and nothing could be find.
2) does it concern only music and image files like described in thread? or video files too?
3) have you got an idea if it could have some side effects on android apps?

cemoi71 ( 2018-05-22 16:36:22 +0300 )edit

Yes I work for Jolla, with a little bit of a focus on media/camera stuff. Spiiroin doesn't have a lot to do with that side of things.

  1. Journald is where you'd expect to see output from tracker. Use journalctl -lab to dump it from a root terminal. Add an f to follow its output. You can also follow tracker's progress by running tracker daemon -f as nemo from a terminal.
  2. On Sailfish, tracker indexes music (including extracting album covers), photos, videos and documents.
  3. I could see this happening if the android app puts a media file in a place that tracker indexes, but I don't think this is possible by default. Otherwise there's a bit of an interaction between aliendalvik and tracker to push updates of the media database from sailfish into android, but although that can sometimes slow tracker indexing down a lot, I've not see it crash it before.

Hope that helps

Andy Branson ( 2018-05-22 16:45:19 +0300 )edit

thx for answer.
No matter, that's fine if spiiroin is not overloaded.
the force is on a team.
i told it, because. since the tracker didn't work i remarked that this game "onirim" (only this one) didn't work anymore (only black screen). And this week-end the tracker worked again, and the game too. strange...
Ok i'll give a look with your hint. and give you info later. cheers

cemoi71 ( 2018-05-22 18:56:44 +0300 )edit

Question tools

Follow
1 follower

Stats

Asked: 2018-05-01 17:40:18 +0300

Seen: 344 times

Last updated: May 02 '18