Support intro
Nextcloud version 15.0.2.0:
Operating system and version raspbian GNU/Linux 9 stretch
Apache 2.4.25 (Raspbian)
PHP version 7.2.13-1
|NextCloudPi version |v1.9.1|
|NextCloudPi image|NextCloudPi_01-14-19|
|distribution|Raspbian GNU/Linux 9 \n \l|
Initially no thumpnails and unable to preview these files The files (photos) are tif format under “File” on the Nextcloud dashboard. Clicking on file launches an OS dialog box to download or view using the OS viewer (OS lubuntu) and just the download option on a chromebook. Also there are no preview of the file unlike those for png. I am able to tag these file and download. These photos are mounted external storage(storage type/ scope is system).
Added following the PreviewManager.php as outline on here “NC14 : Problems with preview TIF, AI, RAW images on new installation” by vindic
$this->registerCoreProvider(Preview\TIFF::class, ‘/image/x-dcraw/’);
$this->registerCoreProvider(Preview\TIFF::class, ‘/image/tif/’);
imagick php mod is installed
Rebooted and forced nc-scan and indicated that it was scanning in dialog box
Current behaviour with above changes I am no longer able to view the folder get “circle” symbol on the dashboard.
If I remove the amendments to the PreviewManager.php and reboot and login I am able view the folders under “Files” on the dashboard and able I am able to open the folder where tiff files are located but still no thumpnails and when I click the file
It launches the browser “https://nextcloudpi.local/apps/files/?dir=/FamilyPhotos&fileid=212#/FamilyPhotos/family-photo1.tif” but I get the the following error “Error could not generate a preview of this file Please go to next slide …”
********* Changes to PreviewManager ******************
The output of your Nextcloud log in Admin > Logging:
[PHP] Error: Error: Call to undefined method OC\PreviewManager::registerCoreProvieer() at /var/www/nextcloud/lib/private/PreviewManager.php#363
GET /ocs/v2.php/apps/activity/api/v2/activity/all?format=json&previews=true&since=0
from 192.168.1.211 by ncp at 2019-03-07T16:58:10+00:00
[remote] Error: Error: Call to undefined method OC\PreviewManager::registerCoreProvieer() at <>
- /var/www/nextcloud/lib/private/ line 246
registerCoreProviders() - /var/www/nextcloud/apps/dav/lib/Connector/Sabre/FilesPlugin.php line 354
isAvailable(OC\Files\Node\Folder {}) - /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/PropFind.php line 98
OCA\DAV\Connector\Sabre{closure}("*** sensitive parameters replaced ***") - /var/www/nextcloud/apps/dav/lib/Connector/Sabre/FilesPlugin.php line 355
handle("{http://nextcloud.org/ns}has-preview", Closure {}) - <>
handleGetProperties(Sabre\DAV\PropFind {}, OCA\DAV\Files\FilesHome {}) - /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php line 105
call_user_func_array([OCA\DAV\Connect … "], [Sabre\DAV\PropF … }]) - /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1059
emit(“propFind”, [Sabre\DAV\PropF … }]) - /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 981
getPropertiesByNode(Sabre\DAV\PropFind {}, OCA\DAV\Files\FilesHome {}) - /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1666
getPropertiesIteratorForPath(“files/ncp”, ["{DAV:}getlastm … "], 1) - /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 355
generateMultiStatus(Generator {}, false) - <>
httpPropFind(Sabre\HTTP\Reque … "}, Sabre\HTTP\Response {}) - /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php line 105
call_user_func_array([Sabre\DAV\CorePlugin {},“httpPropFind”], [Sabre\HTTP\Requ … }]) - /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 479
emit(“method:PROPFIND”, [Sabre\HTTP\Requ … }]) - /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 254
invokeMethod(Sabre\HTTP\Reque … "}, Sabre\HTTP\Response {}) - /var/www/nextcloud/apps/dav/lib/Server.php line 301
exec() - /var/www/nextcloud/apps/dav/appinfo/v2/remote.php line 35
exec() - /var/www/nextcloud/remote.php line 163
require_once("/var/www/nextcl … p")
PROPFIND /remote.php/dav/files/ncp/
from 192.168.1.211 by ncp at 2019-03-07T16:57:39+00:00
[index] Error: Error: Call to undefined method OC\PreviewManager::registerCoreProvieer() at <>
- /var/www/nextcloud/lib/private/PreviewManager.php line 223
registerCoreProviders() - /var/www/nextcloud/apps/gallery/lib/Service/ConfigService.php line 226
isMimeSupported(“image/png”) - /var/www/nextcloud/apps/gallery/lib/Service/ConfigService.php line 133
isMimeSupported(“image/png”) - /var/www/nextcloud/apps/gallery/lib/Controller/Config.php line 53
getSupportedMediaTypes(true, false) - /var/www/nextcloud/apps/gallery/lib/Controller/ConfigController.php line 64
getConfig(true) - /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 166
get(true) - /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 99
executeController(OCA\Gallery\Cont … {}, “get”) - /var/www/nextcloud/lib/private/AppFramework/App.php line 118
dispatch(OCA\Gallery\Cont … {}, “get”) - /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
main(“ConfigController”, “get”, OC\AppFramework\ … {}, {_route: “gallery.config.get”}) - <>
__invoke({_route: “gallery.config.get”}) - /var/www/nextcloud/lib/private/Route/Router.php line 297
call_user_func(OC\AppFramework\ … {}, {_route: “gallery.config.get”}) - /var/www/nextcloud/lib/base.php line 987
match("/apps/gallery/config") - /var/www/nextcloud/index.php line 42
handleRequest()
GET /apps/gallery/config?extramediatypes=1
from 192.168.1.211 by ncp at 2019-03-07T16:57:39+00:100:
**************** Remove the changes to PreviewManager.php ***************
Admin ----> logging
[gallery] Error: Exception: Preview generation has failed
GET /apps/gallery/preview/213?width=1400&height=1400&c=ea5b8012183c930615f82bd210a63657&requesttoken=FWEAtd%2BdDx4gvJDUAH8RyBwlwTPAKedVspyH6j%2Fp1rc%3D%3AXzNmwqrudUti68C2LwhWr2sckAb1W7Ysg%2BuwwQiNno4%3D
from 192.168.1.211 by ncp at 2019-03-07T17:24:50+00:100:
[gallery] Error: OCP\Files\NotFoundException: at <>
- /var/www/nextcloud/lib/private/Preview/Generator.php line 118
getMaxPreview(OC\Files\SimpleFS\SimpleFolder {}, OC\Files\Node\File {}, “image/x-dcraw”) - /var/www/nextcloud/lib/private/PreviewManager.php line 206
getPreview(OC\Files\Node\File {}, 1400, 1400, false, “fill”, “image/x-dcraw”) - /var/www/nextcloud/apps/gallery/lib/Service/PreviewService.php line 106
getPreview(OC\Files\Node\File {}, 1400, 1400, false) - /var/www/nextcloud/apps/gallery/lib/Controller/Preview.php line 167
createPreview(OC\Files\Node\File {}, 1400, 1400, true, false) - /var/www/nextcloud/apps/gallery/lib/Controller/Preview.php line 117
getPreviewData(OC\Files\Node\File {}, true, 1400, 1400, true, false) - /var/www/nextcloud/apps/gallery/lib/Controller/PreviewController.php line 134
getData(213, 1400, 1400) - /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 166
getPreview(213, 1400, 1400) - /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 99
executeController(OCA\Gallery\Cont … {}, “getPreview”) - /var/www/nextcloud/lib/private/AppFramework/App.php line 118
dispatch(OCA\Gallery\Cont … {}, “getPreview”) - /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
main(“PreviewController”, “getPreview”, OC\AppFramework\ … {}, {fileId: “213”,_ … "}) - <>
_invoke({fileId: “213”, … "}) - /var/www/nextcloud/lib/private/Route/Router.php line 297
call_user_func(OC\AppFramework\ … {}, {fileId: “213”,_ … "}) - /var/www/nextcloud/lib/base.php line 987
match("/apps/gallery/preview/213") - /var/www/nextcloud/index.php line 42
handleRequest()
GET /apps/gallery/preview/213?width=1400&height=1400&c=ea5b8012183c930615f82bd210a63657&requesttoken=FWEAtd%2BdDx4gvJDUAH8RyBwlwTPAKedVspyH6j%2Fp1rc%3D%3AXzNmwqrudUti68C2LwhWr2sckAb1W7Ysg%2BuwwQiNno4%3D
from 192.168.1.211 by ncp at 2019-03-07T17:24:50+00:100:
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
sudo cat /var/www/nextcloud/config/config.php
<?php
$CONFIG = array (
'passwordsalt' => 'xxx',
'secret' => 'xxx',
'trusted_domains' =>
array (
0 => 'localhost',
5 => 'nextcloudpi.local',
7 => 'nextcloudpi',
8 => 'nextcloudpi.lan',
1 => '192.168.1.236',
20 => 'xxx.ddns.net',
21 => 'nextcloudpi.local',
),
'datadirectory' => '/media/USBdrive/ncdata',
'dbtype' => 'mysql',
'version' => '15.0.2.0',
'overwrite.cli.url' => 'http://localhost/',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'ncadmin',
'dbpassword' => 'xxx',
'installed' => true,
'instanceid' => 'ockhnd03zkvv',
'memcache.local' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/var/run/redis/redis.sock',
'port' => 0,
'timeout' => 0.0,
'password' => 'xxx',
),
'tempdirectory' => '/media/USBdrive/ncdata/tmp',
'mail_smtpmode' => 'smtp',
'mail_smtpauthtype' => 'LOGIN',
'mail_from_address' => 'xxx',
'mail_domain' => 'gmail.com',
'overwriteprotocol' => 'https',
'maintenance' => false,
'logfile' => '/media/USBdrive/ncdata/nextcloud.log',
'loglevel' => '2',
'log_type' => 'file',
'mail_sendmailmode' => 'smtp',
'mail_smtpsecure' => 'ssl',
'mail_smtphost' => 'smtp.gmail.com',
'mail_smtpauth' => 1,
'mail_smtpport' => '465',
'mail_smtpname' => 'xxx@gmail.com',
'mail_smtppassword' => 'xxx',
'htaccess.RewriteBase' => '/',
);
The output of your Apache/nginx/system log in /var/log/____
:
no sure which file access.log / nc-access.log nc-error.log