Bug 430435 - baloosearch:// ioslave doesn't result any results
Summary: baloosearch:// ioslave doesn't result any results
Status: RESOLVED DUPLICATE of bug 430273
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.77.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Stefan Brüns
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-15 16:58 UTC by Nate Graham
Modified: 2021-01-15 22:06 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2020-12-15 16:58:05 UTC
But the Baloo KRunner runner works fine from KRunner and Kickoff. See attached screenshot.

The indexer is running and seems ti be working:

nate@Liberator:~/kde/src/baloo$ balooctl status
Baloo File Indexer is running
Indexer state: Starting
Total files indexed: 25,339
Files waiting for content indexing: 0
Files failed to index: 0
Current size of index is 799.50 MiB


All KDE software from git master as of today.
Comment 1 Nate Graham 2020-12-15 17:00:18 UTC
The CLI baloosearch program seems to be affected too:

baloosearch 2020
Elapsed: 2.65203 msecs

[no results]
Comment 2 Nate Graham 2020-12-15 17:00:39 UTC
The file I am expecting it to find is indexed:


nate@Liberator:~/kde/src/baloo$ balooshow '/home/nate/SpiderOak Hive/Software/2020 New laptop comparisons.ods' 
108845861533975300 66308 25342652 /home/nate/SpiderOak Hive/Software/2020 New laptop comparisons.ods
        Mtime: 1608011218 2020-12-14T22:46:58
        Ctime: 1608011218 2020-12-14T22:46:58
        Cached properties:
                Author: Nate Graham
                Document Generated By: LibreOffice/7.0.3.1$Linux_X86_64 LibreOffice_project/00$Build-1
                Creation Date: 2016-11-01T11:13:52.565
Comment 3 Nate Graham 2020-12-15 17:01:56 UTC
There is a lot of console spew:



kf.config.core: "KConfigIni: In file /home/nate/SpiderOak Hive/Software/2020 New laptop comparisons.ods, line 1785: " Invalid entry (second locale!?)
kf.config.core: "KConfigIni: In file /home/nate/SpiderOak Hive/Software/2020 New laptop comparisons.ods, line 1786: " Invalid entry (missing '=')
kf.config.core: "KConfigIni: In file /home/nate/SpiderOak Hive/Software/2020 New laptop comparisons.ods, line 1787: " Invalid entry (missing ']')
kf.config.core: "KConfigIni: In file /home/nate/SpiderOak Hive/Software/2020 New laptop comparisons.ods, line 1788: " Invalid entry (missing ']')
kf.config.core: "KConfigIni: In file /home/nate/SpiderOak Hive/Software/2020 New laptop comparisons.ods, line 1789: " Invalid group header.
kf.config.core: "KConfigIni: In file /home/nate/SpiderOak Hive/Software/2020 New laptop comparisons.ods, line 1790: " Invalid entry (missing '=')
kf.config.core: "KConfigIni: In file /home/nate/SpiderOak Hive/Software/2020 New laptop comparisons.ods, line 1791: " Invalid entry (missing '=')
kf.config.core: "KConfigIni: In file /home/nate/SpiderOak Hive/Software/2020 New laptop comparisons.ods, line 1792: " Invalid entry (missing ']')
kf.config.core: "KConfigIni: In file /home/nate/SpiderOak Hive/Software/2020 New laptop comparisons.ods, line 1793: " Invalid entry (missing '=')
kf.config.core: "KConfigIni: In file /home/nate/SpiderOak Hive/Software/2020 New laptop comparisons.ods, line 1794: " Invalid entry (missing '=')
kf.config.core: "KConfigIni: In file /home/nate/SpiderOak Hive/Software/2020 New laptop comparisons.ods, line 1795: " Invalid entry (missing '=')
kf.config.core: "KConfigIni: In file /home/nate/SpiderOak Hive/Software/2020 New laptop comparisons.ods, line 1796: " Invalid entry (missing '=')
kf.service.services: The desktop entry file "///home/nate/SpiderOak Hive/Software/2020 New laptop comparisons.ods" has Type= "Application" but no Exec line
Comment 5 Stefan Brüns 2020-12-15 17:18:41 UTC
(In reply to Nate Graham from comment #3)
> There is a lot of console spew:
> 
> 
> 
> kf.config.core: "KConfigIni: In file /home/nate/SpiderOak Hive/Software/2020
> New laptop comparisons.ods, line 1785: " Invalid entry (second locale!?)
>...
> Hive/Software/2020 New laptop comparisons.ods" has Type= "Application" but
> no Exec line

So something thinks this is a desktop file.

$> xdg-mime query filetype "/home/nate/SpiderOak Hive/Software/2020 New laptop comparisons.ods"

KFileMetadata has no extractor for desktop files, so this is likely unrelated.
Comment 6 Nate Graham 2020-12-15 17:20:39 UTC
(In reply to Stefan Brüns from comment #4)
> Please recheck with
> https://invent.kde.org/frameworks/baloo/-/commit/
> 9b61371fdefbd538938f20cdc87eed03d170fa5b
How do I re-check with that? I built baloo from source today, which means it includes that commit that went in two days ago. Do I need to re-index everything too?


nate@Liberator:~/kde/src/baloo$ xdg-mime query filetype "/home/nate/SpiderOak Hive/Software/2020 New laptop comparisons.ods"
application/vnd.oasis.opendocument.spreadsheet
Comment 7 Nate Graham 2020-12-15 20:12:36 UTC
I just purged the index and allowed it to be re-indexed and now this is working.

Is there any way we can avoid the user having to manually do this? Can we either detect that the database is in a bad state and fix it up, or schedule a re-index automatically?
Comment 8 Nate Graham 2020-12-16 17:56:34 UTC
*** Bug 430457 has been marked as a duplicate of this bug. ***
Comment 9 Nate Graham 2020-12-23 19:07:22 UTC
Seems to have been an example of Bug 430273 as the issue is no longer reproducing for me after recompiling with the fixed version.

*** This bug has been marked as a duplicate of bug 430273 ***