external plugin on local goofys (s3) mount, file corruption (?) #16916
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
bug
feature: encryption (server-side)
feature: external storage
in words:
i have an s3 bucked mounted via goofys on local mnt folder, nextcloud external plugin on local mnt/myfs/cloud. worked well for years. now, when i copy jpgs and vids via webiface to external, they get corrupted. with a possibility to uncorrupt themselves at a later time (many days later)
tried the scan function, different versions of goofys(s3fs)
i can reproduce the corrupt, but have no idea how to reverse it. the files are on the bucket, with their size +30% approx and can not be opened after download. (enc seems to work)
i can recover my data, my problem is that i can not use nextcloud anymore :(
Steps to reproduce
this setup has worked well for years without gamebreaking errors. (the native s3 thing did not ever work in my case)
this setup seem to fk up the signatures inside external so i had to disable the check (return True in the crypt.php like suggested elsewhere)
my files got accessible again, thats when i noticed files with 0kb
problems seem to have started with an nc update, dont know which one though
since turning off signature checks does not pose security risks with encryption on, i dont mind. (having to change the source does bug me a bit though)
the server has a 15Mbyte connection, so syncing is not the issue.
i tried variations of occ scan with no success
different versions of goofys, same problem
Expected behaviour
show the real size, generate prieviews, successful download
Actual behaviour
pictures stay at 0kb, being unaccessible, videos can be downloaded but not opened (likely still enc)
Server configuration
Operating system: Debian GNU/Linux 9
Web server: Apache/2.4.25 (Debian)
Database: mysql Ver 15.1 Distrib 10.1.38-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
PHP version: php7.0 7.0.33-0+deb9u3
Nextcloud version: Nextcloud 15.0.11
Updated from an older Nextcloud/ownCloud or fresh install: from oc times
Where did you install Nextcloud from: download from website, nextcloud.zip
Signing status:
Signing status
No errors have been found.
List of activated apps:
App list
Enabled:
Disabled:
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: Local, pointing on a mounted goofys s3 filesystem on /mnt/cfs ; filemode 0640, dirmode 0750 www-data:www-data
Are you using encryption: yes (seems to be part of the problem)
Are you using an external user-backend, if yes which one: no
Client configuration
Browser: Firefox 68.0.2 (64-bit)
Operating system: Ubuntu 64 bit
Logs
Web server error log
Web server error log
none related
Nextcloud log (data/nextcloud.log)
Nextcloud log
{"reqId":"cC1CJt4iJHECwpgMLgSk","level":3,"time":"2019-08-28T14:15:01+00:00","remoteAddr":"91.219.68.4","user":"ncuser","app":"gallery","method":"GET","url":"/index.php/apps/gallery/preview/720638?width=2000&height=2000&c=a9ad5a7fbbb833f8469ffa524610b73c&requesttoken=kdUR3DzXdBL7RCCnk%2FJ84bTUrCt0gXcQaxzyWfMJrrY%3D%3AxZxI62X4HWWOE1PW57Etj%2FK35EM78w5UL1KHDMU55vs%3D","message":{"Exception":"OCP\Files\NotFoundException","Message":"","Code":0,"Trace":[{"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":106,"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":[720638,2000,2000]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":166,"function":"getPreview","class":"OCA\Gallery\Controller\PreviewController","type":"->","args":[720638,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":"720638","_route":"gallery.preview.get_preview"}]},{"function":"__invoke","class":"OC\AppFramework\Routing\RouteActionHandler","type":"->","args":[{"fileId":"720638","_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":"720638","_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/720638"]},{"file":"/var/www/nextcloud/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/lib/private/Preview/Generator.php","Line":220,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0","version":"15.0.11.1"}
{"reqId":"cC1CJt4iJHECwpgMLgSk","level":3,"time":"2019-08-28T14:15:01+00:00","remoteAddr":"91.219.68.4","user":"ncuser","app":"gallery","method":"GET","url":"/index.php/apps/gallery/preview/720638?width=2000&height=2000&c=a9ad5a7fbbb833f8469ffa524610b73c&requesttoken=kdUR3DzXdBL7RCCnk%2FJ84bTUrCt0gXcQaxzyWfMJrrY%3D%3AxZxI62X4HWWOE1PW57Etj%2FK35EM78w5UL1KHDMU55vs%3D","message":"Exception: Preview generation has failed","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0","version":"15.0.11.1"}
{"reqId":"Vltq1ocShE4SlWTZORVm","level":3,"time":"2019-08-28T14:15:06+00:00","remoteAddr":"91.219.68.4","user":"ncuser","app":"gallery","method":"GET","url":"/index.php/apps/gallery/preview/720627?width=2000&height=2000&c=459df93745f47a7a40eeb58398254722&requesttoken=kdUR3DzXdBL7RCCnk%2FJ84bTUrCt0gXcQaxzyWfMJrrY%3D%3AxZxI62X4HWWOE1PW57Etj%2FK35EM78w5UL1KHDMU55vs%3D","message":{"Exception":"OCP\Files\NotFoundException","Message":"","Code":0,"Trace":[{"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":106,"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":[720627,2000,2000]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":166,"function":"getPreview","class":"OCA\Gallery\Controller\PreviewController","type":"->","args":[720627,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":"720627","_route":"gallery.preview.get_preview"}]},{"function":"__invoke","class":"OC\AppFramework\Routing\RouteActionHandler","type":"->","args":[{"fileId":"720627","_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":"720627","_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/720627"]},{"file":"/var/www/nextcloud/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/lib/private/Preview/Generator.php","Line":220,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0","version":"15.0.11.1"}
{"reqId":"Vltq1ocShE4SlWTZORVm","level":3,"time":"2019-08-28T14:15:06+00:00","remoteAddr":"91.219.68.4","user":"ncuser","app":"gallery","method":"GET","url":"/index.php/apps/gallery/preview/720627?width=2000&height=2000&c=459df93745f47a7a40eeb58398254722&requesttoken=kdUR3DzXdBL7RCCnk%2FJ84bTUrCt0gXcQaxzyWfMJrrY%3D%3AxZxI62X4HWWOE1PW57Etj%2FK35EM78w5UL1KHDMU55vs%3D","message":"Exception: Preview generation has failed","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0","version":"15.0.11.1"}
please let me know if i missed something
thanks
The text was updated successfully, but these errors were encountered: