Expected behaviour
Successful Syncing of about 500 files with Desktop Client.
Actual behaviour
When syncing files to an SMB Share on OC Server the Sync stopps with errors.
When trying to access the files via WEB GUI it also failes to download / view by PDF Plugin.
After some time (1-4 Minutes) everything is accessable again.
It seem the error accoucs on heavy sync load of SMB connection, while desktop client is syncing.
I set up the Server with Default encryption module = on.
Steps to reproduce
- create an external store connect (smb share) using username/ password
- syncing files via win10x64 desktop client
Server configuration
Operating system: Ubuntu 18.04 LTS
Web server: Apache
Database: Mysql 5.7
PHP version: 7.2.19
ownCloud version: 10.2.1
Storage backend (external storage):
SMB share, Smbclient Version (2:4.7.6+dfsg~ubuntu-0ubuntu2.11)
Client configuration
Client version: 2.5.4 (11415)
Operating system: WIn10x64
OS language: German
Qt version used by client package (Linux only, see also Settings dialog): n/a
Client package (From ownCloud or distro) (Linux only):
Installation path of client:
Logs
-
Client logfile: Output of
owncloud --logwindow
orowncloud --logfile log.txt
(On Windows usingcmd.exe
, you might need to firstcd
into the ownCloud directory)
(See also http://doc.owncloud.org/desktop/2.2/troubleshooting.html#client-logfile ) -
Web server error log:
[Mon Sep 16 15:55:50.732491 2019] [php7:error] [pid 13799] [client ----------------:5185] PHP Fatal error: Uncaught Error: Call to a member function getName() on null in /var/www/owncloud/apps/files_external/lib/Lib/Storage/SMB.php:115\nStack trace:\n#0 /var/www/owncloud/lib/private/Files/Storage/Common.php(671): OCA\Files_External\Lib\Storage\SMB->getId()\n#1 /var/www/owncloud/lib/private/Files/Storage/Wrapper/Wrapper.php(602): OC\Files\Storage\Common->releaseLock(âxx/xxxxxxxxxxâŚâ, 1, Object(OC\Lock\MemcacheLockingProvider))\n#2 /var/www/owncloud/lib/private/Files/Storage/Wrapper/Wrapper.php(602): OC\Files\Storage\Wrapper\Wrapper->releaseLock(âBP/BusinessplanâŚâ, 1, Object(OC\Lock\MemcacheLockingProvider))\n#3 /var/www/owncloud/lib/private/Files/Storage/Wrapper/Wrapper.php(602): OC\Files\Storage\Wrapper\Wrapper->releaseLock(âBP/BusinessplanâŚâ, 1, Object(OC\Lock\MemcacheLockingProvider))\n#4 /var/www/owncloud/lib/private/Files/Storage/Wrapper/Wrapper.php(602): OC\Files\Storage\Wrapper\Wrapper->releaseLock(âxx/xxxxxxxxxâŚâ, 1, Object(OC\Lock\MemcacheLockingProvider))\n#5 /var/www/owncloud/lib/private/Files/View in /var/www/owncloud/apps/files_external/lib/Lib/Storage/SMB.php on line 115
- Server logfile: ownCloud log (data/owncloud.log):
{âreqIdâ:âd177f3a7-9736-4a8c-9775-8278e74f61a2â,âlevelâ:4,âtimeâ:â2019-09-16T13:57:31+00:00â,âremoteAddrâ:âxxxxxxxxxxxxâ,âuserâ:âxxxxxxxxxâ,âappâ:âwebdavâ,âmethodâ:âGETâ,âurlâ:"/remote.php/dav/files/xxxxxxxxxx/Axxxxxa%20xx-xx/Linkpartner/xxxxxx",âmessageâ:âException: 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â,â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\/owncloud\/lib\/private\/Files\/Stream\/Encryption.php(454): OCA\\Encryption\\Crypto\\Encryption->decrypt(*** sensitive parameters replaced ***)\n#1 \/var\/www\/owncloud\/lib\/private\/Files\/Stream\/Encryption.php(289): OC\\Files\\Stream\\Encryption->readCache()\n#2 [internal function]: OC\\Files\\Stream\\Encryption->stream_read(8192)\n#3 \/var\/www\/owncloud\/apps\/files_external\/3rdparty\/icewind\/streams\/src\/Wrapper.php(83): fread(Resource id #77, 8192)\n#4 \/var\/www\/owncloud\/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\/owncloud\/lib\/composer\/sabre\/http\/lib\/Sapi.php(80): stream_copy_to_stream(Resource id #80, Resource id #82, â26308â)\n#7 \/var\/www\/owncloud\/lib\/composer\/sabre\/dav\/lib\/DAV\/Server.php(498): Sabre\\HTTP\\Sapi::sendResponse(Object(Sabre\\HTTP\\Response))\n#8 \/var\/www\/owncloud\/lib\/composer\/sabre\/dav\/lib\/DAV\/Server.php(254): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#9 \/var\/www\/owncloud\/apps\/dav\/lib\/Server.php(294): Sabre\\DAV\\Server->exec()\n#10 \/var\/www\/owncloud\/apps\/dav\/appinfo\/v2\/remote.php(31): OCA\\DAV\\Server->exec()\n#11 \/var\/www\/owncloud\/remote.php(165): require_once(â\/var\/www\/owncloâŚâ)\n#12 {main}",âFileâ:"\/var\/www\/owncloud\/apps\/encryption\/lib\/Crypto\/Encryption.php",âLineâ:366}"}