Closed (won't fix)
Project:
Notify
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Nov 2006 at 13:49 UTC
Updated:
7 Feb 2007 at 14:50 UTC
The notify module processes only the first 50 or so users, then either creates error entries in the log for the remiander of the users (about 120) or else quits running (apparently). Also, on some days, multiple notify jobs appear to be initiated and run together. Am using Drupal V4.7.3, poormanscron.module V1.17 2006/01/16 01:15:04, notify.module V2.57.2.2 2006/08/11 19:52:18. Notify is configured to run once a day.
Comments
Comment #1
kthagen commentedWhat are the error entries you're getting, specifically?
Comment #2
pswhitten commentedType error
Date Friday, December 22, 2006 - 14:08
User Lori Whitten
Location http://lighthousegang.org?/home/lighthp2/public_html/cron.php
Referrer
Message Notify: User Lori Whitten (ljwhitten@sbcglobal.net) could not be notified. Mail error.
Severity notice
Hostname
Comment #3
pswhitten commentedSome progress has been made. I introduced a 90 second delay between email sends, and they are all sent successfully. This is more than 120 sends in each run, so it takes longer than 3 hours. A delay of 60 seconds was not quite enough but did help enough to show that I was on the right track. We need to elimiante the delay.
My current thought is that maybe the hosting service has their email system throttled back to prevent their servers from being used to send spam. I need to locate the code for the !user_mail procedure and determine what non-Drupal external service it is calling. The hosting service might need to know this when I inquire about possible thottling.
Comment #4
pswhitten commentedThe problem of multiple cron runs at the same time has been resolved by no longer using the poormanscron module and configuring the server's cron service instead.
Comment #5
kthagen commentedHost throttling sounds like a likely culprit to me.
drupal_mail just invokes the standard php mail() routine, so your hosting company ought to be familiar with its operation.
Comment #6
kthagen commentedFor the benefit of anyone else who may be stuck using poormanscron with notify, there is a patched version that appears to fix the multiple-execution problem. I haven't tried it myself, but it appears to work.
Comment #7
RobRoy commentedSounds like this is not our problem.
Comment #8
pswhitten commentedEveryone with prior input on this problem was correct. The host (Bluehost.com) allows only 50 emails to be sent by a domain per hour. Upon request and convincing that you are not a spammer, they will raise this to 500 per hour. This change has been made for the domains I support, the delays in the notify module have been removed, and the 120 emails are sent each night within 2 minutes. Thanks everyone for your input as I worked through this issue.