Discussion:
[frameworks-kcoreaddons] [Bug 387663] New: kf5.kcoreaddons.kdirwatch: inotify failed for monitoring
b***@kde.org
2017-12-07 12:30:15 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

Bug ID: 387663
Summary: kf5.kcoreaddons.kdirwatch: inotify failed for
monitoring
Product: frameworks-kcoreaddons
Version: 5.40.0
Platform: Kubuntu Packages
OS: Linux
Status: UNCONFIRMED
Severity: major
Priority: NOR
Component: general
Assignee: ***@kde.org
Reporter: ***@gmail.com
CC: kdelibs-***@kde.org
Target Milestone: ---

Hello,

I'm on Kubuntu 17.10 and Dolphin (17.04.3) often doesn't update the view and
doesn't show new files even if you change directory.

If I open dolphin with this command :

$ QT_LOGGING_RULES=kf5.kcoreaddons.kdirwatch.debug=true dolphin

there is some messages like that whereas my drive is far from full:

kf5.kcoreaddons.kdirwatch: inotify failed for monitoring
inotify_add_watch("/media/Data/Downloads") failed: "No space left on device"

The bug is also reported against dolphin

https://bugs.kde.org/show_bug.cgi?id=386838

Thanks !
--
You are receiving this mail because:
You are watching all bug changes.
Martin Oemus
2017-12-21 11:36:55 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

Martin Oemus <***@oemus.net> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@oemus.net

--- Comment #1 from Martin Oemus <***@oemus.net> ---
I experience the same problem. I'm on Kubuntu 17.10, KDE-Plasma 5.11.4,
Frameworks 5.40.0, Kernel 4.13.0, Dolphin 17.04.3.

When I start dolphin with logging like in the comment above, I also get
messages like "inotify_add_watch("/etc/fstab") failed: "No space left on
device"".

I have enough space left on my partitions:

$ df -h
Dateisystem Größe Benutzt Verf. Verw% Eingehängt auf
udev 7,8G 0 7,8G 0% /dev
tmpfs 1,6G 26M 1,6G 2% /run
/dev/sdb5 216G 34G 171G 17% /
tmpfs 7,8G 137M 7,7G 2% /dev/shm
tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs 7,8G 0 7,8G 0% /sys/fs/cgroup
/dev/loop0 84M 84M 0 100% /snap/core/3247
/dev/loop2 84M 84M 0 100% /snap/core/3440
/dev/sdb3 98G 74G 24G 76% /media/Windows
/dev/sdb1 96M 22M 75M 23% /boot/efi
/dev/sda1 466G 277G 190G 60% /media/Daten
tmpfs 1,6G 236M 1,4G 15% /run/user/1000
/dev/loop3 84M 84M 0 100% /snap/core/3604


I also made sure the number of allowed kernel inotify watches is not reached,
as described here: https://unix.stackexchange.com/a/13757
--
You are receiving this mail because:
You are watching all bug changes.
Dr. Chapatin
2018-01-17 22:35:03 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

Dr. Chapatin <***@gmx.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@gmx.com
--
You are receiving this mail because:
You are watching all bug changes.
Nate Graham
2018-01-30 14:41:35 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

--- Comment #2 from Nate Graham <***@zoho.com> ---
*** Bug 386838 has been marked as a duplicate of this bug. ***
--
You are receiving this mail because:
You are watching all bug changes.
Nate Graham
2018-01-30 14:42:29 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

Nate Graham <***@zoho.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@zoho.com
Keywords| |usability
--
You are receiving this mail because:
You are watching all bug changes.
Nate Graham
2018-01-30 14:43:08 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

Nate Graham <***@zoho.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Summary|kf5.kcoreaddons.kdirwatch: |kf5.kcoreaddons.kdirwatch:
|inotify failed for |inotify sometimes fails for
|monitoring |monitoring even when number
| |of allowed kernel inotify
| |watches has not been
| |reached
--
You are receiving this mail because:
You are watching all bug changes.
Störm Poorun
2018-01-30 17:41:24 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

