Media not generating thumbnails on web app

Iā€™m running Nextcloud in docker. Up until today I had no issues with the Media button (android app) or Photos button (web app) however I noticed that after generating thumbnails for the first 30-40 photos (out of approx. 1000) the web app creates the ā€˜thinkingā€™ circle under the thumbnails, extends the page as if it will load more thumbnails, but then just keeps it as white space. Clicking into the last thumbnail I can see, then scrolling the photos individually will display the photos which donā€™t appear as thumbnails, but still doesnā€™t actually generate the thumbnail.

This is only specific to the web app. All of these photos and videos which are missing in the ā€˜Photosā€™ tab load fine when I go into their individual folders in ā€˜Filesā€™. The android app loads them just fine (albeit a little slowly) from both their Files location and the Media tab.

I have updated everything I could think of, including the main nextcloud version to latest. Iā€™ve searched the forum and seen that other people have their own issues with media and photos, but I canā€™t see one that matches my case.

In case it helps, hereā€™s a small log output from when I click the ā€˜Photosā€™ tab on the web app:

2021-07-07T13:18:56.870977273Z 172.23.0.1 - - [07/Jul/2021:22:18:56 +0900] "GET /apps/photos/ HTTP/1.1" 200 9172 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
2021-07-07T13:18:56.990624025Z 172.23.0.1 - - [07/Jul/2021:22:18:56 +0900] "GET /css/icons/icons-vars.css?v=1625663836 HTTP/1.1" 200 43139 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
2021-07-07T13:18:57.595409570Z 172.23.0.1 - - [07/Jul/2021:22:18:57 +0900] "SEARCH /remote.php/dav/ HTTP/1.1" 207 20181 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
2021-07-07T13:18:57.670712523Z 172.23.0.1 - - [07/Jul/2021:22:18:57 +0900] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 962 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
2021-07-07T13:18:57.670842255Z 172.23.0.1 - - [07/Jul/2021:22:18:57 +0900] "PUT /apps/user_status/heartbeat HTTP/1.1" 200 919 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
2021-07-07T13:18:57.829577980Z 172.23.0.1 - - [07/Jul/2021:22:18:57 +0900] "SEARCH /remote.php/dav/ HTTP/1.1" 207 19353 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
2021-07-07T13:18:57.698315089Z 172.23.0.1 - - [07/Jul/2021:22:18:57 +0900] "GET /ocs/v2.php/search/providers?from=%2Fapps%2Fphotos%2F HTTP/1.1" 200 1052 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
2021-07-07T13:18:58.205316088Z 172.23.0.1 - - [07/Jul/2021:22:18:57 +0900] "GET /cron.php HTTP/1.1" 200 931 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
2021-07-07T13:19:28.546628599Z 172.23.0.1 - - [07/Jul/2021:22:19:28 +0900] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 288 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
2021-07-07T13:19:42.568925671Z 172.23.0.1 - - [07/Jul/2021:22:19:42 +0900] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 925 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
2021-07-07T13:19:58.356494870Z 172.23.0.1 - - [07/Jul/2021:22:19:58 +0900] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 288 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"

I canā€™t personally see anything that suggests why the thumbnails hang and do not load past the first couple of 10s, but maybe someone else can?

Thanks for any help.

EDIT:

Iā€™ve also realised that during the ā€˜thinkingā€™ circle, no other buttons on the page do anything, such as trying to access Videos, Favourites, Settings, the three lines top leftā€¦ the other dashboard buttons such as Files and Mail work, but nothing inside the ā€˜Photosā€™ page except the generated thumbnails.

EDIT 2:

This is only happening for one user, the other user on the same instance has no issues with their thumbnails loading or the page getting stuck.

Hi and welcome to the Nexcloud community!

Just for context, have you installed this app on your instance? https://apps.nextcloud.com/apps/previewgenerator

If not, I recommend doing that, as it will not depend on generating thumbnails for you on-the-go, but rather create and cache the thumbnails for you on your instance. You need to follow the instructions to set it up, I believe there is a cron-task that is needed for it to work. It will scan through your folders and automatically generate thumbnails.

As for logs, these you can extract using:
docker logs [container name]

Get container name by checking docker ps
In case you get an error, try running with sudo (or add your user to the docker group).