Hi guys - not sure if this is entirely the correct sub-forum but here goes. 
I'm ripping my hair out over a NextCloud issue that I *think* is related to my nginx reverse proxy setup, but not at all sure. (NextCloud is a fork of OwnCloud if you guys are familiar).
Problem Outline
The general issue is, I can only upload 10MB to NextCloud before it just stops. It may trickle a few kb through, but I'm not sure it even does that. If I disable proxy_buffering, I can't even upload that, so my assumption is the buffer is written, but then something fails when writing the the NextCloud instance in the VM.
I think the NextCloud instance itself works, because if I access it directly via the LAN IP (10.0.0.6), it works fine. I can upload files at max line speed and everything is fine. Via HTTPS not at all fine...
System Config, Short Version
- I've set up a NextCloud instance on a server at my home office, using the official Linux VM image. The VM is running in VMWare Pro as a shared VM and it seems to work fine. It has a fixed IP on the local network.
- I'm running latest RC of NextCloud.
- I've set up nginx as a general reverse proxy to access various services on the server, among these NextCloud. The traffic is sent to the fixed IP with "proxy_pass https://10.0.0.6;".
- I'm running nginx 1.19.6
- I've also set up a certificate for SSL for the subdomain NextCloud is running on. (nextcloud.MYDOMAIN.com). These seem to check out fine.
- Other services running via nginx or proxied by it seem to work fine.
- Everywhere I can set a client body size, it has been set to a generous/overkill value (10000m), and timeouts are generally above 3600 seconds. Even files that are 20-30MB will fail. This is both in NextCloud Apache config and nginx config on the proxy.
- The server hardware is plenty sufficient.
- The internet speed is 500/500.
Logs
nginx has some WARNs: "a client request body is buffered to a temporary file C
Webserver\nginx/temp/client_body_temp/0000000800," repeatedly.
NextCloud shows: "Sabre\DAV\Exception\BadRequest: Expected filesize of 10000000 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 1171456 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side."
NextCloud also shows: "Error: fread(): file created in the system's temporary directory at /var/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php#91"
There are a lot of suggestions on fixing this, but all I've tried have failed. Mostly they dealt with the client body size being low, or the connection timing out mid-transfer. That is not the case here, I think.
Any help would be much appreciated. I can upload appropriate logs if necessary.
I'm ripping my hair out over a NextCloud issue that I *think* is related to my nginx reverse proxy setup, but not at all sure. (NextCloud is a fork of OwnCloud if you guys are familiar).
Problem Outline
The general issue is, I can only upload 10MB to NextCloud before it just stops. It may trickle a few kb through, but I'm not sure it even does that. If I disable proxy_buffering, I can't even upload that, so my assumption is the buffer is written, but then something fails when writing the the NextCloud instance in the VM.
I think the NextCloud instance itself works, because if I access it directly via the LAN IP (10.0.0.6), it works fine. I can upload files at max line speed and everything is fine. Via HTTPS not at all fine...
System Config, Short Version
- I've set up a NextCloud instance on a server at my home office, using the official Linux VM image. The VM is running in VMWare Pro as a shared VM and it seems to work fine. It has a fixed IP on the local network.
- I'm running latest RC of NextCloud.
- I've set up nginx as a general reverse proxy to access various services on the server, among these NextCloud. The traffic is sent to the fixed IP with "proxy_pass https://10.0.0.6;".
- I'm running nginx 1.19.6
- I've also set up a certificate for SSL for the subdomain NextCloud is running on. (nextcloud.MYDOMAIN.com). These seem to check out fine.
- Other services running via nginx or proxied by it seem to work fine.
- Everywhere I can set a client body size, it has been set to a generous/overkill value (10000m), and timeouts are generally above 3600 seconds. Even files that are 20-30MB will fail. This is both in NextCloud Apache config and nginx config on the proxy.
- The server hardware is plenty sufficient.
- The internet speed is 500/500.
Logs
nginx has some WARNs: "a client request body is buffered to a temporary file C
Webserver\nginx/temp/client_body_temp/0000000800," repeatedly.NextCloud shows: "Sabre\DAV\Exception\BadRequest: Expected filesize of 10000000 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 1171456 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side."
NextCloud also shows: "Error: fread(): file created in the system's temporary directory at /var/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php#91"
There are a lot of suggestions on fixing this, but all I've tried have failed. Mostly they dealt with the client body size being low, or the connection timing out mid-transfer. That is not the case here, I think.
Any help would be much appreciated. I can upload appropriate logs if necessary.