Jump to content
  • 0
sunrisepro

None of my recurring invoices were automatically paid in the last week

Question

There are nine recurring hosting invoices that were supposed to be run on 2/28 that are still sitting there. However, 3 recurring hosting invoices did run on 2/28. I'm doubting that all 9 have issues with their automatic payment accounts, that would be too great a coincidence. What's the best way to troubleshoot this?

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Where do I update the url for the cron command? The 'cron command' field is not editable and I can't find any info on this is your documentation.

I only realized when invoices had not been automatically paid since I thought I had updated the command url; I just ran cron manually.

Share this post


Link to post
Share on other sites
  • 0

The Cron Command field shown in Blesta is a generic command based on the server's operating system that you can copy and use to define the cron job. The actual command that will work on your system may vary depending upon your server environment, and where you define the cron job depends on your environment as well. For example, if you have cPanel installed, you can create cron jobs easily through their interface. See the documentation.

Share this post


Link to post
Share on other sites
  • 0

So the cron path on my server changed because I upgraded the server to PHP 7.2. According to my server admins, cron jobs are running properly but 

Quote

the entered php script in the cronjob doesn't meet the requirement of php72

is

/home/username/public_html/backstage/index.php cron

correct? Or should it be something different for php 7.2? Or do I need to upgrade Blesta?

Share this post


Link to post
Share on other sites
  • 0
21 minutes ago, sunrisepro said:

So the cron path on my server changed because I upgraded the server to PHP 7.2. According to my server admins, cron jobs are running properly but 

is


/home/username/public_html/backstage/index.php cron

correct? Or should it be something different for php 7.2? Or do I need to upgrade Blesta?

Your cron should specify the full path to PHP, ie /usr/bin/php /home/username/public_html/backstage/index.php cron > /dev/null (etcwhatever is here)

Check Settings > System > Automation to see the recommended command. Blesta attempts to locate your PHP and show the right thing. It may not be 100% accurate all the time, but it's a good place to start. If Apache is running PHP 7.2, then CLI should be also.

Share this post


Link to post
Share on other sites
  • 0

The recommended command is 

*/5 * * * * /usr/bin/php /home/username/public_html/backstage/index.php cron

The complete job I have is

/opt/cpanel/ea-php72/root/usr/bin/php /home/username/public_html/backstage/index.php cron

And the last time cron ran was when I manually ran it yesterday.

Also how does CLI relate to this?

Share this post


Link to post
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
Answer this question...

×   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.

Loading...

×
×
  • Create New...