View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
1338 | Composr | General / Uncategorised | public | 2013-08-07 19:42 | 2013-08-07 21:08 |
Reporter | Lhasadreams | Assigned To | Chris Graham | ||
Priority | urgent | Severity | major | ||
Status | resolved | Resolution | fixed | ||
Summary | 1338: The Cron Daemon is emitting errors at 1 minute intervals | ||||
Description | Hi, We have not changed anything and at 20:13 tonight I have started to get Cron Daemon error messages. This is continuing at 1 minute intervals, ie each time cron_bridge.php runs. The error is a PHP error "Allowed memory size of 67108864 bytes exhausted (tried to allocate 17131744 bytes) in sources/mail.php on line 534 @ http://vwgolfmk1.org.uk/data/cron_bridge.php" [07-Aug-2013 19:36:03 UTC] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 17131744 bytes) in /home/vwgolfm/public_html/sources/mail.php on line 534 [07-Aug-2013 19:36:03 UTC] PHP Error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 17131744 bytes) in sources/mail.php on line 534 @ http://vwgolfmk1.org.uk/home/vwgolfm/public_html/data/cron_bridge.php Not sure what has happened, so would appreciate you guys taking a look. The site itself is up and running fine. Cheers Ade | ||||
Tags | No tags attached. | ||||
Attach Tags | |||||
Time estimation (hours) | |||||
Sponsorship open | |||||
|
Running the cron job by hand gives: <!DOCTYPE html><html lang="EN"> <head> <title>Critical error</title> <style type="text/css"><![CDATA[ .screen_title { text-decoration: underline; display: block; min-height: 42px; padding: 3px 0 0 0; } a[target="_blank"], a[onclick$="window.open"] { padding-right: 0; } ]]></style> </head> <body><div class="global_middle"><h1 class="screen_title">Critical error – bailing out</h1> <div class="red_alert" role="error">This is an error that has been elevated to critical error status because it occurred during the primary error mechanism reporting system itself (possibly due to it occuring within the standard output framework). It may be masking a secondary error that occurred before this, but was never output - if so, it is likely strongly related to this one, thus fixing this will fix the other.</div> <div style="padding-left: 50px">PHP ERROR [1] Allowed memory size of 67108864 bytes exhausted (tried to allocate 17131744 bytes) in sources/mail.php on line 534 (version: 9.0.5, PHP version: 5.3.20, URL: /home/vwgolfm/public_html/data/cron_bridge.php)<div class="box guid_{_GUID}"><div class="box_inner"><h2>Stack trace…</h2> File -> '/home/vwgolfm/public_html/sources/failure.php' File -> '/home/vwgolfm/public_html/sources/global2.php' File -> '/home/vwgolfm/public_html/sources/failure.php' File -> '/home/vwgolfm/public_html/sources/global2.php' File -> '/home/vwgolfm/public_html/sources/global2.php' Function -> 'catch_fatal_errors' </div></div></div> Details here are intended only for the website/system-administrator, not for regular website users. <p class="associated_details">Depending on the error, and only if the website installation finished, you may need to # (the <kbd>info.php</kbd> file). <p class="associated_details">ocProducts maintains full documentation for all procedures and tools. These may be found on the http://compo.sr. If you are unable to easily solve this problem, we may be contacted from our website and can help resolve it for you. <hr /> <p style="font-size: 0.8em">http://compo.sr/ is a <abbr title="Content Management System">CMS</abbr> for building websites, developed by ocProducts. </div></body> |
|
Top is showing that there is about 205Mbytes free |
|
So mail.php is giving up after not being able to allocate enough memory. Any idea why that might be ? |
|
I am still getting new post email notifications as well - I thought this job controlled that ? |
|
MySQL returns rows in storage order. If rows are deleted, new rows typically go in the hole. Hence why some of the queue sends. I'll investigate, later tonight I think. You may want to temporarily disable CRON if the messages are getting too annoying, or turn the frequency down. |
|
Cheers Chris I have set it to every 10 minutes. |
|
I fixed this. It was an email with a 13MB attachment within the Comcode. It was failing to convert it to base64 to encode into the email. I have put in a 5MB limit, this is really rare. However I have noticed (an unrelated issue) CRON is slow for you even when immediately refreshing, it should be really fast in such a situation. So I am studying this. |
|
Hmm, that was probably just a concurrency issue of some kind. It is fast again now. Ok, resolved. |
|
Excellent - thanks for getting on and fixing it so quickly. |
Date Modified | Username | Field | Change |
---|---|---|---|
2023-02-26 18:29 | Chris Graham | Category | General => General / Uncategorised |