Jump to content

cronjob do not run completely after upgrade to 5.3.6


LAZer414

Recommended Posts

hi , i have upgraded my whmcs 5.2 to 5.3.6 , and now my cronjobs do not complete . every other things are working fine , like payment gateways , invoicing , tickets .... but cronjob sends the first invoice and do not continue anymore.

the error reportings are active in php.ini , also in configuration.php , and also in whmcs "other settings".

but it doesn't report any errors when cron runs incomplete.

 

when i run php -q cron.php from ssh , it gives no error sends the first invoice alert email and process ends.

here is a part of the tasks done in ssh :

 

Starting

Starting Generating Invoices

Invoicing Loop Service ID 479 - 1 of xyz

...

Invoicing Loop Addon ID 34 - 1 of xy

...

Invoicing Loop Domain ID 417 - 1 of xyz

...

- 0 Invoices Created

Starting Applying Late Fees

- Late Invoice Fees added to 0 Invoices

Starting Processing Credit Card Charges

Starting Processing Invoice Reminder Notices

- Sent 0 Unpaid Invoice Payment Reminders

- Sent First Notice to User xyz

 

and it only send this first email and stops.

 

******************************************************

according to the do_functions , in crons , i have tested this functions, and it completed successfully .

http://docs.whmcs.com/Crons

 

/cron.php?do_backups=1&do_cancelrequests=1&do_ccexpirynotices=1&do_ccprocessing=1&do_clientstatussync=1&do_closetickets=1&do_domainrenewalnotices=1&do_emailmarketing=1&do_fixedtermterminations=1

 

here is the log in whmcs utility --> logs --> activity logs :

[TABLE=class: datatable, width: 100%]

[TR]

[TD]

Cron Job: Starting Database Backup

[/TD]

[TD][/TD]

[TD][/TD]

[/TR]

[TR]

[TD]2014-04-02 14:22[/TD]

[TD]

Cron Job: Completed

[/TD]

[TD][/TD]

[TD][/TD]

[/TR]

[TR]

[TD]2014-04-02 14:22[/TD]

[TD]

Cron Job: Done

[/TD]

[TD][/TD]

[TD][/TD]

[/TR]

[TR]

[TD]2014-04-02 14:22[/TD]

[TD]

Cron Job: Starting Performing Client Status Sync

[/TD]

[TD][/TD]

[TD][/TD]

[/TR]

[TR]

