pulsejet / memories

Fast, modern and advanced photo management suite. Runs as a Nextcloud app.
https://memories.gallery
GNU Affero General Public License v3.0
3.18k stars 86 forks source link

Albums - Lose all content #1287

Open ebildebil opened 1 month ago

ebildebil commented 1 month ago

Is your feature request related to a problem? Please describe.

This is the second time this has happened to me. I have a dedicated 13th Gen Intel NUC with 1340p, on which I run Nextcloud AIO and Memories. In general Memories works really well for me.

We also create a lot of albums in Memories. All our media is stored on a NAS, and the folder is mounted into Nextcloud via the External Folders Feature.

I mount the folders via /etc/fstab entry and use SMB/CIFS.

This is the second time that we have accessed memories, and while I see all the albums, they have ZERO pictures in it. Since files get added externally, I have a periodic cron jobs running Nextcloud files scan, and also memories Index.

I am not sure what happens, but empty album are a severe problem that affect usability, it take a long time to manually re-create albums etc.

The files paths, Never change.

It could be that if there is an intermittent network disconnection memories loses all info, but I can see all photos and videos in the Timeline. Although this shouldn't happen since everyting is wire connected and there are robust 10G switches in between, but one never knows.

Describe the solution you'd like

Some way to backup Album data so it can be restored easily? Or for Memories to have some resilience so it does not lose all contents in Albums..?

Describe alternatives you've considered

I don't have this issue for eg, in Photoview. But that doesn't work for me since I have multiple users.

Additional context

See below example - Each album should have several hundred items:

image

Please advise.

pulsejet commented 1 month ago

This isn't related to Memories. Your problem likely is that the fileid of the files keeps changing for some reason (likely related to the storage), which will erase everything including albums, tags and even share permissions. Probably a better question at the nextcloud forums

ebildebil commented 1 month ago

Okay. Thank you. I did go back and check and the share permissions are intact. I'll try nextcloud forums, but I wonder if that wil help.

Wouldn't it be a good thing for perhaps Memories to have some resilience to this situation anyhow. It works really well and better than Photos and many other apps. And I imagine many people store large media like Photos and Videos outside their primary nextcloud installation.

But In the mean while, I'll have to find something else that will have more reliable album support for me.

Thank you again!

pulsejet commented 1 month ago

This isn't normal behavior, something is off in the setup. All Memories does is use Photos' album backend, which links fileid-album. So the only case this would happen is either if the fileid are changing (i.e. a setup issue) or the database gets cleared somehow.

Wouldn't it be a good thing for perhaps Memories to have some resilience to this situation anyhow.

In other words, there's nothing to be done here, the issue is somewhere else.

ebildebil commented 1 month ago

In my cron job, I run - OCC files:scan --all Could it be that if the share is disconneted when this runs, due to scan --all, the database gets cleared.

Would removing --all or replacing with --unscanned operator preserve previous entries, in your view? I will post this question in AIO as well.

pulsejet commented 1 month ago

Possibly that might work as a workaround, but --all is also not supposed to clear the entries. So this might be a deeper issue. Still worth a try probably.