Until last Friday I was able to upload on Windows10(Network drive) without problems, but suddenly we could not just upload from this morning. We can download it without problems. It happens on all Windows machines owned by us.
Error: Can’t read from the source file or disk.
For example, even a text file (5KB) can not be uploaded. I think that it is not a matter of file size.
I am not using file names nor special characters. I can not upload it even by “abc.txt”.
I restarted the server, restart nginx. And change nginx.conf to simple contents. Adjust items such as memory_limit and upload_filesize. Change permission of NC files. I did these, but I did not improve anything.
I disabled the application “External storage support” from Nextcloud settings.
Then I got server error 500. I removed the External storage support directory from the app directory but could not recover. So I changed the app directory from the NC source to the new app default state. This resolved the 500 error. But I can not upload files even in this state.
If the file on the NC drive and the local file name is the same, uploading is possible. (Overwrite processing.) I can not upload another name files and new files.
However, it seems that it is not possible to open the file from the mounted NC drive and save it by the application.
There are different builds of Windows 10 owned by us. It is the same in all Windows including them. We never operated and accessed Nextcloud on this Saturday and Sunday.
I think that it is a problem on the NC side, please tell me how to solve this problem.
[webdav] Fatal: Sabre\DAV\Exception: Error while copying file to target location (copied bytes: 0, expected filesize: 0 ) at <<closure>>
0. /MY-NEXTCLOUD/apps/dav/lib/Connector/Sabre/Directory.php line 156
put(null)
1. /MY-NEXTCLOUD/3rdparty/sabre/dav/lib/DAV/Server.php line 1096
createFile("abc.txt", null)
2. /MY-NEXTCLOUD/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 525
createFile("abc.txt", null, null)
3. <<closure>>
httpPut(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
4. /MY-NEXTCLOUD/3rdparty/sabre/event/lib/EventEmitterTrait.php line 105
call_user_func_array([Sabre\DAV\CorePlugin {},"httpPut"], [Sabre\HTTP\Requ ... }])
5. /MY-NEXTCLOUD/3rdparty/sabre/dav/lib/DAV/Server.php line 479
emit("method:PUT", [Sabre\HTTP\Requ ... }])
6. /MY-NEXTCLOUD/3rdparty/sabre/dav/lib/DAV/Server.php line 254
invokeMethod(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
7. /MY-NEXTCLOUD/apps/dav/appinfo/v1/webdav.php line 80
exec()
8. /MY-NEXTCLOUD/remote.php line 163
require_once("/MY-NEXTC ... p")
PUT /remote.php/webdav/abc.txt
from XXX.XXX.XXX.XXX by NC-USER at 2018-12-17T10:38:12+09:00
[no app in context] Error: Sabre\DAV\Exception: Error while copying file to target location (copied bytes: 0, expected filesize: 0 ) at <<closure>>
0. /MY-NEXTCLOUD/apps/dav/lib/Connector/Sabre/Directory.php line 156
put(null)
1. /MY-NEXTCLOUD/3rdparty/sabre/dav/lib/DAV/Server.php line 1096
createFile("abc.txt", null)
2. /MY-NEXTCLOUD/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 525
createFile("abc.txt", null, null)
3. <<closure>>
httpPut(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
4. /MY-NEXTCLOUD/3rdparty/sabre/event/lib/EventEmitterTrait.php line 105
call_user_func_array([Sabre\DAV\CorePlugin {},"httpPut"], [Sabre\HTTP\Requ ... }])
5. /MY-NEXTCLOUD/3rdparty/sabre/dav/lib/DAV/Server.php line 479
emit("method:PUT", [Sabre\HTTP\Requ ... }])
6. /MY-NEXTCLOUD/3rdparty/sabre/dav/lib/DAV/Server.php line 254
invokeMethod(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
7. /MY-NEXTCLOUD/apps/dav/appinfo/v1/webdav.php line 80
exec()
8. /MY-NEXTCLOUD/remote.php line 163
require_once("/MY-NEXTC ... p")
PUT /remote.php/webdav/abc.txt
from XXX.XXX.XXX.XXX by NC-USER at 2018-12-17T10:38:12+09:00
[PHP] Error: feof(): supplied resource is not a valid stream resource at /MY-NEXTCLOUD/apps/dav/lib/Connector/Sabre/File.php#172
PUT /remote.php/webdav/abc.txt
from XXX.XXX.XXX.XXX by NC-USER at 2018-12-17T10:38:12+09:00
Nextcloud 15.0.0 / CentOS 7.5 / PHP 7.1.24 / nginx 1.13.8