Störm Poorun <***@olan.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@olan.org
--
You are receiving this mail because:
You are watching all bug changes.
b***@kde.org
2018-02-24 09:36:35 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

--- Comment #3 from ***@gmail.com ---
I don't use KDE for now because of this. I hope it can be fixed for Kubuntu
18.04. Thanks.
--
You are receiving this mail because:
You are watching all bug changes.
b***@kde.org
2018-03-01 12:04:27 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

***@gmail.com changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |CONFIRMED
Ever confirmed|0 |1

--- Comment #4 from ***@gmail.com ---
I should mention that of course Dolphin have to be kept open for the problem to
occur. I mean the problem doesn't show up on Dolphin start.
--
You are receiving this mail because:
You are watching all bug changes.
Greg Lepore
2018-03-01 12:32:32 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

Greg Lepore <***@rhobard.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@rhobard.com
--
You are receiving this mail because:
You are watching all bug changes.
b***@kde.org
2018-03-10 20:15:11 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

--- Comment #5 from ***@gmail.com ---
I updated the number of allowed kernel inotify watches but that doesn't change
anything.
--
You are receiving this mail because:
You are watching all bug changes.
b***@kde.org
2018-03-15 22:03:45 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

***@gmail.com changed:

What |Removed |Added
----------------------------------------------------------------------------
Version|5.40.0 |5.44.0
--
You are receiving this mail because:
You are watching all bug changes.
b***@kde.org
2018-03-25 08:57:18 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

--- Comment #6 from ***@gmail.com ---
It still happening frequently. Don't know if it's really kcoreaddons since I
didn't had the message related to it when I tried again this command and use
dolphin for a day and had the problem several times:

QT_LOGGING_RULES=kf5.kcoreaddons.kdirwatch.debug=true dolphin

Trying to convert empty KLocalizedString to QString.
qt.accessibility.core: Cannot create accessible child interface for object:
PlacesView(0x55cbd04d6790) index: 6
QObject::connect: invalid null parameter
QObject::connect: invalid null parameter
QObject::connect: invalid null parameter
QObject::connect: invalid null parameter
QObject::connect: invalid null parameter
QObject::connect: invalid null parameter
kf5.kcoreaddons.kdirwatch: "KDirWatch-2" stopped scanning
"/home/jeremy/Téléchargements/Nouveau Dossier" (now 1 watchers)
kf5.kcoreaddons.kdirwatch: "KDirWatch-2" stopped scanning
"/home/jeremy/Téléchargements/Nouveau Dossier" (now 1 watchers)
No text-to-speech plug-ins were found.
No text-to-speech plug-ins were found.
QObject::connect: invalid null parameter
QObject::connect: invalid null parameter
QObject::connect: invalid null parameter
QObject::connect: invalid null parameter
QObject::connect: invalid null parameter
QObject::connect: invalid null parameter
QObject::connect: invalid null parameter
QObject::connect: invalid null parameter
QObject::connect: invalid null parameter
--
You are receiving this mail because:
You are watching all bug changes.
Kevin Funk
2018-03-27 05:27:07 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

Kevin Funk <***@kde.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@kde.org
--
You are receiving this mail because:
You are watching all bug changes.
b***@kde.org
2018-03-30 13:23:55 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

--- Comment #7 from ***@gmail.com ---
Could it be related to tlp since it apply some powersave settings to hdd/ssd
and other part of the system ? I tried to disable it and I didn't had the
problem for 2 or 3 days. I re-enabled it and I had the problem once. I'm trying
different tlp settings but it's not clear if tlp has anything to do with it.
--
You are receiving this mail because:
You are watching all bug changes.
b***@kde.org
2018-03-31 09:12:23 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

--- Comment #8 from ***@gmail.com ---
It's not related to tlp. I disabled it today and it happened... Nautilus was
open on the same folder at the same time at it showed the files.
--
You are receiving this mail because:
You are watching all bug changes.
b***@kde.org
2018-03-31 09:52:34 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

***@gmail.com changed:

What |Removed |Added
----------------------------------------------------------------------------
Assignee|***@kde.org |***@kde.org
Product|frameworks-kcoreaddons |kio
Version|5.44.0 |unspecified
Component|general |general

--- Comment #9 from ***@gmail.com ---
Well I managed to somewhat make it reproducible, at least on my computer :

1. open Dolphin
2. press Ctrl+3 - switch do details view mode (this step isn't needed on my
production profile, so probably also other view setting triggering this bug)
3. press F4
4. mkdir abc - create folder "abc"
5. rmdir abc - delete folder "abc" - files view area isn't updated

I saw it here :
https://forum.kde.org/viewtopic.php?f=224&t=98940&start=60#p260138

You may need to do mkdir / rmdir several time to trigger the problem. Note that
it happen with directories and files. The "inotify failed for monitoring"
message doesn't show up.
--
You are receiving this mail because:
You are watching all bug changes.
b***@kde.org
2018-03-31 09:53:15 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

***@gmail.com changed:

What |Removed |Added
----------------------------------------------------------------------------
Summary|kf5.kcoreaddons.kdirwatch: |Dolphin doesn't update view
|inotify sometimes fails for |(doesn't show new files)
|monitoring even when number |
|of allowed kernel inotify |
|watches has not been |
|reached |
--
You are receiving this mail because:
You are watching all bug changes.
Christoph Feck
2018-03-31 11:16:26 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

--- Comment #10 from Christoph Feck <***@kde.org> ---
Why did you reassign to 'kio'?

I cannot reproduce using the steps from comment #9.

while true ; do mkdir abc ; sleep 1 ; rmdir abc ; sleep 1 ; done

Ran for several minutes, but view always changed every second.

linux 4.14.9 x86_64
kcoreaddons 5.42
dolphin 17.12.1
--
You are receiving this mail because:
You are watching all bug changes.
b***@kde.org
2018-03-31 11:40:03 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

--- Comment #11 from ***@gmail.com ---
I thought it was maybe somewhat related to this one

https://bugs.kde.org/show_bug.cgi?id=316016

I can't reproduce it too. I may be reproducible only when the problem occur
first but what trigger it ??
--
You are receiving this mail because:
You are watching all bug changes.
b***@kde.org
2018-03-31 11:54:48 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

--- Comment #12 from ***@gmail.com ---
I'm not sure but it seem to happen only (a lot more ?) when there is an accent
in the path (eg. /home/jeremy/Téléchargements/Séries). In fact I'm not sure if
it even happen outside a directory or parent directory that doesn't have an
accent.
--
You are receiving this mail because:
You are watching all bug changes.
Nate Graham
2018-03-31 13:45:50 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

Nate Graham <***@kde.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Assignee|***@kde.org |***@kde.org
Product|kio |frameworks-kcoreaddons
Component|general |general

--- Comment #13 from Nate Graham <***@kde.org> ---
FYI, "kio" is obsolete, and the new current product for KIO is
"frameworks-kio". Moving back until we can be sure it's KIO.
--
You are receiving this mail because:
You are watching all bug changes.
b***@kde.org
2018-03-31 18:17:47 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

--- Comment #14 from ***@gmail.com ---
Forget the accent in the path, it happen without too...
--
You are receiving this mail because:
You are watching all bug changes.
b***@kde.org
2018-03-31 19:26:03 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

--- Comment #15 from ***@gmail.com ---
I forgot to say that I have 2 partitions. /root where /home is and /media/Data.
I symlink the home folders to /media/Data. It seem that Martin from comment 1
have a /media/Data too.
--
You are receiving this mail because:
You are watching all bug changes.
Simon Andric
2018-04-05 13:08:44 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

Simon Andric <***@gmail.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@gmail.com
--
You are receiving this mail because:
You are watching all bug changes.
b***@kde.org
2018-04-09 19:14:12 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

--- Comment #16 from ***@gmail.com ---
Well I removed the symlinks of the folders inside /home (Desktop, Downloads,
etc...) that pointed to /media/Data and used kde settings (in applications) to
change the places of these folders and I didn't had the problem for about a
week !

So can it be related to the symlinks ?
--
You are receiving this mail because:
You are watching all bug changes.
Mike Robinson
2018-10-17 03:31:11 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

Mike Robinson <***@multiwebinc.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@multiwebinc.com

--- Comment #17 from Mike Robinson <***@multiwebinc.com> ---
Created attachment 115697
--> https://bugs.kde.org/attachment.cgi?id=115697&action=edit
Screencast showing folder view is not refreshed
--
You are receiving this mail because:
You are watching all bug changes.
Mike Robinson
2018-10-17 03:35:08 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

--- Comment #18 from Mike Robinson <***@multiwebinc.com> ---
I am also having this problem with Kubuntu 18.04, see the above screencast.
This seems to also affects sync programs, (e.g. Seafile), which are supposed to
watch certain directories for changes and upload to the server any files that
have been changed, however I need to manually tell it to rescan the
directories.

I get a "No space left on device" error when running Dolphin:

$ dolphin
kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find "stash"
inotify_add_watch("/etc/fstab") failed: "No space left on device"
inotify_add_watch("/home/mike/.local/share/user-places.xbel") failed: "No space
left on device"
inotify_add_watch("/home/mike") failed: "No space left on device"
qt.accessibility.core: Cannot create accessible child interface for object:
PlacesView(0x557fc372cf20) index: 12
kf5.kio.core: KLocalSocket(0x557fc389e150) Jumbo packet of 132210 bytes
kf5.kio.core: KSambaShare: Could not find smb.conf!

However there is plenty of space left on all drives:

$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 3.4G 0 3.4G 0% /dev
tmpfs 691M 1.7M 690M 1% /run
/dev/mapper/mike--debian-root 42G 4.2G 36G 11% /
/dev/mapper/mike--debian-usr 30G 6.8G 22G 24% /usr
tmpfs 3.4G 101M 3.3G 3% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 3.4G 0 3.4G 0% /sys/fs/cgroup
/dev/sda1 730M 6.1M 724M 1% /boot/efi
/dev/mapper/mike--debian-tmp 42G 49M 40G 1% /tmp
/dev/mapper/mike--debian-home 504G 152G 327G 32% /home
/dev/mapper/mike--debian-var 133G 3.2G 123G 3% /var
tmpfs 691M 16K 691M 1% /run/user/129
tmpfs 691M 20K 691M 1% /run/user/1000
--
You are receiving this mail because:
You are watching all bug changes.
Patrick Silva
2018-11-17 21:35:56 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

--- Comment #19 from Patrick Silva <***@gmx.com> ---
I have just seen this bug on Arch Linux with Dolphin 18.12 beta.
"Picture" folder was open, I pressed meta+printscreen to take a screenshot of
the active window. Dolphin did not show the screenshot until I pressed F5.

I can't reproduce such behavior all the time.
--
You are receiving this mail because:
You are watching all bug changes.
Patrick Silva
2018-11-17 22:19:32 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

--- Comment #20 from Patrick Silva <***@gmx.com> ---
(In reply to Patrick Silva from comment #19)
Post by Patrick Silva
I have just seen this bug on Arch Linux with Dolphin 18.12 beta.
"Picture" folder was open, I pressed meta+printscreen to take a screenshot
of the active window. Dolphin did not show the screenshot until I pressed F5.
I can't reproduce such behavior all the time.
I forgot to post:

Operating System: Arch Linux
KDE Plasma Version: 5.14.3
Qt Version: 5.12.0 beta4
KDE Frameworks Version: 5.52.0
Kernel Version: 4.19.2-arch1-1-ARCH
--
You are receiving this mail because:
You are watching all bug changes.
Frederik Schwarzer
2018-12-10 22:58:55 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=387663

Frederik Schwarzer <***@kde.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@kde.org

--- Comment #21 from Frederik Schwarzer <***@kde.org> ---
Same her on Kubuntu 18.04.
I see it mostly when downloading email attachments from KMail into a folder
already opened in a Dolphin window.
--
You are receiving this mail because:
You are watching all bug changes.
Loading...