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

            Bug ID: 405764
           Summary: Albums disappear when "sshfs - transport endpoint is
                    not connected".
           Product: digikam
           Version: 6.1.0
          Platform: Appimage
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Database-Albums
          Assignee: digikam-bugs-n...@kde.org
          Reporter: iwannaber...@gmail.com
  Target Milestone: ---

SUMMARY

This bug is related to bug #377849, which was been dealt with, but it only
happens in one specific situation. I don't think it's Digikam's fault, but
maybe something could be done to avoid losing a whole collection in the db.

When a network share (containing the pictures) is connected through a sshfs
mount, and the connection is lost at some point, the operating system sometimes
is not aware of it. When you try to access that folder in a file browser, error
messages similar to "sshfs - transport endpoint is not connected" are shown.
Unmounting and mounting the network share usually solves the problem. 

Digikam (and any other software) also thinks that network share is still
connected and accessible, so when it scans for new items, it sees that the path
is still available (but it's not). However, it cannot access any of the
pictures, so it decides to remove all the pictures in that collection, one by
one. I found that the hard way the other day, when I found my database was
empty due to that network error.

This is likely a Linux-only problem, and the error should be corrected at the
level of the OS (better detection of disconnected network folders), but maybe
some mechanism could be implemented in Digikam to minimize situations like
this. Like asking for a confirmation after several folders in a row couldn't be
found, or just hiding but not deleting the files from the database, so they
don't need to be rescanned the next time they are available. I don't know.


STEPS TO REPRODUCE
1. Wait for a network interruption to "freeze" a sshfs mount point without
unmounting it.
2. Tell digikam to scan for new folders/albums.


OBSERVED RESULT
Observe how the scan goes faster than usual, and at the end all albums have
been removed from the database.


EXPECTED RESULT
Nothing should happen, as the picture library is not really available. Maybe
mark those pictures as "not available".


SOFTWARE/OS VERSIONS

Ubuntu 18.04 and digikam-6.1.0-git-20190320T143140-x86-64.appimage


ADDITIONAL INFORMATION
I mount my network shares using the software called "autofs".

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to