Imagick Exception

  • Nextcloud Server version (e.g., 29.x.x):
    • 32.0.0.5
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 22.04.5 LTS
  • PHP version (e.g, 8.3):
    • 8.3.29
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • Maybe with new 32.0.0.5 release
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Bare Metal
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

I have an issue since today but I’m not sure if it’s a problem with the new 32.0.0.5 update.

At my external USB drive there are a lot of HEIC files. The USB drive is mounted in /media/usb/. Via crontab I let generate previews from all of my pictures.

But since today I get the following error messages and the photo viewer doesn’t show the pictures. That’s an example message

ImagickException
unable to open image `/media/usb/Bilder USA 2025/Bilder Mario/202510__/IMG_5792.HEIC’: No such file or directory @ error/blob.c/OpenBlob/2924
File: /admin/files/Lokal/Bilder USA 2025/Bilder Mario/202510__/IMG_5792.HEIC Imagick says:

Have somebody the same issue or an idea what I can do ?

Thanks for your support!

Mario

It seems, your Nextcloud files are in /admin/files/Lokal/Bilder USA 2025/Bilder Mario. So why should Nextcloud use /media/usb/Bilder USA 2025/Bilder Mario instead? Can you explain the workflow a bit more detailed? I would expect, that you have to copy the files from the USB stick to Nextcloud first before any preview or opening the image is possible at all.

I will try to describe my workflow - sorry, I hope you can understand my english.

My USB Hard drive is mounted in /media/usb

mario@nextcloud:/media/usb$ sudo mount

/dev/sda1 on /media/usb type fuseblk (rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096)

Therefore all of my pictures are in the folder

mario@nextcloud:/media/usb$ ls -la

drwxrwxrwx 1 root root 0 Dec 11 08:17 ‘Bilder USA 2025’

In the NC GUI this folder is as Local External Storage embedded (Pic01).

Then I use the photo app and I set this local storage as media folder in his settings (Pic02).

As last I let generate new previews with the following command.

mario@nextcloud:/media/usb$ sudo -u www-data php /var/www/nextcloud/occ preview:generate-all -vvv

I have never copied files from “/media/usb/…” to “/admin/files/Lokal/…”. But maybe that is a fundamental mistake of me about the External Storage feature.

To me this looks like a bug in Nextcloud itself. You should report this at Github (https://github.com/nextcloud/server/issues).