nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.57k stars 4.08k forks source link

[Bug]: Incorrect quota information #39500

Closed l3ochan closed 1 year ago

l3ochan commented 1 year ago

⚠️ This issue respects the following points: ⚠️

Bug description

Quota informations are incorrect, and are not the same from the general account view and files view

Steps to reproduce

1.Setup nextcloud community edition manually 2.Create a new user account 3.Set a quota (ex 50GB). NC replaces the 50GB with something else.

  1. Log into the user account
  2. Quota in the files app does not correspond to setup quota
  3. go to user settings
  4. quota here doesn't correspond neither and is different from the one in the files app

Expected behavior

Quota should correspond, if 50GB is setup, server should not replace what you type with something else, quota informations should be the same in all parts of nextcloud.

Installation method

Community Manual installation with Archive

Nextcloud Server version

27

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Upgraded to a MAJOR version (ex. 22 to 23)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "*REMOVED PUBLIC URL",
            "100.97.75.110",
            "ts.nekoserv.nekocorp.fr",
            "192.168.1.147",
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "27.0.0.8",
        "overwrite.cli.url": "***REDACTED***",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": "6379"
        },
        "default_phone_region": "FR",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpsecure": "ssl",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "app_install_overwrite": [
            "officeonline",
            "whiteboard",
            "files_antivirus",
            "googledocsredirect",
            "apporder",
            "integration_moodle",
            "group_default_quota",
            "keeporsweep",
            "files_mindmap",
            "printer",
            "integration_whiteboard",
            "video_converter",
            "carnet",
            "caniupdate",
            "impersonate",
            "ocsms",
            "hancomoffice",
            "wopi",
            "admin_notifications",
            "pdfdraw",
            "cfg_share_links",
            "shifts",
            "richdocumentscode",
            "files_downloadactivity",
            "camerarawpreviews",
            "hibp"
        ],
        "maintenance": false,
        "theme": "",
        "loglevel": 2
    }
}

List of activated Apps

Enabled:
  - activity: 2.19.0
  - admin_audit: 1.17.0
  - announcementcenter: 6.6.1
  - audioplayer: 3.4.0
  - bruteforcesettings: 2.7.0
  - camerarawpreviews: 0.8.2
  - caniupdate: 0.2.0
  - cfg_share_links: 4.1.0
  - checksum: 1.2.2
  - circles: 27.0.0
  - cloud_federation_api: 1.10.0
  - comments: 1.17.0
  - contacts: 5.3.2
  - contactsinteraction: 1.8.0
  - dashboard: 7.7.0
  - dav: 1.27.0
  - deck: 1.10.0
  - drawio: 2.1.2
  - external: 5.2.0
  - externalportal: 1.2.0
  - federatedfilesharing: 1.17.0
  - federation: 1.17.0
  - files: 1.22.0
  - files_accesscontrol: 1.17.0
  - files_antivirus: 5.2.1
  - files_downloadactivity: 1.16.0
  - files_pdfviewer: 2.8.0
  - files_rightclick: 1.6.0
  - files_sharing: 1.19.0
  - files_trashbin: 1.17.0
  - files_versions: 1.20.0
  - firstrunwizard: 2.16.0
  - forms: 3.3.1
  - guests: 2.5.0
  - impersonate: 1.14.0
  - integration_github: 2.0.4
  - integration_openai: 1.0.11
  - integration_reddit: 2.0.1
  - integration_youtube: 0.1.4
  - logreader: 2.12.0
  - lookup_server_connector: 1.15.0
  - mail: 3.2.4
  - nextcloud_announcements: 1.16.0
  - notes: 4.8.1
  - notifications: 2.15.0
  - oauth2: 1.15.0
  - password_policy: 1.17.0
  - photos: 2.3.0
  - privacy: 1.11.0
  - provisioning_api: 1.17.0
  - quota_warning: 1.17.0
  - recommendations: 1.6.0
  - related_resources: 1.2.0
  - richdocuments: 8.1.0
  - serverinfo: 1.17.0
  - settings: 1.9.0
  - sharebymail: 1.17.0
  - socialsharing_email: 2.6.0
  - spreed: 17.0.1
  - survey_client: 1.15.0
  - tables: 0.5.1
  - text: 3.8.0
  - theming: 2.2.0
  - translate: 1.1.5
  - twofactor_admin: 4.2.0
  - twofactor_backupcodes: 1.16.0
  - twofactor_email: 2.7.3
  - twofactor_nextcloud_notification: 3.7.0
  - twofactor_totp: 9.0.0
  - twofactor_webauthn: 1.2.0
  - updatenotification: 1.17.0
  - user_status: 1.7.0
  - video_converter: 1.0.6
  - viewer: 2.1.0
  - weather_status: 1.7.0
  - welcome: 1.0.9
  - workflowengine: 2.9.0
