Skip to content
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

Notification was not parsed by any notifier [app: text, subject: mentioned] #5884

Open
SystemKeeper opened this issue Jun 10, 2024 · 7 comments
Labels

Comments

@SystemKeeper
Copy link

Describe the bug
Not really sure if it is a bug, but I noticed this in the log of an instance.
From the error I would assume it happens when someone was mentioned in a text document. But when I manually try it, it works. So not sure what triggers the exception.

Screenshots
If applicable, add screenshots to help explain your problem.

Server details:

  • Nextcloud version: 29.0.2
  • PHP Version: 8.2
  • Database: 10.11.6-MariaDB-1:10.11.6+maria~deb11
Logs

Nextcloud log (data/nextcloud.log)

{
    "reqId": "3CSQVHfB4Gmn2EyGSI46",
    "level": 1,
    "time": "2024-06-10T09:00:26+02:00",
    "remoteAddr": "172.31.2.42",
    "user": "<user>",
    "app": "no app in context",
    "method": "GET",
    "url": "/ocs/v2.php/apps/notifications/api/v2/notifications",
    "message": "Notification was not parsed by any notifier [app: text, subject: mentioned]",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36",
    "version": "29.0.2.2",
    "data": []
}
@SystemKeeper SystemKeeper added the bug Something isn't working label Jun 10, 2024
@mejo-
Copy link
Member

mejo- commented Jun 12, 2024

Thanks for the report @SystemKeeper. This is a info level log message and it comes from https://github.com/nextcloud/server/blob/e5a6698ec0125d0183b3e71d27e4d22dae0431bc/lib/private/Notification/Manager.php#L357

Not sure either where this could come from, also given that mentioning in a document works and results in notifications in my tests.

@juliusknorr
Copy link
Member

I also could not trigger a debugger breakpoint when sending a notification for a mention. @SystemKeeper Can you maybe share the related entry that was created in your oc_notifications table?

@SystemKeeper
Copy link
Author

I was thinking about this morning. Could it be that - during an update - the app was temporarily disabled while at the same some one tried to fetch the notifications?

I'll try to verify that with the access logs

@SystemKeeper
Copy link
Author

SELECT * FROM oc_notifications WHERE app = 'text' AND user = '<user>';
+-----------------+------+--------------+------------+-------------+-----------+-----------+-------------------------------------------------------------+---------+--------------------+------+------+---------+
| notification_id | app  | user         | timestamp  | object_type | object_id | subject   | subject_parameters                                          | message | message_parameters | link | icon | actions |
+-----------------+------+--------------+------------+-------------+-----------+-----------+-------------------------------------------------------------+---------+--------------------+------+------+---------+
|           73712 | text | <user>       | 1696933982 | file        | 859331    | mentioned | {"sourceUser":"marcel.mueller","targetUser":"<user>"}       |         | []                 |      |      | []      |
+-----------------+------+--------------+------------+-------------+-----------+-----------+-------------------------------------------------------------+---------+--------------------+------+------+---------+

That is the only notification of the user in question.
It happenes multiple times during the day:

 grep mentioned nextcloud.log.3 | wc -l
19

So seems not related to the update. But I don't see anything weird in this entry? I also checked that 859331 is in oc_filecache.

@juliusknorr
Copy link
Member

Is <user> the actual user id or did you replace this?

@SystemKeeper
Copy link
Author

Is <user> the actual user id or did you replace this?

I replaced it. It has the same format as "marcel.mueller", and also does not contain any special characters.

@SystemKeeper
Copy link
Author

1696933982

Is from last october. So is a very old notification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants