2015-08-21 11:39 GMT-03:00 Francisco Ares <fra...@gmail.com>: > 2015-08-21 11:30 GMT-03:00 Francisco Ares <fra...@gmail.com>: > >> 2015-08-21 11:02 GMT-03:00 J. Roeleveld <jo...@antarean.org>: >> >>> On Friday, August 21, 2015 10:56:58 AM Francisco Ares wrote: >>> > 2015-08-21 10:49 GMT-03:00 Francisco Ares <fra...@gmail.com>: >>> > > 2015-08-21 10:31 GMT-03:00 J. Roeleveld <jo...@antarean.org>: >>> > >> On Friday, August 21, 2015 10:06:15 AM Francisco Ares wrote: >>> > >> > Hi, >>> > >> > >>> > >> > In fact, I can only suppose there's something related to changing >>> from >>> > >> > nepomuk to baloo: >>> > >> > >>> > >> > Now, every time I log in, a window pops up asking for root >>> password. >>> > >> >>> > >> The >>> > >> >>> > >> > window title is "PolicyKit - KDE" and pressing the button >>> "Details", it >>> > >> > shows: >>> > >> > >>> > >> > Action: Folder Watch Limit >>> > >> > polkit.subject-pid: 5254 >>> > >> > polkit.caller-pid: 6699 >>> > >> > >>> > >> > Looking for those PIDs: >>> > >> > >>> > >> > ~ $ ps -A | grep 5254 >>> > >> > >>> > >> > 5254 ? 00:00:07 baloo_file >>> > >> > >>> > >> > and PID 6699 doesn't show up any more, probably the process has >>> already >>> > >> > ended. >>> > >> > >>> > >> > Did I miss something? How do I set up Baloo? Looking on the net, >>> I only >>> > >> > found how to set up a file ~/.kde4/share/config/nepomukserverrc >>> (that >>> > >> >>> > >> was >>> > >> >>> > >> > nonexistent, which seemed strange), is there something else >>> regarding >>> > >> >>> > >> the >>> > >> >>> > >> > database it might be willing to use? >>> > >> >>> > >> Nepomuk, and now Baloo, want to open file-watchers on your system >>> to get >>> > >> change-notifications directly from the kernel (filesystem driver), >>> > >> instead of >>> > >> polling the filesystem. >>> > >> This is actually better, performance wise. >>> > >> >>> > >> To avoid these message, I created the following file a long time >>> ago: >>> > >> >>> > >> % cat /etc/sysctl.d/97-kde-nepomuk-filewatch-inotify.conf >>> > >> fs.inotify.max_user_watches = 65536 >>> > >> >>> > >> Guess I will need to change the name of that file now :) >>> > >> >>> > >> Kind regards, >>> > >> >>> > >> Joost >>> > > >>> > > Thank you, Joost. >>> > > >>> > > Best Regards, >>> > > Francisco >>> > >>> > Checking on the file pointed by Joost, I've found it on my >>> filesystem), but >>> > there is another file, an almost exact copy, for baloo: >>> > >>> > ~ # l /etc/sysctl.d/ >>> > total 28K >>> > drwxr-xr-x 2 root root 4,0K Ago 21 10:50 ./ >>> > drwxr-xr-x 160 root root 12K Ago 21 10:22 ../ >>> > -rw-r--r-- 1 root root 36 Ago 21 09:16 >>> > 97-kde-baloo-filewatch-inotify.conf >>> > >>> > -rw-r--r-- 1 root root 36 Mai 7 2014 >>> > 97-kde-nepomuk-filewatch-inotify.conf >>> > >>> > >>> > ~ # cat /etc/sysctl.d/97-kde-* >>> > fs.inotify.max_user_watches = 65536 >>> > fs.inotify.max_user_watches = 32768 >>> > >>> > >>> > >>> > The first value (65536) is from 97-kde-baloo-filewatch-inotify.conf . >>> The >>> > second (32768) is from 97-kde-nepomuk-filewatch-inotify.conf. >>> > >>> > So, the mystery goes on... >>> > >>> > Thanks, >>> > Francisco >>> >>> what does: >>> % cat /proc/sys/fs/inotify/max_user_watches >>> give you? >>> >>> My guess: 32768 (as that's the last one it will find) >>> On my system I get 65536. >>> >>> I think if you were to remove the nepomuk file, it should work. >>> >>> -- >>> Joost >>> >>> >> >> Unexpected: >> >> ~ $ cat /proc/sys/fs/inotify/max_user_watches >> 131072 >> >> both as a regular user an as root. >> >> Going to search for this number on config files. >> >> Thanks for the clue. >> >> Francisco >> > > > > Also unexpected: > > ~ # cd /etc > etc # fgrep -R 131072 * 2> /dev/null > apache2/modules.d/10_mod_mem_cache.conf:MCacheSize 131072 > sane.d/sharp.conf:option buffersize 131072 > sysctl.d/97-kde-baloo-filewatch-inotify.conf:fs.inotify.max_user_watches = > 131072 > > > I have logged out and back in, to check for the effects on that window > asking for root password. It did show up again, and now the > file 97-kde-baloo-filewatch-inotify.conf has been changed. > > Going to try again, after removing 97-kde-nepomuk-filewatch-inotify.conf. > Back soon... >
It took a while longer, but there it is, asking for root password. After removing 97-kde-nepomuk-filewatch-inotify.conf and adjusting 97-kde-baloo-filewatch-inotify.conf contents to the suggested by Joost, there it is again, asking for root password. Now, before hitting the OK button: polkit.subject.pid 24276 polkit.caller.pid: 25543 ~ # ps -ejH PID PGID SID TTY TIME CMD 2 0 0 ? 00:00:00 kthreadd 3 0 0 ? 00:00:01 ksoftirqd/0 5 0 0 ? 00:00:00 kworker/0:0H ... 25528 0 0 ? 00:00:00 kworker/3:2 25536 0 0 ? 00:00:00 kworker/1:2 1 1 1 ? 00:00:00 init 1761 1761 1761 ? 00:00:00 systemd-udevd ... 24173 24173 24173 ? 00:00:00 dbus-daemon 24220 24220 24220 ? 00:00:00 kdeinit4 24221 24220 24220 ? 00:00:00 klauncher ... 24247 24220 24220 ? 00:00:00 kactivitymanage 24270 24220 24220 ? 00:00:17 plasma-desktop 24272 24220 24220 ? 00:00:00 ksysguardd 24276 24220 24220 ? 00:00:25 baloo_file ... 25543 3972 3972 ? 00:00:00 kde_baloo_filew So, they are part of the same tree, but there is no parent-child relationship among them - as far as I understand this listing. Thanks! Francisco