Nextcloud 18 - Uploading 1GB file stucking every 10MB - Please help I am already hopeless

Nextcloud version (eg, 18.0.1):
Operating system and version (eg, FreeBSD 12.1):
Apache or nginx version (eg, Nginx 1.16.1):
PHP version (eg, 7.4):

The issue you are facing:

Uploading 1GB file on nextcloud stopping every 10MB and then continues.
This is happening only on wan connection, on LAN I dont see this.

Is this the first time you’ve seen this error? (Y/N):

Yes

Steps to replicate it:

  1. Open nextcloud web
  2. Upload 1GB file

The output of your Nextcloud log in Admin > Logging:

Debug	cron	Finished OCA\Text\Cron\Cleanup job with ID 14 in 0 seconds		2020-02-10T23:53:39+0100
Debug	text	Removed 1 inactive sessions		2020-02-10T23:53:39+0100
Debug	text	Resetting document 11		2020-02-10T23:53:39+0100
Info	no app in context	Deprecated event type for \OCP\Files::postDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-02-10T23:53:39+0100
Info	no app in context	Deprecated event type for \OCP\Files::preDelete: Symfony\Component\EventDispatcher\GenericEvent		2020-02-10T23:53:39+0100
Error	PHP	Trying to access array offset on value of type int at /usr/local/www/nextcloud/lib/private/Files/Node/Node.php#327		2020-02-10T23:53:39+0100
Debug	text	Resetting document 11		2020-02-10T23:53:39+0100
Debug	text	Run cleanup job for text sessions		2020-02-10T23:53:39+0100
Debug	cron	Run OCA\Text\Cron\Cleanup job with ID 14		2020-02-10T23:53:39+0100
Debug	webdav	Sabre\DAV\Exception\NotFound: File with name //web-file-upload-454c7d9fce9aff1125e1dcf5412549e8-1581375174963 could not be located		2020-02-10T23:53:27+0100
Debug	webdav	Sabre\DAV\Exception\NotFound: File with name //web-file-upload-454c7d9fce9aff1125e1dcf5412549e8-1581375174963 could not be located		2020-02-10T23:53:26+0100
Debug	webdav	Sabre\DAV\Exception\NotFound: File with name //web-file-upload-454c7d9fce9aff1125e1dcf5412549e8-1581374919726 could not be located		2020-02-10T23:48:49+0100
Debug	webdav	Sabre\DAV\Exception\NotFound: File with name //web-file-upload-454c7d9fce9aff1125e1dcf5412549e8-1581374919726 could not be located		2020-02-10T23:48:48+0100
Debug	cron	Finished OCA\DAV\BackgroundJob\EventReminderJob job with ID 13 in 0 seconds		2020-02-10T23:46:28+0100
Debug	cron	Run OCA\DAV\BackgroundJob\EventReminderJob job with ID 13		2020-02-10T23:46:28+0100
Debug	webdav	Sabre\DAV\Exception\NotFound: File with name //web-file-upload-454c7d9fce9aff1125e1dcf5412549e8-1581374726977 could not be located		2020-02-10T23:45:42+0100
Debug	webdav	Sabre\DAV\Exception\NotFound: File with name //web-file-upload-454c7d9fce9aff1125e1dcf5412549e8-1581374726977 could not be located		2020-02-10T23:45:39+0100
Error	PHP	Trying to access array offset on value of type int at /usr/local/www/nextcloud/lib/private/Files/Node/Node.php#327		2020-02-10T23:32:47+0100
Error	PHP	Trying to access array offset on value of type int at /usr/local/www/nextcloud/lib/private/Files/Node/Node.php#327		2020-02-10T23:32:47+0100
Error	PHP	Trying to access array offset on value of type int at /usr/local/www/nextcloud/lib/private/Files/Node/Node.php#327		2020-02-09T17:49:03+0100
Error	PHP	Trying to access array offset on value of type int at /usr/local/www/nextcloud/lib/private/Files/Node/Node.php#327		2020-02-09T17:49:03+0100
Error	PHP	Trying to access array offset on value of type int at /usr/local/www/nextcloud/lib/private/Files/Node/Node.php#327		2020-02-09T17:05:37+0100
Error	PHP	Trying to access array offset on value of type int at /usr/local/www/nextcloud/lib/private/Files/Node/Node.php#327		2020-02-09T17:05:37+0100
Error	PHP	Trying to access array offset on value of type int at /usr/local/www/nextcloud/lib/private/Files/Node/Node.php#327		2020-02-09T16:51:46+0100
Error	PHP	Trying to access array offset on value of type int at /usr/local/www/nextcloud/lib/private/Files/Node/Node.php#327		2020-02-09T16:51:46+0100
Error	remote	Error: Call to a member function getChecksum() on bool		2020-02-09T16:22:45+0100
Error	PHP	Undefined index: size at /usr/local/www/nextcloud/lib/private/Files/View.php#1334		2020-02-09T16:22:45+0100
Error	remote	Error: Call to a member function getChecksum() on bool		2020-02-09T15:37:46+0100
Error	PHP	Undefined index: size at /usr/local/www/nextcloud/lib/private/Files/View.php#1334		2020-02-09T15:37:46+0100
Error	PHP	rmdir(/usr/local/www/nextcloud-data/stritecky/uploads/web-file-upload-454c7d9fce9aff1125e1dcf5412549e8-1581259039220): No such file or directory at /usr/local/www/nextcloud/lib/private/Files/Storage/Local.php#120		2020-02-09T15:37:41+0100
Error	PHP	unlink(/usr/local/www/nextcloud-data/stritecky/uploads/web-file-upload-454c7d9fce9aff1125e1dcf5412549e8-1581259039220/10485760): No such file or directory at /usr/local/www/nextcloud/lib/private/Files/Storage/Local.php#116		2020-02-09T15:37:41+0100
Error	remote	Error: Call to a member function getChecksum() on bool		2020-02-09T15:31:48+0100
Error	PHP	Undefined index: size at /usr/local/www/nextcloud/lib/private/Files/View.php#1334		2020-02-09T15:31:48+0100
Error	remote	Error: Call to a member function getChecksum() on bool		2020-02-09T15:29:33+0100
Error	PHP	Undefined index: size at /usr/local/www/nextcloud/lib/private/Files/View.php#1334		2020-02-09T15:29:33+0100
Error	remote	Error: Call to a member function getChecksum() on bool		2020-02-09T15:14:42+0100
Error	PHP	Undefined index: size at /usr/local/www/nextcloud/lib/private/Files/View.php#1334		2020-02-09T15:14:42+0100
Fatal	webdav	Sabre\DAV\Exception: Could not rename part file to final file		2020-02-09T14:57:20+0100
Error	webdav	renaming part file to final file failed $renameOkay: false, $fileExists: false)		2020-02-09T14:57:20+0100
Error	core	unable to rename, source directory is not writable : uploads/web-file-upload-454c7d9fce9aff1125e1dcf5412549e8-1581256630839		2020-02-09T14:57:20+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:50:38+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:50:38+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:50:38+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:50:38+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:50:38+0100
Error	remote	Error: Call to a member function getChecksum() on bool		2020-02-09T14:50:29+0100
Error	PHP	Undefined index: size at /usr/local/www/nextcloud/lib/private/Files/View.php#1334		2020-02-09T14:50:29+0100
Error	PHP	Trying to access array offset on value of type int at /usr/local/www/nextcloud/lib/private/Files/Node/Node.php#327		2020-02-09T14:48:27+0100
Error	PHP	Trying to access array offset on value of type int at /usr/local/www/nextcloud/lib/private/Files/Node/Node.php#327		2020-02-09T14:48:21+0100
Error	PHP	Trying to access array offset on value of type int at /usr/local/www/nextcloud/lib/private/Files/Node/Node.php#327		2020-02-09T14:48:21+0100
Error	PHP	stat(): stat failed for /usr/local/www/nextcloud-data/appdata_oclkcabvvsa8/preview/13/500-500-max.png at /usr/local/www/nextcloud/lib/private/Files/Storage/Local.php#144		2020-02-09T14:48:13+0100
Error	PHP	OC\HintException: Memcache \OC\Memcache\Redis not available for local cache at /usr/local/www/nextcloud/lib/private/Memcache/Factory.php#98		2020-02-09T14:47:01+0100
Error	PHP	stat(): stat failed for /usr/local/www/nextcloud-data/appdata_oclkcabvvsa8/preview/13/500-500-max.png at /usr/local/www/nextcloud/lib/private/Files/Storage/Local.php#144		2020-02-09T14:42:32+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:28+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:28+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:28+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:28+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:28+0100
Error	PHP	stat(): stat failed for /usr/local/www/nextcloud-data/appdata_oclkcabvvsa8/preview/13/500-500-max.png at /usr/local/www/nextcloud/lib/private/Files/Storage/Local.php#144		2020-02-09T14:42:14+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:11+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:10+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:10+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:10+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:10+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:10+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:10+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:10+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:10+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:10+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:10+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:10+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100
Error	PHP	Trying to access array offset on value of type null at /usr/local/www/nextcloud/3rdparty/leafo/scssphp/src/Compiler.php#5230		2020-02-09T14:42:09+0100

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 
  'passwordsalt' => 
  'secret' => 
  'trusted_domains' => 
  array (
    0 => 'cloud.********.cz',
  ),
  'datadirectory' => '/***/****/****/nextcloud-data',
  'dbtype' => 'mysql',
  'version' => '18.0.0.10',
  'overwrite.cli.url' => 'https://cloud.******.cz',
  'dbname' => '******',
  'dbhost' => '********',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '*****',
  'dbpassword' => '*******',
  'installed' => true,
  
  'memcache.distributed' => '\OC\Memcache\Redis',
