Nextcloud 32 bug with group quota

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).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 32.0.1
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian 12
  • Web server and version (e.g, Apache 2.4.25):
    • Apache/2.4.65
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • no
  • PHP version (e.g, 8.3):
    • 8.2.28
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • after upgrade to 32
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • archive
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

Hi, after that I have upgraded to nextcloud 32, the app group quota not working.

when I execute the command to set the quota, there is this error:

root@xxx-nextcloud:/var/www# sudo -u www-data php /var/www/html/occ groupquota:set test 1TB
An unhandled exception has been thrown:
Error: Call to undefined method OC_Helper::computerFileSize() in /var/www/html/apps/groupquota/lib/Command/SetQuota.php:68
Stack trace:
#0 /var/www/html/3rdparty/symfony/console/Command/Command.php(326): OCA\GroupQuota\Command\SetQuota->execute()
#1 /var/www/html/core/Command/Base.php(218): Symfony\Component\Console\Command\Command->run()
#2 /var/www/html/3rdparty/symfony/console/Application.php(1078): OC\Core\Command\Base->run()
#3 /var/www/html/3rdparty/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
#4 /var/www/html/3rdparty/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#5 /var/www/html/lib/private/Console/Application.php(187): Symfony\Component\Console\Application->run()
#6 /var/www/html/console.php(90): OC\Console\Application->run()
#7 /var/www/html/occ(33): require_once(‘…’)

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

  1. sudo -u www-data php /var/www/html/occ groupquota:set test 1TB

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.

An unhandled exception has been thrown:Error: Call to undefined method OC_Helper::computerFileSize() in /var/www/html/apps/groupquota/lib/Command/SetQuota.php:68Stack trace:#0 /var/www/html/3rdparty/symfony/console/Command/Command.php(326): OCA\GroupQuota\Command\SetQuota->execute()#1 /var/www/html/core/Command/Base.php(218): Symfony\Component\Console\Command\Command->run()#2 /var/www/html/3rdparty/symfony/console/Application.php(1078): OC\Core\Command\Base->run()#3 /var/www/html/3rdparty/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()#4 /var/www/html/3rdparty/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()#5 /var/www/html/lib/private/Console/Application.php(187): Symfony\Component\Console\Application->run()#6 /var/www/html/console.php(90): OC\Console\Application->run()#7 /var/www/html/occ(33): require_once(‘…’)PASTE HERE

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.

PASTE

Web server / Reverse Proxy

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

PASTE HERE

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": [
            "itnet.albateck.com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "32.0.1.2",
        "overwrite.cli.url": "https:\/\/itnet.albateck.com",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maintenance_window_start": 0,
        "maintenance": false,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379,
            "timeout": 0
        },
        "filelocking.enabled": "true",
        "versions_retention_obligation": "auto",
        "default_phone_region": "IT",
        "default_language": "it",
        "default_locale": "it_IT",
        "auth.bruteforce.protection.enabled": true,
        "trashbin_retention_obligation": "90, 120",
        "log_type": "file",
        "logfile": "\/var\/log\/apache2\/nextcloud\/nextcloud.log",
        "loglevel": 0,
        "bulkupload.enabled": false,
        "logdateformat": "F d, Y H:i:s",
        "log.condition": {
            "apps": [
                "admin_audit"
            ]
        },
        "logtimezone": "Europe\/Rome",
        "default_timezone": "Europe\/Rome",
        "activity_expire_days": 180,
        "theme": "",
        "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***",
        "mail_smtptimeout": 30,
        "app_install_overwrite": []
    }
}

Apps

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

Enabled:

  • activity: 5.0.0-dev.0
  • admin_audit: 1.22.0
  • assistant: 2.9.0
  • bruteforcesettings: 5.0.0-dev.0
  • calendar: 6.0.2
  • circles: 32.0.0
  • cloud_federation_api: 1.16.0
  • contacts: 8.0.5
  • contactsinteraction: 1.13.1
  • dashboard: 7.12.0
  • dav: 1.34.2
  • federatedfilesharing: 1.22.0
  • files: 2.4.0
  • files_accesscontrol: 3.0.1
  • files_downloadlimit: 5.0.0-dev.0
  • files_lock: 32.0.0
  • files_pdfviewer: 5.0.0-dev.0
  • files_reminders: 1.5.0
  • files_retention: 3.0.0
  • files_sharing: 1.24.0
  • files_trashbin: 1.22.0
  • files_versions: 1.25.0
  • group_default_quota: 0.1.12
  • groupquota: 0.2.3
  • integration_openai: 3.7.1
  • logreader: 5.0.0-dev.0
  • lookup_server_connector: 1.20.0
  • notes: 4.12.3
  • notifications: 5.0.0-dev.0
  • notify_push: 1.2.1
  • oauth2: 1.20.0
  • onlyoffice: 9.11.0
  • password_policy: 4.0.0-dev.0
  • photos: 5.0.0-dev.1
  • privacy: 4.0.0-dev.0
  • profile: 1.1.0
  • provisioning_api: 1.22.0
  • quota_warning: 1.22.0
  • recommendations: 5.0.0-dev.0
  • related_resources: 3.0.0-dev.0
  • serverinfo: 4.0.0-dev.0
  • settings: 1.15.1
  • sharebymail: 1.22.0
  • side_menu: 5.1.3
  • spreed: 22.0.2
  • survey_client: 4.0.0-dev.0
  • suspicious_login: 10.0.0-dev.0
  • systemtags: 1.22.0
  • theming: 2.7.0
  • twofactor_backupcodes: 1.21.0
  • twofactor_totp: 14.0.0
  • updatenotification: 1.22.0
  • user_status: 1.12.0
  • user_usage_report: 3.0.0
  • viewer: 5.0.0-dev.0
  • weather_status: 1.12.0
  • webhook_listeners: 1.3.0
  • workflowengine: 2.14.0
    Disabled:
  • app_api: 32.0.0 (installed 32.0.0)
  • comments: 1.22.0 (installed 1.20.1)
  • encryption: 2.20.0 (installed 2.18.0)
  • federation: 1.22.0 (installed 1.20.0)
  • files_external: 1.24.0
  • files_snapshots: 1.0.13 (installed 1.0.13)
  • firstrunwizard: 5.0.0-dev.0 (installed 3.0.0)
  • nextcloud_announcements: 4.0.0-dev.0 (installed 2.0.0)
  • snappymail: 2.38.2 (installed 2.38.2)
  • support: 4.0.0-dev.0 (installed 2.0.0)
  • text: 6.0.1 (installed 4.1.0)
  • twofactor_nextcloud_notification: 6.0.0-dev.0 (installed 4.0.0)
  • unsplash: 3.1.0 (installed 3.1.0)
  • user_ldap: 1.23.0
  • xwiki: 1.0.0 (installed 1.0.0)

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

Looks like this is already fixed in the code base, but still dependent on a new release of the groupquota app being published (or manually patching yourself via: Fix Call to undefined method OC_Helper::computerFileSize (#82) by madrzejewski · Pull Request #83 · nextcloud/groupquota · GitHub)

Wow… THANK YOU VERY MUCH!!! WORK FINE!!!

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.