Closed GAS85 closed 1 year ago
This might be a duplicate of #314 although it didn't mention the storage metric, and you are not running the same version mentioned there (both could be affected anyways).
Caused by missing background job. If there is no background job support you will have to update the instance to get latest serverinfo app. To check background job support:
cat /var/www/html/nextcloud/apps/serverinfo/appinfo/info.xml | grep UpdateStorageStats
<job>OCA\ServerInfo\Jobs\UpdateStorageStats</job>
To check jobs:
MariaDB [nextcloud]> select * from oc_jobs where class='OCA\\ServerInfo\\Jobs\\UpdateStorageStats';
+-------+----------------------------------------+----------+------------+--------------+-------------+--------------------+
| id | class | argument | last_run | last_checked | reserved_at | execution_duration |
+-------+----------------------------------------+----------+------------+--------------+-------------+--------------------+
| 13706 | OCA\ServerInfo\Jobs\UpdateStorageStats | null | 1623481803 | 1623482103 | 0 | 0 |
+-------+----------------------------------------+----------+------------+--------------+-------------+--------------------+
If nothing found try re-enabling serverinfo:
sudo -u www-data php -f /var/www/html/nextcloud/occ app:disable serverinfo
sudo -u www-data php -f /var/www/html/nextcloud/occ app:enable serverinfo
Thanks, reenabling an app did the Job.
curl -m 45 -s -u user:password https://FADN/ocs/v2.php/apps/serverinfo/api/v1/info | grep -E "num_files|num_storages"
<num_files>1015663</num_files>
<num_storages>19</num_storages>
Was not aware that there is a dedicated app for this job.
This should have been closed out as it was resolved long ago.
How to use GitHub
Steps to reproduce
Expected behaviour
Reporting should provide correct values
Actual behaviour
After update reported files amount is 0.![grafik](https://user-images.githubusercontent.com/6813635/121664193-84b90800-caa7-11eb-834d-2e70977baca5.png)
Server configuration
Operating system: Ubuntu 20.04
Web server: Apache/2.4.48 (Ubuntu)
Database: mysql Ver 15.1 Distrib 10.3.29-MariaDB
PHP version: 7.4.20
Nextcloud version: 20.0.10
Updated from an older Nextcloud/ownCloud or fresh install: Update from 20.0.9
Where did you install Nextcloud from: Official
Signing status:
Signing status
``` No errors have been found. ```List of activated apps:
App list
``` Enabled: - accessibility: 1.6.0 - activity: 2.13.4 - admin_audit: 1.10.0 - audioplayer: 3.1.0 - bruteforcesettings: 2.1.0 - calendar: 2.2.2 - checksum: 1.1.2 - cloud_federation_api: 1.3.0 - comments: 1.10.0 - contacts: 3.5.1 - contactsinteraction: 1.1.0 - data_request: 1.7.0 - dav: 1.16.2 - deck: 1.2.7 - drawio: 1.0.0 - external: 3.7.2 - extract: 1.3.1 - facerecognition: 0.7.2 - federatedfilesharing: 1.10.2 - federation: 1.10.1 - files: 1.15.0 - files_automatedtagging: 1.10.1 - files_downloadactivity: 1.9.0 - files_external: 1.11.1 - files_mindmap: 0.0.24 - files_pdfviewer: 2.0.1 - files_retention: 1.9.0 - files_rightclick: 0.17.0 - files_sharing: 1.12.2 - files_trashbin: 1.10.1 - files_versions: 1.13.0 - files_videoplayer: 1.9.0 - firstrunwizard: 2.9.0 - flowupload: 1.1.2 - forms: 2.2.4 - gpxmotion: 0.1.0 - gpxpod: 4.2.8 - keeweb: 0.6.5 - logreader: 2.5.0 - lookup_server_connector: 1.8.0 - mail: 1.9.5 - maps: 0.1.8 - nextcloud_announcements: 1.9.0 - notes: 4.0.4 - notifications: 2.8.0 - oauth2: 1.8.0 - ocdownloader: 1.7.11 - password_policy: 1.10.1 - phonetrack: 0.6.7 - photos: 1.2.3 - polls: 1.8.3 - previewgenerator: 3.1.1 - privacy: 1.4.0 - provisioning_api: 1.10.0 - radio: 1.0.3 - recommendations: 0.8.0 - serverinfo: 1.10.0 - settings: 1.2.0 - sharebymail: 1.10.0 - side_menu: 1.23.1 - spreed: 10.0.7 - support: 1.3.0 - survey_client: 1.8.0 - systemtags: 1.10.0 - text: 3.1.0 - theming: 1.11.0 - twofactor_backupcodes: 1.9.0 - twofactor_totp: 5.0.0 - unsplash: 1.2.2 - updatenotification: 1.10.0 - user_status: 1.0.1 - video_converter: 1.0.1 - viewer: 1.4.0 - weather: 1.7.5 - weather_status: 1.0.0 - workflowengine: 2.2.0 Disabled: - dashboard - encryption - files_antivirus - gpxedit - impersonate - ocr - user_ldap ```Nextcloud configuration:
Config report
``` { "system": { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "***REMOVED SENSITIVE VALUE***", "***REMOVED SENSITIVE VALUE***", "***REMOVED SENSITIVE VALUE***" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "overwrite.cli.url": "https:\/\/cloud.sitnikov.ga", "dbtype": "mysql", "version": "20.0.10.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, "filesystem_check_changes": 0, "filelocking.enabled": true, "memcache.local": "\\OC\\Memcache\\APCu", "memcache.locking": "\\OC\\Memcache\\Redis", "memcache.distributed": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 0, "timeout": 1.5 }, "mail_smtpmode": "smtp", "mail_smtpauthtype": "LOGIN", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "maintenance": false, "theme": "", "logfile": "\/var\/nextcloud\/data\/nextcloud.log", "loglevel": 1, "trashbin_retention_obligation": "14, auto", "versions_retention_obligation": "14, auto", "data-fingerprint": "***REMOVED SENSITIVE VALUE***", "enable_previews": true, "enabledPreviewProviders": [ "OC\\Preview\\PNG", "OC\\Preview\\JPEG", "OC\\Preview\\GIF", "OC\\Preview\\BMP", "OC\\Preview\\XBitmap", "OC\\Preview\\Movie", "OC\\Preview\\PDF", "OC\\Preview\\MP3", "OC\\Preview\\TXT", "OC\\Preview\\MarkDown" ], "preview_max_x": 1920, "preview_max_y": 1080, "jpeg_quality": 90, "auth.bruteforce.protection.enabled": true, "simpleSignUpLink.shown": false, "mail_smtpsecure": "tls", "mail_smtpauth": 1, "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "587", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "twofactor_enforced": true, "twofactor_enforced_groups": [ "admin" ], "twofactor_enforced_excluded_groups": [], "has_rebuilt_cache": true, "updater.release.channel": "stable", "app_install_overwrite": [ "keeweb", "radio" ], "mail_sendmailmode": "smtp" } } ```Are you using external storage, if yes which one: local + webdav
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
Logs
Nothing related this issue