'memcache.local' => '\OC\Memcache\Redis',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
     'host' => 'localhost',
     'port' => 6379,
     ),
);

The output of your Apache/nginx/system log in /var/log/____:

no log with date with this issue

EDIT: Updated NC to version 18.0.1 -problem persist

Nginx settings for nextcloud:

upstream php-handler {
    #server 127.0.0.1:9000;
    server unix:/var/run/php74-fpm.sock;
}

server {
	listen 80;
	server_name  cloud.******.cz;
	return 301 https://$server_name$request_uri;
	}
	
	
        server {
		
    listen 443 ssl http2;
    server_name cloud.*****.cz;

# SSL config
 ssl_certificate *
 ssl_certificate_key *
 ssl_session_cache shared:SSL:20m;
 ssl_session_timeout 180m;
 
 #ssl_dhparam *
 # intermediate configuration
 ssl_protocols TLSv1.2 TLSv1.3;
 ssl_ciphers ECDH+AESGCM:ECDH+AES256:ECDH+AES128:DHE+AES128:!ADH:!AECDH:!MD5;
 ssl_prefer_server_ciphers on;
 
  # OCSP stapling
    ssl_stapling on;
    ssl_stapling_verify on;
	
	# verify chain of trust of OCSP response using Root CA and Intermediate certs
    ssl_trusted_certificate *

	# replace with the IP address of your resolver
    resolver 1.1.1.1 1.0.0.1;

    # Add headers to serve security related headers
    add_header X-Content-Type-Options nosniff;
    add_header X-XSS-Protection "1; mode=block";
    add_header X-Robots-Tag none;
    add_header X-Download-Options noopen;
    add_header X-Permitted-Cross-Domain-Policies none;
    add_header Referrer-Policy no-referrer;
	add_header Strict-Transport-Security "max-age=63072000" always;
	
	# Remove X-Powered-By, which is an information leak
    fastcgi_hide_header X-Powered-By;

    #I found this header is needed on Ubuntu, but not on Arch Linux. 
    add_header X-Frame-Options "SAMEORIGIN";

    # Path to the root of your installation
    root *

    access_log /var/log/nginx/nextcloud.access;
    error_log /var/log/nginx/nextcloud.error;

    location = /robots.txt {
        allow all;
        log_not_found off;
        access_log off;
    }

    # The following 2 rules are only needed for the user_webfinger app.
    # Uncomment it if you're planning to use this app.
    #rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
    #rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json
    # last;

    location = /.well-known/carddav {
      return 301 $scheme://$host:$server_port/remote.php/dav;
    }
    location = /.well-known/caldav {
      return 301 $scheme://$host:$server_port/remote.php/dav;
    }

    location ~ /.well-known/acme-challenge {
      allow all;
    }

    # set max upload size
    client_max_body_size 10G;
    fastcgi_buffers 64 4K;


    # Enable gzip but do not remove ETag headers
    gzip on;
    gzip_vary on;
	gzip_http_version 1.1;
    gzip_comp_level 4;
    gzip_min_length 256;
    gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
    gzip_types application/atom+xml
	application/javascript
	application/json
	application/ld+json
	application/manifest+json
	application/rss+xml
	application/vnd.geo+json
	application/vnd.ms-fontobject
	application/x-font-ttf
	application/x-web-app-manifest+json
	application/xhtml+xml
	application/xml
	font/opentype
	image/bmp
	image/svg+xml
	image/x-icon
	text/cache-manifest
	text/javascript
	text/css
	text/plain
	text/vcard
	text/vnd.rim.location.xloc
	text/vtt text/x-component
	text/x-cross-domain-policy;

    # Uncomment if your server is build with the ngx_pagespeed module
    # This module is currently not supported.
    #pagespeed off;

    error_page 403 /core/templates/403.php;
    error_page 404 /core/templates/404.php;

    location / {
        rewrite ^ /index.php;
    }

    location ~ ^\/(?:build|tests|config|lib|3rdparty|templates|data)\/ {
        deny all;
    }
    location ~ ^\/(?:\.|autotest|occ|issue|indie|db_|console) {
        deny all;
    }

    location ~ ^\/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+)\.php(?:$|\/) {
        fastcgi_split_path_info ^(.+?\.php)(\/.*|)$;
        set $path_info $fastcgi_path_info;
        try_files $fastcgi_script_name =404;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $path_info;
        fastcgi_param HTTPS on;
        # Avoid sending the security headers twice
        fastcgi_param modHeadersAvailable true;
        # Enable pretty urls
        fastcgi_param front_controller_active true;
        fastcgi_pass php-handler;
        fastcgi_intercept_errors on;
        fastcgi_request_buffering off;
		
		expires 365d;
    }

    location ~ ^\/(?:updater|oc[ms]-provider)(?:$|\/) {
        try_files $uri/ =404;
        index index.php;
    }

    # Adding the cache control header for js, css and map files
    # Make sure it is BELOW the PHP block
    location ~ \.(?:css|js|woff2?|svg|gif|map)$ {
        try_files $uri /index.php$request_uri;
        add_header Cache-Control "public, max-age=15778463";
        # Add headers to serve security related headers (It is intended to
        # have those duplicated to the ones above)
        # Before enabling Strict-Transport-Security headers please read into
        # this topic first.
        #add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;" always;
        #
        # WARNING: Only add the preload option once you read about
        # the consequences in https://hstspreload.org/. This option
        # will add the domain to a hardcoded list that is shipped
        # in all major browsers and getting removed from this list
        # could take several months.
        add_header Referrer-Policy "no-referrer" always;
        add_header X-Content-Type-Options "nosniff" always;
        add_header X-Download-Options "noopen" always;
        add_header X-Frame-Options "SAMEORIGIN" always;
        add_header X-Permitted-Cross-Domain-Policies "none" always;
        add_header X-Robots-Tag "none" always;
        add_header X-XSS-Protection "1; mode=block" always;

        # Optional: Don't log access to assets
        access_log off;
		expires 365d;
    }

    location ~ \.(?:png|html|ttf|ico|jpg|jpeg|bcmap)$ {
        try_files $uri /index.php$request_uri;
        # Optional: Don't log access to other assets
        access_log off;
		expires 365d;
    }
	
	
}

