Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New photos or videos not displayed in "All Media"; new Photos not displayed in "Photos"; new videos ARE displayed in "Videos" #2768

Open
amessina opened this issue Jan 19, 2025 · 8 comments
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working

Comments

@amessina
Copy link

Describe the bug
From the Nextcloud Android client, I auto-upload photos and videos into the /Photos directory of my Nextcloud instance. Uploaded photos or videos are not displayed in the "All Media" view and photos are not displayed in the "Photos" view. Oddly, new videos ARE displayed in the "Videos" view.

All uploaded photos and videos are displayed in the "Folder" view.

Also, all photos and videos from files_external mounted into "/Photos/Shared" are displayed in all of the views.

There are no errors in the browser log, or the PostgreSQL server; running Nextcloud 30.0.5. Same result with Firefox or Chrome.

@amessina amessina added 0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working labels Jan 19, 2025
@Hermanio
Copy link

I have an issue where I can only see photos starting from last month in Photos app, new photos and videos are missing. Once the new month rolls around, I can see the images that I uploaded within the last month. Memories app works properly and shows all photos, but at some point the Photos app introduced this issue.

I wonder if the root cause is the same in both our cases.

@ralfbgithub
Copy link

New Photos are not shown. Today, 26.01.2025, only 1 picture is shown for November 2024, 1 for Oktober 2024, 10 for September, ... There are more pictures takes in the respective months.
Media-Folders are Shared Folders.
Nothing is displayed in the "Folder" view.

@mokeev1995
Copy link

mokeev1995 commented Feb 8, 2025

I'm also having this issue. But there's a way to show new photos: scroll down until a new page is requested, and you'll see your new photos at the top of the page (where they should be upon page load).

Also you can temporarily fix this running something like this: php occ files:scan --all --generate-metadata -vvv

If you're using AIO, you'll need to run this before: docker exec --user www-data -it nextcloud-aio-nextcloud bash

@amessina
Copy link
Author

I'm also having this issue. But there's a way to show new photos: scroll down until a new page is requested, and you'll see your new photos at the top of the page (where they should be upon page load).

This didn't work for me.

Also you can temporarily fix this running something like this: php occ files:scan --all --generate-metadata -vvv

This did seem to work for me, and some new photos uploaded from the android client are now showing up as well (after the scan). I'll keep testing to see if the scan fixed some issue.

@amessina
Copy link
Author

Also you can temporarily fix this running something like this: php occ files:scan --all --generate-metadata -vvv

This did seem to work for me, and some new photos uploaded from the android client are now showing up as well (after the scan). I'll keep testing to see if the scan fixed some issue.

After running occ files:scan --all --generate-metadata -vvv, new photos and videos are now showing properly upon upload. Perhaps that scan cleaned up some inconsistency that I could not find. I'll close this for now since it appears it can be "fixed" by the scan.

@Hermanio
Copy link

I can confirm that the same fix works, however it did take a very long time to complete (10+ hours) compared to the usual occ files:scan --all that I run daily (2-5 minutes).

@ralfbgithub
Copy link

Worked for me, BUT newer photos a not shown again

and: [https://github.com/nextcloud/groupfolders/issues/3035#issue-2381978089]

and:
+---------+--------+-----+---------+---------+--------+--------------+
| Folders | Files | New | Updated | Removed | Errors | Elapsed time |
+---------+--------+-----+---------+---------+--------+--------------+
| 14779 | 212063 | 0 | 0 | 0 | 30446 | 05:09:28 |
+---------+--------+-----+---------+---------+--------+--------------+

@amessina
Copy link
Author

Reopening according to @ralfbgithub

@amessina amessina reopened this Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants