<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>430273</bug_id>
          
          <creation_ts>2020-12-11 19:07:48 +0000</creation_ts>
          <short_desc>Index breaks regularly</short_desc>
          <delta_ts>2021-01-15 22:06:55 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>frameworks-baloo</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=430435</see_also>
    
    <see_also>https://bugs.kde.org/show_bug.cgi?id=431664</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kai Uwe Broulik">kde</reporter>
          <assigned_to name="Stefan Brüns">stefan.bruens</assigned_to>
          <cc>justin.luque</cc>
    
    <cc>kdedev</cc>
    
    <cc>nate</cc>
    
    <cc>piral</cc>
    
    <cc>soporte.inf</cc>
    
    <cc>tagwerk19</cc>
    
    <cc>whavanhooff</cc>
    
    <cc>yuilytg7</cc>
          
          <cf_commitlink>https://commits.kde.org/baloo/9b61371fdefbd538938f20cdc87eed03d170fa5b</cf_commitlink>
          <cf_versionfixedin>5.78</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1983549</commentid>
    <comment_count>0</comment_count>
    <who name="Kai Uwe Broulik">kde</who>
    <bug_when>2020-12-11 19:07:48 +0000</bug_when>
    <thetext>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&apos;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&apos;t find any files anymore.

Using Baloo git master as of today</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1983788</commentid>
    <comment_count>1</comment_count>
    <who name="Stefan Brüns">stefan.bruens</who>
    <bug_when>2020-12-12 18:03:51 +0000</bug_when>
    <thetext>Git commit 9b61371fdefbd538938f20cdc87eed03d170fa5b by Stefan Brüns.
Committed on 12/12/2020 at 18:03.
Pushed by bruns into branch &apos;master&apos;.

[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
(&quot;[Document] Add parent document ID and populate it&quot;) 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1983789</commentid>
    <comment_count>2</comment_count>
    <who name="Stefan Brüns">stefan.bruens</who>
    <bug_when>2020-12-12 18:04:41 +0000</bug_when>
    <thetext>@broulik - can you recheck?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1984664</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-12-15 20:22:03 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1986513</commentid>
    <comment_count>4</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-12-18 20:04:08 +0000</bug_when>
    <thetext>*** Bug 430408 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1986515</commentid>
    <comment_count>5</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-12-18 20:04:19 +0000</bug_when>
    <thetext>*** Bug 430457 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1986901</commentid>
    <comment_count>6</comment_count>
    <who name="Stefan Brüns">stefan.bruens</who>
    <bug_when>2020-12-19 22:06:46 +0000</bug_when>
    <thetext>*** Bug 430598 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1986917</commentid>
    <comment_count>7</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-12-20 01:13:35 +0000</bug_when>
    <thetext>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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1987042</commentid>
    <comment_count>8</comment_count>
    <who name="Wim">whavanhooff</who>
    <bug_when>2020-12-20 15:35:11 +0000</bug_when>
    <thetext>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 &apos;balooctl purge&apos;, Baloosearch in Dolphin starts working again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1987837</commentid>
    <comment_count>9</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-12-23 19:07:22 +0000</bug_when>
    <thetext>*** Bug 430435 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1987838</commentid>
    <comment_count>10</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-12-23 19:08:22 +0000</bug_when>
    <thetext>Seems to be fixed now for the people who were experiencing it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1987867</commentid>
    <comment_count>11</comment_count>
    <who name="Kai Uwe Broulik">kde</who>
    <bug_when>2020-12-23 21:58:52 +0000</bug_when>
    <thetext>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&apos;t go around tell people &quot;yeah can you please run balooctl...&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1987869</commentid>
    <comment_count>12</comment_count>
    <who name="pipapo">piral</who>
    <bug_when>2020-12-23 22:18:31 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1987881</commentid>
    <comment_count>13</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-12-23 23:50:26 +0000</bug_when>
    <thetext>(In reply to pipapo from comment #12)
&gt; Purging the index did not fix it. baloo breaks again when you logout and
&gt; login.
&gt; baloo is working as expected after getting and installing
&gt; baloo-kf5_5.77.0+p20.04+git20201219.0226-0_amd64.deb
&gt; libkf5baloo5_5.77.0+p20.04+git20201219.0226-0_amd64.deb
&gt; from neon unstable.
The fix is in 5.78, not 5.77.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1987882</commentid>
    <comment_count>14</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-12-23 23:50:56 +0000</bug_when>
    <thetext>(In reply to Kai Uwe Broulik from comment #11)
&gt; So there is definitely some permanent corruption happening for some reason
&gt; that needs to be addressed. Even if it means forcefully rebuilding the index
&gt; but I can&apos;t go around tell people &quot;yeah can you please run balooctl...&quot;
I agree.

Can you file a new bug report for this and I&apos;ll follow up there?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1989136</commentid>
    <comment_count>15</comment_count>
    <who name="Stefan Brüns">stefan.bruens</who>
    <bug_when>2020-12-30 23:37:32 +0000</bug_when>
    <thetext>*** Bug 430610 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1993579</commentid>
    <comment_count>16</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-01-12 15:55:38 +0000</bug_when>
    <thetext>*** Bug 431485 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>