Nginx reverse proxy conf:


server {

		listen 80;
        server_name  cloud.*****.cz;
		return 301 https://$server_name$request_uri;
 
}


	server {

	listen 443 ssl http2;
	
	server_name cloud.*****.cz;
	
 # SSL config
 ssl_certificate *
 ssl_certificate_key *
 ssl_session_cache shared:SSL:20m;
 ssl_session_timeout 180m;
 
 ssl_dhparam *
 # intermediate configuration
 ssl_protocols TLSv1.2 TLSv1.3;
 ssl_ciphers ECDH+AESGCM:ECDH+AES256:ECDH+AES128:DHE+AES128:!ADH:!AECDH:!MD5;
 ssl_prefer_server_ciphers on;
 
  # OCSP stapling
    ssl_stapling on;
    ssl_stapling_verify on;
	
	# verify chain of trust of OCSP response using Root CA and Intermediate certs
    ssl_trusted_certificate *

	# replace with the IP address of your resolver
    resolver 1.1.1.1 1.0.0.1;
	
  set $upstream 192.168.2.8;
 
 
 # Enable gzip but do not remove ETag headers
    gzip on;
    gzip_vary on;
	gzip_http_version 1.1;
    gzip_comp_level 4;
    gzip_min_length 256;
    gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
    gzip_types application/atom+xml
	application/javascript
	application/json
	application/ld+json
	application/manifest+json
	application/rss+xml
	application/vnd.geo+json
	application/vnd.ms-fontobject
	application/x-font-ttf
	application/x-web-app-manifest+json
	application/xhtml+xml
	application/xml
	font/opentype
	image/bmp
	image/svg+xml
	image/x-icon
	text/cache-manifest
	text/javascript
	text/css
	text/plain
	text/vcard
	text/vnd.rim.location.xloc
	text/vtt text/x-component
	text/x-cross-domain-policy;
	
	
client_max_body_size    10G;
client_body_buffer_size 128k;

 location / {
 
proxy_pass https://$upstream;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header        Host            $host;
proxy_set_header        X-Real-IP       $remote_addr;
proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_max_temp_file_size    0;
proxy_connect_timeout      900;
proxy_send_timeout         900;
proxy_read_timeout         900;
proxy_buffers              4 32k;
proxy_buffer_size          4k;
proxy_busy_buffers_size    64k;
proxy_temp_file_write_size 64k;
proxy_intercept_errors     on;
proxy_redirect 			   off;
expires 365d;


 }

}

