nextcloud / previewgenerator

Nextcloud app to do preview generation in the background.
https://apps.nextcloud.com/apps/previewgenerator
GNU Affero General Public License v3.0
456 stars 57 forks source link

Scanning works great but nothing gets generated #360

Closed eLem3ntx closed 1 year ago

eLem3ntx commented 1 year ago

Hey there,

i just hit the generate script and it perfectly shows all the scanned folders in there are images/pdfs/movies etc. but nothing gets generated:

sudo docker exec -it -u 33 Nextcloud /var/www/html/occ preview:generate-all

works

Shows the following:

...
2023-03-10T15:54:25+00:00 Scanning folder /xxxxxxxxxxxx/files
2023-03-10T15:54:25+00:00 Scanning folder /xxxxxxxxxxxx/files/Photos
2023-03-10T15:54:25+00:00 Scanning folder /xxxxxxxxxxxx/files/Share
2023-03-10T15:54:25+00:00 Scanning folder /xxxxxxxxxxxx/files/Showroom
...

But nothing gets generated :/ The folders are filled up with different data.

In the config.php i added the following lines:

  'enable_previews' => true,
  'enabledPreviewProviders' => 
  array (
    0 => 'OC\\Preview\\TXT',
    1 => 'OC\\Preview\\MarkDown',
    3 => 'OC\\Preview\\Image',
    4 => 'OC\\Preview\\Photoshop',
    5 => 'OC\\Preview\\TIFF',
    6 => 'OC\\Preview\\SVG',
    7 => 'OC\\Preview\\Font',
    8 => 'OC\\Preview\\MP3',
    9 => 'OC\\Preview\\Movie',
    10 => 'OC\\Preview\\MKV',
    11 => 'OC\\Preview\\MP4',
    12 => 'OC\\Preview\\AVI',
  ),
eLem3ntx commented 1 year ago

Okay it seems like i cannot install ffmpeg and imagick following error appears after doing the installation: apt install imagemagick -y; apt install ffmpeg -y

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package ghostscript is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package ffmpeg
E: Unable to locate package imagemagick
eLem3ntx commented 1 year ago

Fixed of course my failure didn't run: apt upgrade && apt -y update after that everything installed the right way and now working like a charm!