Hi RealRancor and others!
Congrats on the New Forum!
Steps to reproduce
- 32G of files in upload queue
- External drive at 1T with 869G remaining.
- Server sits behind a proxy redirect also Nginx.
Expected behaviour
Large files can upload.
Actual behaviour
Since O.C-8, all subsequent versions of O.C have failed to upload large files on my Raspberry Pi running Archlinux ARM. Displays an error in the client(s) as Request entity too large. And in my error log as:
01:29:47 [error] 3074#3074: *780 client intended to send too large body: 10000000 bytes, client: 10.0.1.10, server: www.example.com, request: "PUT /owncloud/remote.php/webdav/<filename>"
What is strange here is the amount of bytes is 10MB.
I have configured everything according to this guide: git. And, all read other historical info I could find pertaining to similar issues Large file issue and the PHP bug. As well as trying 2G as a limit in case of it being a Pi related issue. Now hoping someone has a fresh insight into this issue?
Server configuration
Operating system: Archlinux ARM 4.4.17-2-ARCH
Web server: Nginx 1.10.1 (FPM/FastCGI)
Database: mysql 10.1.16-MariaDB
PHP version: PHP 7.0.9
ownCloud version: 9.1.0-1
Updated from an older ownCloud or fresh install: update from 9.0
ownCloud log: last from April unrelated to this issue Mysql permission error.
Special configuration (external storage, external authentication, reverse proxy, server-side-encryption):
- External storage, with a tmp_dir file configured to it (both in PHP and Nginx), mentioned above.
- reverse proxy yes Nginx with client_max_body_size 16G and buffering configured as specified.
Integrity status for oC9+
No errors have been found.
Configurations redirect proxy:
location /owncloud/ {
proxy_pass https://10.0.1.35;
### Set headers ###
proxy_set_header Accept-Encoding "";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_buffering off;
proxy_request_buffering off;
#add_header Front-End-Https on;
### Options ##
client_max_body_size 16400M;
### Set timeouts ###
proxy_read_timeout 600s;
proxy_send_timeout 600s;
proxy_connect_timeout 600s;
Main Config:
# set max upload size
client_max_body_size 16400M;
fastcgi_buffers 64 4K;
client_body_temp_path /mnt/ext_drive/tmp/;
location ~ \.php(?:$|/) {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param HTTPS on;
fastcgi_param modHeadersAvailable true; #Avoid sending the security headers twice
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
fastcgi_intercept_errors on;
fastcgi_read_timeout 600;
fastcgi_param htaccessWorking true;
}
Best,
/ Ed