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 are sent over and over again #459

Open
madmas opened this issue May 6, 2020 · 4 comments
Open

Notification are sent over and over again #459

madmas opened this issue May 6, 2020 · 4 comments

Comments

@madmas
Copy link

madmas commented May 6, 2020

I reported this already to nextcloud/server#20286 before I realized now that it seems to be cause by this app. Please refer to that issue for details.

Trying to find the cause, I could find out that the events are not deleted from the events queue in "activity_mq" table.

Also, "amq_last_send" is not updated, it's always the same as "amq_timestamp".

Finally I cloud solve this after adding some debug statements to MailQueueHandler.php .
With these statements I got aware that there are timeouts happening when mail were put to SMTP. The timeouts also caused that send notification were not deleted from the queue table.

I suggest to merge the debug log statements in the code so that the debug level show actual helpful output.

@flagmonkey
Copy link

We got this kind of problem in an 18.0.1.3 installation. There is one user who gets about 60 mails on a daily basis without any activity in the activity timeline (content of the e-mails is the same). Not sure how to fix this without editing MailQueueHandler.php by hand.

Let me know if i can help, we would be glad if this is a bug and will be fixed in future releases.

@stefangweichinger
Copy link

Seems I have the same problem in nextcloud/docker#1156
Deleted entries from table activity_mq, waiting to see if it stays silent now.
Additional question: why does the user get the email if there's a SMTP issue?

btw: we have nextcloud:18.0.6 docker image here

@stefangweichinger
Copy link

Maybe too simple ;-) We silenced the issue by configuring:

# config.php
"mail_smtptimeout" => 30,

This seems to help with the timeouts ... and in turn we get rid of the notifications.
Of course it would help to have meaningful debug messages in case of SMTP timeouts (the default value is what? 2 seconds?).

madmas added a commit to madmas/activity that referenced this issue Jun 24, 2020
Signed-off-by: Markus Schlichting <markus.schlichting@karakun.com>
@erdoukki

This comment was marked as duplicate.

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

No branches or pull requests

5 participants