Thumbnails missing for MP3 files

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

The Basics

  • Nextcloud Server version :
    • 32.0.1.2
  • Operating system and version :
    • Fedora Server version 43
  • Web server and version :
    • Apache/2.4.65
  • Reverse proxy and version :
    • nginx version: openresty/1.27.1.2
  • PHP version (e.g, 8.3):
    • PHP 8.3.26
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • Post Installation
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • AIO
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

Hi guys, I finished an install of Nextcloud yesterday and in the MacOS client I imported lots of mp3 files into my music folder. However only around 10% of the mp3s have thumbnails. The mp3s all have embedded cover art so I’m not sure what the issue is.

I’ve tried a couple of things such as:

  1. occ preview:generate-all -vvv

  2. Importing just a few songs to see if it was a bulk import issue. Thumbnails did not generate

  3. Added a 4 new lines to my config for preview options:

    preview_max_x’ => 2048,
    ‘preview_max_y’ => 2048,
    ‘jpeg_quality’ => 60,
    ‘preview_max_memory’ => -1,
    ‘preview_max_filesize_image’ => -1,
    ‘preview_concurrency_all’ => 12,
    ‘preview_concurrency_new’ => 8,
    ‘enabledPreviewProviders’ =>
    array (
    1 => ‘OC\Preview\Image’,
    2 => ‘OC\Preview\MarkDown’,
    3 => ‘OC\Preview\MP3’,
    4 => ‘OC\Preview\TXT’,
    5 => ‘OC\Preview\OpenDocument’,
    6 => ‘OC\Preview\Movie’,
    7 => ‘OC\Preview\Krita’,
    0 => ‘OC\Preview\Imaginary’,
    23 => ‘OC\Preview\ImaginaryPDF’,
    ),

  4. files:scan --all

  5. Opened the files each individually to see if that would make them generate thumbnails. Did not

Steps to replicate it :

  1. Fresh Install of AIO

  2. Import mp3s

Log entries

There are no relevant logs I found. I got no errors

Apps

I installed the app Preview Generator.

Set your log level to 1 (INFO level). The MP3 thumbnail generator will log if it can’t retrieve the cover[1]

This is not necessary unless you wish to pre-generate all previews (overnight/etc) rather than on-demand, such as if you’re on a really low powered system.

[1] server/lib/private/Preview/MP3.php at 2d0c5cf627abfdcbd3926d6a5085419983a473b9 · nextcloud/server · GitHub

Hi, I set the log level to 1. I then tried to upload some new files and clicked on them, but the logs are not giving me any information at all about the thumbnails. There are still no thumbnails. The only info log that I’ve gotten is:

NotAuthenticated No public access to this resource., This request is not for a federated calendar, No 'Authorization: Bearer' header found. Either the client didn't send one, or the server is mis-configured, No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured

which does not seem related.