previewgenerator
previewgenerator copied to clipboard
occ preview:pre-generate silently exits after few seconds
Hello!
I noticed, that my previews are not being generated anymore. So i started to dig what the matter and found out that
sudo -u www-data /usr/bin/php occ preview:pre-generate
just silently exits after 2-3 seconds whithout any output.
I don't know, when and why it happened, but i upgraded to NC 13 not long ago, and some time ago previews was ok.
Is there any way to get some debugging info what's the matter?
My setup: NC 13 Preview Generator 1.0.9 Debian GNU/Linux 8 (jessie)
Same here. previewgenerator just installed from the NC app store.
NC 12.0.6 PHP 5.6.33 Debian 8
Same issue here. occ preview:generate-all
runs perfectly, however occ preview:pre-generate
doesn't do anything and exits silently after couple seconds.
NC 13.0.1 PHP 7.0.27-0+deb9u1 Debian 9.4
pre-generate only does stuff if you have uploaded new image files it can process while the app is enabled.
You can try running with -vvv to get a bit more output
It exits silently even using -vvv. Nextcloud 13.0.2
Same problem. The pre-generate
seems to be broken, since it won't do anything at all (and yes this causes to load images still slow so it actually should do something)...
$ php -f /var/www/nextcloud/html/occ -vvv preview:pre-generate
PHP 7.1.20-1+0~20180725103315.2+stretch~1.gbpd5b650 (cli) (built: Jul 25 2018 10:33:20) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.1.20-1+0~20180725103315.2+stretch~1.gbpd5b650, Copyright (c) 1999-2018, by Zend Technologies
PHP: v7.1 Nextcloud: v13.0.5 Debian Distro: v9 Stretch kernel 4.9.88
Any update?
Hi, same here.
$ php -f /var/www/nextcloud/occ -vvv preview:pre-generate
PHP 7.0.30-0+deb9u1 (cli) (built: Jun 14 2018 13:50:25) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.30-0+deb9u1, Copyright (c) 1999-2017, by Zend Technologies
Nextcloud: 13.0.5 Distro: Raspbian GNU/Linux 9.4 (stretch)
I will remove the preview generator plugin, since I won't do anything. Too bad. You can give me an update whenever its fixed.
Almost the same here: it seems to generate a single preview and then exits with error code 255, however nextcloud.occ preview:generate-all
works fine.
Nextcloud: 13.0.5 via snap
Distro: ubuntu server 18.04
I am having a similar issue that started on November 4th, except that my nextcloud log is now flooded with errors resulting from running the preview:pre-generate
command via cron. The error is no app in context
with a description that begins Exception: The requested uri() cannot be processed by the script '/usr/share/webapps/nextcloud/occ')
. There is a large stack trace for each instance of the error. I have attached my nextcloud.log.
I've also tried running the command by hand, and the result after about 2 seconds is another similar log entry, and no useful output on the terminal:
# runuser -u http -- /usr/share/webapps/nextcloud/occ preview:pre-generate -vvv The current PHP memory limit is below the recommended value of 512MB.
My current versions are: Nextcloud: 14.0.3 Sqlite: 3.25.3 Php: 7.2.12 Nginx: 1.15.5 Preview Generator: 2.0.0
Any advice would be appreciated.
Also wanted to mention, my memory_limit
setting in php.ini
is 256M
just in case that is important.
It appears that my issue may not have been related to previewgenerator after all. On November 11th no app in context
changed to passwords
after I updated the bookmarks app to version 0.14.2. I'm not really sure what that app has to do with the passwords app, but there was an upgrade error logged, that may have triggered something:
{"reqId":"jlkWwbnwnacSSeXn5I7G","level":3,"time":"2018-11-12T13:48:53+00:00","remoteAddr":"192.168.37.4","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/settings\/apps\/update\/bookmarks","message":"Undefined variable: folderId at \/usr\/share\/webapps\/nextcloud\/apps\/bookmarks\/lib\/Migration\/Version000014000Date20181029094721.php#74","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:63.0) Gecko\/20100101 Firefox\/63.0","version":"14.0.3.0"}
The bookmarks app seems to be working properly in spite of the error.
Then on November 18th when I updated the passwords app to version 2018.11.2, the log messages regarding unprocessable uri's stopped.
So as of now, I have no further issues.
I used sudo -u www-data php /var/www/nextcloud occ preview:pre-generate Or wherever your occ executable is located
If I understand correctly: pre-generate - generates only for new or modified files (since the app was enabled or the last pregeneration was done), so if you install this app it don't generate anything If you want to generate previews for older images you should run generate-all
Edit: this comment has already explains it https://github.com/rullzer/previewgenerator/issues/105#issuecomment-383475012
Thanks for you comment! Ow, maybe the docs are misleading..