Nextcloud version (eg, 12.0.2): 15.0.7
Operating system and version (eg, Ubuntu 17.04): FreeBSD 12-stable
Apache or nginx version (eg, Apache 2.4.25): apache 2.4.39
PHP version (eg, 7.1): php72-7.2.17
The issue you are facing:
Broken uploads for any file from anywhere uploaded by any method if the file is larger than 2.4MB in size. Smaller files upload fine. It starts the upload, stops, attempts to restart and then fails.
The example listed below is uploading the nextcloud manual which is 6.3MB in size. The error is classified as a fatal error from webdav
Is this the first time you’ve seen this error? (Y/N): N
Steps to replicate it:
- upload a file larger than 2.4MB
The output of your Nextcloud log in Admin > Logging:
{"reqId":"wJreN3OwY0sygrA9mlt3","level":4,"time":"2019-04-10T13:19:24+00:00","remoteAddr":"[REDACTED-IP-ADDRESS]","user":"[REDACTED]","app":"webdav","method":"PUT","url":"/remote.php/webdav/Nextcloud%20Manual.pdf","message":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"expected filesize 6628477 got 2456627","Code":0,"Trace":[{"file":"/usr/local/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":156,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[null]},{"file":"/usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1096,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["Nextcloud Manual.pdf",null]},{"file":"/usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":525,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["Nextcloud Manual.pdf",null,null]},{"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"absoluteUrl":"https://[REDACTED-SERVER-NAME]/remote.php/webdav/Nextcloud%20Manual.pdf","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/usr/local/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"__class__":"Sabre\\DAV\\CorePlugin"},"httpPut"],[{"absoluteUrl":"https://[REDACTED-SERVER-NAME]/remote.php/webdav/Nextcloud%20Manual.pdf","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":479,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["method:PUT",[{"absoluteUrl":"https://[REDACTED-SERVER-NAME]/remote.php/webdav/Nextcloud%20Manual.pdf","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":254,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"absoluteUrl":"https://[REDACTED-SERVER-NAME]/remote.php/webdav/Nextcloud%20Manual.pdf","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/usr/local/www/nextcloud/apps/dav/appinfo/v1/webdav.php","line":80,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/remote.php","line":163,"args":["/usr/local/www/nextcloud/apps/dav/appinfo/v1/webdav.php"],"function":"require_once"}],"File":"/usr/local/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","Line":222,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0","version":"15.0.7.0","id":"5caded7c5881c"}
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
not sure what you're asking here. There is no 'config.php' in the nextcloud directory. There are various subdirectories some of which have a config.php.
The output of your Apache/nginx/system log in /var/log/____
:
in the logs at the time there's this:
[REDACTED] - [REDACTED_LOGIN] [10/Apr/2019:14:19:02 +0100] "PROPFIND /remote.php/dav/files/[REDACTED_LOGIN]/ HTTP/1.1" 207 391
[REDACTED] - [REDACTED_LOGIN] [10/Apr/2019:14:19:16 +0100] "PROPFIND /remote.php/dav/files/[REDACTED_LOGIN]/ HTTP/1.1" 207 371
[REDACTED] - - [10/Apr/2019:14:19:17 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
[REDACTED] - - [10/Apr/2019:14:19:18 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
[REDACTED] - - [10/Apr/2019:14:19:04 +0100] "PUT /remote.php/webdav/Nextcloud%20Manual.pdf HTTP/1.1" 400 231
[REDACTED] - - [10/Apr/2019:14:19:27 +0100] "GET /index.php/apps/files/ajax/getstoragestats.php?dir=%2F HTTP/1.1" 200 228
[REDACTED] - [REDACTED_LOGIN] [10/Apr/2019:14:19:34 +0100] "PROPFIND /remote.php/dav/files/[REDACTED_LOGIN]/ HTTP/1.1" 207 391
[REDACTED] - - [10/Apr/2019:14:19:34 +0100] "GET /index.php/settings/user HTTP/1.1" 200 100766
[REDACTED] - - [10/Apr/2019:14:19:40 +0100] "GET /index.php/avatar/[REDACTED_LOGIN]/32?v=0 HTTP/1.1" 304 -
[REDACTED] - - [10/Apr/2019:14:19:40 +0100] "GET /index.php/svg/spreed/app-dark?color=000&v=1 HTTP/1.1" 500 8485
[REDACTED] - - [10/Apr/2019:14:19:42 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
[REDACTED] - - [10/Apr/2019:14:19:42 +0100] "GET /index.php/apps/apporder/getOrder HTTP/1.1" 200 43
[REDACTED] - - [10/Apr/2019:14:19:42 +0100] "PROPFIND /remote.php/webdav HTTP/1.1" 207 2251
[REDACTED] - - [10/Apr/2019:14:19:42 +0100] "GET /index.php/heartbeat HTTP/1.1" 200 -
[REDACTED] - - [10/Apr/2019:14:19:42 +0100] "GET /data/.ocdata?t=1554902382100 HTTP/1.1" 302 -
[REDACTED] - - [10/Apr/2019:14:19:42 +0100] "GET /index.php/avatar/[REDACTED_LOGIN]/145?v=0 HTTP/1.1" 304 -
[REDACTED] - - [10/Apr/2019:14:19:43 +0100] "GET /index.php/apps/files/ HTTP/1.1" 200 73495
[REDACTED] - - [10/Apr/2019:14:19:42 +0100] "GET /index.php/settings/ajax/checksetup HTTP/1.1" 200 1683
[REDACTED] - [REDACTED_LOGIN] [10/Apr/2019:14:19:44 +0100] "PROPFIND /remote.php/dav/files/[REDACTED_LOGIN]/ HTTP/1.1" 207 371
[REDACTED] - - [10/Apr/2019:14:19:46 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
[REDACTED] - - [10/Apr/2019:14:19:48 +0100] "GET /index.php/settings/admin/logging HTTP/1.1" 200 52012
[REDACTED] - - [10/Apr/2019:14:19:53 +0100] "GET /index.php/svg/spreed/app-dark?color=000&v=1 HTTP/1.1" 500 8485
[REDACTED] - - [10/Apr/2019:14:19:54 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74
[REDACTED] - - [10/Apr/2019:14:19:54 +0100] "GET /index.php/avatar/[REDACTED_LOGIN]/32?v=0 HTTP/1.1" 304 -