Steps to reproduce
1.Login CLI to nextloud server
2. Go to nextcloud and run occ
3. run sudo -u www-data php occ groupquota:set IDEA 2G
Expected behaviour
occ groupquota:set IDEA 2GB should successfully update the group quota to 2 GB.
storage.quota for users in that group should reflect the new 2 GB value.
Actual behaviour
The command crashes with:
root@bulut:/var/www/nextcloud# sudo -u www-data php occ groupquota:set IDEA 2GB An unhandled exception has been thrown: Error: Call to undefined method OC_Helper::computerFileSize() in /var/www/nextcloud/apps/groupquota/lib/Command/SetQuota.php:68 Stack trace: #0 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(326): OCA\GroupQuota\Command\SetQuota->execute() #1 /var/www/nextcloud/core/Command/Base.php(218): Symfony\Component\Console\Command\Command->run() #2 /var/www/nextcloud/3rdparty/symfony/console/Application.php(1078): OC\Core\Command\Base->run() #3 /var/www/nextcloud/3rdparty/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand() #4 /var/www/nextcloud/3rdparty/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun() #5 /var/www/nextcloud/lib/private/Console/Application.php(187): Symfony\Component\Console\Application->run() #6 /var/www/nextcloud/console.php(90): OC\Console\Application->run() #7 /var/www/nextcloud/occ(33): require_once('...')
Server configuration
Web server: Apache/
Database: Maria/SQLite/
PHP version: 8.3
**Nextcloud version:**32.0.2.2
List of activated apps
- activity: 5.0.0-dev.0
- admin_audit: 1.22.0
- admin_notifications: 1.0.2
- announcementcenter: 7.2.2
- apporder: 0.15.0
- comments: 1.22.0
- contactsinteraction: 1.13.1
- dashboard: 7.12.0
- files_accesscontrol: 3.0.2
- files_automatedtagging: 3.0.1
- files_downloadlimit: 5.0.0-dev.0
- files_pdfviewer: 5.0.0-dev.0
- files_reminders: 1.5.0
- files_retention: 3.0.0
- files_sharing: 1.24.1
- files_trashbin: 1.22.0
- files_versions: 1.25.0
- group_default_quota: 0.1.12
- groupfolders: 20.1.4
- groupquota: 0.2.3
- impersonate: 3.0.0
- mail: 5.6.0
- metadata: 0.23.0
- nextcloud_announcements: 4.0.0-dev.0
- notifications: 5.0.0-dev.0
- password_policy: 4.0.0-dev.0
- photos: 5.0.0-dev.1
- privacy: 4.0.0-dev.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
- sharebymail: 1.22.0
- side_menu: 5.1.3
- support: 4.0.0-dev.0
- survey_client: 4.0.0-dev.0
- systemtags: 1.22.0
- text: 6.0.1
- theming_customcss: 1.19.0
- updatenotification: 1.22.0
- user_ldap: 1.23.0
- user_retention: 1.15.0
- webhook_listeners: 1.3.0
- workflow_script: 3.0.0
Nextcloud configuration
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"bulut.yasar.com.tr",
"172.17.1.53",
"127.0.0.1",
"localhost",
"yasar.com.tr",
"10.65.8.100"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "32.0.2.2",
"overwrite.cli.url": "https:\/\/bulut.yasar.com.tr",
"overwrite.host": "bulut.yasar.com.tr",
"overwrite.protocol": "https",
"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_phone_region": "TR",
"default_language": "tr",
"default_locale": "tr_TR",
"force_locale": "tr_TR",
"force_language": false,
"available_languages": [
"tr",
"en"
],
"maintenance": false,
"maintenance_window_start": 1,
"updater.release.channel": "stable",
"memcache.local": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"filelocking.enabled": "true",
"filesystem_check_changes": 1,
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 6379,
"timeout": 0
},
"htaccess.RewriteBase": "\/",
"ldapIgnoreNamingRules": false,
"ldapUserCleanupInterval": 0,
"ldapBackgroundSyncInterval": 60,
"remember_login_cookie_lifetime": 86400,
"session_lifetime": 7200,
"session_keepalive": true,
"auto_logout": true,
"auth.webauthn.enabled": false,
"trashbin_retention_obligation": "auto,7",
"enable_avatars": false,
"enable_previews": true,
"profile.enabled": false,
"allow_user_to_change_display_name": false,
"allow_user_to_change_mail_address": false,
"theme": "",
"lost_password_link": "disabled",
"defaultapp": "files",
"knowledgebaseenabled": false,
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "smtp",
"mail_sendmailmode": "smtp",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "25",
"log_type": "file",
"syslog_tag": "nextcloud",
"logfile": "\/data\/nextcloud.log",
"loglevel": 2,
"logdateformat": "d.m.Y, H:i:s",
"logtimezone": "Europe\/Istanbul",
"log.condition": {
"apps": [
"admin_audit",
"files",
"dav",
"core",
"encryption"
]
},
"log_type_audit": "syslog",
"syslog_tag_audit": "nextcloud",
"logfile_audit": "",
"app_install_overwrite": [
"group_default_quota",
"impersonate",
"apporder",
"webhooks",
"adwelcomemail",
"admin_notifications"
],
"connectivity_check_domains": [
"www.startpage.com",
"www.eff.org"
],
"activity_webhook": "https:\/\/bulut.yasar.com.tr\/nextcloud-webhook.php",
"allow_local_remote_servers": true,
"appstoreenabled": true,
"skeletondirectory": "\/var\/www\/custom_skeleton",
"templatedirectory": "",
"ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
"impersonate_include_groups": [],
"blacklisted_files": [],
"files.chunked_upload.max_size": 20971520,
"auth.bruteforce.protection.enabled": false
}
}
Browser
Browser name:/Chrome
Operating system: Windows
Steps to reproduce
1.Login CLI to nextloud server
2. Go to nextcloud and run occ
3. run
sudo -u www-data php occ groupquota:set IDEA 2GExpected behaviour
occ groupquota:set IDEA 2GB should successfully update the group quota to 2 GB.
storage.quota for users in that group should reflect the new 2 GB value.
Actual behaviour
The command crashes with:
root@bulut:/var/www/nextcloud# sudo -u www-data php occ groupquota:set IDEA 2GB An unhandled exception has been thrown: Error: Call to undefined method OC_Helper::computerFileSize() in /var/www/nextcloud/apps/groupquota/lib/Command/SetQuota.php:68 Stack trace: #0 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(326): OCA\GroupQuota\Command\SetQuota->execute() #1 /var/www/nextcloud/core/Command/Base.php(218): Symfony\Component\Console\Command\Command->run() #2 /var/www/nextcloud/3rdparty/symfony/console/Application.php(1078): OC\Core\Command\Base->run() #3 /var/www/nextcloud/3rdparty/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand() #4 /var/www/nextcloud/3rdparty/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun() #5 /var/www/nextcloud/lib/private/Console/Application.php(187): Symfony\Component\Console\Application->run() #6 /var/www/nextcloud/console.php(90): OC\Console\Application->run() #7 /var/www/nextcloud/occ(33): require_once('...')Server configuration
Web server: Apache/
Database: Maria/SQLite/
PHP version: 8.3
**Nextcloud version:**32.0.2.2
List of activated apps
- activity: 5.0.0-dev.0 - admin_audit: 1.22.0 - admin_notifications: 1.0.2 - announcementcenter: 7.2.2 - apporder: 0.15.0 - comments: 1.22.0 - contactsinteraction: 1.13.1 - dashboard: 7.12.0 - files_accesscontrol: 3.0.2 - files_automatedtagging: 3.0.1 - files_downloadlimit: 5.0.0-dev.0 - files_pdfviewer: 5.0.0-dev.0 - files_reminders: 1.5.0 - files_retention: 3.0.0 - files_sharing: 1.24.1 - files_trashbin: 1.22.0 - files_versions: 1.25.0 - group_default_quota: 0.1.12 - groupfolders: 20.1.4 - groupquota: 0.2.3 - impersonate: 3.0.0 - mail: 5.6.0 - metadata: 0.23.0 - nextcloud_announcements: 4.0.0-dev.0 - notifications: 5.0.0-dev.0 - password_policy: 4.0.0-dev.0 - photos: 5.0.0-dev.1 - privacy: 4.0.0-dev.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 - sharebymail: 1.22.0 - side_menu: 5.1.3 - support: 4.0.0-dev.0 - survey_client: 4.0.0-dev.0 - systemtags: 1.22.0 - text: 6.0.1 - theming_customcss: 1.19.0 - updatenotification: 1.22.0 - user_ldap: 1.23.0 - user_retention: 1.15.0 - webhook_listeners: 1.3.0 - workflow_script: 3.0.0Nextcloud configuration
{ "system": { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "bulut.yasar.com.tr", "172.17.1.53", "127.0.0.1", "localhost", "yasar.com.tr", "10.65.8.100" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "32.0.2.2", "overwrite.cli.url": "https:\/\/bulut.yasar.com.tr", "overwrite.host": "bulut.yasar.com.tr", "overwrite.protocol": "https", "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_phone_region": "TR", "default_language": "tr", "default_locale": "tr_TR", "force_locale": "tr_TR", "force_language": false, "available_languages": [ "tr", "en" ], "maintenance": false, "maintenance_window_start": 1, "updater.release.channel": "stable", "memcache.local": "\\OC\\Memcache\\Redis", "memcache.locking": "\\OC\\Memcache\\Redis", "filelocking.enabled": "true", "filesystem_check_changes": 1, "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 6379, "timeout": 0 }, "htaccess.RewriteBase": "\/", "ldapIgnoreNamingRules": false, "ldapUserCleanupInterval": 0, "ldapBackgroundSyncInterval": 60, "remember_login_cookie_lifetime": 86400, "session_lifetime": 7200, "session_keepalive": true, "auto_logout": true, "auth.webauthn.enabled": false, "trashbin_retention_obligation": "auto,7", "enable_avatars": false, "enable_previews": true, "profile.enabled": false, "allow_user_to_change_display_name": false, "allow_user_to_change_mail_address": false, "theme": "", "lost_password_link": "disabled", "defaultapp": "files", "knowledgebaseenabled": false, "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_smtpmode": "smtp", "mail_sendmailmode": "smtp", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "25", "log_type": "file", "syslog_tag": "nextcloud", "logfile": "\/data\/nextcloud.log", "loglevel": 2, "logdateformat": "d.m.Y, H:i:s", "logtimezone": "Europe\/Istanbul", "log.condition": { "apps": [ "admin_audit", "files", "dav", "core", "encryption" ] }, "log_type_audit": "syslog", "syslog_tag_audit": "nextcloud", "logfile_audit": "", "app_install_overwrite": [ "group_default_quota", "impersonate", "apporder", "webhooks", "adwelcomemail", "admin_notifications" ], "connectivity_check_domains": [ "www.startpage.com", "www.eff.org" ], "activity_webhook": "https:\/\/bulut.yasar.com.tr\/nextcloud-webhook.php", "allow_local_remote_servers": true, "appstoreenabled": true, "skeletondirectory": "\/var\/www\/custom_skeleton", "templatedirectory": "", "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory", "impersonate_include_groups": [], "blacklisted_files": [], "files.chunked_upload.max_size": 20971520, "auth.bruteforce.protection.enabled": false } }Browser
Browser name:/Chrome
Operating system: Windows