Content
Email Timeout & extended problems -
Added by Episteme Partners over 10 years ago
Hi
We are running OP 3.x version ie very latest. We have configured email notification to stay informed within organization and to clients for any change in projects status. However this is causing considerable headache to everyone involved most notably my clients.
Reason of this problem is two fold. Whenever we do some action like forum post or work package creation, which is subscribed by OP user then some time email sending is timing out. However what is compounding the problem is it sending some user emails before completing desired action ie forum post creation
For example we had three user which has same domain email ids, while creating forum post it sent email to two and but timed out in 3rd. Consequently that post did not get created. However user who received emails are having trouble in accessing forum post that is because that forum post never got created due to time out in middle.
Can someone suggest solution to mitigate this problem. We need emails and if we could not fix this ASAP then unfortunately we may need to switch off emails.
In my view correct behavior should be - Email notification should be sent only after successful creation of forum post or artifacts alike.
Here is time out error in production.log if it helps
Sent mail to xxx.xxx@xxxccc.com (30019.3ms)
Completed 500 Internal Server Error in 30216.3ms
Net::OpenTimeout (execution expired):
app/models/message_observer.rb:38:in `block in after_create’
app/models/message_observer.rb:37:in `each’
app/models/message_observer.rb:37:in `after_create’
app/controllers/messages_controller.rb:99:in `reply’
Replies (2)
more specific version
Information
Core version
OpenProject 3.0.8 (PostgreSQL)
System
Default administrator account changed Yes
Attachments directory writable Yes
RMagick available (optional) Yes
Ok never mind. I have worked it out this email issue by configuring sendmail (which I should have done to begin with) instead of smtp.
But I think that bug still remains where op is sending mail before any artifact got created.