Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Having Problems with WAF with Nextcloud behind it. Error: "413 Request Entity too large"

Hi,

 

I am using a Nextcloud behind a XG with WAF enabled. This worked until version 18 of XG. Now I am getting 413 Request Enitity too large Errors as soon as I am enabling "Common threat filter", Antivirus or Cookie Signing in the Protection Policy.

The WebServerProtection Log's in XG are showing the requests as allowed, but with HTTP Status Code 413. In the Logs of the server, there's nothing found.

Could someone advise me how to fix this?

 

P.S. After some research, I've read in the Nextcloud Forums that if a NGINX Reverseproxy is used, the configuration key "client_max_body_size" has to be set to a higher value.



This thread was automatically locked due to age.
Parents Reply Children
  • Hi,

     

     unfortunately, the Uploads are still failing.

    When uploading big Files ( >100MB), the Upload stucks in the last few Bytes, and nothing happens for a few Seconds. Then Nextcloud says: "Upload failed due to an unknown Error.".

    In the WAF log is a 408 Timeout error Logged, with only the source IP, although in the logs of the Server, there isn't this error

    Further, after turning on the Debug Logging of the Proxy, there are some of this entries:

    "[crit] Memory allocation failed, aborting process.", I think there is some bigger Problem with WAF in Version 18.

    My Appliance has 6 GB of RAM and 256 GB SSD, so there should not be a Problem with too less disk space or RAM (The memory Consumption is around 30 - 40 %).

    Again, uploading never were a problem in Version 17.5.

     I would be glad, if you could take a look at this Problem.

    _______________________________________________

    Sophos XG User

  • Hi,

     

    any news or solutions on this topic?

    _______________________________________________

    Sophos XG User

  • Hi Dwayne,

    There are long term plans to implement a CLI option to change these values, however no information is yet available regarding a version or date.

    Apologies for the inconvenience caused.

    Regards,


    Florentino
    Director, Global Community & Digital Support

    Are you a Sophos Partner? | Product Documentation@SophosSupport | Sign up for SMS Alerts
    If a post solves your question, please use the 'Verify Answer' button.
    The Award-winning Home of Sophos Support Videos! - Visit Sophos Techvids
  • Hi,

     

    thank you for your answer, unfortunately, the uploads are not working after changing the values, furthermore the proxy is logging critical Errors with the Memoryallocation.

    The problem now is to fix this, and get the Uploads to work.

     

    Regards

    _______________________________________________

    Sophos XG User

  • Any News on this?

    Without having this fixed, WAF is pretty useless for me.

    _______________________________________________

    Sophos XG User