Bug 430273 - Index breaks regularly
Summary: Index breaks regularly
Status: RESOLVED FIXED
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Stefan Brüns
URL:
Keywords:
: 430408 430435 430457 430598 430610 431485 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-12-11 19:07 UTC by Kai Uwe Broulik
Modified: 2021-01-15 22:06 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.78


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Uwe Broulik 2020-12-11 19:07:48 UTC
SUMMARY
After recent updates my baloo index seems to break frequently, resulting in it not finding any files until I nuke the index and rebuild it.

I haven't found out why but it happened again after I just updated.

It manifests itself in an empty broken file showing up in KRunner *but* also in Dolphin it doesn't find any files anymore.

Using Baloo git master as of today
Comment 1 Stefan Brüns 2020-12-12 18:03:51 UTC
Git commit 9b61371fdefbd538938f20cdc87eed03d170fa5b by Stefan Brüns.
Committed on 12/12/2020 at 18:03.
Pushed by bruns into branch 'master'.

[BasicIndexingJob] Strip trailing slash from folders

If BasicIndexingJob is called with a path with a trailing slash, the
search for the last slash (separating name from parent path) goes wrong.

This was wrong already earlier, but with commit 47ebc15844f6b8a8
("[Document] Add parent document ID and populate it") this caused
document and parent id to be the same.

M  +3    -0    src/file/basicindexingjob.cpp

https://invent.kde.org/frameworks/baloo/commit/9b61371fdefbd538938f20cdc87eed03d170fa5b
Comment 2 Stefan Brüns 2020-12-12 18:04:41 UTC
@broulik - can you recheck?
Comment 3 Nate Graham 2020-12-15 20:22:03 UTC
I had the same issue with the baloosearch:// ioslave in Bug 430435, but doing a full re-index fixed it.

I still see the empty file in the Baloo KRunner Runner though.
Comment 4 Nate Graham 2020-12-18 20:04:08 UTC
*** Bug 430408 has been marked as a duplicate of this bug. ***
Comment 5 Nate Graham 2020-12-18 20:04:19 UTC
*** Bug 430457 has been marked as a duplicate of this bug. ***
Comment 6 Stefan Brüns 2020-12-19 22:06:46 UTC
*** Bug 430598 has been marked as a duplicate of this bug. ***
Comment 7 Nate Graham 2020-12-20 01:13:35 UTC
FWIW this is working better for me after I rebuilt the index following https://invent.kde.org/frameworks/baloo/commit/9b61371fdefbd538938f20cdc87eed03d170fa5b being committed.

Kai, can you confirm the same thing?
Comment 8 Wim 2020-12-20 15:35:11 UTC
I have noticed that almost every day Baloosearch in Dolphin stops working.
Suddenly no search results anymore.

After starting the therminal and typing the command 'balooctl purge', Baloosearch in Dolphin starts working again.
Comment 9 Nate Graham 2020-12-23 19:07:22 UTC
*** Bug 430435 has been marked as a duplicate of this bug. ***
Comment 10 Nate Graham 2020-12-23 19:08:22 UTC
Seems to be fixed now for the people who were experiencing it.
Comment 11 Kai Uwe Broulik 2020-12-23 21:58:52 UTC
Purging the index fixed it but purging the index is not a fix... if I restore the index I backuped it is broken again.

So there is definitely some permanent corruption happening for some reason that needs to be addressed. Even if it means forcefully rebuilding the index but I can't go around tell people "yeah can you please run balooctl..."
Comment 12 pipapo 2020-12-23 22:18:31 UTC
Purging the index did not fix it. baloo breaks again when you logout and login.
baloo is working as expected after getting and installing
baloo-kf5_5.77.0+p20.04+git20201219.0226-0_amd64.deb
libkf5baloo5_5.77.0+p20.04+git20201219.0226-0_amd64.deb
from neon unstable.
Comment 13 Nate Graham 2020-12-23 23:50:26 UTC
(In reply to pipapo from comment #12)
> Purging the index did not fix it. baloo breaks again when you logout and
> login.
> baloo is working as expected after getting and installing
> baloo-kf5_5.77.0+p20.04+git20201219.0226-0_amd64.deb
> libkf5baloo5_5.77.0+p20.04+git20201219.0226-0_amd64.deb
> from neon unstable.
The fix is in 5.78, not 5.77.
Comment 14 Nate Graham 2020-12-23 23:50:56 UTC
(In reply to Kai Uwe Broulik from comment #11)
> So there is definitely some permanent corruption happening for some reason
> that needs to be addressed. Even if it means forcefully rebuilding the index
> but I can't go around tell people "yeah can you please run balooctl..."
I agree.

Can you file a new bug report for this and I'll follow up there?
Comment 15 Stefan Brüns 2020-12-30 23:37:32 UTC
*** Bug 430610 has been marked as a duplicate of this bug. ***
Comment 16 Nate Graham 2021-01-12 15:55:38 UTC
*** Bug 431485 has been marked as a duplicate of this bug. ***