Folder removed from indexing after reboot (balooctl6)

I wanted to see duration of videos in Dolphin, so I added that folder to the indexer under File Search in System Settings (with “File names and contents”).

$ balooctl6 status showed indexer indexing and index size growing. Until it was done and went Idle again. But no duration showed up.
I restarted Dolphin. No duration.
Tried indexing one of the files manually with balooctl6 cli but it said it was already indexed.
I logged out/in. No duration.
I rebooted. No duration.

But after reboot the folder I added is gone from the index list in the settings and $ balooctl6 config list includeFolders. And still no duration in dolphin. Duration is shown in the folders that are indexed as default, like in ~/Videos

How do I make the folder persist in the index-list through reboots?
(And, if that isn’t the cause for duration not showing, why doesn’t it show in Dolphin?)

the indexing takes time and the results will not show in dolphin right away.

it’s designed to operate in the background and be as unobtrusive as possible, but that means the results are delayed.

if it’s a large enough job, it make take several days to fully populate.

also be sure you have sent indexing contents to be included as you need to get at the meta data for the duration values.

settings > file search it where you add your folders, and set your preferences… but your home dir should already be there by default.

if you want to add the folder specifically be sure to set to Indexed so it gets included in the crawl.

So balooct16 status is just to ignore, it’s just random numbers?

This is what it says now that I’ve restarted:
$balooctl6 status
Baloo File Indexer is running
Indexer state: Checking for unindexed files
Total files indexed: 51,477
Files waiting for content indexing: 42,621
Files failed to index: 0
Current size of index is 65.13 MiB

And this is what is said last time (after looking somewhat like the above for a while):
$ balooctl6 status
Baloo File Indexer is running
Indexer state: Idle
Total files indexed: 3,506
Files waiting for content indexing: 0
Files failed to index: 0
Current size of index is 63.28 MiB

Idle doesn’t really mean idle? And the content indexing is something else?

If there’s no way to check the progress, and it may take multiple hours or days, I need to solve the issue with none-default Folders getting removed by reboot.

run balooctl6 check and balooctl6 failed

to see what if anything shows up.

you can see what files are going to be indexed in the GUI or by using

balooctl6 config show

recommend:

hidden be set to no

contentIndexing be set to yes

check all the exclude______ items to make sure you are not excluding what you want to index as that will over ride anything you have set up in includeFolders

Thanks.

balooctl6 check shows Started search for unindexed files now, but status is also still active. I’ll do a check again when the status shows as Idle, and give an update.

failed I did before the reboot and it said All Files were indexed successfully

The Total files indexed counter was going down instead of up last time, which seemed weird.

Well. I’ll have to let it run for a while. I’ll be back

in the meantime double check

balooctl config show excludeFolders is not listing a folder you want to index

balooctl config show excludeFilters is not excluding a pattern that is catching what you want to index

balooctl config show excludeMimetypes is not excluding a mime type you are trying to index

After trying to purge and reset everything, but failed stopping the indexer. I ended with trying more specific sub-folders only, and there it worked.

Both the actual indexing with showing video duration and such in Dolphin - and stayed in the search settings during reboot.

Unsure why. A lot of old random crap in main folder (a whole disk really) perhaps one of them silently killed the indexer. Or just a fluke bug, as I don’t really get why that would affect removing Folder from the settings at reboot.

Whatever the reason, if it resolved itself or the more specified folders is the workaround, it works for me now and I’m happy.

Thank you for the help!

i have experienced this as well, even tho it shows /home as the default folder to recursively crawl, it doesn’t always go into each one, so if you want to double sure it will index a given folder then just add it to the list… there’s apparently no harm in the redundancy.