How should I debug video previews 404 not found?


I have a weird issue and don’t know where do start fixing it. It would be really great if anyone could share some tips. How should I debug an issue that all my video thumbnails are “404 Not found” in browser, but all images previews are loaded fine?

Here’s my setup: NC21 instance on Ubuntu 20.04, AWS S3 storage setup as primary object storage, PHP 7.4.3, Apache 2.4, MariaDB 10.3, and the app - preview generator enabled from NC apps dashboard.

I’ve had ffmpeg installed per discussion in the mp4 preview thread, and made sure my www-data can see and call it. (sudo -u www-data printenv PATH to see what PATH www-data has, which ffmpeg to find the path of ffmpeg executable, and finally sudo -u www-data ffmpeg to see that ffmpeg is indeed invoked by www-data.)

I can also run sudo -u www-data php occ preview:generate-all -vvv fine - at least I see the folders being iterated through and didn’t see any errors.

When I hit in browser my_url/apps/photos, all image previews loaded lightning fast, but all mp4 video previews froze and then I got A LOT OF these errors in browser console:

preview:1 GET https://my_url/core/preview?fileId=4135&x=256&y=256&a=true&v="60828905046bc" 404 (Not Found)

Where should I start tackling this issue? Thanks!!

I am afraid that the preview generator does not work anymore for video files. On my installation it also does not work anymore since a long time. :frowning:

Whoa, thanks for sharing this (sad news). This is a huge deal breaker :cry:

1 Like