Nextcloud Group folder limits Upload Size of Files as soon as the Group Folder has set a Storage-Quota other than "Unlimited"

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 30.0.5
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 22.04-Standard as Proxmox CT
  • Web server and version (e.g, Apache 2.4.25):
    • Apache (latest)
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • none
  • PHP version (e.g, 8.3):
    • 8.1
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • from initial Setup on
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Setup via Community-Web Installer
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

I already have several Nextcloud instances running for different use cases (including for different people etc.)
So far I have not had such an error.

Yesterday I set up a brand new instance of Nextcloud. As always, I used the standard configuration (installation of the web server, PHP, … + basic settings such as “max_upload_size” etc. increased).
However, when testing the instance (before I released it for daily use) I encountered a very strange error.

The server itself is running normally and there are no recurring errors etc. in the error log.

The configuration is as follows:
User A
User B
User C
Standard admin user

Group 1
Group 2
Group 3
Standard Admin Group

User A is a member of all groups.
User B in group 1 and 2
User C is only in group 1

I then set up a group folder using the “Groupfolders” app.
Initial configuration:
Group 1 = read rights
Group 2 = read rights
Group 3 = All rights
Advanced permissions activated.
Group 1 also has read-only rights in all subfolders
Group 2 has all rights in some sub-folders
Group 3 has all rights in all sub-folders

No quota (i.e. unlimited) was initially set for the entire group folder.

With this setup I also tested the group folder at the beginning → Everything worked as it should.

A few hours later, the person I set up the instance for asked me to limit the maximum available capacity of the folder to 512 GB for the group folder.
I made this setting under Administrative Settings → Group Folders → [Corresponding Share] → Quota → 512GB.

After the setting was made, the person contacted me again an hour later and told me that it was no longer possible to upload files >500-600 MB to the group folder.

After an initial analysis, I was unfortunately unable to find any error.
Among other things, I checked the configuration of the Apache server etc. again
(I had also consulted this forum for this - worked through several pages - I also searched through the official Nextcloud docs once).
After making all the settings in php.ini, apache.conf or nextcloud.conf (my configuration of the VirtualHost in Apache) as well as adjustments in .htaccess and .user.ini etc. etc., the error still occurred.

Yesterday I canceled the error analysis.
Today I started to eliminate as many errors as possible.
I tried the same on other Nextcloud instances etc.

By chance I have now just found the cause of the problem, but I can’t find a solution anywhere.

How to find the problem:
Test files:
Small files (<10MB)
Large files (3-7GB)
Very large files (25GB)

Procedure:
Create a test user
Set storage quota for user (e.g. 10GB)
Log in to the test account (incognito tab)
Upload small files → Works
Uploading large files → Works
Removing the quota
Uploading very large files → Works
–>All files have been uploaded to the user’s private area

Add to group 3 (the group with all rights in all folders of the group folder)
Uploading small files → Works
Uploading large files → Fails
Uploading very large files → Fails
Removing the quota for the group folder
Uploading small files → Works
Uploading large files → Works
Uploading very large files → Works
Adding the quota for the group folder (set to: 512GB)
Uploading small files → Works
Uploading large files → Fails again
Uploading very large files → Fails again
–>Up to this point, all files have been uploaded to the group folder
Uploading small, large and very large files to the user’s private area → still works

For these reasons, I have come to the following conclusion:
On the server side, a configuration error can be ruled out because without restarting the Apache server, the behavior changes depending on whether the quota for the group folder is set or not.
It is also possible for the user to upload large files to his private area at any time.
The behavior only occurs with uploads that have the group folder as the destination and if the quota is set for this group folder at the same time.

Steps to replicate it (hint: details matter!):

(In this step I assume that the server configuration for e.g. maximum upload size, maximum post size and timeout, … are configured accordingly big and that these are also applied.)

For the Upload-Part use a Browser of your choice or use a Web-Dav connection.

  1. Setup Nextcloud
  2. Create a Test user (with or without a quota doesn´t matter)
  3. Install Group-Folder App
  4. Setup a Group Folder (without a quota)
  5. Upload any file with any size to the Group-Folder (works!)
  6. Setup a Quota for the Group Folder (does not matter how large as long as larger as your max. Test-File-Size)
  7. Try to Upload small files (<10 MB) into the Group-Folder (works!)
  8. Try to Upload a big file (e. g. 2 GB) -->Fails!
  9. Disable Quota for the Group Folder
  10. Try again to upload a big file → Now it works again!

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

I could not find any logs that matter. Only Standard Nextcloud log (I have compared the log files of the “error” server with the log files of the other Nextcloud servers i run - it is (except for IP etc.) the identical log without any warnings, errors, …)

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

No errors in Web-Browser Console - even tried to use Firefox, Chrome, Edge, Opera as well as a Web-Dav Connection. Always the same behavior as descriped.

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

I dont use a Reverse Proxy or an Proxy-Related Service. The log of apache is the normal Access-Log …

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "LOCAL_IP_ADDRES",
            "EXTERNAL_DOMAIN"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "30.0.5.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "default_language": "de",
        "default_locale": "de",
        "default_phone_region": "DE",
        "default_timezone": "Europe\/Berlin",
        "defaultapp": "dashboard",
        "knowledgebaseenabled": false,
        "htaccess.RewriteBase": "\/",
        "maintenance_window_start": 1,
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "ssl",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "simpleSignUpLink.shown": false,
        "skeletondirectory": "\/empty_dir",
        "filesystem_check_changes": 1,
        "files.chunked_upload.max_size": 52428800,
        "upload_max_filesize": "100G",
        "post_max_size": "100G",
        "maintenance": false
    }
}

Apps

The output of occ app:list (if possible).

Enabled:

  • activity: 3.0.0
  • admin_audit: 1.20.0
  • app_api: 4.0.5
  • bruteforcesettings: 3.0.0
  • calendar: 5.0.9
  • circles: 30.0.0
  • cloud_federation_api: 1.13.0
  • comments: 1.20.1
  • contacts: 6.1.3
  • contactsinteraction: 1.11.0
  • dashboard: 7.10.0
  • dav: 1.31.1
  • federatedfilesharing: 1.20.0
  • federation: 1.20.0
  • files: 2.2.0
  • files_downloadlimit: 3.0.0
  • files_pdfviewer: 3.0.0
  • files_reminders: 1.3.0
  • files_sharing: 1.22.0
  • files_trashbin: 1.20.1
  • files_versions: 1.23.0
  • groupfolders: 18.0.9
  • logreader: 3.0.0
  • lookup_server_connector: 1.18.0
  • nextcloud_announcements: 2.0.0
  • notifications: 3.0.0
  • oauth2: 1.18.1
  • password_policy: 2.0.0
  • photos: 3.0.2
  • privacy: 2.0.0
  • provisioning_api: 1.20.0
  • recommendations: 3.0.0
  • related_resources: 1.5.0
  • serverinfo: 2.0.0
  • settings: 1.13.0
  • sharebymail: 1.20.0
  • support: 2.0.0
  • survey_client: 2.0.0
  • suspicious_login: 8.0.0
  • systemtags: 1.20.0
  • text: 4.1.0
  • theming: 2.5.0
  • twofactor_backupcodes: 1.19.0
  • updatenotification: 1.20.0
  • user_status: 1.10.0
  • viewer: 3.0.0
  • weather_status: 1.10.0
  • webhook_listeners: 1.1.0-dev
  • workflowengine: 2.12.0
    Disabled:
  • encryption: 2.18.0
  • files_external: 1.22.0
  • firstrunwizard: 3.0.0 (installed 3.0.0)
  • twofactor_nextcloud_notification: 4.0.0
  • twofactor_totp: 12.0.0-dev
  • user_ldap: 1.21.0

Hello there,
i just found your post as i searched for some information on groupfolders.

I have Nextcloud up and running on a Raspberry Pi 4 with additional 4 TB external Storage.
(Just updated NC yesterday)

Because i never have another user to interact to my NC (other than me and my wife) i don’t have enabled any quotas.

Back to the Topic:
I just quickly installed the groupfolder app and created a Dummy Group Folder.

As you wrote i tried the Test Loop.
I can confirm that as long as the Quota is set for the Groupfolder no big files (in my case about 850MB or bigger) can be uploaded.
If i disable the quota of the group folder the upload of the very same file works as wanted.
Also i can confirm that at any time the Upload of big Files work if the Upload directory is any directory except the Groupfolder.

Furthermore i can exclude another error-source:
SSL-Setup.

In my case i just use the NC when i’m home or i connect via VPN to my Home-Network (if i realy should need any data when i’m not home).
So my NC is only a blank HTTP Server (in my case Nginx) with no SSL Settings whatsoever.

Hope i could help any Pro - Nextcloud User to get near a solution.

-Joseph

1 Like

Hello,
First of all, thank you very much for your reply!
It confirms me in the assumption that it is not an error on the side of my server configuration if you can reproduce the same error!

In addition, it is then also impossible that it is a Proxmox- related error, since you are using a RaspPi.

I also set up a test server yesterday after creating the entry. I also set this up as a pure HTTP server without any other additional configuration.
I also had the same problem on this test server.
I forgot to mention the SSL issue in a Edit.

Unfortunately, I have not yet found a solution.
I will now try to install earlier versions of Nextcloud with the test server to possibly find out whether the problem only exists from a certain version onwards.

I hope that this thread will be discovered by a “power Nextcloud user” who will have a solution ready immediately :slight_smile: