-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fatal webdav error when syncing shared files and encryption activated #2020
Comments
@schiessle any idea? |
yep, I can recreate that as well. same system specifications but using only windows (7, 8.1, 10) clients which are part of AD infrastructure running on windows 2008r2. shares are located on windows platform (SMB). but: you are able to download the files via webui without any problem, so this might be a link limited to webdav and encryption. and yes, password recovery is activated for every user. (also happens on ownCloud 9.1.x btw) |
When I try to open the faulty files in webinterface, I get this error:
Other files do work fine. |
I tried it but couldn't reproduce it so far: My steps:
Did I miss anything? If the steps are correct, can you check if the shared file really isn't encrypted on the server side? |
you did everything like i did, except that my users are LDAP-integrated and i've used the syncclient. the files (in the shared folder) are completely encrypted, as seen from the share-providing server on 2008R2, every single file has the encryption-header when i open it with notepad++. probably an inconsistency with ldap, encryption and external-smb-drives only in combination? |
Is there a way to reset the file entries in DB? Such that the files seem completely new to nextcloud? |
Hi, |
Hey guys, this issue is a real problem for me. Can someone help? What is the status? |
i guess they're already working on it ;) @schiessle do you want any lab-environment to test that on? |
@schiessle |
Hi, I recently update from 10.0.1 to 10.0.2, and encounter this error. System info: Debian Jessie |
Is there any update or lets say "official" comment from NC team? |
As long as we can't reproduce it, it is really hard to do something about it. Do you still have some files where this happens? Can you check the filecache entry if the encrypted value for the file has a different value than '0'. |
@schiessle well, I have deactivated encryption and no new files got corrupted. But files that got corrupted while encryption was turned on, show exactly the same issues during sync or opening in webinterface. On filesystem it looks all fine though. I have checked the filecache entries, encrypted is 1 on those files. Could I simply set it to 0? |
Hi folks,
unfortunately I can't sync my files to server. I have some strange error in log, saying that the encryption messed up somehow. I activated the encryption only for external storage.
Steps to reproduce
Expected behaviour
Shared data is not changed or encrypted. Sharing is still possible.
Actual behaviour
Some files show "internal server error" and do not get synced.
Server configuration
Operating system: Ubuntu 16.04
Web server: Apache 2.4
Database: MySQL 5.7
PHP version: 7.0
Nextcloud version: 10.0
Updated from an older Nextcloud/ownCloud or fresh install: updated
Where did you install Nextcloud from:
Signing status:
Signing status
List of activated apps:
App list
The content of config/config.php:
Config report
Are you using external storage, if yes which one: -
Are you using encryption: yes
Are you using an external user-backend, if yes which one: -
Client configuration
Browser: Firefox
Operating system: Windows 10
Logs
Web server error log
Web server error log
``` ```Nextcloud log (data/nextcloud.log)
Nextcloud log
``` Fatal webdav Exception: {"Message":"Can not decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.","Exception":"OC\Encryption\Exceptions\DecryptionFailedException","Code":0,"Trace":"#0 \/var\/www\/nextcloud\/lib\/private\/Files\/Stream\/Encryption.php(460): OCA\Encryption\Crypto\Encryption->decrypt('Je l\xC3\xA4nger ich ...', '0end')\n#1 \/var\/www\/nextcloud\/lib\/private\/Files\/Stream\/Encryption.php(291): OC\Files\Stream\Encryption->readCache()\n#2 [internal function]: OC\Files\Stream\Encryption->stream_read(228)\n#3 \/var\/www\/nextcloud\/apps\/files_external\/3rdparty\/icewind\/streams\/src\/Wrapper.php(83): fread(Resource id #169, 8192)\n#4 \/var\/www\/nextcloud\/apps\/files_external\/3rdparty\/icewind\/streams\/src\/CallbackWrapper.php(91): Icewind\Streams\Wrapper->stream_read(8192)\n#5 [internal function]: Icewind\Streams\CallbackWrapper->stream_read(8192)\n#6 \/var\/www\/nextcloud\/3rdparty\/sabre\/http\/lib\/Sapi.php(78): stream_copy_to_stream(Resource id #172, Resource id #174, '228')\n#7 \/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(470): Sabre\HTTP\Sapi::sendResponse(Object(Sabre\HTTP\Response))\n#8 \/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(248): Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))\n#9 \/var\/www\/nextcloud\/apps\/dav\/appinfo\/v1\/webdav.php(60): Sabre\DAV\Server->exec()\n#10 \/var\/www\/nextcloud\/remote.php(165): require_once('\/var\/www\/nextcl...')\n#11 {main}","File":"\/var\/www\/nextcloud\/apps\/encryption\/lib\/Crypto\/Encryption.php","Line":361,"User":"myUser"} 2016-10-19T12:53:46+02:00 myUserError no app in context Can not decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you. 2016-10-19T12:53:46+02:00 myUser
Error PHP fread(): Length parameter must be greater than 0 at /var/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php#83 2016-10-19T12:53:46+02:00 myUser
Error no app in context Exception: {"Exception":"OC\Encryption\Exceptions\DecryptionFailedException","Message":"Can not decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.","Code":0,"Trace":"#0 /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php(574): OCA\Encryption\Crypto\Encryption->decrypt(*** sensitive parameters replaced ***)\n#1 /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php(493): OC\Files\Storage\Wrapper\Encryption->fixUnencryptedSize('files/Dokumente...', 228, 228)\n#2 /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php(162): OC\Files\Storage\Wrapper\Encryption->verifyUnencryptedSize('files/Dokumente...', 228)\n#3 /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php(401): OC\Files\Storage\Wrapper\Encryption->filesize('files/Dokumente...')\n#4 /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(294): OC\Files\Storage\Wrapper\Encryption->fopen('files/Dokumente...', 'rb')\n#5 /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(294): OC\Files\Storage\Wrapper\Wrapper->fopen('files/Dokumente...', 'rb')\n#6 /var/www/nextcloud/apps/files_accesscontrol/lib/StorageWrapper.php(292): OC\Files\Storage\Wrapper\Wrapper->fopen('files/Dokumente...', 'rb')\n#7 /var/www/nextcloud/lib/private/Files/View.php(1118): OCA\FilesAccessControl\StorageWrapper->fopen('files/Dokumente...', 'rb')\n#8 /var/www/nextcloud/lib/private/Files/View.php(963): OC\Files\View->basicOperation('fopen', '/Dokumente/Note...', Array, 'rb')\n#9 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php(305): OC\Files\View->fopen('Dokumente/Notes...', 'rb')\n#10 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(83): OCA\DAV\Connector\Sabre\File->get()\n#11 [internal function]: Sabre\DAV\CorePlugin->httpGet(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))\n#12 /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#13 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(459): Sabre\Event\EventEmitter->emit('method:GET', Array)\n#14 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(248): Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))\n#15 /var/www/nextcloud/apps/dav/appinfo/v1/webdav.php(60): Sabre\DAV\Server->exec()\n#16 /var/www/nextcloud/remote.php(165): require_once('/var/www/nextcl...')\n#17 {main}","File":"/var/www/nextcloud/apps/encryption/lib/Crypto/Encryption.php","Line":361} 2016-10-19T12:53:46+02:00 myUser
Error no app in context Couldn't re-calculate unencrypted size for files/somePath/myFile.txt
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...
The text was updated successfully, but these errors were encountered: