Baloo is not indexing plain text files by content [SOLVED]

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Baloo is not indexing plain text files by content [SOLVED]

Postby delasol » Sep 15th, '17, 10:49

Hi,

since upgrading Mageia from version 5 to 6 Baloo is not indexing plain text files by content again. I had this problem also in Mageia 5 but solved it by adding .txt extension to the filename (to all files that i needed to be indexed). Unfortunately since upgrading to version 6 the same files with the txt extension arent indexed by content again (only by filename). The files were created by KWrite. What should i do?

Thanks in advance,
Last edited by delasol on Sep 7th, '18, 20:07, edited 1 time in total.
delasol
 
Posts: 26
Joined: Jul 11th, '15, 14:44

Re: Baloo is not indexing plain text files by content

Postby Bequimao » Sep 15th, '17, 17:31

The files are accessible directly from your home directory, and not via symlinks?

Please run as user

Code: Select all
$ balooctl status


Code: Select all
$ balooctl check


and again
Code: Select all
$ balooctl status


Best regards,
Bequimão
Bequimao
 
Posts: 108
Joined: Jun 3rd, '11, 21:51
Location: Minas Gerais, Brazil

Re: Baloo is not indexing plain text files by content

Postby delasol » Sep 18th, '17, 16:54

Bequimao wrote:The files are accessible directly from your home directory, and not via symlinks?
Please run as user


The files are accessible directly from my home directory (eg. /home/me/folder/textfile.txt)
It's particularly in polish so i'll translate it :)


Code: Select all
$ balooctl status

Ideksowanie plików Baloo jest włączone (File Indexing enabled)
Stan indeksowania: Indeksowanie zawartości plików (Status: Indexing file content)
Zaindeksowano 32158 / 32158 plików (32158/32158 files indexed)
Current size of index is 174,50 MiB


Code: Select all
$ balooctl check

Started search for unindexed files



Code: Select all
$ balooctl status

Ideksowanie plików Baloo jest włączone (File Indexing enabled)
Stan indeksowania: Indeksowanie zawartości plików (Status: Indexing file content)
Zaindeksowano 32158 / 32158 plików (32158/32158 files indexed)
Current size of index is 174,50 MiB
delasol
 
Posts: 26
Joined: Jul 11th, '15, 14:44

Re: Baloo is not indexing plain text files by content

Postby doktor5000 » Sep 19th, '17, 06:00

if you run
Code: Select all
lsof|grep -i baloo
what processes do you get?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Baloo is not indexing plain text files by content

Postby delasol » Sep 19th, '17, 07:36

doktor5000 wrote:if you run
Code: Select all
lsof|grep -i baloo

what processes do you get?


Code: Select all
lsof|grep -i baloo

kded5     2900                    x  mem       REG                8,1     32848     673313 /usr/lib64/qt5/plugins/kf5/kded/baloosearchmodule.so
QXcbEvent 2900 2902               x  mem       REG                8,1     32848     673313 /usr/lib64/qt5/plugins/kf5/kded/baloosearchmodule.so
QDBusConn 2900 2905               x  mem       REG                8,1     32848     673313 /usr/lib64/qt5/plugins/kf5/kded/baloosearchmodule.so
gmain     2900 2907               x  mem       REG                8,1     32848     673313 /usr/lib64/qt5/plugins/kf5/kded/baloosearchmodule.so
gdbus     2900 2908               x  mem       REG                8,1     32848     673313 /usr/lib64/qt5/plugins/kf5/kded/baloosearchmodule.so
Qt\x20bea 2900 3043               x  mem       REG                8,1     32848     673313 /usr/lib64/qt5/plugins/kf5/kded/baloosearchmodule.so
baloo_fil 2961                    x  cwd       DIR                8,6     16384    3677185 /home/x
baloo_fil 2961                    x  rtd       DIR                8,1      4096          2 /
baloo_fil 2961                    x  txt       REG                8,1    279920     543816 /usr/bin/baloo_file
baloo_fil 2961                    x  mem       REG                8,6 182976512    3678038 /home/x/.local/share/baloo/index
baloo_fil 2961                    x  mem       REG                8,1    145768      12032 /usr/share/mime/mime.cache
baloo_fil 2961                    x  mem       REG                8,1   3644832     536812 /usr/share/locale/locale-archive
baloo_fil 2961                    x  mem       REG                8,1  26213232     521527 /usr/share/icu/58.2/icudt58l.dat
baloo_fil 2961                    x  mem       REG                8,1     68232     523915 /usr/lib64/libbz2.so.1.0.6
baloo_fil 2961                    x  mem       REG                8,1     82592     520950 /usr/lib64/libbsd.so.0.8.3
baloo_fil 2961                    x  mem       REG                8,1     78808     521512 /usr/lib64/libgpg-error.so.0.19.1
baloo_fil 2961                    x  mem       REG                8,1     66816     520922 /usr/lib64/libdrm.so.2.4.0
baloo_fil 2961                    x  mem       REG                8,1     23608     521189 /usr/lib64/libXxf86vm.so.1.0.0
baloo_fil 2961                    x  mem       REG                8,1     19384     521108 /usr/lib64/libxcb-dri2.so.0.0.0
baloo_fil 2961                    x  mem       REG                8,1    101336     521197 /usr/lib64/libxcb-glx.so.0.0.0
baloo_fil 2961                    x  mem       REG                8,1      6848     520934 /usr/lib64/libX11-xcb.so.1.0.0
baloo_fil 2961                    x  mem       REG                8,1     23472     521193 /usr/lib64/libXfixes.so.3.1.0
baloo_fil 2961                    x  mem       REG                8,1     11160     521191 /usr/lib64/libXdamage.so.1.1.0
baloo_fil 2961                    x  mem       REG                8,1     74760     521181 /usr/lib64/libXext.so.6.4.0
baloo_fil 2961                    x  mem       REG                8,1    199800     520931 /usr/lib64/libglapi.so.0.0.0
baloo_fil 2961                    x  mem       REG                8,1     11096     520928 /usr/lib64/libxshmfence.so.1.0.0
baloo_fil 2961                    x  mem       REG                8,1     27648     521106 /usr/lib64/libxcb-sync.so.1.0.0
baloo_fil 2961                    x  mem       REG                8,1     11176     521110 /usr/lib64/libxcb-present.so.0.0.0
baloo_fil 2961                    x  mem       REG                8,1     11184     521112 /usr/lib64/libxcb-dri3.so.0.0.0
baloo_fil 2961                    x  mem       REG                8,1    177744     520936 /usr/lib64/libexpat.so.1.6.3
baloo_fil 2961                    x  mem       REG                8,1    184624     528706 /usr/lib64/libgraphite2.so.3.0.1
baloo_fil 2961                    x  mem       REG                8,1    654192     523919 /usr/lib64/libfreetype.so.6.13.0
baloo_fil 2961                    x  mem       REG                8,1     23888     520952 /usr/lib64/libXdmcp.so.6.0.0
baloo_fil 2961                    x  mem       REG                8,1     15424     521078 /usr/lib64/libXau.so.6.0.0
baloo_fil 2961                    x  mem       REG                8,1     36336     521069 /usr/lib64/libffi.so.6.0.4
baloo_fil 2961                    x  mem       REG                8,1   1129640     521513 /usr/lib64/libgcrypt.so.20.1.8
baloo_fil 2961                    x  mem       REG                8,1    218872     521477 /usr/lib64/liblzma.so.5.2.3
baloo_fil 2961                    x  mem       REG                8,1    467984     520920 /usr/lib64/libpcre.so.1.2.8
baloo_fil 2961                    x  mem       REG                8,1      4872     521529 /usr/lib64/libicudata.so.58.2
baloo_fil 2961                    x  mem       REG                8,1    380648     523903 /usr/lib64/libpng16.so.16.29.0
baloo_fil 2961                    x  mem       REG                8,1    448264     521204 /usr/lib64/libGL.so.1.2.0
baloo_fil 2961                    x  mem       REG                8,1    417504     528710 /usr/lib64/libharfbuzz.so.0.10302.0
baloo_fil 2961                    x  mem       REG                8,1     11136     528631 /usr/lib64/libxcb-keysyms.so.1.0.0
baloo_fil 2961                    x  mem       REG                8,1    155944     521080 /usr/lib64/libxcb.so.1.1.0
baloo_fil 2961                    x  mem       REG                8,1    340936     521469 /usr/lib64/libgobject-2.0.so.0.5200.2
baloo_fil 2961                    x  mem       REG                8,1     33672     520375 /usr/lib64/librt-2.22.so
baloo_fil 2961                    x  mem       REG                8,1   1137696     521465 /usr/lib64/libglib-2.0.so.0.5200.2
baloo_fil 2961                    x  mem       REG                8,1     15784     520349 /usr/lib64/libdl-2.22.so
baloo_fil 2961                    x  mem       REG                8,1    431064     524043 /usr/lib64/libpcre16.so.0.2.8
baloo_fil 2961                    x  mem       REG                8,1   1743624     521539 /usr/lib64/libicuuc.so.58.2
baloo_fil 2961                    x  mem       REG                8,1   2553024     521531 /usr/lib64/libicui18n.so.58.2
baloo_fil 2961                    x  mem       REG                8,1    115168     520924 /usr/lib64/libz.so.1.2.11
baloo_fil 2961                    x  mem       REG                8,1     95144     521087 /usr/lib64/libgcc_s-5.4.0.so.1
baloo_fil 2961                    x  mem       REG                8,1     32536     528700 /usr/lib64/libfam.so.0.0.0
baloo_fil 2961                    x  mem       REG                8,1     87008     543385 /usr/lib64/liblmdb.so.0.0.0
baloo_fil 2961                    x  mem       REG                8,1   5704344     528747 /usr/lib64/libQt5Gui.so.5.6.2
baloo_fil 2961                    x  mem       REG                8,1   1314744     521179 /usr/lib64/libX11.so.6.3.0
baloo_fil 2961                    x  mem       REG                8,1    323816     529559 /usr/lib64/libKF5WindowSystem.so.5.32.0
baloo_fil 2961                    x  mem       REG                8,1    333344     527329 /usr/lib64/libdbus-1.so.3.14.10
baloo_fil 2961                    x  mem       REG                8,1    146264     520371 /usr/lib64/libpthread-2.22.so
baloo_fil 2961                    x  mem       REG                8,1   6773072     528772 /usr/lib64/libQt5Widgets.so.5.6.2
baloo_fil 2961                    x  mem       REG                8,1   2042496     520343 /usr/lib64/libc-2.22.so
baloo_fil 2961                    x  mem       REG                8,1   1055440     520351 /usr/lib64/libm-2.22.so
baloo_fil 2961                    x  mem       REG                8,1   1561880     521084 /usr/lib64/libstdc++.so.6.0.21
baloo_fil 2961                    x  mem       REG                8,1   4993256     528731 /usr/lib64/libQt5Core.so.5.6.2
baloo_fil 2961                    x  mem       REG                8,1    606584     528776 /usr/lib64/libKF5CoreAddons.so.5.32.0
baloo_fil 2961                    x  mem       REG                8,1    269672     543387 /usr/lib64/libKF5BalooEngine.so.5.32.0
baloo_fil 2961                    x  mem       REG                8,1    385608     528778 /usr/lib64/libKF5ConfigCore.so.5.32.0
baloo_fil 2961                    x  mem       REG                8,1     33088     531249 /usr/lib64/libKF5Crash.so.5.32.0
baloo_fil 2961                    x  mem       REG                8,1    328768     528774 /usr/lib64/libKF5I18n.so.5.32.0
baloo_fil 2961                    x  mem       REG                8,1    140856     540355 /usr/lib64/libKF5FileMetaData.so.5.32.0
baloo_fil 2961                    x  mem       REG                8,1    914776     531050 /usr/lib64/libKF5Solid.so.5.32.0
baloo_fil 2961                    x  mem       REG                8,1    155464     520336 /usr/lib64/ld-2.22.so
baloo_fil 2961                    x  mem       REG                8,1    109225      17983 /usr/share/qt5/translations/qtxmlpatterns_pl.qm
baloo_fil 2961                    x  mem       REG                8,1    142385      17869 /usr/share/qt5/translations/qtbase_pl.qm
baloo_fil 2961                    x  mem       REG                8,1    549224     524038 /usr/lib64/libsystemd.so.0.15.0
baloo_fil 2961                    x  mem       REG                8,1     15696     528788 /usr/lib64/libQt5X11Extras.so.5.6.2
baloo_fil 2961                    x  mem       REG                8,1    129984     521462 /usr/lib64/libudev.so.1.6.4
baloo_fil 2961                    x  mem       REG                8,1    238696     528799 /usr/lib64/libQt5Xml.so.5.6.2
baloo_fil 2961                    x  mem       REG                8,1    561728     528734 /usr/lib64/libQt5DBus.so.5.6.2
baloo_fil 2961                    x  mem       REG                8,6      2660    4072205 /home/x/.local/share/mime/mime.cache
baloo_fil 2961                    x  mem-r     REG                8,6      8192    3677224 /home/x/.local/share/baloo/index-lock
baloo_fil 2961                    x  mem       REG                8,1       111     543569 /usr/share/locale/pl/LC_MESSAGES/kwindowsystem5_qt.qm
baloo_fil 2961                    x  mem       REG                8,1      5253      17955 /usr/share/qt5/translations/qtscript_pl.qm
baloo_fil 2961                    x  mem       REG                8,1     37519      17930 /usr/share/qt5/translations/qtquick1_pl.qm
baloo_fil 2961                    x  mem       REG                8,1     14816      17915 /usr/share/qt5/translations/qtmultimedia_pl.qm
baloo_fil 2961                    x  mem       REG                8,1       180      17848 /usr/share/qt5/translations/qt_pl.qm
baloo_fil 2961                    x  mem       REG                8,1     20078     543525 /usr/share/locale/pl/LC_MESSAGES/solid5_qt.qm
baloo_fil 2961                    x    0r     FIFO               0,10       0t0      20219 pipe
baloo_fil 2961                    x    1w      REG                8,6      6492    4337486 /home/x/.local/share/sddm/xorg-session.log
baloo_fil 2961                    x    2w      REG                8,6      6492    4337486 /home/x/.local/share/sddm/xorg-session.log
baloo_fil 2961                    x    3u  a_inode               0,11         0       8533 [eventfd]
baloo_fil 2961                    x    4u  netlink                          0t0      21461 KOBJECT_UEVENT
baloo_fil 2961                    x    5u  a_inode               0,11         0       8533 [eventfd]
baloo_fil 2961                    x    6u     unix 0xffff915031bce000       0t0      21474 type=STREAM
baloo_fil 2961                    x    7r  a_inode               0,11         0       8533 inotify
baloo_fil 2961                    x    8r      REG                0,4         0      21483 /proc/2961/mounts
baloo_fil 2961                    x    9u     unix 0xffff915031bbbc00       0t0      21518 type=STREAM
baloo_fil 2961                    x   10ur     REG                8,6      8192    3677224 /home/x/.local/share/baloo/index-lock
baloo_fil 2961                    x   11u      REG                8,6 182976512    3678038 /home/x/.local/share/baloo/index
baloo_fil 2961                    x   12w      REG                8,6 182976512    3678038 /home/x/.local/share/baloo/index
baloo_fil 2961                    x   13u     unix 0xffff91502fc18800       0t0      21504 type=DGRAM
baloo_fil 2961                    x   14u  a_inode               0,11         0       8533 [eventfd]
baloo_fil 2961                    x   15r  a_inode               0,11         0       8533 inotify
baloo_fil 2961                    x   16r      REG                8,6      2660    4072205 /home/x/.local/share/mime/mime.cache
baloo_fil 2961                    x   17r      REG                8,1    145768      12032 /usr/share/mime/mime.cache
QDBusConn 2961 3015               x  txt       REG                8,1    279920     543816 /usr/bin/baloo_file
QDBusConn 2961 3015               x  mem       REG                8,6 182976512    3678038 /home/x/.local/share/baloo/index
QDBusConn 2961 3015               x  mem       REG                8,1    269672     543387 /usr/lib64/libKF5BalooEngine.so.5.32.0
QDBusConn 2961 3015               x  mem-r     REG                8,6      8192    3677224 /home/x/.local/share/baloo/index-lock
QDBusConn 2961 3015               x   10ur     REG                8,6      8192    3677224 /home/x/.local/share/baloo/index-lock
QDBusConn 2961 3015               x   11u      REG                8,6 182976512    3678038 /home/x/.local/share/baloo/index
QDBusConn 2961 3015               x   12w      REG                8,6 182976512    3678038 /home/x/.local/share/baloo/index
Thread    2961 5886               x  txt       REG                8,1    279920     543816 /usr/bin/baloo_file
Thread    2961 5886               x  mem       REG                8,6 182976512    3678038 /home/x/.local/share/baloo/index
Thread    2961 5886               x  mem       REG                8,1    269672     543387 /usr/lib64/libKF5BalooEngine.so.5.32.0
Thread    2961 5886               x  mem-r     REG                8,6      8192    3677224 /home/x/.local/share/baloo/index-lock
Thread    2961 5886               x   10ur     REG                8,6      8192    3677224 /home/x/.local/share/baloo/index-lock
Thread    2961 5886               x   11u      REG                8,6 182976512    3678038 /home/x/.local/share/baloo/index
Thread    2961 5886               x   12w      REG                8,6 182976512    3678038 /home/x/.local/share/baloo/index

delasol
 
Posts: 26
Joined: Jul 11th, '15, 14:44

Re: Baloo is not indexing plain text files by content

Postby doktor5000 » Sep 19th, '17, 16:17

Hmmm, I'd say it's currently not indexing anything, maybe the initial indexing got stuck somehow?
You should probably ask upstream at https://forum.kde.org after going through the pointers from https://community.kde.org/Baloo/Debugging or maybe https://forum.kde.org/viewtopic.php?f=154&t=121889
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Baloo is not indexing plain text files by content

Postby delasol » Sep 19th, '17, 17:16

doktor5000 wrote:Hmmm, I'd say it's currently not indexing anything, maybe the initial indexing got stuck somehow?
You should probably ask upstream at https://forum.kde.org after going through the pointers from https://community.kde.org/Baloo/Debugging or maybe https://forum.kde.org/viewtopic.php?f=154&t=121889


But the file searching is working well. Baloo finds all files by filename, and most of the files containing text (like .pdf, .odt, .ods) by content. The only problem is with files described as plain/text (.txt, .doc) which cannot be find by content.
delasol
 
Posts: 26
Joined: Jul 11th, '15, 14:44

Re: Baloo is not indexing plain text files by content

Postby delasol » Sep 19th, '17, 18:31

I found this thread:
https://forum.kde.org/viewtopic.php?f=1 ... xt#p358731

There was a problem in kfilemetadata 5.32.0 that broke indexing for plain text files though that got fixed in 5.33.0... ;)
https://cgit.kde.org/kfilemetadata.git/ ... 4d1ff16ece
(basically, plain text files were not "recognized" as text/plain)


I have kfilemetadata 5.32.0 so it seems that i have to wait for the update... :?
delasol
 
Posts: 26
Joined: Jul 11th, '15, 14:44

Re: Baloo is not indexing plain text files by content

Postby delasol » Sep 20th, '17, 13:14

Is it possible to resolve the problem manually or update the package manually (from other distributions or Cauldron) without causing damage to the system stability (instead of waiting for the official update)?
Last edited by doktor5000 on Sep 20th, '17, 19:41, edited 1 time in total.
Reason: removed fullquote
delasol
 
Posts: 26
Joined: Jul 11th, '15, 14:44

Re: Baloo is not indexing plain text files by content

Postby doktor5000 » Sep 20th, '17, 19:44

You should neither install cauldron packages nor simply wait for an update - until you file a bugreport for this issue with Mageia pointing out your issue and the upstream link you posted most probably no update for this specific fix will automagically appear.

Check: https://wiki.mageia.org/en/How_to_report_a_bug_properly
For completeness's sake and also to allow others to follow up on that bug report, please also post the link to it here in the thread, thanks.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Baloo is not indexing plain text files by content