Disabled:
  - calendar: 4.4.3 (installed 4.4.3)
  - encryption: 2.15.0
  - event_update_notification: 2.2.0 (installed 2.2.0)
  - files_external: 1.19.0
  - hibp: 0.1.0 (installed 0.1.0)
  - imageconverter: 1.3.5 (installed 1.3.5)
  - onlyoffice: 8.1.0 (installed 8.1.0)
  - ransomware_protection: 1.14.0 (installed 1.14.0)
  - support: 1.10.0 (installed 1.8.0)
  - suspicious_login: 5.0.0 (installed 4.4.0)
  - systemtags: 1.17.0 (installed 1.15.0)
  - terms_of_service: 2.2.0 (installed 2.2.0)
  - unsplash: 2.2.1 (installed 2.2.1)
  - user_ldap: 1.17.0
  - whiteboard: 0.0.3 (installed 0.0.3)

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

REMOVED LOGS

Additional info

video of the issue : https://youtu.be/tOijtU3AffQ Quota is correct in the Android mobile App

l3ochan commented 1 year ago

and yes issue is different from this one https://github.com/nextcloud/server/issues/39465

l3ochan commented 1 year ago

didn't meant to close it

antonol68 commented 1 year ago

I think this happened after the upgrade of PHP 8.1 to PHP 8.2 has recommended for version 27

l3ochan commented 1 year ago

I don't know, it was doing it with 8.1 so I tried upgrading to 8.2 and problem not solved

On Sat, Jul 22, 2023, 10:52 antonol68 @.***> wrote:

I think this happened after the upgrade of PHP 8.1 to PHP 8.2 has recommended for version 27

— Reply to this email directly, view it on GitHub https://github.com/nextcloud/server/issues/39500#issuecomment-1646532316, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATNSIRQHEJVG5HWBWZSGCMLXROIE3ANCNFSM6AAAAAA2REVXKE . You are receiving this because you modified the open/close state.Message ID: @.***>

transporagous commented 1 year ago

I have the same problem. Have you found a solution? ver.27, php8.2 I set quota for user 20 GB, but it set to Unlimited, after refresh page I see 22,5 GB

schnulli22 commented 1 year ago

I habe exactly the same situation. In NC 27.0.2 RC1 (PHP 8.2) it is not fixed. Dear Developer, please, please fix it.

doc75 commented 1 year ago

This is an issue specific to NC 27 (I just got it after upgrading from NC26 to NC27 with official docker image)

schnulli22 commented 1 year ago

It was also on my system. On NC26 works correctly, th issue comes after NC27 Upgrade.

elearningdienst commented 1 year ago

I can confirm that. Exact the same behaviour after Upgrading to NC27

skl256 commented 1 year ago

When correcting, please check the case showing not only the quota, but also the file sizes in the application files

haskelious commented 1 year ago

Same issue on my instance. The field does not accept numbers with "GB" in the text. If you set it to a very large number (1000000000) it will accept the value and show the corresponding quota in KB, MB, GB relative to how big your number is. I couldn't get the exact conversion between units and GB, as it does not seem it relies on the actual bytes in a GB. In any case, it can be a potential workaround.

l3ochan commented 1 year ago

problem still present after NC 27.1.0 release. image Screenshot 2023-09-16 134811

jjasoncool commented 1 year ago

https://github.com/nextcloud/server/issues/38874

ThowZzy commented 1 year ago

problem still present after NC 27.1.0 release. image Screenshot 2023-09-16 134811

Thanks! I can still stay on my downgraded 26.0.6 then :D

l3ochan commented 1 year ago

problem still present after NC 27.1.0 release. image Screenshot 2023-09-16 134811

Thanks! I can still stay on my downgraded 26.0.6 then :D

You can downgrade ? I'd be interested in doing that until they fix NC 27.

skl256 commented 1 year ago

@l3ochan I rolled back from 27.0.1 to 25 because of this and another bug. During the rollback, I restored the postgres dump and restored the contents of the /var/www/html folder (which was before the update).

l3ochan commented 1 year ago

Still not fixed after NC 27.1.1 update....... Update which broke some other things too like the file picker in talk... They should stop adding features and fix the one that already exist...

ThowZzy commented 1 year ago

Still not fixed after NC 27.1.1 update....... Update which broke some other things too like the file picker in talk... They should stop adding features and fix the one that already exist...

You should probably stick with nextcloud 26 like me for a while, it is a very good version

susnux commented 1 year ago

Duplicate of https://github.com/nextcloud/server/issues/38874