Unable to generate preview


#1

Nextcloud version (eg, 12.0.2) : 14.0.2
Operating system and version (eg, Ubuntu 17.04) : Linux Mint 18.3 (Kernel 4.18.12-041812-generic)
Apache or nginx version (eg, Apache 2.4.25) : nginx version: nginx/1.10.3 (Ubuntu)
PHP version (eg, 7.1) : PHP 7.0.32-0ubuntu0.16.04.1 (cli) ( NTS )

The issue you are facing:

Newly uploaded photos do not have a preview generated.
Error Message is "Error! Could not generate a preview of this file

Is this the first time you’ve seen this error? (Y/N) : Y

Steps to replicate it:

  1. Upload a jpg file using WebUI or Android client
  2. Click on file in Nextcloud (no thumbnail present)
  3. Blank screen with error message displayed

The output of your Nextcloud log in Admin > Logging :

|Error|gallery|Exception: Preview generation has failed|2018-10-11T16:02:43+0100|
| --- | --- | --- | --- |
|Error|gallery|OCP\Files\NotFoundException:|2018-10-11T16:02:43+0100|
|Debug|no app in context|No cache entry found for /appdata_ocjakydyp1vm/preview/1003276 (storage: local::/home/jonathan/WD2TB/nextcloud/data/, internalPath: appdata_ocjakydyp1vm/preview/1003276)|2018-10-11T16:02:43+0100|
|Debug|core|OC_Image->fixOrientation() Orientation: -1|
The output of your config.php file in `/path/to/nextcloud` (make sure you remove any 

Content of config.php

array (
0 => ‘shazjon.hopto.org’,
),
‘datadirectory’ => ‘/home/jonathan/WD2TB/nextcloud/data/’,
‘overwrite.cli.url’ => ‘https://shazjon.hopto.org/nextcloud’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘14.0.2.2’,
‘dbname’ => ‘nextcloud’,
‘dbhost’ => ‘localhost’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘dbuser’ => ‘ ’,
‘dbpassword’ => ’
’,
‘logtimezone’ => ‘UTC’,
‘logtype’ => ‘owncloud’,
‘loglevel’ => 0,
‘logfile’ => ‘/var/log/nextcloud/nextcloud.log’,
‘installed’ => true,
‘memcache.local’ => ‘\OC\Memcache\APCu’,
‘memcache.locking’ => ‘\OC\Memcache\Redis’,
‘redis’ =>
array (
‘host’ => ‘localhost’,
‘port’ => 6379,
)

{“reqId”:“STteXrPAMIVWcXaF8sxv”,“level”:0,“time”:“2018-10-22T00:06:28+00:00”,“remoteAddr”:“86.8.128.238”,“user”:“jonathan”,“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/index.php/apps/gallery/preview/1003815?width=2000&height=2000&c=82ef6f3d4afb871edbf3e08d7a32fb4d&requesttoken=VptS0p7ETkLfAi6Qwbg9bA36GLuViZLV%2BvRW5Ty6h3c%3D%3AG9IihtyICxSKa0PomIwPJF%2FKIMLG7sOUyK59hArr%2FQI%3D",“message”:“No cache entry found for /appdata_ocjakydyp1vm/preview/1003815 (storage: local::/home/jonathan/WD2TB/nextcloud/data/, internalPath: appdata_ocjakydyp1vm/preview/1003815)”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36”,“version”:“14.0.3.0”}
{“reqId”:“STteXrPAMIVWcXaF8sxv”,“level”:0,“time”:“2018-10-22T00:06:28+00:00”,“remoteAddr”:“86.8.128.238”,“user”:“jonathan”,“app”:“core”,“method”:“GET”,“url”:"/nextcloud/index.php/apps/gallery/preview/1003815?width=2000&height=2000&c=82ef6f3d4afb871edbf3e08d7a32fb4d&requesttoken=VptS0p7ETkLfAi6Qwbg9bA36GLuViZLV%2BvRW5Ty6h3c%3D%3AG9IihtyICxSKa0PomIwPJF%2FKIMLG7sOUyK59hArr%2FQI%3D",“message”:“OC_Image->fixOrientation() Orientation: 6”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36”,“version”:“14.0.3.0”}
{“reqId”:“STteXrPAMIVWcXaF8sxv”,“level”:0,“time”:“2018-10-22T00:06:28+00:00”,“remoteAddr”:“86.8.128.238”,“user”:“jonathan”,“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/index.php/apps/gallery/preview/1003815?width=2000&height=2000&c=82ef6f3d4afb871edbf3e08d7a32fb4d&requesttoken=VptS0p7ETkLfAi6Qwbg9bA36GLuViZLV%2BvRW5Ty6h3c%3D%3AG9IihtyICxSKa0PomIwPJF%2FKIMLG7sOUyK59hArr%2FQI%3D",“message”:“No cache entry found for /appdata_ocjakydyp1vm/preview/1003815 (storage: local::/home/jonathan/WD2TB/nextcloud/data/, internalPath: appdata_ocjakydyp1vm/preview/1003815)”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36”,“version”:“14.0.3.0”}
{“reqId”:“STteXrPAMIVWcXaF8sxv”,“level”:3,“time”:“2018-10-22T00:06:28+00:00”,“remoteAddr”:“86.8.128.238”,“user”:“jonathan”,“app”:“gallery”,“method”:“GET”,“url”:"/nextcloud/index.php/apps/gallery/preview/1003815?width=2000&height=2000&c=82ef6f3d4afb871edbf3e08d7a32fb4d&requesttoken=VptS0p7ETkLfAi6Qwbg9bA36GLuViZLV%2BvRW5Ty6h3c%3D%3AG9IihtyICxSKa0PomIwPJF%2FKIMLG7sOUyK59hArr%2FQI%3D",“message”:{“Exception”:“OCP\Files\NotFoundException”,“Message”:"",“Code”:0,“Trace”:[{“file”:"/var/www/nextcloud/lib/private/Files/Node/Node.php",“line”:216,“function”:“getFileInfo”,“class”:“OC\Files\Node\Node”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/lib/private/Files/Node/Node.php",“line”:117,“function”:“getPermissions”,“class”:“OC\Files\Node\Node”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/lib/private/Files/Node/Folder.php",“line”:176,“function”:“checkPermissions”,“class”:“OC\Files\Node\Node”,“type”:"->",“args”:[4]},{“file”:"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFolder.php",“line”:83,“function”:“newFile”,“class”:“OC\Files\Node\Folder”,“type”:"->",“args”:[“1960-4032-max.jpg”]},{“file”:"/var/www/nextcloud/lib/private/Preview/Generator.php",“line”:210,“function”:“newFile”,“class”:“OC\Files\SimpleFS\SimpleFolder”,“type”:"->",“args”:[“1960-4032-max.jpg”]},{“file”:"/var/www/nextcloud/lib/private/Preview/Generator.php",“line”:118,“function”:“getMaxPreview”,“class”:“OC\Preview\Generator”,“type”:"->",“args”:[{“class”:“OC\Files\SimpleFS\SimpleFolder”},{“class”:“OC\Files\Node\File”},“image/jpeg”]},{“file”:"/var/www/nextcloud/lib/private/PreviewManager.php",“line”:205,“function”:“getPreview”,“class”:“OC\Preview\Generator”,“type”:"->",“args”:[{“class”:“OC\Files\Node\File”},2000,2000,false,“fill”,“image/jpeg”]},{“file”:"/var/www/nextcloud/apps/gallery/lib/Service/PreviewService.php",“line”:107,“function”:“getPreview”,“class”:“OC\PreviewManager”,“type”:"->",“args”:[{“class”:“OC\Files\Node\File”},2000,2000,false]},{“file”:"/var/www/nextcloud/apps/gallery/lib/Controller/Preview.php",“line”:167,“function”:“createPreview”,“class”:“OCA\Gallery\Service\PreviewService”,“type”:"->",“args”:[{“class”:“OC\Files\Node\File”},2000,2000,true,false]},{“file”:"/var/www/nextcloud/apps/gallery/lib/Controller/Preview.php",“line”:117,“function”:“getPreviewData”,“class”:“OCA\Gallery\Controller\PreviewController”,“type”:"->",“args”:[{“class”:“OC\Files\Node\File”},true,2000,2000,true,false]},{“file”:"/var/www/nextcloud/apps/gallery/lib/Controller/PreviewController.php",“line”:134,“function”:“getData”,“class”:“OCA\Gallery\Controller\PreviewController”,“type”:"->",“args”:[1003815,2000,2000]},{“file”:"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",“line”:166,“function”:“getPreview”,“class”:“OCA\Gallery\Controller\PreviewController”,“type”:"->",“args”:[1003815,2000,2000]},{“file”:"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",“line”:99,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Gallery\Controller\PreviewController”},“getPreview”]},{“file”:"/var/www/nextcloud/lib/private/AppFramework/App.php",“line”:118,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Gallery\Controller\PreviewController”},“getPreview”]},{“file”:"/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php",“line”:47,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:"::",“args”:[“PreviewController”,“getPreview”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{“fileId”:“1003815”,"_route":“gallery.preview.get_preview”}]},{“function”:"__invoke",“class”:“OC\AppFramework\Routing\RouteActionHandler”,“type”:"->",“args”:[{“fileId”:“1003815”,"_route":“gallery.preview.get_preview”}]},{“file”:"/var/www/nextcloud/lib/private/Route/Router.php",“line”:297,“function”:“call_user_func”,“args”:[{“class”:“OC\AppFramework\Routing\RouteActionHandler”},{“fileId”:“1003815”,"_route":“gallery.preview.get_preview”}]},{“file”:"/var/www/nextcloud/lib/base.php",“line”:987,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->",“args”:["/apps/gallery/preview/1003815"]},{“file”:"/var/www/nextcloud/index.php",“line”:42,“function”:“handleRequest”,“class”:“OC”,“type”:"::",“args”:[]}],“File”:"/var/www/nextcloud/lib/private/Files/Node/Node.php",“Line”:97,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36”,“version”:“14.0.3.0”}
{“reqId”:“STteXrPAMIVWcXaF8sxv”,“level”:3,“time”:“2018-10-22T00:06:28+00:00”,“remoteAddr”:“86.8.128.238”,“user”:“jonathan”,“app”:“gallery”,“method”:“GET”,“url”:"/nextcloud/index.php/apps/gallery/preview/1003815?width=2000&height=2000&c=82ef6f3d4afb871edbf3e08d7a32fb4d&requesttoken=VptS0p7ETkLfAi6Qwbg9bA36GLuViZLV%2BvRW5Ty6h3c%3D%3AG9IihtyICxSKa0PomIwPJF%2FKIMLG7sOUyK59hArr%2FQI%3D",“message”:“Exception: Preview generation has failed”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36”,“version”:“14.0.3.0”}


#2

I ran occ job files:scan-app-data

The running preview:generate-all and geting the following for virtually every file

{“reqId”:“5CaMCKxzCp6mo7PjBieB”,“level”:3,“time”:“2018-10-30T00:01:31+00:00”,“remoteAddr”:“86.8.128.238”,“user”:“jonathan”,“app”:“gallery”,“method”:“GET”,“url”:"/nextcloud/index.php/apps/gallery/preview/1003853?width=2000&height=2000&c=4a033e9878f0ad70dfb23ba6a8caddd5&requesttoken=OIiRqsH1XDgHf6IACpOdn4r7%2BX11VRyuPdqzNW8S0YM%3D%3AV9D%2F8IO%2FOmlLKOQ0WsvHy%2F2hvEgQNC%2FbfuvkZVZYqfE%3D",“message”:{“Exception”:“OCP\Files\NotFoundException”,“Message”:"",“Code”:0,“Trace”:[{“file”:"/var/www/nextcloud/lib/private/Files/Node/Node.php",“line”:216,“function”:“getFileInfo”,“class”:“OC\Files\Node\Node”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/lib/private/Files/Node/Node.php",“line”:117,“function”:“getPermissions”,“class”:“OC\Files\Node\Node”,“type”:"->",“args”:[]},{“file”:"/var/www/nextcloud/lib/private/Files/Node/Folder.php",“line”:176,“function”:“checkPermissions”,“class”:“OC\Files\Node\Node”,“type”:"->",“args”:[4]},{“file”:"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFolder.php",“line”:83,“function”:“newFile”,“class”:“OC\Files\Node\Folder”,“type”:"->",“args”:[“1960-4032-max.jpg”]},{“file”:"/var/www/nextcloud/lib/private/Preview/Generator.php",“line”:210,“function”:“newFile”,“class”:“OC\Files\SimpleFS\SimpleFolder”,“type”:"->",“args”:[“1960-4032-max.jpg”]},{“file”:"/var/www/nextcloud/lib/private/Preview/Generator.php",“line”:118,“function”:“getMaxPreview”,“class”:“OC\Preview\Generator”,“type”:"->",“args”:[{“class”:“OC\Files\SimpleFS\SimpleFolder”},{“class”:“OC\Files\Node\File”},“image/jpeg”]},{“file”:"/var/www/nextcloud/lib/private/PreviewManager.php",“line”:205,“function”:“getPreview”,“class”:“OC\Preview\Generator”,“type”:"->",“args”:[{“class”:“OC\Files\Node\File”},2000,2000,false,“fill”,“image/jpeg”]},{“file”:"/var/www/nextcloud/apps/gallery/lib/Service/PreviewService.php",“line”:107,“function”:“getPreview”,“class”:“OC\PreviewManager”,“type”:"->",“args”:[{“class”:“OC\Files\Node\File”},2000,2000,false]},{“file”:"/var/www/nextcloud/apps/gallery/lib/Controller/Preview.php",“line”:167,“function”:“createPreview”,“class”:“OCA\Gallery\Service\PreviewService”,“type”:"->",“args”:[{“class”:“OC\Files\Node\File”},2000,2000,true,false]},{“file”:"/var/www/nextcloud/apps/gallery/lib/Controller/Preview.php",“line”:117,“function”:“getPreviewData”,“class”:“OCA\Gallery\Controller\PreviewController”,“type”:"->",“args”:[{“class”:“OC\Files\Node\File”},true,2000,2000,true,false]},{“file”:"/var/www/nextcloud/apps/gallery/lib/Controller/PreviewController.php",“line”:134,“function”:“getData”,“class”:“OCA\Gallery\Controller\PreviewController”,“type”:"->",“args”:[1003853,2000,2000]},{“file”:"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",“line”:166,“function”:“getPreview”,“class”:“OCA\Gallery\Controller\PreviewController”,“type”:"->",“args”:[1003853,2000,2000]},{“file”:"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",“line”:99,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Gallery\Controller\PreviewController”},“getPreview”]},{“file”:"/var/www/nextcloud/lib/private/AppFramework/App.php",“line”:118,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Gallery\Controller\PreviewController”},“getPreview”]},{“file”:"/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php",“line”:47,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:"::",“args”:[“PreviewController”,“getPreview”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{“fileId”:“1003853”,"_route":“gallery.preview.get_preview”}]},{“function”:"__invoke",“class”:“OC\AppFramework\Routing\RouteActionHandler”,“type”:"->",“args”:[{“fileId”:“1003853”,"_route":“gallery.preview.get_preview”}]},{“file”:"/var/www/nextcloud/lib/private/Route/Router.php",“line”:297,“function”:“call_user_func”,“args”:[{“class”:“OC\AppFramework\Routing\RouteActionHandler”},{“fileId”:“1003853”,"_route":“gallery.preview.get_preview”}]},{“file”:"/var/www/nextcloud/lib/base.php",“line”:987,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->",“args”:["/apps/gallery/preview/1003853"]},{“file”:"/var/www/nextcloud/index.php",“line”:42,“function”:“handleRequest”,“class”:“OC”,“type”:"::",“args”:[]}],“File”:"/var/www/nextcloud/lib/private/Files/Node/Node.php",“Line”:97,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36”,“version”:“14.0.3.0”}
{“reqId”:“5CaMCKxzCp6mo7PjBieB”,“level”:3,“time”:“2018-10-30T00:01:31+00:00”,“remoteAddr”:“86.8.128.238”,“user”:“jonathan”,“app”:“gallery”,“method”:“GET”,“url”:"/nextcloud/index.php/apps/gallery/preview/1003853?width=2000&height=2000&c=4a033e9878f0ad70dfb23ba6a8caddd5&requesttoken=OIiRqsH1XDgHf6IACpOdn4r7%2BX11VRyuPdqzNW8S0YM%3D%3AV9D%2F8IO%2FOmlLKOQ0WsvHy%2F2hvEgQNC%2FbfuvkZVZYqfE%3D",“message”:“Exception: Preview generation has failed”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36”,“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:01:32+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /cumalotcouple60/files/Photos/2017/06/.nomedia (storage: home::cumalotcouple60, internalPath: files/Photos/2017/06/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:01:32+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /cumalotcouple60/files/Photos/2017/07/.nomedia (storage: home::cumalotcouple60, internalPath: files/Photos/2017/07/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:01:37+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /cumalotcouple60/files/Photos/2017/08/.nomedia (storage: home::cumalotcouple60, internalPath: files/Photos/2017/08/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:01:39+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /cumalotcouple60/files/Photos/2017/09/.nomedia (storage: home::cumalotcouple60, internalPath: files/Photos/2017/09/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:01:44+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /cumalotcouple60/files/Photos/2017/10/.nomedia (storage: home::cumalotcouple60, internalPath: files/Photos/2017/10/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:01:51+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /cumalotcouple60/files/Photos/2017/11/.nomedia (storage: home::cumalotcouple60, internalPath: files/Photos/2017/11/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:01:59+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /cumalotcouple60/files/Photos/2017/12/.nomedia (storage: home::cumalotcouple60, internalPath: files/Photos/2017/12/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:02:14+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /cumalotcouple60/files/Photos/2018/.nomedia (storage: home::cumalotcouple60, internalPath: files/Photos/2018/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:02:14+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /cumalotcouple60/files/Photos/2018/01/.nomedia (storage: home::cumalotcouple60, internalPath: files/Photos/2018/01/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:02:15+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /cumalotcouple60/files/Photos/2018/02/.nomedia (storage: home::cumalotcouple60, internalPath: files/Photos/2018/02/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:02:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /cumalotcouple60/files/Photos/2018/03/.nomedia (storage: home::cumalotcouple60, internalPath: files/Photos/2018/03/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:02:23+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /cumalotcouple60/files/Photos/2018/04/.nomedia (storage: home::cumalotcouple60, internalPath: files/Photos/2018/04/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:02:24+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /cumalotcouple60/files/Photos/2018/05/.nomedia (storage: home::cumalotcouple60, internalPath: files/Photos/2018/05/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:02:24+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /cumalotcouple60/files/Photos/2018/06/.nomedia (storage: home::cumalotcouple60, internalPath: files/Photos/2018/06/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:02:24+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /cumalotcouple60/files/Photos/2018/07/.nomedia (storage: home::cumalotcouple60, internalPath: files/Photos/2018/07/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:02:25+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /cumalotcouple60/files/Private/.nomedia (storage: shared::/Private, internalPath: .nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:02:50+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /cumalotcouple60/files/Private/Fuerteventura March 2017/.nomedia (storage: shared::/Private, internalPath: Fuerteventura March 2017/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:06+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /cumalotcouple60/files/Private/Sharon and Jules/.nomedia (storage: shared::/Private, internalPath: Sharon and Jules/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /jonathan/files/.nomedia (storage: home::jonathan, internalPath: files/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /jonathan/files/.Contacts-Backup/.nomedia (storage: home::jonathan, internalPath: files/.Contacts-Backup/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /jonathan/files/AW_Users/.nomedia (storage: home::jonathan, internalPath: files/AW_Users/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /jonathan/files/Backup/.nomedia (storage: home::jonathan, internalPath: files/Backup/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /jonathan/files/Backup/CR2 Files/.nomedia (storage: home::jonathan, internalPath: files/Backup/CR2 Files/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /jonathan/files/Backup/MySQL/.nomedia (storage: home::jonathan, internalPath: files/Backup/MySQL/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /jonathan/files/Backup/PiVPN/.nomedia (storage: home::jonathan, internalPath: files/Backup/PiVPN/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /jonathan/files/Backup/PowerCommander/.nomedia (storage: home::jonathan, internalPath: files/Backup/PowerCommander/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /jonathan/files/Backup/PowerCommander/Dynojet Maps/.nomedia (storage: home::jonathan, internalPath: files/Backup/PowerCommander/Dynojet Maps/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /jonathan/files/Backup/PowerCommander/MapBackups/.nomedia (storage: home::jonathan, internalPath: files/Backup/PowerCommander/MapBackups/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /jonathan/files/Backup/mail.hawkinsweb.co.uk/.nomedia (storage: home::jonathan, internalPath: files/Backup/mail.hawkinsweb.co.uk/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /jonathan/files/Documents/.nomedia (storage: home::jonathan, internalPath: files/Documents/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /jonathan/files/Documents/11-07-2014/.nomedia (storage: home::jonathan, internalPath: files/Documents/11-07-2014/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /appdata_ocjakydyp1vm/preview/15323 (storage: local::/home/jonathan/WD2TB/nextcloud/data/, internalPath: appdata_ocjakydyp1vm/preview/15323)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /appdata_ocjakydyp1vm/preview/15325 (storage: local::/home/jonathan/WD2TB/nextcloud/data/, internalPath: appdata_ocjakydyp1vm/preview/15325)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /appdata_ocjakydyp1vm/preview/15326 (storage: local::/home/jonathan/WD2TB/nextcloud/data/, internalPath: appdata_ocjakydyp1vm/preview/15326)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /appdata_ocjakydyp1vm/preview/15321 (storage: local::/home/jonathan/WD2TB/nextcloud/data/, internalPath: appdata_ocjakydyp1vm/preview/15321)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /appdata_ocjakydyp1vm/preview/15322 (storage: local::/home/jonathan/WD2TB/nextcloud/data/, internalPath: appdata_ocjakydyp1vm/preview/15322)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /appdata_ocjakydyp1vm/preview/15320 (storage: local::/home/jonathan/WD2TB/nextcloud/data/, internalPath: appdata_ocjakydyp1vm/preview/15320)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /jonathan/files/Documents/Advanced/.nomedia (storage: home::jonathan, internalPath: files/Documents/Advanced/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /jonathan/files/Documents/Advanced/Correspondence/.nomedia (storage: home::jonathan, internalPath: files/Documents/Advanced/Correspondence/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /appdata_ocjakydyp1vm/preview/15218 (storage: local::/home/jonathan/WD2TB/nextcloud/data/, internalPath: appdata_ocjakydyp1vm/preview/15218)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /appdata_ocjakydyp1vm/preview/15221 (storage: local::/home/jonathan/WD2TB/nextcloud/data/, internalPath: appdata_ocjakydyp1vm/preview/15221)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /appdata_ocjakydyp1vm/preview/15208 (storage: local::/home/jonathan/WD2TB/nextcloud/data/, internalPath: appdata_ocjakydyp1vm/preview/15208)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /appdata_ocjakydyp1vm/preview/15207 (storage: local::/home/jonathan/WD2TB/nextcloud/data/, internalPath: appdata_ocjakydyp1vm/preview/15207)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:22+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /appdata_ocjakydyp1vm/preview/15216 (storage: local::/home/jonathan/WD2TB/nextcloud/data/, internalPath: appdata_ocjakydyp1vm/preview/15216)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:23+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /jonathan/files/Documents/Advanced/Payslips/.nomedia (storage: home::jonathan, internalPath: files/Documents/Advanced/Payslips/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:23+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /jonathan/files/Documents/Advanced/Payslips/2014/.nomedia (storage: home::jonathan, internalPath: files/Documents/Advanced/Payslips/2014/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:23+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /jonathan/files/Documents/Advanced/Payslips/2015/.nomedia (storage: home::jonathan, internalPath: files/Documents/Advanced/Payslips/2015/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:23+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /jonathan/files/Documents/Advanced/Payslips/2016/.nomedia (storage: home::jonathan, internalPath: files/Documents/Advanced/Payslips/2016/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:23+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /jonathan/files/Documents/Advanced/Payslips/2017/.nomedia (storage: home::jonathan, internalPath: files/Documents/Advanced/Payslips/2017/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:23+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /jonathan/files/Documents/Advanced/Payslips/2018/.nomedia (storage: home::jonathan, internalPath: files/Documents/Advanced/Payslips/2018/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:23+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /jonathan/files/Documents/Advanced/Redundancy/.nomedia (storage: home::jonathan, internalPath: files/Documents/Advanced/Redundancy/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:23+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /appdata_ocjakydyp1vm/preview/585714 (storage: local::/home/jonathan/WD2TB/nextcloud/data/, internalPath: appdata_ocjakydyp1vm/preview/585714)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:23+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /appdata_ocjakydyp1vm/preview/585709 (storage: local::/home/jonathan/WD2TB/nextcloud/data/, internalPath: appdata_ocjakydyp1vm/preview/585709)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:23+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /jonathan/files/Documents/Advanced/Sickness Certificates/.nomedia (storage: home::jonathan, internalPath: files/Documents/Advanced/Sickness Certificates/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:23+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /jonathan/files/Documents/Advanced/Tax Documents/.nomedia (storage: home::jonathan, internalPath: files/Documents/Advanced/Tax Documents/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:23+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /appdata_ocjakydyp1vm/preview/15158 (storage: local::/home/jonathan/WD2TB/nextcloud/data/, internalPath: appdata_ocjakydyp1vm/preview/15158)”,“userAgent”:"–",“version”:“14.0.3.0”}
{“reqId”:“9o6wDDYX9mTG2d1JvmXY”,“level”:0,“time”:“2018-10-30T00:03:23+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“No cache entry found for /jonathan/files/Documents/Car/.nomedia (storage: home::jonathan, internalPath: files/Documents/Car/.nomedia)”,“userAgent”:"–",“version”:“14.0.3.0”}

Your assistance is urgently needed


#3

Are those normal files? Not like tens of megabytes.
There is also something about cache in the log. Is cache working?


#4

These are normal files. I believe the cache to be working OK as other file types are working fine


#5

There’s .nomedia file in your directory, but I don’t know if it’s doing something or not. Anyway, I would remove it just to see if it helps.

Have you looked your server logs if there’s something?


#6

I’ve been through the logs and looked at the code and it expects a generated preview file. But there doesn’t seem to be any debug information as to why the preview generator fails.

I’ll try removing the . no media file


#7

Did you find a solution?


#8

Hi,

The only way I found to resolve this was to install a new Nextcloud 14.0.3 environment on the same server and preview thumbnails and image generation worked fine.

I then copied the users directories over to the new data directory , ran occ files:scan-all. The cron job is working fine

However, I am still getting some errors

Debug no app in context No cache entry found for /appdata_ocwyvofilgcr/theming/images (storage: local::/home/jonathan/WD2TB/nextcloudnew/data/, internalPath: appdata_ocwyvofilgcr/theming/images) 2018-11-05T16:20:13+0000
Debug no app in context No cache entry found for /appdata_ocwyvofilgcr/theming/images (storage: local::/home/jonathan/WD2TB/nextcloudnew/data/, internalPath: appdata_ocwyvofilgcr/theming/images) 2018-11-05T16:20:13+0000
Debug no app in context No cache entry found for /appdata_ocwyvofilgcr/theming/images (storage: local::/home/jonathan/WD2TB/nextcloudnew/data/, internalPath: appdata_ocwyvofilgcr/theming/images) 2018-11-05T16:20:13+0000
Debug no app in context No cache entry found for /appdata_ocwyvofilgcr/theming/images (storage: local::/home/jonathan/WD2TB/nextcloudnew/data/, internalPath: appdata_ocwyvofilgcr/theming/images) 2018-11-05T16:20:03+0000

#9

I too am having this problem:

The load average is fine on the server, and there is plenty of RAM free.

I’m running Nextcloud 14 from the “stable” snap, which is ver. 14.0.5snap1 right now.

I’ve installed the “Preview Generator” app, then I ran the command, as root:

nextcloud.occ preview:generate-all

…but it fails with the error message:

Note: I also have a Nextcloud server originally installed from the ver. 13 stable snap, and the current version just also became 14.0.5snap1, thanks to snap’s autoupdating feature. But this “Could not Generate Preview” error (in Yellow, above) does NOT occur in Gallery slideshows, looking at the very same photos! And I never installed the “Preview Generator” App on that server, nor did I run any occ command as above!

These error messages are seen in /var/log/syslog:

Jan 12 19:12:37 nc systemd[1]: snap.nextcloud.mysql.service: State ‘stop-sigterm’ timed out. Killing.
Jan 12 19:12:37 nc systemd[1]: snap.nextcloud.mysql.service: Killing process 846 (mysqld_safe) with signal SIGKILL.
Jan 12 19:12:37 nc systemd[1]: snap.nextcloud.mysql.service: Killing process 1059 (mysqld) with signal SIGKILL.
Jan 12 19:12:37 nc systemd[1]: snap.nextcloud.mysql.service: Unit entered failed state.
Jan 12 19:12:37 nc systemd[1]: snap.nextcloud.mysql.service: Failed with result ‘timeout’.
Jan 12 19:12:38 nc systemd[1]: snap.nextcloud.mysql.service: Service hold-off time over, scheduling restart.
Jan 12 19:12:38 nc systemd[1]: Stopped Service for snap application nextcloud.mysql.
Jan 12 19:12:38 nc systemd[1]: Started Service for snap application nextcloud.mysql.
Jan 12 19:12:38 nc /usr/bin/snap[1090]: cmd.go:105: DEBUG: restarting into “/snap/core/current/usr/bin/snap”
Jan 12 19:12:38 nc nextcloud.mysql[1090]: 2019-01-12T19:12:38.245018Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
Jan 12 19:12:38 nc nextcloud.mysql[1090]: 2019-01-12T19:12:38.246415Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting.
Jan 12 19:12:38 nc nextcloud.mysql[1090]: 2019-01-12T19:12:38.248056Z 0 [ERROR] Aborting
Jan 12 19:12:38 nc nextcloud.mysql[1090]: touch: cannot touch ‘/tmp/locks/mysql-setup’: No such file or directory
Jan 12 19:12:38 nc nextcloud.mysql[1090]: Starting MySQL
Jan 12 19:12:38 nc nextcloud.mysql[1090]: *
Jan 12 19:12:38 nc nextcloud.mysql[1090]: Checking/upgrading mysql tables if necessary…
Jan 12 19:12:38 nc nextcloud.mysql[1090]: mysql_upgrade: Got error: 2002: Can’t connect to local MySQL server through socket ‘/tmp/sockets/mysql.sock’ (111) while connecting to the MySQL server
Jan 12 19:12:38 nc nextcloud.mysql[1090]: Upgrade process encountered error and will not continue.
Jan 12 19:12:38 nc /usr/bin/snap[1142]: cmd.go:105: DEBUG: restarting into “/snap/core/current/usr/bin/snap”
Jan 12 19:12:38 nc nextcloud.mysql[1142]: * MySQL server process #1059 is not running!

…and those error messages keep repeating, every 30 seconds!

Edit: I merely rebooted the server, and it all seems to work OK now.


Problems with image previews (General error: 2006 MySQL server has gone away)
Nextcloud Snap users, please list the issues you're facing