nextcloud / server

ā˜ļø Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.38k stars 4.07k forks source link

NC16 wrong size calculating #21544

Closed krakazyabra closed 4 years ago

krakazyabra commented 4 years ago

How to use GitHub

Steps to reproduce

  1. Install NC from docker nextcloud:16.0.8-fpm
  2. Configure S3 (Minio) as primary storage
  3. Use SSO to allow LDAP users connect to NC using keycloak (also tested with local users)
  4. Add users to group
  5. Setup GroupQouta
  6. Use NC for some time

Expected behaviour

I expected to see correct values for used size and free space

Actual behaviour

For a long time I see only one value 94.4Gb used

Server configuration

Operating system: Debian Buster

Web server: nginx:latest

Database: percona/percona-xtradb-cluster:5.7.18

PHP version: 7.3.15

Nextcloud version: (see Nextcloud admin page) 16.0.8

Updated from an older Nextcloud/ownCloud or fresh install: Fresh

Where did you install Nextcloud from: Docker-image nextcloud:16.0.8-fpm

Signing status:

Signing status ``` none ```

List of activated apps:

App list ``` - accessibility: 1.2.0 - activity: 2.9.1 - admin_audit: 1.6.0 - analytics: 1.2.2 - announcementcenter: 3.5.1 - appointments: 1.1.10 - apporder: 0.10.0 - audioplayer: 2.9.0 - bookmarks: 2.3.4 - calendar: 1.7.2 - camerarawpreviews: 0.7.3 - checksum: 0.4.4 - circles: 0.17.12 - cloud_federation_api: 0.2.0 - comments: 1.6.0 - contacts: 3.2.0 - cookbook: 0.6.3 - dashboardcharts: 0.1.3 - dav: 1.9.2 - deck: 0.6.6 - dicomviewer: 1.2.1 - drawio: 0.9.5 - emlviewer: 0.0.5 - external: 3.3.1 - extract: 1.2.3 - federatedfilesharing: 1.6.0 - federation: 1.6.0 - files: 1.11.0 - files_accesscontrol: 1.6.0 - files_automatedtagging: 1.6.0 - files_downloadactivity: 1.5.0 - files_ebookreader: 0.0.1 - files_external: 1.7.0 - files_external_gdrive: 0.4.0 - files_markdown: 2.2.0 - files_pdfviewer: 1.5.0 - files_rightclick: 0.15.1 - files_sharing: 1.8.0 - files_texteditor: 2.8.0 - files_trashbin: 1.6.0 - files_versions: 1.9.0 - files_videoplayer: 1.5.0 - firstrunwizard: 2.5.0 - flowupload: 0.1.8 - forms: 1.0.3 - gallery: 18.3.0 - gpxedit: 0.0.13 - gpxmotion: 0.0.11 - groupfolders: 4.1.5 - groupquota: 0.1.2 - keeweb: 0.6.2 - limit_login_to_ip: 3.0.0 - logreader: 2.1.0 - lookup_server_connector: 1.4.0 - mail: 0.17.0 - music: 0.13.2 - news: 14.1.3 - notes: 3.2.0 - oauth2: 1.4.2 - ocr: 6.0.28 - ocsms: 2.1.7 - onlyoffice: 4.1.4 - passman: 2.3.4 - password_policy: 1.6.0 - phonetrack: 0.5.2 - polls: 1.3.0 - previewgenerator: 2.3.0 - privacy: 1.0.0 - provisioning_api: 1.6.0 - quicknotes: 0.2.3 - quota_warning: 1.5.0 - radio: 0.6.6 - ransomware_detection: 0.5.2 - ransomware_protection: 1.4.2 - recommendations: 0.4.0 - serverinfo: 1.6.0 - sociallogin: 2.4.5 - spreed: 6.0.4 - support: 1.0.0 - survey_client: 1.4.0 - systemtags: 1.6.0 - talk_simple_poll: 1.0.0 - tasks: 0.12.1 - text: 1.0.2 - theming: 1.7.0 - twofactor_backupcodes: 1.5.0 - twofactor_u2f: 3.0.1 - updatenotification: 1.6.0 - user_usage_report: 1.1.2 - viewer: 1.2.0 - weather: 1.7.3 - workflow_pdf_converter: 1.1.0 - workflowengine: 1.6.0 ```

Nextcloud configuration:

Config report ``` { "system": { "logfile": "\/dev\/stdout", "enable_previews": true, "preview_max_filesize_image": 4096, "preview_max_y": 4096, "preview_max_x": 4096, "enabledPreviewProviders": [ "OC\\Preview\\PNG", "OC\\Preview\\JPEG", "OC\\Preview\\GIF", "OC\\Preview\\HEIC", "OC\\Preview\\BMP", "OC\\Preview\\XBitmap", "OC\\Preview\\MP3", "OC\\Preview\\TXT", "OC\\Preview\\MarkDown" ], "logtimezone": "Europe\/Prague", "social_login_auto_redirect": true, "updatechecker": false, "has_internet_connection": true, "objectstore_multibucket": { "class": "\\OC\\Files\\ObjectStore\\S3", "arguments": { "num_buckets": 15000, "bucket": "nextcloud-", "autocreate": true, "key": "", "secret": "", "use_ssl": true, "hostname": "storage11.s3.domain.org", "port": 443, "use_path_style": true } }, "onlyoffice": { "jwt_header": "Authorization", "verify_peer_off": true }, "loglevel": 3, "trusted_domains": [ "nc.domain.org", "localhost", "10.*.*.*", "onlyoffice.domain.org", "nc-api.domain.org", ], "memcache.local": "\\OC\\Memcache\\APCu", "memcache.distributed": "\\OC\\Memcache\\Redis", "memcache.locking": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": "6379" }, "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "16.0.8.1", "overwrite.cli.url": "https:\/\/nc.domain.org", "overwriteprotocol": "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, "updater.release.channel": "production", "maintenance": false } } ```

Are you using external storage, if yes which one: local/smb/sftp/... Nope

Are you using encryption: yes/no Nope

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/... Natively - no. We're using keycloak, which aggregates users from different backends (FreeIPA, DB) and gives them tokens. Users log in in NC using this token.

Web server error log

Web server error log ``` Nothing connected to this issue ```

Nextcloud log (data/nextcloud.log)

Nextcloud log ``` Nothing connected to this issue ```

Browser log

Browser log ``` Nothing connected to this issue ```
johkoenig commented 4 years ago

Nextcloud 16 is EOL, see: https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule If this problem also occurs on a newer version of nextcloud, please open a new bug report.

krakazyabra commented 4 years ago

Sorry for that, how it can be AOL, if it is production branch?