I am begging somebody if you can help me, I have already suffered for 3 days solving this up and still without success.

BUMP number one

i searched the forum (:mag: in upper right corner) and found several hits on 10mb

maybe this one would help?

So just in case what I have tried to raise chances for fix:

Disabling HTTP2 - does not work
Increasing upload size in php - does not work
Disabling nginx reverse proxy and upload on LAN - does not work
Editing config.php ‘owerwriteprotocol’ = https - does not work
same as above for owerwritecli
Completely disabling Cloudflare proxy - does not work
Disabling gzip - does not work
Disabling few security headers - does not work
Tried desktop client for upload - does not work, same stucking
I dont have enough knowledge to tune up php.ini or www.conf for php-fpm maybe some hints on this that will work ?

Hi

Try this:
sudo -u www-data php occ config:app:set files max_chunk_size --value 0 (0 - disable, or new chunk size)

6 Likes

HOLY WEAK man ! You are a lifesaver. Thank you for hint. Now its working without that devil chunking shitty function.

This for you, you deserve it !

give-that-man-a-cookie

1 Like

what size did you alloted?

Tried 0 and that worked…

Disabling chunking isn’t a real solution, just a workaround.

If you decide to disable chunking, you also need to make sure that your webserver / php config are up for the task. If it’s not, uploads will fail hard.

