Bug 356601 - Baloo does not index new files
Summary: Baloo does not index new files
Status: RESOLVED NOT A BUG
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Pinak Ahuja
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-13 14:10 UTC by hotmusicfan
Modified: 2017-10-27 19:15 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
the directory (79.55 KB, image/png)
2015-12-15 19:47 UTC, hotmusicfan
Details
results-1 (1013.44 KB, image/png)
2015-12-15 19:48 UTC, hotmusicfan
Details
results-2 (1.03 MB, image/png)
2015-12-15 19:48 UTC, hotmusicfan
Details
baloofilerc (625 bytes, text/plain)
2015-12-20 10:58 UTC, hotmusicfan
Details
baloofilerc - the new one (586 bytes, text/plain)
2015-12-20 15:04 UTC, hotmusicfan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hotmusicfan 2015-12-13 14:10:59 UTC
Hello!

I have a problem with the Plasma search - when I search something from the Kickoff launcher , the displayed results are only the ones which files was initially created or placed into the directories. Anything that was recently placed or created is not displayed as a result.
For example I have a document in /home/(user)/Documents/TrainSchedule1.odt which was placed there since the installation of the OS; Five days ago I received a new version of the document named TrainSchedule2.odt and I have placed it in the same directory. In Kickoff when I type TrainSchedule it gives me result only for the old one.
It seems to me that Baloo does not reindex directories and does not do automatic reindex at all.

Reproducible: Always
Comment 1 Vishesh Handa 2015-12-14 23:19:51 UTC
Hmm. Strange.

Could you please paste your inotify limit? 

$ cat /proc/sys/fs/inotify/max_user_watches
Comment 2 Vishesh Handa 2015-12-15 11:50:50 UTC
Changing status to NEEDSINFO
Comment 3 hotmusicfan 2015-12-15 19:32:59 UTC
cat /proc/sys/fs/inotify/max_user_watches
returns
524288.
Comment 4 hotmusicfan 2015-12-15 19:47:15 UTC
Practical example:
I have ripped a music CD into /Desktop/New/Morgan Page - Believe/ (the 1st screenshot);
After that I am searching for this folder from Kickoff - results are music from the same artist located in my /home/Music/ folders but not the one placed on the desktop. (the other screenshots).
Comment 5 hotmusicfan 2015-12-15 19:47:50 UTC
Created attachment 96103 [details]
the directory
Comment 6 hotmusicfan 2015-12-15 19:48:16 UTC
Created attachment 96104 [details]
results-1
Comment 7 hotmusicfan 2015-12-15 19:48:51 UTC
Created attachment 96105 [details]
results-2
Comment 8 Pinak Ahuja 2015-12-17 15:42:33 UTC
By any chance are the new files missing from the result actually in /Desktop/ (and not /home/User/Desktop)?

If that is the case add /Desktop in the included directories in /home/.config/baloofilerc
Comment 9 hotmusicfan 2015-12-17 21:52:31 UTC
OK, why should I do that? Isn't /Desktop a subdirectory of /home? And doesn't Baloo monitor just everything?
Comment 10 Pinak Ahuja 2015-12-19 11:02:30 UTC
Normally desktop is a subdirector of /home/username but since you explicitly wrote /Desktop (notice the slash in front) i thought you might have a special setup.
Comment 11 Pinak Ahuja 2015-12-19 11:08:41 UTC
Could you run balooctl status <filename> on one  of the files that doesn't show up in the results and paste the output?
Comment 12 hotmusicfan 2015-12-19 16:23:38 UTC
@Pinak Ahuja I haven't any special setup - all is by default and my /Desktop is a subdirectory of /home - this is visible in the first screenshot with the file manager. I performed this command searcching 03 - Believe.flac in the 'problematic' folder. This is the output:
File: /home/hotmusicfan/Desktop/New/Morgan
Basic Indexing: Disbabled
Comment 13 Pinak Ahuja 2015-12-20 10:29:52 UTC
That seems to imply the folder is somehow excluded. Could you post the contents of your ~/.config/baloofilerc
Comment 14 hotmusicfan 2015-12-20 10:58:45 UTC
Created attachment 96209 [details]
baloofilerc
Comment 15 Pinak Ahuja 2015-12-20 11:08:36 UTC
exclude folders[$e]=$HOME/
This is your issue.
You somehow managed to add the home directory to excluded folders.
I recommend deleting the file and let baloo recreate it.
Also just to be safe recreate your index:
$balooctl disable
$balooctl enable
Comment 16 hotmusicfan 2015-12-20 15:03:22 UTC
Thanks! Now the display results are correct!
But something remains: it is filled in this bug:
https://bugs.kde.org/show_bug.cgi?id=356602
After deleting the baloofilerc file baloo created a new one (the last attached); but when you open 'System Settings' appears this:
https://bugsfiles.kde.org/attachment.cgi?id=96033
Comment 17 hotmusicfan 2015-12-20 15:04:28 UTC
Created attachment 96217 [details]
baloofilerc - the new one
Comment 18 hotmusicfan 2015-12-20 17:30:24 UTC
Update: it still does not show some folders in other locations... :/
What is the average time needed by Baloo to reindex all files?
Comment 19 Nate Graham 2017-10-27 19:15:23 UTC
Since the remaining issues are tracked by other bugs, let's close this one.