Update to NC15 - Windows client only partially working

problem description

Hey guys

I’m using NC on FreeNAS. I had NC 14 installed and updated to NC 15 with the internal updater.
Everything seems to work fine except that my Windows client cannot create files anymore. I tested the following things:

  • add files via Windows Explorer DOESN’T work
  • create folders via Windows Explorer DOES work
  • add files & create folders via Android app DOES work
  • add files & create folders via Web interface DOES work

When trying to add a file in Windows Explorer, the Windows client of NC shows the following error (translated from German):

Server answered “500 internal server error” on “PUT http://address/remote.php/dav/PATH” (Error while copying file to target location (copied btyes: 0, expected filesize: 0))

I removed the NC windows app and reinstalled … only thing that changed was that there is no integration of the NC folders in the Windows Explorer anymore.

Hope anyone knows what’s up here and how to get the windows client incl. explorer integration working again … sadly I do not know too much about how NC works :frowning:

update:
i googled a bit more and found that the problem is related to the encryption app. I disabled it and it works again.

still: does anybody know what the problem was and on a seperate note how to get explorer integration again?


Nextcloud version: 15.0.2.0
Operating system and version: FreeNAS 11.2 Release U1
PHP version: 7.2.10

The issue you are facing:

The output of your Nextcloud log in Admin > Logging:

there are three errors shown:

No. 1

[webdav] Fatal: Sabre\DAV\Exception: Error while copying file to target location (copied bytes: 0, expected filesize: 0 ) at <<closure>>

0. /usr/local/www/apache24/data/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php line 156
   put(null)
1. /usr/local/www/apache24/data/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1096
   createFile("test.txt", null)
2. /usr/local/www/apache24/data/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 525
   createFile("files/admin/Goo ... t", null, null)
3. <<closure>>
   httpPut(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
4. /usr/local/www/apache24/data/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php line 105
   call_user_func_array([Sabre\DAV\CorePlugin {},"httpPut"], [Sabre\HTTP\Requ ... }])
5. /usr/local/www/apache24/data/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 479
   emit("method:PUT", [Sabre\HTTP\Requ ... }])
6. /usr/local/www/apache24/data/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 254
   invokeMethod(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
7. /usr/local/www/apache24/data/nextcloud/apps/dav/lib/Server.php line 301
   exec()
8. /usr/local/www/apache24/data/nextcloud/apps/dav/appinfo/v2/remote.php line 35
   exec()
9. /usr/local/www/apache24/data/nextcloud/remote.php line 163
   require_once("/usr/local/www/ ... p")

PUT /remote.php/dav/files/admin/Goodies/Neuer%20Ordner/test.txt
from 192.168.23.47 by admin at 2019-01-22T12:45:23+01:00

...
No. 2

[no app in context] Error: Sabre\DAV\Exception: Error while copying file to target location (copied bytes: 0, expected filesize: 0 ) at <<closure>>

0. /usr/local/www/apache24/data/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php line 156
   put(null)
1. /usr/local/www/apache24/data/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1096
   createFile("test.txt", null)
2. /usr/local/www/apache24/data/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 525
   createFile("files/admin/Goo ... t", null, null)
3. <<closure>>
   httpPut(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
4. /usr/local/www/apache24/data/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php line 105
   call_user_func_array([Sabre\DAV\CorePlugin {},"httpPut"], [Sabre\HTTP\Requ ... }])
5. /usr/local/www/apache24/data/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 479
   emit("method:PUT", [Sabre\HTTP\Requ ... }])
6. /usr/local/www/apache24/data/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 254
   invokeMethod(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
7. /usr/local/www/apache24/data/nextcloud/apps/dav/lib/Server.php line 301
   exec()
8. /usr/local/www/apache24/data/nextcloud/apps/dav/appinfo/v2/remote.php line 35
   exec()
9. /usr/local/www/apache24/data/nextcloud/remote.php line 163
   require_once("/usr/local/www/ ... p")

PUT /remote.php/dav/files/admin/Goodies/Neuer%20Ordner/test.txt
from 192.168.23.47 by admin at 2019-01-22T12:45:23+01:100:

... 
No. 3

[PHP] Error: feof(): supplied resource is not a valid stream resource at /usr/local/www/apache24/data/nextcloud/apps/dav/lib/Connector/Sabre/File.php#172

PUT /remote.php/dav/files/admin/Goodies/Neuer%20Ordner/test.txt
from 192.168.23.47 by admin at 2019-01-22T12:45:23+01:00