-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mail notification is broken #1254
Comments
Some more information: I have had this situation several times in the last two weeks. At the moment the mail notification is working again after I deleted all entries of |
I can confirme the bug (NC 15 & Deck 0.6.6) If I force activity:send-mails I get : An unhandled exception has been thrown: Deleting entries for activity_mq solve the issue ! Related to #921 ? |
The last weeks the notification for deck issues didn't work at all. Even if I deleted all entries in
|
Found the bug ! therefore we just need to truncate description below 4000, minus { " " and } I'll try to make a PR, but this is simple to correct ! |
I have digged a little more into the code. It seems that the issue is more into the activity app. When the event is created (CARD_UPDATE_DESCRIPTION), the subjectparams field from the oc_activity table is filled. There is no issue there as this field is a longtext type. So even if description is very long, it fit into the field. However, when mails need to be sent, the oc_activity_mq table is feeded and here, the amq_subjectparams field is a VARCHAR(4000) ! From what I understand this copy is done by the app activity or by the nextcloud core. A simple solution is tho change field type from VARCHAR(4000) to LONGTEXT in the oc_activity_mq table. |
This is definitely a activity issue ! There is no check when doing the insert into activity_mq |
So we get an exception thrown if activity fails to create and entry in activity_mq, but we currently don't do anything with it. I'll see if we can trigger an activity without the description content in such cases then. |
not exactly ,activity is created created in activity_mq, but description is truncated. |
Hello @mamatt . Is there a (system-wide) way to prevent the activity app from gathering notifications from Deck? This bug is preventing our server from sending any emails. I can clear periodically the Deck entries from the activity_mq table by hand, but that's a bit of a hack... |
As far as I know there is no such thing. |
Are you also seeing an issue with this in the activity stream or is it just related to the mails? |
This is only for mail as in the DB the subjectparams field from activity_mq is limited to 4000 chars where the subjectparams from The real issue is when copying from activity to activity_mq because an invalid json is pushed to the DB : However the error is raised when only when activity queue try to re-read the json. This a really a serious issue as it break all nextcloud activity mail, not only deck ones. |
Is there an issue in the activity app already for this? |
Why is this closed? Is there a follow up issue? |
Well as linked this is mainly fixed by #2117 The size of the activity_mq table was fixed with nextcloud/activity#509 Is there any issue with this still please open a new issue |
Steps to reproduce
Expected behaviour
There should be no error and the mail notification should be sent.
Actual behaviour
No mail notification is sent.
Server configuration detail
Operating system: Linux 4.19.0-0.bpo.5-amd64 #1 SMP Debian 4.19.37-5+deb10u2~bpo9+1 (2019-08-16) x86_64
Webserver: nginx/1.10.3 (fpm-fcgi)
Database: mysql 10.1.38
PHP version:
7.3.9-1+0
20190902.44+debian91.gbpf8534cModules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, sodium, session, standard, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, imagick, intl, json, exif, mysqli, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, readline, shmop, SimpleXML, smbclient, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, libsmbclient, Zend OPcache
Nextcloud version: 16.0.4 - 16.0.4.1
Updated from an older Nextcloud/ownCloud or fresh install: Update from Owncloud 9 to Nextcloud 10 and then all available updates
Where did you install Nextcloud from: Crossupdate from website
Signing status
Array
(
)
List of activated apps
Configuration (config/config.php)
Are you using external storage, if yes which one: smb
Are you using encryption:
Are you using an external user-backend, if yes which one: No
Client configuration
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36
Operating system: MacOS X 10.14.6
Logs
Web server error log
Nextcloud log
Browser log
No browser error.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: