View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - 2006 MySQL server has gone away - ProjeQtOr
 
 

2006 MySQL server has gone away

More
20 May 2018 21:18 #1 by ade
Hi,

I have the following error

2018-05-20 17:57:08.580 ***** ERROR ***** [V6.5.2] Exception-[HY000] SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
2018-05-20 17:57:08.580 ***** ERROR ***** [V6.5.2] For query : select * from indicatorvalue where idle='0' and ( ( warningTargetDateTime<='2018-05-20 17:57:08' and (warningSent='0' or code = 'YEARLY')) or ( alertTargetDateTime<='2018-05-20 17:57:08' and (alertSent='0' or code = 'YEARLY')))

then after a while the cron stops.

I diagnose that the link is more alive with my sql server.

I request to have the right to modidy the server .. but as usal complicated on my hoster.

The solution i suggest may be not the best is to reconnect le link on each cron activities.

extract of code modif ...
public static function getConnection($forceToReconnect) {
global $enforceUTF8;
if (self::$connexion != NULL && forceToReconnect==false) {
//if (mysql_ping(self::$connexion)) {
return self::$connexion;
}
......

Let me known your view

Please Log in or Create an account to join the conversation.

More
21 May 2018 00:26 #2 by babynus
OK,
Will try that (with some small adaptation)

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
21 May 2018 16:29 - 21 May 2018 18:02 #3 by ade
Replied by ade on topic 2006 MySQL server has gone away
Hi,

On hostinger, to change the sql server config, i have to pay another server. ;o(

Made a temporay patch, but after 4 minutes, the cron is stopped without any reason.

2018-05-21 15:52:56.609 ===== TRACE ===== Cron started at 21/05/2018 15:52:56
2018-05-21 15:53:16.612 ===== TRACE ===== Alain::run() - checkDates()
2018-05-21 15:53:46.614 ===== TRACE ===== Alain::run() - checkDates()
2018-05-21 15:54:16.646 ===== TRACE ===== Alain::run() - checkDates()
2018-05-21 15:54:46.662 ===== TRACE ===== Alain::run() - checkDates()
2018-05-21 15:55:16.665 ===== TRACE ===== Alain::run() - checkDates()
2018-05-21 15:55:46.767 ===== TRACE ===== Alain::run() - checkDates()
2018-05-21 15:56:16.782 ===== TRACE ===== Alain::run() - checkDates()
2018-05-21 15:56:46.859 ===== TRACE ===== Alain::run() - checkDates()
2018-05-21 15:56:57.416 ***** ERROR ***** [V6.5.2] cron abnormally stopped

So the solution is not a viable one.

May be i have to change the cron service to be pulled by the hoster itself in order to avoid so strange behavior.
Last edit: 21 May 2018 18:02 by ade.

Please Log in or Create an account to join the conversation.

More
21 May 2018 18:09 #4 by babynus
This may be fixed by lastest patch (V7.0.9)

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
22 May 2018 13:58 #5 by ade
Replied by ade on topic 2006 MySQL server has gone away
Hi,

I apply the lastest patch (V7.0.9).

No more issue on server connection.:) :) :)

But same issue after 4 minutes, the cron is stopped without any reason: may be i m not allowed to have a treatment which is running more than 4 minutes.

My alternative is to restart the cron. Note that my hoster allows me to shedule cron activities.

By launching every xx minutes cronRun.php launched by following url "www.mysite.fr/cron-wp.php" reactive the service, but it's a dirty solution.

Let me known your view how to proceed.

Please Log in or Create an account to join the conversation.

More
22 May 2018 14:20 #6 by babynus
The internal Cron is a script that runs without ending.
For this to work, we set max_execution_timeout to zero (never ending)
If your hoster forbids this, there is no "clean" solution.

Babynus
Administrator of ProjeQtOr web site
The following user(s) said Thank You: ade

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.047 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.