Bug 406224 - 'No space left on device' on startup
Summary: 'No space left on device' on startup
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Scan (show other bugs)
Version: 6.0.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-04 16:57 UTC by Ben
Modified: 2023-10-12 05:32 UTC (History)
3 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 Ben 2019-04-04 16:57:02 UTC
SUMMARY

STEPS TO REPRODUCE
1. launch digikam
2. 
3. 

OBSERVED RESULT

unknown: inotify_add_watch("/some/collection/path/") failed: "No space left on device"

on launch, I get this error message on hundreds of directories. The collection directories are, and have to be, read-only, in our case. I have done best attempts to disable any metadata writing or other that would need write access to the actual library dirs but for some reason this still happens on startup, every time.

settings:
all writing disabled under metadata/behaviour
lazy synchronisation enabled
disabled all write under metadata/advanced
no sidecar writing enabled
rotate flag writing disabled

and yet.


EXPECTED RESULT

is there any way I can get digikam to run without it trying to write into the collection dirs?


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Scientific Linux Release 6.8 (Carbon), Gnome 2.28.2
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2019-04-04 17:50:40 UTC
This message comes from the QFilesystemWatcher. The number of monitorable folders may be limited depending on the operating system. Tests here on Linux were possible depending on the free kernel memory for the 50,000 folders. Under BSD, however, it is very limited according to Qt-DOC. Which kernel do you use exactly and how many folders does your image collection have?

Maik
Comment 2 Maik Qualmann 2019-04-05 06:00:03 UTC
Scientific Linux Release 6.8 would have to use an old kernel 2.6.x. Do you use the digiKam AppImage?

Maik
Comment 3 caulier.gilles 2019-04-05 11:58:52 UTC
Maik,

Scientific Linux is based on Centos6.x and is binary compatible with RH/Fedora/Centos rpms. I use it in my office (Distro designed by CERN Geneva).

Gilles
Comment 4 Ben 2019-04-10 14:55:57 UTC
Kernel is 2.6.32
Comment 5 Ben 2019-04-10 15:20:58 UTC
and a out 35,000 directories, roughly. containing about 300,000 images
Comment 6 Maik Qualmann 2019-04-11 06:57:15 UTC
It is not possible for the QFileSystemWatcher to monitor this large number of folders. I would suggest that only the currently visible album or, in the case of search results, the albums of the visible items be monitored. If there are external changes outside of the monitored albums, a manual update must be done.

Maik
Comment 7 Maik Qualmann 2019-05-23 19:15:07 UTC
Git commit 8a2cbc6917d48bbc5d0b02b78d7bcda4176688cb by Maik Qualmann.
Committed on 23/05/2019 at 19:10.
Pushed by mqualmann into branch 'master'.

QFileSystemWatcher can now be disabled.
The setting is on the collection page.
The default is off.
Related: bug 407691, bug 403073, bug 398921

M  +21   -13   core/libs/album/engine/albumwatch.cpp
M  +2    -0    core/libs/settings/applicationsettings.cpp
M  +3    -0    core/libs/settings/applicationsettings.h
M  +10   -0    core/libs/settings/applicationsettings_albums.cpp
M  +3    -0    core/libs/settings/applicationsettings_p.cpp
M  +3    -0    core/libs/settings/applicationsettings_p.h
M  +16   -14   core/utilities/setup/collections/setupcollections.cpp

https://invent.kde.org/kde/digikam/commit/8a2cbc6917d48bbc5d0b02b78d7bcda4176688cb
Comment 8 caulier.gilles 2020-08-01 14:32:58 UTC
digiKam 7.0.0 stable release is now published and now available as FlatPak:

https://www.digikam.org/news/2020-07-19-7.0.0_release_announcement/

We need a fresh feedback on this file using this version.

Thanks in advance

Gilles Caulier
Comment 9 caulier.gilles 2022-01-09 22:21:07 UTC
Hi Maik,

Just a note about Clementine player which tune the soft limit for the number of file descriptors under MacOS :

https://github.com/clementine-player/Clementine/blob/master/src/main.cpp#L114

I don't know if the same can be done under Linux.

Best

Gilles
Comment 10 caulier.gilles 2023-04-29 09:38:16 UTC
@Ben,

digiKam 8.0.0 is out. This entry still valid with this release ?

Best regards

Gilles Caulier
Comment 11 caulier.gilles 2023-10-12 05:32:40 UTC
Ben,

What's about this file using current 8.2.0 AppImage Linux bundle ? It's
reproducible ?

https://files.kde.org/digikam/

Thanks in advance

Gilles Caulier