Just saying…

1 Like

I agree. but for two weeks now I’m not experiencing problems. via WebUI and clients. When using s3 response time is very slow. Imagine - Chunks are copied to a temporary folder on S3, then there they are transferred to the right place. Only after this, the client is informed that the file is downloaded and sometimes it takes a very long time even at a speed between the client and server up to 10Gbps and between the server and S3 ~ 3Gbps. I configured chunks caching through config.php - it really helped. Chunks were collected on the server on nvme, and then got into the right folder on S3. But if many clients will upload files, then there will simply not be enough nvme space on VPS. Therefore, I tried to disable chunks completely. Given the features of S3, so far this is the best option that I have found for myself. For others, apparently this also works. At least, I have not seen other solutions to the problem of slow loading over the past half year. This problem appeared with 16.0.(x) ver.

1 Like

Sorry i meant to add it did not make any difference for me unfortunately, as have been looking for a solution and this looked like the best bet.

What is the default value so that i can return to it (should have thought of this before of course)?

I tried disabling the chunk size limit and I can get upto 70MB/s with internal IP (192.168.x.x)
but when I try to upload the same file(10GB) via domain it will just fail for no reason

{“reqId”:“M3HmNkPzIZN4AUhW4KrQ”,“level”:4,“time”:“2020-07-14T13:33:24+00:00”,“remoteAddr”:“192.168.x.x”,“user”:“admin”,“app”:“webdav”,“method”:“PUT”,“url”:“/remote.php/webdav/2020.04.16-21.20.mp4”,“message”:{“Exception”:“Sabre\DAV\Exception\BadRequest”,“Message”:“Expected filesize of 31985626189 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 342581248 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”:“/usr/local/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php”,“line”:154,“function”:“put”,“class”:“OCA\DAV\Connector\Sabre\File”,“type”:“->”},{“file”:“/usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:1104,“function”:“createFile”,“class”:“OCA\DAV\Connector\Sabre\Directory”,“type”:“->”},{“file”:“/usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php”,“line”:527,“function”:“createFile”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/usr/local/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php”,“line”:89,“function”:“httpPut”,“class”:“Sabre\DAV\CorePlugin”,“type”:“->”},{“file”:“/usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:474,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:251,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:319,“function”:“start”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/usr/local/www/nextcloud/apps/dav/appinfo/v1/webdav.php”,“line”:82,“function”:“exec”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/usr/local/www/nextcloud/remote.php”,“line”:167,“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”:238,“CustomMessage”:“–”},“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“19.0.0.12”,“id”:“5f0dbda9cd8a3”}

For uploading large files, there is a app called flowupload.
It handles chunking very well, but it is not compatible with S3 and most external storages.