Postby delasol » Sep 20th, '17, 20:49

Done. I was posting in Bugzilla for the first time, so i hope i did it correctly :)

https://bugs.mageia.org/show_bug.cgi?id=21749
delasol
 
Posts: 26
Joined: Jul 11th, '15, 14:44

Re: Baloo is not indexing plain text files by content

Postby isadora » Sep 21st, '17, 11:44

You did greatly, i added your informational link from KDE-bugzilla.
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2742
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: Baloo is not indexing plain text files by content

Postby delasol » Mar 7th, '18, 16:16

It's been a while since i posted the topic and filed the report in bugzilla, and unfortunately the problem wasn't solved. As far as i read there is also a disagreement in the community that the files with text/plain mime type should be indexed in baloo. Because the issue is quite important for me i was thinking about a different solution.

Is it possible to change the mime type of a whole class of files ( for example created by KWrite with *.txt extension), and force baloo to index them? Just changing the file extension or file association doesn't work.

Thanks in advance.
delasol
 
Posts: 26
Joined: Jul 11th, '15, 14:44

Re: Baloo is not indexing plain text files by content

Postby doktor5000 » Mar 7th, '18, 19:27

delasol wrote:Is it possible to change the mime type of a whole class of files ( for example created by KWrite with *.txt extension), and force baloo to index them? Just changing the file extension or file association doesn't work.

That's not easily possible, as the recognition is usually done via "magic" which examines usually the header / first few bytes or also the end of the actual file, or some unique sequences. This is explained e.g. in the man page for magic: https://linux.die.net/man/5/magic

What you could try is test the KF5 update from updates_testing, it currently has kfilemetadata-5.42 - but you probably need to update the whole KF5 stack.
For more information on the progress of that update, check https://bugs.mageia.org/show_bug.cgi?id=22658
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Baloo is not indexing plain text files by content

Postby delasol » Sep 6th, '18, 17:48

For me the problem is solved.

I'ts working again after reinstalling kfilemetadata 5.42.0
delasol
 
Posts: 26
Joined: Jul 11th, '15, 14:44

Re: Baloo is not indexing plain text files by content

Postby isadora » Sep 6th, '18, 18:06

Would you mind, marking this topic [SOLVED]?
You can do so by editing the title/subject of the first message in the topic.
Place [SOLVED] in front of subject/title.

Thanks ahead. :)
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2742
Joined: Mar 25th, '11, 16:03
Location: Netherlands


Return to Basic support

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron