View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - [SOLVED] CRON stopping abnormally. - ProjeQtOr
 

[SOLVED] CRON stopping abnormally.

More
30 Jul 2024 09:29 #1 by chandrashekhar
For some time, I am facing some strange issue that cron is starting/stopping anytime and that is why mail is not being sent to the receiver on schedule but delaying too long.
Could you please assist me in solving this.

Please find the below log file lines for reference.2024-07-30 12:41:03.914 ===== TRACE ===== Cron started at 30/07/2024 12:41:03
2024-07-30 12:41:34.371
DEBUG
../model/Mail.php not found, current directory is :'C:\Apache24'
Try to move up with chdir('../')
2024-07-30 12:41:34.372 ***** ERROR ***** [V11.3.1] CRON abnormally stopped
2024-07-30 12:41:34.372 ***** ERROR ***** [V11.3.1] === Trace Stack for last error ===
2024-07-30 12:41:34.372 ***** ERROR ***** [V11.3.1] => C:\Apache24\htdocs\projeqtor\model\Cron.php at line 321 calling debugPrintTraceStack()
2024-07-30 12:41:34.373 ***** ERROR ***** [V11.3.1] => C:\Apache24\htdocs\projeqtor\tool\cronRun.php at line 35 calling Cron:abort()
2024-07-30 12:41:34.373 ***** ERROR ***** [V11.3.1] => calling cronAbort()
2024-07-30 12:41:34.373 ***** ERROR ***** [V11.3.1] ===
2024-07-30 12:42:07.228 ===== TRACE ===== Cron started at 30/07/2024 12:42:07
2024-07-30 12:42:37.325
DEBUG
../model/Mail.php not found, current directory is :'C:\Apache24'
Try to move up with chdir('../')
2024-07-30 12:42:37.326 ***** ERROR ***** [V11.3.1] CRON abnormally stopped
2024-07-30 12:42:37.327 ***** ERROR ***** [V11.3.1] === Trace Stack for last error ===
2024-07-30 12:42:37.327 ***** ERROR ***** [V11.3.1] => C:\Apache24\htdocs\projeqtor\model\Cron.php at line 321 calling debugPrintTraceStack()
2024-07-30 12:42:37.327 ***** ERROR ***** [V11.3.1] => C:\Apache24\htdocs\projeqtor\tool\cronRun.php at line 35 calling Cron:abort()
2024-07-30 12:42:37.328 ***** ERROR ***** [V11.3.1] => calling cronAbort()
2024-07-30 12:42:37.328 ***** ERROR ***** [V11.3.1] ===

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

More
02 Aug 2024 17:50 #2 by babynus
Replied by babynus on topic CRON stopping abnormally.
Hi,

If you have no other issue written in the logs then possibly issue is due to Sceduled reports.
Try and disable all scheduled reports and see if Cron runs fluently.
Then you can try and reactivate reports one by one to identify erroneous one.

Babynus
Administrator of ProjeQtOr web site

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

More
03 Aug 2024 11:58 #3 by chandrashekhar
Hi,
Thanks for the suggestion, I have deleted two and disabled 1 scheduled report(s). Will observe now.

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

More
03 Aug 2024 14:26 #4 by chandrashekhar
Hi, 

I followed the instructions what you suggested i.e. disabled scheduled reports, but the cron is still stopping frequently and ProjeQtOr log is showing the same result (as following)!2024-08-03 16:44:23.624
DEBUG
../model/Mail.php not found, current directory is :'C:\Apache24'
Try to move up with chdir('../')
2024-08-03 16:44:23.625 ***** ERROR ***** [V11.3.1] CRON abnormally stopped
2024-08-03 16:44:23.626 ***** ERROR ***** [V11.3.1] === Trace Stack for last error ===
2024-08-03 16:44:23.626 ***** ERROR ***** [V11.3.1] => C:\Apache24\htdocs\projeqtor\model\Cron.php at line 321 calling debugPrintTraceStack()
2024-08-03 16:44:23.626 ***** ERROR ***** [V11.3.1] => C:\Apache24\htdocs\projeqtor\tool\cronRun.php at line 35 calling Cron:abort()
2024-08-03 16:44:23.627 ***** ERROR ***** [V11.3.1] => calling cronAbort()
2024-08-03 16:44:23.627 ***** ERROR ***** [V11.3.1] ===

At the same time I checked the error log from apache also, it's showing the following resoult.

[Sat Aug 03 16:44:23.623680 2024] [php:error] [pid 12044:tid 1152] [client 192.168.1.2:49296] PHP Fatal error:  Maximum execution time of 3000 seconds exceeded in C:\\Apache24\\htdocs\\projeqtor\\model\\Cron.php on line 503, referer: http://192.168.77.266/projeqtor/view/main.php
 
Hope, the above two logs may help you in assisting me. Could you please help me with this?

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

More
08 Aug 2024 16:12 #5 by babynus
Replied by babynus on topic CRON stopping abnormally.
It seems the set_time_limit function doe snot work on your instance.
Check tool/projeqtor.php, if line 4835 is "return;", remove it

function projeqtor_set_time_limit($timeout) {
  return;
  if (ini_get('safe_mode')) {

to 

function projeqtor_set_time_limit($timeout) {
  if (ini_get('safe_mode')) {


Babynus
Administrator of ProjeQtOr web site

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

More
12 Aug 2024 08:42 #6 by chandrashekhar
Hi,

Thank you so much for your help. Following your suggested steps seems to have resolved the issue of the cron stopping abnormally. However, I do have a question: Regarding the change made in the `projeqtor.php` file where I commented on line 4835 as per your guidance, I noticed in the ticket #8746 on track.projeqtor.org/ that a permanent resolution has been implemented in the upcoming stable release version 11.3.2.

Could you please clarify this further? Your insights would be greatly appreciated.

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

Moderators: babynusprotion
Time to create page: 0.037 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.