413 File too large

I use NextcloudPI and have the problem that when I upload data with the Nextcloud Desktop app, and these files are larger than approx. 250MB, I get the message ā€œ413 - File to largeā€, although I can upload 3GB+ data via the browser.
I have already tried to change the Apache and php configs, but unfortunately this has not helped.
I have tried YT tutorials and read through old forum posts, but unfortunately they didnā€™t work eitherā€¦

I ask for your helpā€¦

Thank you and best regards, red

I have:

  • php 8.3
  • Nextcloud Hub 9 (30.0.2)
  • NCP 1.55.3
  • apach2

Have you tried this?

I broke my NC instanceā€¦
Nothing worksā€¦

I havenā€™t seen the warning in ā€œnc-nextcloudā€ā€¦ I unplugged the Server immediately afterā€¦ Is there a way so save my instance and my data?

nvm, I downloaded the data folder and reinstalled NC.

that also does not work.
Does it have something to do with cloudflare?

That is ā€¦ concerning ā€¦ new information !

You mean to say that you donā€™t use cloudflare, or that you do use cloudflare but did not mention while having vague connection problems?

Although you run NCPi, the documentation on Cloudflare in the NC AiO readme my give you some pointers.

Depending on your use case, infra and goals, you may consider exchanging Cloudflare for a direct connection or renting a cheap VPS to run a VPN.

My domain (cloud.avocloud.net) is managed via cloudflare. To protect my IP (as this is my private IP) I have packed it behind cloudflare to be somewhat protected from attacks.
Hence my question whether this message (413 file to large) could have anything to do with cloudflare.

But since I just reset my server, I would have to change everything again anyway, and I donā€™t know what exactly. I just changed everything I found. (Via forums, YT and ChatGPT)

ā€¦ and the Nexctloud documentation of course, such as the link I posted that spills the beans on error 413 as you might have read.

I did not look up Cloudflare pricing, but seeing the drawbacks I wouldnā€™t recommend it to a friend if it were free.

A low priced VPS can easily run a VPN with wireguard (and then some), and costs less than a euro per month.

1 Like

image

I have now deactivated the Cloudflare proxy (dns only), unfortunately I still get the messageā€¦

Youā€™re right, cloudflare really sucks.
I think your suggestion with your own v-server with a proxy on it is a good ideaā€¦

1 Like

I have now deactivated the cloudflare proxy. So I set it to ā€œDNS onlyā€. I still get the message.
Either Iā€™m just too stupid to understand what Iā€™m doing wrong, or I just donā€™t know what I am suppose to doā€¦

image

Thatā€™s annoying :frowning:

Maybe your phone still caches a connection, and Cloudflare still offers it for lagging clients?

Perhaps the server log can show where your connection is coming from; by matching the IP of the request with either your phone or nslookup to see who owns that IP, you might make out how connections are running.

If it were an option, Iā€™d try rebooting involved devices and perhaps find a client device that I had not used for testing before.

Its strangeā€¦ The website (dashboard) is loading on the PC but not on my phone. I cant even login into the nextcloud app on my phone

That seems to imply that

  • Nextcloud itself is OK
  • Your PC can find a way through whichever network to your Nextcloud
  • Your phone uses another network or another DNS for connecting

Without doing some research you wonā€™t know what the problem is, and if you did do some research, without writing it down readers of the forum canā€™t help you.

I have nextcoud behind an ā€œNginx Proxy managerā€. This does not work on my iPhone.
On my iPhone it looks like this:

My advanced section in the Proxy:

proxy_cookie_path / /;
proxy_set_header Cookie $http_cookie;
proxy_hide_header Upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;


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

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

But, this is not the same problem as the 413-problem at the start of the conversation, or is it?

Its something differentā€¦

I got that nagging feeling as well :wink:

Iphone is totally not my area of expertise.

Someone else may come along and chime in, but you could also consider opening a new thread in the ā€œDesktop and mobile clientsā€ subforum, with iOS as tag. I well see that this is in a browser, but still I suspect more Iphone users there.

Chose a suitable thread title of course; wondering which ā€˜itā€™ you actually try to show with the screenshot, it occured to me that you may be trying to log in to your server with the Nextcloud app. It could be something totally different of course, but when I connect the Nextcloud app on Android, it goes like:

  • Add account in Nextcloud app
  • Upon saving, a browser window is opened
  • In the browser, Iā€™m invited to log in, to grant the Nextcloud app access to my server
  • After sign in, thereā€™s a message ā€œPlease close this browser tabā€
  • Now the app is connected

If the above is totally unrelated to your actions, just ignore it :wink: