Hi
I have a fully updated 1 month old NextCloud installation.
In my iOS app I have enabled that NextCloud should upload all my photos and it is also working for almost all files but 1.
When I look in the “Transfers” list in the iOS app it looks like the upload restarts after 1-3 seconds.
the file is only 54,5 MB large and 1GB+ files have been uploaded without issues.
See: Watch Force start of upload | Streamable
NextCloud gives the following error:
{
"reqId": "eoRI4vH59M0TXALbHiFX",
"level": 3,
"time": "2024-12-31T15:43:23+00:00",
"remoteAddr": "10.10.81.254",
"user": "nOrphf",
"app": "no app in context",
"method": "PUT",
"url": "/remote.php/dav/files/nOrphf/Photos/-CameraUpload/2024/12/4CE242FD-08F8-44C8-94A7-0F139B4D4144.mp4",
"message": "Expected filesize of 57132180 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 37126144 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.",
"userAgent": "Mozilla/5.0 (iOS) Nextcloud-iOS/6.2.1",
"version": "30.0.4.1",
"exception": {
"Exception": "Sabre\\DAV\\Exception\\BadRequest",
"Message": "Expected filesize of 57132180 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 37126144 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php",
"line": 1137,
"function": "put",
"class": "OCA\\DAV\\Connector\\Sabre\\File",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
"line": 492,
"function": "updateFile",
"class": "Sabre\\DAV\\Server",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
"line": 89,
"function": "httpPut",
"class": "Sabre\\DAV\\CorePlugin",
"type": "->",
"args": [
{
"__class__": "Sabre\\HTTP\\Request"
},
{
"__class__": "Sabre\\HTTP\\Response"
}
]
},
{
"file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php",
"line": 472,
"function": "emit",
"class": "Sabre\\DAV\\Server",
"type": "->",
"args": [
"method:PUT",
[
{
"__class__": "Sabre\\HTTP\\Request"
},
{
"__class__": "Sabre\\HTTP\\Response"
}
]
]
},
{
"file": "/var/www/html/apps/dav/lib/Connector/Sabre/Server.php",
"line": 43,
"function": "invokeMethod",
"class": "Sabre\\DAV\\Server",
"type": "->",
"args": [
{
"__class__": "Sabre\\HTTP\\Request"
},
{
"__class__": "Sabre\\HTTP\\Response"
}
]
},
{
"file": "/var/www/html/apps/dav/lib/Server.php",
"line": 371,
"function": "start",
"class": "OCA\\DAV\\Connector\\Sabre\\Server",
"type": "->",
"args": []
},
{
"file": "/var/www/html/apps/dav/appinfo/v2/remote.php",
"line": 19,
"function": "exec",
"class": "OCA\\DAV\\Server",
"type": "->",
"args": []
},
{
"file": "/var/www/html/remote.php",
"line": 146,
"args": [
"/var/www/html/apps/dav/appinfo/v2/remote.php"
],
"function": "require_once"
}
],
"File": "/var/www/html/apps/dav/lib/Connector/Sabre/File.php",
"Line": 259,
"message": "Expected filesize of 57132180 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 37126144 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.",
"exception": {},
"CustomMessage": "Expected filesize of 57132180 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 37126144 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side."
}
}
I use the Docker AIO, but I have disabled the internal caddy and run my own caddy on OPNSense. the log entry from caddy is:
{
"ts": "2024-12-31T15:34:17Z",
"logger": "http.handlers.reverse_proxy",
"msg": "aborting with incomplete response",
"upstream": "nextcloud01.nox.4tw.dk:11000",
"duration": 0.147507576,
"request": {
"remote_ip": "10.10.83.112",
"remote_port": "53348",
"client_ip": "10.10.83.112",
"proto": "HTTP/2.0",
"method": "PUT",
"host": "cloud.4tw.dk",
"uri": "/remote.php/dav/files/nOrphf/Photos/-CameraUpload/2024/12/4CE242FD-08F8-44C8-94A7-0F139B4D4144.mp4",
"headers": {
"Content-Type": [
"application/octet-stream"
],
"Content-Length": [
"57132180"
],
"Upload-Complete": [
"?1"
],
"Accept": [
"*/*"
],
"X-Oc-Mtime": [
"1734860907.8860621"
],
"Upload-Draft-Interop-Version": [
"6"
],
"Accept-Language": [
"en-GB,en;q=0.9"
],
"X-Forwarded-For": [
"10.10.83.112"
],
"X-Forwarded-Host": [
"cloud.4tw.dk"
],
"User-Agent": [
"Mozilla/5.0 (iOS) Nextcloud-iOS/6.2.1"
],
"X-Oc-Ctime": [
"1734860141.0"
],
"Authorization": [
"REDACTED"
],
"Accept-Encoding": [
"gzip, deflate, br"
],
"X-Forwarded-Proto": [
"https"
]
},
"tls": {
"resumed": false,
"version": 772,
"cipher_suite": 4865,
"proto": "h2",
"server_name": "cloud.4tw.dk"
}
},
"error": "reading: context canceled"
}
If more information is needed please request and I will provide as soon as possible.