unable to generate previews

I’m running NC 30.0.4 on macOS Monterey 12.7.6

Not intentionally, but I installed PHP 8.4 instead of the supported 8.3 version. As a consequence I had to fix php files inside NC installation with php-cs-fixer tool.

Regardless everything runs fine (so far), I had trouble making Preview Generator work.

when I run the following command:

php occ preview:generate-all -vvv

…I got an error:

Autoload path not allowed: …/apps/files_external/lib/service/globalstoragesservice.php

I checked and non of the NC related files contain a line ‘globalstoragesservice.php’ in lowerscript, also my filesystem is not case sensitive.

I read elsewhere that removing the /apps/files_external folder makes the error disappear. I tested and it’s true, however although I don’t have anything ‘external’ in use, I did not want to permanently delete that folder.
Instead I used the:

php occ app:enable files_external

…command, and still got the initial error, but after that I could run:

php occ preview:generate-all -vvv

…without any further error, and also schedule the

php occ preview:generate-all

…with cron.

I’m just documenting this if anyone else has the same error, in order to find a fix faster - I’m not asking for help here.

2 Likes

You run it on macOS?

yes, and by the way on a quite old hardware: a Mac mini 2012