internal server error when trying to load notification page for sonia in production, likely due to trying to load a large number of notifications/need "Delete all" function
This is unusable for me at this time.
related to #2891
This is probably due to the way notifications are rendered:
A user notification should be processed once, at the time that it is generated. If possible, notifications should be generated and processed asynchronously.
I have the same issue on production under my own account.....
Another possibility may be referrals to dataverse objects that no longer exist. (I thought that was fixed but maybe not for some older notifications.)
A "live" list of notifications with potentially broken objects may be found here*:
https://services.dataverse.harvard.edu/miniverse/qc/broken-notifications
Another dataverse admin on Harvard Dataverse reported problems seeing this error - Internal Server Error - An unexpected error was encountered, no more information is available - when trying to view his notifications in the application. https://github.com/IQSS/dataverse/issues/2892
He's not sure how recent the problem is, but maybe it would be helpful to use his account to test the ideas in this github issue about why this is happening? (In the meantime, the admin can see the notifications from his email).
May be helpful: https://services.dataverse.harvard.edu/miniverse/qc/dashboard
For a known user (maybe user in ticket with consent) or with a copy of the database:
delete user's notifications no longer pointing to a valid object
delete user's older notifications that are unread (maybe some db schema changes have them pointing elsewhere)
In theory, neither of the above should matter but if it's not obvious, it's worth experimenting (with a db copy). With schema changes over a couple of years, it could be something simple that slipped through
@raprasad thanks. Very interesting. Here's a screenshot:

In theory it should not be related to pointers to deleted objects as we handled that from the beginning of 4.0. Of course, it's always possible that there's a bug there, but this has worked before.
Feel free to use my production account to troubleshoot. Currently the notifications page is broken. e.g. you can steadily delete notifications until it works--and see if it's a certain type of notification that's blocked, something else with the account, etc, etc. (slack for any needed info)
Our users also experience this issue in 4.15.1
Can the notification feature be optimized for better performance?
@lwo clearly, something needs to be done. Thanks for speaking up. The release notes for 4.16 ( https://github.com/IQSS/dataverse/releases/tag/v4.16 ) advise that older notifications should be deleted: "In making the fix for #5687 we discovered that notifications created prior to 2018 may have been invalidated. With this release we advise that these older notifications are deleted from the database."
That's not really a fix, of course, but I wanted to put it on your radar since you're at 4.15.1.
Are you interested in working on this issue?
Also, are you aware that I set up a new system to try to help understand the priorities of the installations of Dataverse around the world? I'd like to invite you to create a board for IISH at https://github.com/orgs/IQSS/projects
For more background on this idea, please see the "boards for prioritizing issues (for each installation of Dataverse)" thread at https://groups.google.com/d/msg/dataverse-community/z8ugn2KzNSc/zt7COeRYBQAJ
+1 for a "delete all" function. Currently when I updated a data set with 40 files, I have to manually clear 40 notifications through a not-very-responsive UI :(.
I'm also stuck with this issue - it could also be reduced by allowing customisation of notification preferences.
e.g.:
| What | Email | App |
| ------ | ------ | ---- |
| Dataset Ingest Successful | [] | [] |
| Dataset Ingest Fail | [:x:] | [] |
| Dataset Publication Successful | [] | [] |
| Dataset Publication Failure | [:x:] | [] |
| Dataset Deletion | [:x:] | [] |
My outlook rule filters hundreds of emails a week straight into the bin, my notifications tab became unresponsive a long time ago and manually deleting each one was painful even during testing let alone after a month of production running!
Most helpful comment
Our users also experience this issue in 4.15.1
Can the notification feature be optimized for better performance?