Jump to content

Daily Cron Error


Recommended Posts

Hello,

 

I have been trying to figure out why my daily cron suddenly stopped working. It seems as though everything else is executing as it should, just not the daily cron.

 

I ran the cron in terminal and got this output:

 

Allowed memory size of 33554432 bytes exhausted (tried to allocate 4480 bytes) in /path/to/whmcs/vendor/composer/composer/src/Composer/Command/ShowCommand.php on line 114

 

I'm using PHP 5.6 with 356MB memory limit. Any ideas?

Link to comment
Share on other sites

  • 4 weeks later...
  • WHMCS Support Manager

Hi,

@neaweb6 - The memory issue suggestions that there are two PHP configurations on your server; one applied to the cron job and one applied to files served by the websserver.

 

Please access the server command line as the cron user (on a cPanel server this is usually the account's cPanel username) and execute this command:

 

php -i

 

This will allow you to see the memory limit being applied to the cron job and also the php.ini file you'll need to edit tot increase the limit up to 128MB.

 

 

For other posters in this thread with more general errors, please run through these troubleshooting guides:

* http://help.whmcs.com/m/automation/l/678272-troubleshooting-the-cron-not-completing

* http://help.whmcs.com/m/automation/l/683269-advanced-cron-troubleshooting

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