Error 2005 when uploading bigger files

Hi everybody,
I’m running the latest stable Nextcloud in an LXC container on Proxmox. It is accessible from the outside via NGINX Proxy manager which runs in a separate LXC on the same Proxmox host.

I’m experiencing problems when I try to upload bigger files (the smallest one has about 330 MB, the bigger ones stay below 1GB) via the Nextcloud client for macOS (VFS, client 3.17.2, macOS 15.6.1).

The files do not get uploaded to my Nextcloud and state an error 2005:

The log file of the client states:

Could not upload item with filename: movie.mp4,
received error: -9994
chunk_file_null
received ocId: empty

Uploading the same file via the web interface works without any problems.

What I have tried so far:

Making sure my php.ini contains the following values:

output_buffering = Off 
max_execution_time = 3600   
max_input_time = 3600
memory_limit = 4096M
post_max_size = 20G 
upload_max_filesize = 20G
max_file_uploads = 20

I added the following configuration to NGINX Proxy Manager (under the “Advanced” tab):

client_max_body_size 0;
proxy_buffering off;
proxy_max_temp_file_size 0;
proxy_connect_timeout 3600s;
proxy_send_timeout 3600s;
proxy_read_timeout 3600s;
client_body_timeout 3600s;
send_timeout 3600s;

I added the following values to /var/www/nextcloud/.user.ini

upload_max_filesize = 20G  
post_max_size = 20G         
max_input_time = 3600          
max_execution_time = 3600   
memory_limit = 4G   
output_buffering = 0                                                                                                                                                                           

Of course I rebooted the machine afterwards.
Yet the problem persists.

Do you have any ideas or suggestions?
Thanks in advance!

Any server-side log entries from Nextcloud + your reverse proxy while reproducing the problem?

Are you using anything like mod_security, CrowdSec, or Cloudflare?

Is chunk size customized or defaults on both server and client side?

Thanks for your reply.
So… the problem disappeared and I have no idea why, which is great and frustrating at the same time.

To answer some of your questions:

  • no entries in the Nextcloud logs
  • chunk size customised to 50MB on client and server
  • yes, I do use CrowdSec