I have my database on a local HDD. All my photos are on a NAS drive. If I leave my PC on for a few hours unattended and I come back, all the albums disappeared in album view. I then restart digiKam and it automatically rescans. My albums appear but after a very long delay as if it is reading the photos from the NAS drive for the first time. What could be the reason the albums disappear? The NAS is not set to go into any sleep mode during this time.
Created attachment 107861 [details] Screenshot Of Lost Collections
Anyone? I have to close and re-open DigiKam but it has to read all he photos again to restore the collection.
Have you added your collection on the NAS as a network collection under digiKam setup? Maik
Thanks Maik. Yes the collection is under Network Shares. I noticed that the mapped drives in Windows Explorer show a red X more or less at the same time. I looked up the red X symptom and it seems there is an auto disconnect if the drives are idle for a period. https://support.microsoft.com/en-gb/help/297684/mapped-drive-connection-to-network-share-may-be-lost I am currently experimenting with registry settings (KeepConn)to see if I can prevent the auto-disconnect and therefore preventing digiKam from thinking the collections are gone. I'll report back.
I too have experience this issue many times. My albums are on an external HDD and are marked as an external HDD. If the HDD is not connected after using Digikam the albums from the external HDD will be removed when I close and open Digikam.
(In reply to vxd from comment #5) > I too have experience this issue many times. My albums are on an external > HDD and are marked as an external HDD. > > If the HDD is not connected after using Digikam the albums from the external > HDD will be removed when I close and open Digikam. So are you removing the HDD with digiKam open? If so, then I'm not surprised that digiKam removes the albums. I think it constantly scans for file changes.
(In reply to hardy.public from comment #6) > So are you removing the HDD with digiKam open? If so, then I'm not surprised > that digiKam removes the albums. I think it constantly scans for file > changes. No, I did not say I removed the HDD with Digikam open. I have some of the albums on the external HDD and some albums on the local hdd. If the HDD is not connected then the albums from the external HDD are removed.
If it is not certain that the external removable media is always available, then add it as a network collection. As a network collection, the albums are not removed when they are not available, only deactivated. Maik
Maik, Yes, i can confirm this expected behavior, at least in theory. Here, we depend of Solid API to identify the partition UUID registered in database, and of course, under Windows, as i know the Partition identification is not implemented or not complete. Note : Under MacOS, the implementation will arrive soon, as i can see the big patch under testing in KDE Phabricator. So, for me the dysfunction is normal for the moment under Windows. Gilles Caulier
I think that deactivation of albums on my NAS is now nothing to do with Windows dropping the drive connection to the NAS. After all, the database is not on the NAS, it is on a local SSD. I came back to my PC after leaving it on and unattended with digiKam open. After logging in to Windows, digiKam has no albums in the collection. I had to restart digiKam twice and then digiKam behaves like it has no database and begins to rebuilding by adding the photos all over again. So the behaviour indicates that it is the database that is being emptied or corrupted. Looking at the debug log after I relaunch digiKam after album disappearance, there are lines mentioning a NULL album ID and removed image: 14.36514759 [196] digikam.database: Detected identical image info with id 425 and album id NULL of a removed image for image "IMG_2701.JPG" I will try to capture the problem while leaving the PC unattended.
This might be a duplicate of bug #377849
*** This bug has been marked as a duplicate of bug 377849 ***
Not reproducible with 6.0.0