Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
update.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Oct 2008 at 08:45 UTC
Updated:
26 Apr 2009 at 22:40 UTC
Jump to comment: Most recent
Comments
Comment #1
Garnerin commentedI see, the actual problem is rather the update check on every cron run than the emails one gets. But it has a certain impact on my mailbox, you know... I'm going to remove my email address in the settings for a while.
Comment #2
djmabo commentedI have the same problem.
Comment #3
djmabo commentedI have the same problem.
Comment #4
Jorge Campo commentedSame problem too.
I removed my email for notifications but obviously I have to check for updates manually.
When I put it back my email I get the notifications again every five minutes or so.
I am not sure if the issue was there under the 6.5 version. Right now I have the 6.6 version.
Comment #5
Jorge Campo commentedI just checked my logs.
The cron is supossed to run by its defaults values every 60 minutes and retry in case of error every 10 minutes.
However in my logs the cron runs exactly every five minutes: admin/reports/dblog (filter: "cron").
Checking the machine producing the cron to run it gives me an IP 75.101.228.155 which corresponds to Amazon.com
Do you have the amazon module on your systems?
Perhaps this issue it has something to do with that.
Comment #6
Jorge Campo commentedI created a support request in amazon module queue:
http://drupal.org/node/329862
Comment #7
Garnerin commentedNo, I haven't installed the amazon module. I haven't even known about it until now. I encountered the problem without it.
Comment #8
Jorge Campo commentedGarnerin,
See if you can check your logs, as I did.
If you have an IP machine running every five minutes, with an ip lookup webpage like http://ip-lookup.net/ perhaps we can shed some light on this issue.
Comment #9
Garnerin commentedjcampo,
I've done, but I cannot find any remarkable in there. My cron log records were written every 15 minutes, that's the period I've set up my cron job to run. The IP address mentioned in such a record points to my web host -- just as it should do. Sorry, it doesn't seem to help in light shedding...
Comment #10
djmabo commentedI haven't amazon module too
Comment #11
Jorge Campo commentedI had the cache enable here:
http://YOURWEBPAGE/admin/settings/performance
It runs every 5 minutes.
I changed to 15 minutes but still I got the same notifications every five minutes (not entirely tested).
I disabled the cache and the messages are not coming anymore.
Could it be the case for you too?
Comment #12
Garnerin commentedNo, I have disabled the cache all the time, normally. For some other reason, for testing another module, I turned the cache on and off some times in the past, but that didn't have impact on the update check period.
Again, my problem is the check for updates with every cron run and, if an update is available, the repeating email notification with every update check, no more, no less. I get the feeling that we're slightly wandering from the subject...
Comment #13
angelopc commentedI've got the same issue. No Amazon module. Poormanscron set to run every hour. Cron runs every five minutes by the same IP address (75.101.228.155).
Comment #14
drupaloSa commentedsame as #13.
Comment #15
Jorge Campo commentedThe courious thing with that IP is that it corresponds to Amazon.
See for yourself introducing the IP here:
http://www.arin.net/whois/
Comment #16
Jorge Campo commentedGarnerin,
sorry I cannot be more helpful. I re-read your first post and I was under the same symptoms.
We will need somebody more technical taking a look at this.
Comment #17
9dots commentedAlso experiencing the same problem
Comment #18
AlainS commentedThe cron.php request probably comes from Acquia'a AWS server. Did you download the Acquia package ?
Comment #19
Garnerin commentedNo, I didn't. Never heard of that Acquia package.
Comment #20
Jorge Campo commentedIn my case I did not have acquia either (only mollom).
Alains message gave me an idea: I decided to download acquia and let him administer cron...and it worked!
I do not get the notification mails anymore every five minutes. I just get only one.
I do not know if this issue is produced by poormanscron or is something else.
Perhaps others can try acquia and see if it works for them.
Comment #21
Anonymous (not verified) commentedIt's probably Acquia (www.acquia.com). But I can't find the switch to turn off their CRON, so I hacked the cron.php:
Comment #22
pwolanin commentedAcquia.com will only be pinging your site if you (or someone) signed up for a subscription or a trial subscription and entered your site URL (or IP address).
Comment #23
David_Rothstein commentedAlso, if you have an Acquia subscription, you can turn off the cron service by logging in to acquia.com, clicking on your subscription name in the Site Selector menu, then "Settings", then "Cron"...
However, I think it's clear from the original bug report that this is something which occurs independently of whether it's Acquia running cron for you or not. (Acquia's default cron interval is 5 minutes, though - so obviously the bug will be a lot more annoying if you are running cron that often :)
Comment #24
Palo M. commentedI just turned e-mail notification on and I noticed I'm having the same problem.
I run cron every 30 minutes and notifications are coming each time.
I do not have Acquia, it's surely coming from Drupal itself.
Also, I must mention, that not only notification comes with each run of cron, but also the event log (on admin/reports/dblog) shows for EACH run of cron that the information about updates has been collected! Also when I run cron manually, there is check for updates!
Regardless I set it (on admin/reports/updates/settings) to weekly or daily, whether there should be an e-mail notification or not, Drupal is always checking for updates with each cron run.
Comment #25
joshmillerIf we can find the problem and fix it, the change will have to happen first for Drupal 7.x
That being said, here's what I've collected about how drupal is handling sending the emails.
Notice how that if statement above is checking for a cron_key. This cron_key is designed to keep remote sites from running your cron for you (that should alleviate some concerns). That is from D7, so not sure if D6 has this particular convention.
That function above makes sure we aren't running more than one cron.php instance at a time. And then it calls "module_invoke_all()" which will invoke the update module's cron funtion...
If you read those lines above correctly, this function is enforcing the variable "update_check_frequency." The default setting is 1 day, but it also enforces an update if the cache_get() functions return "false." (meaning cache has not been created). So that's where our bug lives, if it exists at all.
Hope that helps.
Josh
Comment #26
dave reidMoving to the proper queue. The update system relates to update.php, while update.module is the "available updates" page, etc.
Comment #27
dwwI think this is yet another symptom of #220592: Core cache API breaks update.module: fetches data way too often, kills site performance, etc.