You are not logged in.

#1 2018-03-21 19:33:59

avi9526
Member
Registered: 2015-05-15
Posts: 107

baloo doesn't rescan files

baloo file indexer not rescanning files on its own (had to run "balooctl check")
Removing configs (~/.config/baloofile*) and database (~/.local/share/baloo/*) not helping
Baloo is not stuck at indexing certain file, it's just don't do anything

balooctl status

Baloo File Indexer is running
Indexer state: Idle
Indexed 82557 / 82557 files
Current size of index is 61,35 MiB

This started to happen like month ago. Baloo works fine on another machine.

Anyone has such problem or know way how to investigate?

~/.config/baloofilerc

[Basic Settings]
Indexing-Enabled=true

[General]
dbVersion=2
exclude filters=CMakeTmp,*.orig,.xsession-errors*,cmake_install.cmake,__pycache__,*.aux,.histfile.*,_darcs,CMakeFiles,.git,core-dumps,*.csproj,*.gmo,.moc,*.vm*,*.o,CTestTestfile.cmake,*.omf,*.rcore,lost+found,moc_*.cpp,conftest,*~,*.nvram,*.elc,confdefs.h,*.m4,po,autom4te,Makefile.am,qrc_*.cpp,CMakeTmpQmake,*.pc,*.pyc,CMakeCache.txt,*.po,CVS,.bzr,confstat,.obj,*.lo,*.swap,lzo,*.class,*.loT,config.status,.pch,*.la,*.rej,.uic,*.moc,.svn,*.part,ui_*.h,libtool,*.tmp,.hg,litmain.sh
exclude filters version=2
exclude folders[$e]=/media/hdd1/archlinux/,/media/hdd1/avi9526/Steam/
first run=false
folders[$e]=/media/hdd1/,$HOME/
only basic indexing=true

~/.config/baloofileinformationrc

[Misc]
version=8

[Show]
Exif.Image.DateTime=false
Exif.Image.Make=false
Exif.Image.Model=false
Exif.Image.Orientation=false
Exif.Photo.ApertureValue=false
Exif.Photo.ExposureBiasValue=false
Exif.Photo.ExposureTime=false
Exif.Photo.Flash=false
Exif.Photo.FocalLength=false
Exif.Photo.FocalLengthIn35mmFilm=false
Exif.Photo.IsoSpeedRatings=false
Exif.Photo.MeteringMode=false
Exif.Photo.Orientation=false
Exif.Photo.WhiteBalance=false
averageBitrate=false
channels=false
comment=false
contentCreated=false
contentSize=false
created=false
depends=false
fileName=false
fileSize=false
hasPart=false
isPartOf=false
kfileitem#owner=false
kfileitem#permissions=false
lastModified=false
mimeType=false
plainTextContent=false
url=false

Last edited by avi9526 (2018-03-21 19:35:58)

Offline

#2 2018-03-24 19:11:07

avi9526
Member
Registered: 2015-05-15
Posts: 107

Re: baloo doesn't rescan files

Seems that I have found the problem. Baloo using inotify for watching my files.

journalctl | grep baloo
…
baloo_file[20680]: KDE Baloo File Indexer has reached the inotify folder watch limit. File changes will be ignored.
…

Tried to increase the limit

# echo 20000 > /proc/sys/fs/inotify/max_user_watches

then restart baloo

Seems baloo started to working, will test more

Last edited by avi9526 (2018-03-24 19:19:39)

Offline

#3 2018-03-29 21:33:47

davidm
Member
Registered: 2009-04-25
Posts: 370

Re: baloo doesn't rescan files

avi9526 wrote:

Seems that I have found the problem. Baloo using inotify for watching my files.

journalctl | grep baloo
…
baloo_file[20680]: KDE Baloo File Indexer has reached the inotify folder watch limit. File changes will be ignored.
…

Tried to increase the limit

# echo 20000 > /proc/sys/fs/inotify/max_user_watches

then restart baloo

Seems baloo started to working, will test more

Thanks I was noticing the same symptoms and the low inotify max was indeed the issue.

Note that I don't think your change will be persistent unless oyu put it in something like /etc/sysctl.d/40-max-user-watches.conf.

Offline

#4 2018-07-08 05:38:57

CarbonChauvinist
Member
Registered: 2012-06-16
Posts: 348
Website

Re: baloo doesn't rescan files

Useful thread, though in my case I had to increase higher than 20000. Some google-fu (1, 2) led me to settle on 524288.

cat /etc/sysctl.d/40-max-user-watches.conf 
# change from original default of 8192
# https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers
fs.inotify.max_user_watches=524288

"the wind-blown way, wanna win? don't play"

Offline

Board footer

Powered by FluxBB