Topic: If MySQL server drops, ModX should stop the parsing from the start.  (Read 1873 times)

Pages: [1]   Go Down

#1: 17-Jun-2009, 05:50 AM


goldsky
Posts: 561

Less is more

WWW
One of my site has a MySQL's server problem. It stops.

But the ModX keeps running all the document parsing.
You know,
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« Execution of a query to the database failed - Out of memory (Needed 65508 bytes) »
... repeated in full page.

I think the Core scripts should stop running if the MySQL Database failed to respond the connection.
Rico
on ModX 1.0.2 // Apache 2.0.63 (Win32) // PHP 5.2.6  // MySQL 5.0.81 (3306) // MySQL 4.1.22 (3307)
Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
MODx is great, but knowing how to use it good makes it perfect!
Indonesia MODx Forum // MODx Evo's cheatsheets // IE 6 must die !

#2: 25-Jun-2009, 02:35 AM

featherodd
Posts: 35

I'm having the same problem all the freaking time on a MediaTemple site:

« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« Execution of a query to the database failed - Out of memory (Needed 2094560 bytes) »
      SQL: SHOW TABLES
      [Copy SQL to ClipBoard]
 
Parser timing
  MySQL:    0.0061 s   (0 Requests)
  PHP:    0.0446 s   
  Total:    0.0507 s   

it's getting ridiculous!!!

#3: 25-Jun-2009, 03:03 AM


shamblett
Posts: 671

WWW
The above errors are indicative of a hosting/platform problem, not really MODx, the problem I see with this :-
Quote
I think the Core scripts should stop running if the MySQL Database failed to respond the connection.
is that how do you decide to start processing again? If you stop processing you won't make any more connections, so you won't know when the DB is working again.

Admittedly dumping the error message is not always desirable, this thread http://modxcms.com/forums/index.php/topic,33898.msg207757.html shows how you can override this behaviour if you wish
Use MODx, or the cat gets it!

#4: 25-Jun-2009, 08:11 AM

Moderator

OpenGeek
MODx Co-Founder
Posts: 6,985

damn accurate caricatures...

WWW
BTW, the real problem here is that the queries being executed are returning result sets that are too large for your PHP configuration to handle.  I would investigate what queries these are that are causing the parsing errors and address those.
Jason Coward
MODx Co-Founder
xPDO Founder
CTO @ Collabpad
work productively.
work intelligently.
work together.
Light is just a vibration of a note too. Everything is. You've got to keep that in mind.
  Frank Zappa

#5: 19-Aug-2009, 04:16 AM


goldsky
Posts: 561

Less is more

WWW
Will you make an option like SMF has?
"Send emails on MySQL connection error"
This CMS heavily depends on MySQL.
The interuption should be handle nicely.
Rico
on ModX 1.0.2 // Apache 2.0.63 (Win32) // PHP 5.2.6  // MySQL 5.0.81 (3306) // MySQL 4.1.22 (3307)
Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
MODx is great, but knowing how to use it good makes it perfect!
Indonesia MODx Forum // MODx Evo's cheatsheets // IE 6 must die !

#6: 19-Aug-2009, 11:32 AM

Foundation

rthrash
Posts: 11,353

WWW
Please file a ticket in JIRA for an improvement. Great idea.
MODx is a content managmeent framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Please help us help you when asking for assistance and read the wiki. Searching the forums from the top level helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.

#7: 19-Aug-2009, 11:39 AM


goldsky
Posts: 561

Less is more

WWW
Please file a ticket in JIRA for an improvement. Great idea.
Done.
http://svn.modxcms.com/jira/browse/MODX-1156

Thx, Ry.
Rico
on ModX 1.0.2 // Apache 2.0.63 (Win32) // PHP 5.2.6  // MySQL 5.0.81 (3306) // MySQL 4.1.22 (3307)
Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
MODx is great, but knowing how to use it good makes it perfect!
Indonesia MODx Forum // MODx Evo's cheatsheets // IE 6 must die !

#8: 13-Oct-2009, 10:10 AM


goldsky
Posts: 561

Less is more

WWW
This MySQL error happens several times on my side.
This time is about "MySQL server has gone away".
I've contacted my webhost and they gave me a clue: http://dev.mysql.com/doc/refman/5.0/en/gone-away.html

The server stats are:
PHP Version= 5.2.8
MySQL/i= 5.0.81
_SERVER["REQUEST_TIME"]= 1255446018

I'm running ModX 0.9.6.3

What should I do?
Rico
on ModX 1.0.2 // Apache 2.0.63 (Win32) // PHP 5.2.6  // MySQL 5.0.81 (3306) // MySQL 4.1.22 (3307)
Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
MODx is great, but knowing how to use it good makes it perfect!
Indonesia MODx Forum // MODx Evo's cheatsheets // IE 6 must die !
Pages: [1]   Go Up
0 Members and 1 Guest are viewing this topic.