nextcloud / quota_warning

❗💾 This app sends notifications to users when they reached 85, 90 and 95% of their quota.
https://apps.nextcloud.com/apps/quota_warning
GNU Affero General Public License v3.0
17 stars 12 forks source link

notifcations for quota not received at NC12.0.2 with Quota app #17

Closed JK74 closed 7 years ago

JK74 commented 7 years ago

Steps to reproduce

  1. install the quota app
  2. set the limit to that user for a small limit
  3. upload files to this account to 70, 80, 95 % and see if you see the warning at the top right corner in the GUI. No updates at any level received.
  4. check for mentioning of quota entry's at your activitiet sections: NONE

Expected behaviour

see the quota pop-up per the guidance on teh quota website

Actual behaviour

nothing happens; you see only at the bottom left corner the standard overview on usage for your account and at your personal page at the top of the page. but not the one enabled with the app. Can we have an notification event made as well for e-mail so you get an e-mail when you run over or close to (enhancement)?

=====================================================================================

General server configuration

Operating system: Linux nextcloud 4.4.0-92-generic #115-Ubuntu SMP Thu Aug 10 09:04:33 UTC 2017 x86_64

Web server: Apache/2.4.18 (Ubuntu) (apache2handler)

Database: mysql 5.7.19

PHP version: 7.0.22-0ubuntu0.16.04.1

PHP-modules loaded ``` - Core - date - libxml - openssl - pcre - zlib - filter - hash - Reflection - SPL - session - standard - apache2handler - mysqlnd - PDO - xml - apcu - calendar - ctype - curl - dom - mbstring - fileinfo - ftp - gd - gettext - iconv - igbinary - json - exif - mysqli - pdo_mysql - Phar - posix - readline - redis - shmop - SimpleXML - sockets - sysvmsg - sysvsem - sysvshm - tokenizer - wddx - xmlreader - xmlwriter - xsl - zip - Zend OPcache ```

Nextcloud configuration

Nextcloud version: 12.0.2 - 12.0.2.0

**Updated from an older Nextcloud/ownCloud or fresh install: from 11.0 > 11.x > 12.0 > 12.0.1 12.0.2

Where did you install Nextcloud from: local storage

Are you using external storage, if yes which one: Array ( [0] => \OC\Files\Storage\Local [1] => \OCA\Files_External\Lib\Storage\FTP [2] => \OC\Files\Storage\DAV [3] => \OCA\Files_External\Lib\Storage\OwnCloud [4] => \OCA\Files_External\Lib\Storage\SFTP [5] => \OCA\Files_External\Lib\Storage\AmazonS3 [6] => \OCA\Files_External\Lib\Storage\Dropbox [7] => \OCA\Files_External\Lib\Storage\Google [8] => \OCA\Files_External\Lib\Storage\Swift [9] => \OCA\Files_External\Lib\Storage\SFTP [10] => \OCA\Files_External\Lib\Storage\SMB [11] => \OCA\Files_External\Lib\Storage\SMB )

Are you using encryption: no

Are you using an external user-backend, if yes which one: YOUR ANSWER HERE (LDAP/ActiveDirectory/Webdav/...)

Signing status ``` [] ```
Enabled apps ``` - activity: 2.5.2 - admin_audit: 1.2.0 - admin_notifications: 1.0.0 - announcementcenter: 3.1.0 - bruteforcesettings: 1.0.2 - calendar: 1.5.3 - circles: 0.12.4 - comments: 1.2.0 - contacts: 1.5.3 - dav: 1.3.0 - external: 2.0.3 - federatedfilesharing: 1.2.0 - federation: 1.2.0 - files: 1.7.2 - files_automatedtagging: 1.2.2 - files_downloadactivity: 1.1.1 - files_external: 1.3.0 - files_pdfviewer: 1.1.1 - files_retention: 1.1.2 - files_sharing: 1.4.0 - files_texteditor: 2.4.1 - files_trashbin: 1.2.0 - files_versions: 1.5.0 - files_videoplayer: 1.1.0 - firstrunwizard: 2.1 - gallery: 17.0.0 - groupfolders: 1.1.0 - issuetemplate: 0.2.2 - logreader: 2.0.0 - lookup_server_connector: 1.0.0 - nextcloud_announcements: 1.1 - notes: 2.3.1 - notifications: 2.0.0 - oauth2: 1.0.5 - password_policy: 1.2.2 - provisioning_api: 1.2.0 - quota_warning: 1.0.1 - ransomware_protection: 1.0.1 - serverinfo: 1.2.0 - sharebymail: 1.2.0 - spreed: 2.0.1 - survey_client: 1.0.0 - systemtags: 1.2.0 - tasks: 0.9.5 - theming: 1.3.0 - twofactor_backupcodes: 1.1.1 - updatenotification: 1.2.0 - workflowengine: 1.2.0 ```
Disabled apps ``` - activitylog - encryption - files_antivirus - user_external - user_ldap ```
Content of config/config.php ``` { "instanceid": "ocaacnf00r5p", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "xxx.xxx", "xxx.xx", "192.168.x.x", "192.168.x.x" ], "datadirectory": "\/xxx", "overwrite.cli.url": "https:\/\/xxx\/xxx", "dbtype": "mysql", "version": "12.0.2.0", "dbname": "xxx", "dbhost": "xxx", "dbport": "", "dbtableprefix": "oc_", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "logtimezone": "Europe\/Berlin", "installed": true, "memcache.local": "\\OC\\Memcache\\APCu", "memcache.locking": "\\OC\\Memcache\\Redis", "filelocking.enabled": "true", "redis": { "host": "\/var\/run\/redis\/redis.sock", "port": 0, "timeout": 0 }, "session_lifetime": 3600, "htaccess.RewriteBase": "\/nextcloud", "mail_smtpmode": "smtp", "mail_smtpsecure": "ssl", "mail_from_address": "noReply", "mail_domain": "xxx", "mail_smtpauthtype": "LOGIN", "mail_smtpauth": 1, "mail_smtphost": "xxx", "mail_smtpport": "465", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "loglevel": 0, "cron_log": true, "log_rotate_size": 104857600, "enable_previews": true, "enabledPreviewProviders": [ "OC\\Preview\\PNG", "OC\\Preview\\JPEG", "OC\\Preview\\GIF", "OC\\Preview\\BMP", "OC\\Preview\\XBitmap", "OC\\Preview\\MarkDown", "OC\\Preview\\MP3", "OC\\Preview\\TXT", "OC\\Preview\\Movie" ], "preview_max_filesize_image": 200, "updater.secret": "***REMOVED SENSITIVE VALUE***", "maintenance": false, "theme": "", "singleuser": true, "updater.release.channel": "production" } ```

Client configuration

Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36

Operating system: YOUR ANSWER HERE

Logs

Web server error log ``` Insert your webserver log here ```
Nextcloud log (data/nextcloud.log) ``` Insert your Nextcloud log here ```
Browser log ``` Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ... ```
nickvergessen commented 7 years ago

Please check if the user has a OCA\QuotaWarning\Job\User entry in the oc_jobs table.

And also note, that the quota is only checked once a day.

JK74 commented 7 years ago

this seems to be partially working again; it seems its indeed an background job that does this (I was having background job/cron issues). Maybe good to on the doc site for the app:

  1. its depending on working cron and background tasks

  2. it only checks it 1x a day (when is not known but if known; lets document).

  3. can we setup an activity on e-mail? that if you reach 95% you get an e-mail? some users don't see the red dot at the new messages/activity and users that only use the client have a more struggle as it spretty good hidden in android and windows pc client.

DJCrashdummy commented 7 years ago

@nickvergessen please can you clarify

And also note, that the quota is only checked once a day.

is my assumption right, that the quota is checked/calculated all the time (else you could upload endless stuff until the next day); but the quota status for warning is only checked once a day?

if so, as @JK74 mentioned, a note in the readme/appinfo would be fine, that everybody knows you won't get a warning immediately when you reach the defined quota, but once a day if you exceeded it.

btw: mentioning in the readme that the 3 values can be modified and beside notification an e-mail can be sent would makes sense. (i nearly didn't install this wonderful app because of the short unsatisfying statement.)

nickvergessen commented 7 years ago

Updated the readme and screenshots for the next release