[TD=bgcolor: #EFF2F9]2014-04-02 14:22[/TD]

[TD=bgcolor: #EFF2F9]

Cron Job: Starting Processing Email Marketer Rules

[/TD]

[/TR]

[/TABLE]

 

**************************************************************************

but when i add &do_invoicereminders=1 it fails to continue.

 

it only sends the first email and stops without any errors.

Edited by LAZer414
Link to comment
Share on other sites

i have tested more , all of the tasks are running fine , except the invoicereminders.

 

cron.php?do_backups=1&do_cancelrequests=1&do_ccexpirynotices=1&do_ccprocessing=1&do_clientstatussync=1&do_closetickets=1&do_domainrenewalnotices=1&do_emailmarketing=1&do_fixedtermterminations=1&do_invoices=1&do_latefees=1&do_suspensions=1&do_terminations=1&do_updatepricing=1&do_updaterates=1&do_usagestats=1

 

Cron Job Report for Wednesday 2nd April 2014 @ 14:33:25

 

0 Invoices Created

 

0 Late Fees Added

 

0 Domain Renewal Notices Sent

 

1 Services Suspended

- ERROR: Manual Suspension Required - No Module -

....

they are always here .

 

- SUCCESS: Host - (Service ID: 148 - User ID: 79)

- ERROR: Manual Suspension Required - No Module - (Service ID: 603 - User ID: 724)

- ERROR: Manual Suspension Required - _suspendacct called for a user that does not exist....

 

 

0 Fixed Term Terminations Processed

 

Processed Email Marketer Rules

 

******************************************************

so it completed the cron successfully. and even suspended a user.

 

any suggestions for the problem of &do_invoicereminders=1 it fails to continue. ?

Link to comment
Share on other sites

  • 3 weeks later...

now the problem changed to creating only 2 invoices and stopping at sending the second email .

 

[TABLE=class: datatable, width: 100%]

[TR]

[TD]2014-04-20 12:20[/TD]

[TD]

Created Invoice - Invoice ID: 2610

[/TD]

[TD][/TD]

[TD][/TD]

[/TR]

[TR]

[TD]2014-04-20 12:20[/TD]

[TD]

Email Sent to ******* User ID: 725

[/TD]

[TD][/TD]

[TD][/TD]

[/TR]

[TR]

[TD]2014-04-20 12:20[/TD]

[TD]

Created Invoice - Invoice ID: 2609

[/TD]

[TD][/TD]

[TD][/TD]

[/TR]

[TR]

[TD=bgcolor: #EFF2F9]2014-04-20 12:20[/TD]

[TD=bgcolor: #EFF2F9]

Cron Job: Starting Generating Invoices

[/TD]

[TD=bgcolor: #EFF2F9][/TD]

[TD=bgcolor: #EFF2F9][/TD]

[/TR]

[TR]

[TD]2014-04-20 12:20[/TD]

[TD]

Cron Job: Starting

[/TD]

[/TR]

[/TABLE]

 

 

it creates 1 invoice and sends its related email , then creates the second invoice and do not continue sending other emails or creating other invoices.

 

i have tried disabling servers and payment gateways , and set memory limit to 512M , but they didnt fix this issue . :(

Link to comment
Share on other sites

  • WHMCS Support Manager

Hi,

 

Please review Utilities > Logs > Activity Log and ensure you see a number of entries beginning "Cron Job" each day. The final entry every day should be "Cron Job: Completed".

 

As you see some Cron Job entries but no "Cron Job: Completed" entry this suggests the cron is being terminated prematurely by your server. Please increase the memory_limit setting in your server's php.ini to 64M or 128MB which should easily be sufficient. Then see if things improve and you start getting the cron job report again over the next few days.

 

If the cron still doesn't complete with the increased memory limit please ensure display_errors is enabled in the server's PHP configuration and enable the Setup > General Settings > Other tab > Display Errors option, then run the cron manually by visiting the cron.php file in your browser. You should now see an error output to the screen. We have collected some of the most common errors and their causes, refer to the appropriate page in the following sections:

 

http://docs.whmcs.com/Server_Modules

http://docs.whmcs.com/Domain_Registrars

http://docs.whmcs.com/Common_Troubleshooting_Tips#Server_Errors

Link to comment
Share on other sites

hi , thanks for the answering , but i have done all the above steps , and if you read my previous posts in this topic , i have said that i have done the following actions and they didn't solve this issue :

 

1-I have increased memory limit to 512M , and it didn't help

2-removed all the disable functions from php.ini , and also disabled php safemode , no changes.

3-enabled php error reporting in 3 places , in php.ini to E_ALL , in whmcs configuration.php , and also in whmcs general > other tab > display error , and debug mode for sql and also debug mode for addons set to active , and they didn't help.

 

4- also there is no error log being created. i even tried reading the following server logs and there was no log entry to them too !

/var/log/messages , searching for cron.php

/usr/local/apache/logs/ suexec.log , suphp.log , and httpd.log and error_log in this directory. there was no error line relating to cron.php file.

 

5-i have removed/deleted the disabled , payment gateway modules , and server modules , and registrar modules that i don't use.

6- i have tried disabling all payment gateways , and all defined servers , then running cron.php again , and the same issue exist.

whmcs only creates 1 invoice , send its reminder email , creates second invoice , it does not send this second reminder and process ends with a white page and no error at all.

 

7-the last thing that i am working on is that i have gone to the database , and email templates for a language is doubled .

the are some email templates that are default ( no language ) and there are 2 similiar posts for my site second language.

 

for example :

1.hosting account welcome email --> no language.

2.hosting account welcome email --> farsi language.

3.hosting account welcome email --> farsi language.

2 and 3 having all the same content and attributes . only the row IDs are different.

 

i have taken a backup from this table , and trying to remove the duplicate entries and see if this solves the issue or not .

i don't see any other faults.

there is no entry for the "cronjob completed" in whmcs reports.

Link to comment
Share on other sites

  • WHMCS Support Manager

Hi,

If nothing is output on-screen when running the cron in your browser, even with the Display Errors option enabled. Please run the following command from the server's CLI:

 

php -q /path/to/cron.php debug

 

Replace /path/to/ with the actual path to your cron.php file. This should then output some data for us to review.

Link to comment
Share on other sites

thanks for the reply , here it is :

php -q cron.php debug

Starting (Time: 0.54 Memory: 11.4)
Starting Generating Invoices (Time: 0.04 Memory: 11.4)
Invoicing Loop Service ID 610 - 1 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 88 - 2 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 479 - 3 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 363 - 4 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 91 - 5 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 337 - 6 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 335 - 7 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 367 - 8 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 549 - 9 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 206 - 10 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 580 - 11 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 548 - 12 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 533 - 13 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 378 - 14 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 384 - 15 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 202 - 16 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 576 - 17 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 613 - 18 of 112 (Time: 0.02 Memory: 11.4)
Invoicing Loop Service ID 483 - 19 of 112 (Time: 0.04 Memory: 11.4)
Invoicing Loop Service ID 391 - 20 of 112 (Time: 0.02 Memory: 11.4)
Invoicing Loop Service ID 470 - 21 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 397 - 22 of 112 (Time: 0.02 Memory: 11.4)
Invoicing Loop Service ID 401 - 23 of 112 (Time: 0.02 Memory: 11.4)
Invoicing Loop Service ID 288 - 24 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 327 - 25 of 112 (Time: 0.02 Memory: 11.4)
Invoicing Loop Service ID 410 - 26 of 112 (Time: 0.02 Memory: 11.4)
Invoicing Loop Service ID 316 - 27 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 427 - 28 of 112 (Time: 0.03 Memory: 11.4)
Invoicing Loop Service ID 416 - 29 of 112 (Time: -0.99 Memory: 11.4)
Invoicing Loop Service ID 444 - 30 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 451 - 31 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 474 - 32 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 477 - 33 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 481 - 34 of 112 (Time: 0.02 Memory: 11.4)
Invoicing Loop Service ID 482 - 35 of 112 (Time: 0.02 Memory: 11.4)
Invoicing Loop Service ID 484 - 36 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 485 - 37 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 486 - 38 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 487 - 39 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 493 - 40 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 129 - 41 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 104 - 42 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 373 - 43 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 501 - 44 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 242 - 45 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 498 - 46 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 432 - 47 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 445 - 48 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 509 - 49 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 492 - 50 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 607 - 51 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 568 - 52 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 514 - 53 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 517 - 54 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 518 - 55 of 112 (Time: 0.02 Memory: 11.4)
Invoicing Loop Service ID 520 - 56 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 525 - 57 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 528 - 58 of 112 (Time: 0.02 Memory: 11.4)
Invoicing Loop Service ID 577 - 59 of 112 (Time: 0.03 Memory: 11.4)
Invoicing Loop Service ID 537 - 60 of 112 (Time: 0.01 Memory: 11.4)
Invoicing Loop Service ID 547 - 61 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 561 - 62 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 440 - 63 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 587 - 64 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 608 - 65 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 609 - 66 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 425 - 67 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 422 - 68 of 112 (Time: 0.02 Memory: 11.41)
Invoicing Loop Service ID 9 - 69 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 617 - 70 of 112 (Time: 0.08 Memory: 11.41)
Invoicing Loop Service ID 433 - 71 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 244 - 72 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 372 - 73 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 192 - 74 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 360 - 75 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 392 - 76 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 597 - 77 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 592 - 78 of 112 (Time: 0.03 Memory: 11.41)
Invoicing Loop Service ID 589 - 79 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 393 - 80 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 513 - 81 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 614 - 82 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 448 - 83 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 510 - 84 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 176 - 85 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 602 - 86 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 421 - 87 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 443 - 88 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 8 - 89 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 294 - 90 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 388 - 91 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 605 - 92 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 574 - 93 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 59 - 94 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 236 - 95 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 424 - 96 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 502 - 97 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 387 - 98 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 77 - 99 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 449 - 100 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 431 - 101 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 562 - 102 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 603 - 103 of 112 (Time: -0.99 Memory: 11.41)
Invoicing Loop Service ID 475 - 104 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 185 - 105 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 593 - 106 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 348 - 107 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 399 - 108 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 350 - 109 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 215 - 110 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 546 - 111 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Service ID 13 - 112 of 112 (Time: 0.01 Memory: 11.41)
Invoicing Loop Addon ID 34 - 1 of 5 (Time: 0.01 Memory: 11.41)
Invoicing Loop Addon ID 45 - 2 of 5 (Time: 0.01 Memory: 11.41)
Invoicing Loop Addon ID 48 - 3 of 5 (Time: 0.01 Memory: 11.41)
Invoicing Loop Addon ID 50 - 4 of 5 (Time: 0.01 Memory: 11.41)
Invoicing Loop Addon ID 44 - 5 of 5 (Time: 0.01 Memory: 11.41)
Invoicing Loop Domain ID 417 - 1 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 418 - 2 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 411 - 3 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 416 - 4 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 521 - 5 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 580 - 6 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 276 - 7 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 578 - 8 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 115 - 9 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 420 - 10 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 421 - 11 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 524 - 12 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 188 - 13 of 35 (Time: 0.02 Memory: 11.73)
Invoicing Loop Domain ID 119 - 14 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 496 - 15 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 495 - 16 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 401 - 17 of 35 (Time: 0.02 Memory: 11.73)
Invoicing Loop Domain ID 367 - 18 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 425 - 19 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 200 - 20 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 124 - 21 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 439 - 22 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 283 - 23 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 300 - 24 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 410 - 25 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 16 - 26 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 363 - 27 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 419 - 28 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 243 - 29 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 121 - 30 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 318 - 31 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 565 - 32 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 232 - 33 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 335 - 34 of 35 (Time: 0.01 Memory: 11.73)
Invoicing Loop Domain ID 415 - 35 of 35 (Time: 0.01 Memory: 11.73)
Generated Invoice #2636 (Time: 0.02 Memory: 11.73)
Generated Invoice #2637 (Time: 0.09 Memory: 30.84)

 

process ended here . without any errors.

Link to comment
Share on other sites

Hi,

If you temporarily UNtick the Setup > General Settings > Invoices tab > Enable PDF Invoices option and try again, does that get any further?

 

:D thanks , i have disabled pdf invoice , and it seems to run completely this way .

cronjob automatically executed 2 hours before , but anyway , this time it is done completely.

 

here is the last part of the output from ssh :

 

 

 

اÙ-Intel Core i7-2600 - server2.com-#308971 - ÙÙÛد اÙ

Ø§Ù Ø¢Ø¨Ø§Ø¯Û (Service ID: 593 - User ID: 720) (Time: 0 Memory: 16.15)

- ERROR: Manual Suspension Required - An unknown error occurred - WHM-Res-10GB -...- admin ...(Service ID: 546 - User ID: 300) (Time: 0.05 Memory: 16.15)

 

- Processed 0 Suspensions (Time: 0 Memory: 16.36)

Starting Performing Automated Fixed Term Service Terminations (Time: 0 Memory: 16.36)

- Processed 0 Terminations (Time: 0 Memory: 16.36)

Starting Auto Closing Inactive Tickets (Time: 0 Memory: 16.36)

Starting Processing Email Marketer Rules (Time: 0 Memory: 16.36)

Starting Performing Client Status Sync (Time: 0 Memory: 16.36)

- Done (Time: -0.97 Memory: 16.36)

Completed (Time: 0 Memory: 16.36)

Cron Job Hooks Run... (Time: 0.08 Memory: 16.36)

Starting Database Backup (Time: 0 Memory: 16.36)

Backup Complete... (Time: 0 Memory: 16.36)

Goodbye (Time: 0 Memory: 16.36)

 

 

here is the output from whmcs activity log :

[TABLE=class: datatable, width: 100%]

[TR]

[/TR]

[TR]

[TD]2014-04-24 10:47[/TD]

[TD]

Cron Job: Starting Database Backup

[/TD]

[TD]System[/TD]

[TD][/TD]

[/TR]

[TR]

[TD]2014-04-24 10:47[/TD]

[TD]

Cron Job: Completed

[/TD]

[TD]System[/TD]

[TD][/TD]

[/TR]

[TR]

[TD]2014-04-24 10:47[/TD]

[TD]

Cron Job: Done

[/TD]

[TD]System[/TD]

[TD][/TD]

[/TR]

[TR]

[TD]2014-04-24 10:47[/TD]

[TD]

Cron Job: Starting Performing Client Status Sync

[/TD]

[TD]System[/TD]

[TD][/TD]

[/TR]

[TR]

[TD]2014-04-24 10:47[/TD]

[TD]

Cron Job: Starting Processing Email Marketer Rules

[/TD]

[TD]System[/TD]

[TD][/TD]

[/TR]

[TR]

[TD=bgcolor: #EFF2F9]2014-04-24 10:47[/TD]

[TD=bgcolor: #EFF2F9]

Cron Job: Starting Auto Closing Inactive Tickets

[/TD]

[TD=bgcolor: #EFF2F9]System[/TD]

[TD=bgcolor: #EFF2F9][/TD]

[/TR]

[TR]

[TD]2014-04-24 10:47[/TD]

[TD]

Cron Job: Processed 0 Terminations

[/TD]

[TD]System[/TD]

[TD][/TD]

[/TR]

[TR]

[TD]2014-04-24 10:47[/TD]

[TD]

Cron Job: Starting Performing Automated Fixed Term Service Terminations

[/TD]

[TD]System[/TD]

[TD][/TD]

[/TR]

[TR]

[TD]2014-04-24 10:47[/TD]

[TD]

Cron Job: Processed 0 Suspensions

[/TD]

[TD]System

[/TD]

[/TR]

[/TABLE]

 

 

.....

 

[TABLE=class: datatable, width: 100%]

[TR]

[/TR]

[TR]

[TD]2014-04-24 10:47[/TD]

[TD]

Cron Job: Sent 1 Unpaid Invoice Payment Reminders to Invoice Numbers 2631

[/TD]

[TD]System[/TD]

[TD][/TD]

[/TR]

[TR]

[TD]2014-04-24 10:47[/TD]

[TD]

Email Sent to admin ... -

User ID: 300

[/TD]

[TD]System[/TD]

[TD][/TD]

[/TR]

[TR]

[TD]2014-04-24 10:47[/TD]

[TD]

Cron Job: Starting Processing Invoice Reminder Notices

[/TD]

[TD]System[/TD]

[TD][/TD]

[/TR]

[TR]

[TD]2014-04-24 10:47[/TD]

[TD]

Cron Job: Starting Processing Credit Card Charges

[/TD]

[TD]System[/TD]

[TD][/TD]

[/TR]

[TR]

[TD]2014-04-24 10:47[/TD]

[TD]

Cron Job: Late Invoice Fees added to 0 Invoices

[/TD]

[TD]System[/TD]

[TD][/TD]

[/TR]

[TR]

[TD]2014-04-24 10:47[/TD]

[TD]

Cron Job: Starting Applying Late Fees

[/TD]

[TD]System[/TD]

[TD][/TD]

[/TR]

[TR]

[TD]2014-04-24 10:47[/TD]

[TD]

Cron Job: 0 Invoices Created

[/TD]

[TD]System[/TD]

[TD][/TD]

[/TR]

[TR]

[TD]2014-04-24 10:47[/TD]

[TD]

Cron Job: Starting Generating Invoices

[/TD]

[TD]System[/TD]

[TD][/TD]

[/TR]

[TR]

[TD]2014-04-24 10:47[/TD]

[TD]

Cron Job: Starting

[/TD]

[TD]System

 

[/TD]

[/TR]

[/TABLE]

 

 

 

so i should check the pdf invoice template file for errors ?

also whm/cpanel user suspension sometimes face errors that it disables first host , and for second users it gives an empty xml output .

 

here is the module log :

[TABLE=class: datatable, width: 100%]

[TR]

[TD=bgcolor: #EFF2F9]2014-04-24 10:47[/TD]

[TD=bgcolor: #EFF2F9]cpanel[/TD]

[TD=bgcolor: #EFF2F9]suspendacct[/TD]

[/TR]

[/TABLE]

 

/xml-api/suspendacct?user=USERNAMEHERE&reason=Overdue+on+Payment

 

Array

(

)

it generates all the hosts that should be suspended the same after this

 

[TABLE=class: datatable, width: 100%]

[TR]

[TD]2014-04-24 10:47[/TD]

[TD]cpanel[/TD]

[TD]suspendacct[/TD]

[TD][/TD]

[TD][/TD]

[/TR]

[TR]

[TD]2014-04-24 10:47[/TD]

[TD]cpanel[/TD]

[TD]suspendacct[/TD]

[TD][/TD]

[TD][/TD]

[/TR]

[TR]

[TD]2014-04-24 10:47[/TD]

[TD]cpanel[/TD]

[TD]suspendacct[/TD]

[TD][/TD]

[TD][/TD]

[/TR]

[TR]

[TD]2014-04-24 10:47[/TD]

[TD]cpanel[/TD]

[TD]suspendacct[/TD]

[TD][/TD]

[TD][/TD]

[/TR]

[TR]

[TD]2014-04-24 10:47[/TD]

[TD]cpanel[/TD]

[TD]suspendacct[/TD]

[TD][/TD]

[TD][/TD]

[/TR]

[TR]

[TD]2014-04-24 10:47[/TD]

[TD]cpanel[/TD]

[TD]suspendacct[/TD]

[TD][/TD]

[TD][/TD]

[/TR]

[TR]

[TD]2014-04-24 10:47[/TD]

[TD]cpanel[/TD]

[TD]suspendacct[/TD]

[TD][/TD]

[TD][/TD]

[/TR]

[TR]

[TD][/TD]

[/TR]

[/TABLE]

 

 

 

 

this is in the case that , the configuration of whm inside whmcs is correct , as whmcs can list the users of whm in the utilities --> cpanel/whm import ,

and also when i suspend/unsuspend that host manully from the products , whmcs can suspend the host in whm.

 

here is the log when i manully suspend a host from whmcs.

[TABLE=class: datatable, width: 100%]

[TR]

[TD]2014-04-23 11:01[/TD]

[TD]cpanel[/TD]

[TD]suspendacct[/TD]

[/TR]

[/TABLE]

 

/xml-api/suspendacct?user=USERNAME&reason=payment+delay

Array

(

[sUSPENDACCT] => Array

(

[RESULT] => Array

(

[sTATUS] => 1

[sTATUSMSG] => <script>if (window.clear_ui_status) clear_ui_status();</script>

Changing Shell to /bin/false...Changing shell for USERNAME

Warning: "/bin/false" is not listed in /etc/shells

Shell changed.

Done

Locking Password...Locking password for user USERNAME.

passwd: Success

Done

1Suspending email account logins for USERNAME .... Done

Suspending mysql users

Notification =>MYEMAIL via EMAIL [level => 3]

Using Universal Quota Support (quota=0)

Suspended document root /home....

Using Universal Quota Support (quota=512000)

Suspending FTP accounts...

Updating ftp passwords for USERNAME

Ftp password files updated.

Ftp vhost passwords synced

USERNAMes account has been suspended

 

 

)

 

 

)

Link to comment
Share on other sites

  • WHMCS Support Manager

Hi,

Good to hear that disabling the PDF invoice helped, so something about the generation of PDFs is causing a problem for you. There are three potential causes of the problem:

 

* An issue with the invoicepdf.tpl template itself - to resolve this, try uploading a fresh copy of the default template to your active template directory.

* The cron.php script it some kind of server-imposed execution time-limit and so was killed by something on the server

* The cron.php scirpt hit some kind of server-imposed memory limit and so was killed by something on your server.

 

The last two points would need to be investigated and resolved by your server admin.

Link to comment
Share on other sites

hi , thanks for the replies.

i think this is the first type .

An issue with the invoicepdf.tpl template itself

because i have uploaded the default file , and ran the cron.php from shell again at it completed successfully.

but also with my own invoicepdf. template whmcs is creating the pdf and sends it in attachments too when i send an invoice. and i don't get any error log when creating pdf in any directories . ( i have looked for error_log in tcpdf directory but nothing was written there too. ) as this is a dedicated server and its my own server there is no other guy to troubleshoot :D

i have read most of the logs for a sign of error from cron.php but found nothing .

is there any debug code for tcpdf implementation in whmcs ?

Link to comment
Share on other sites

i found why it was facing issue with invoicepdf.tpl .

 

i had written a custom footer in my invoicespdf.tpl , this was a working code and whmcs could generate PDF with this codes. but anyways cron.php fails with this code. I think there is an issue with changing the pdf document function name. but this type of coding is an original sample of the tcpdf.

 

when i put this line :

$pdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);

whmcs cron fails to continue invoice creation.

 

but when i change it to :

$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);

it works fine ! although my custom footer class do not load.

 

so instead of using classes for custom footer , I wrote a loop for placing my custom footer on every page of the PDFs. and this issue is solved.

 

// Extend the TCPDF class to create custom Header and Footer
class MYPDF extends TCPDF {


   // Page footer
   public function Footer() {
       // Position at 15 mm from bottom
       $this->SetY(-15);
       // Set font
       $this->SetFont('helvetica', 'I', ;
.... rest of the codes.
       $this->writeHTML($footertext, true, false, false, false, '');
   }
}


// create new PDF document
$pdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);

 

i wish whmcs could show a correct error regarding this issue and tcpdf related errors and problems.

Link to comment
Share on other sites

i also found why whmcs could not suspend cpanel hosts .

i had changed the password of the server . but in whmcs -->servers , i have both username/password , and hash access key for the hosting service.

it seems that hash access key is used in the product pages , as that could suspend / unsuspend hosts . but user/password is used in the cronjob , as the password was changed and it couldn't suspend the hosts.

 

and cronjob returned an empty xml array with the log of unknow error occured suspending the hosts ...as i have posted in the reply #9 .

 

- ERROR: Manual Suspension Required - An unknown error occurred ....(Service ID: 546 - User ID: 300)

but now it did it correctly.

- SUCCESS:... (Service ID: 546 - User ID: 300)

atleast implement more complete error reporting features in whmcs please. :)

Link to comment
Share on other sites

  • 6 months later...

Hi.

I have WHMCS version 5.2.17. I have the same problem on sending invoice emails to customers.

Cron job works well even for everything, and sends reports every day to my email address. But when an invoice needs to be created, after its creation cron job stops working.

Below is a snapshot after running cron job using SSH.

Capture.JPG

I disabled generating PDF version of invoices and the problem still exists.

Please help me ...

Link to comment
Share on other sites

Hi.

I have WHMCS version 5.2.17. I have the same problem on sending invoice emails to customers.

Cron job works well even for everything, and sends reports every day to my email address. But when an invoice needs to be created, after its creation cron job stops working.

Below is a snapshot after running cron job using SSH.

[ATTACH=CONFIG]7591[/ATTACH]

I disabled generating PDF version of invoices and the problem still exists.

Please help me ...

 

You should really open your own thread as your issue may not be exactly the same as this one

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated