Jump to content
  • 0

Cron Not Running Since 3.0.5 Upgrade?


Question

Posted

As the title says, cron hasn't been running since the upgrade. (or perhaps shortly before, not sure)

 

I've been running it manually.  I checked crontab as root and the cron string is in there.  I'm not sure where else to look to trouble shoot this.

 

Any ideas?

11 answers to this question

Recommended Posts

  • 0
Posted

Blesta should be working fine then. Try editing your cron and instead of sending the output to /dev/null, ie > /dev/null direct it to a file.

 

Like > /path/to/file.txt (Make sure you create the file first)

 

Then, wait 5 minutes and see whats in the file. The most common problem thus far has been Ioncube not being loaded via CLI. This could be the issue here.

  • 0
Posted

i can not run cron on my blesta.

i keep getting this error

 
"-":2: bad command
errors in crontab file, can't install.
 
this is my cron */5 * * * * /usr/bin/php /home/admin2/public_html/client/index.php cron
  • 0
Posted

I ran it manually in cli and saw the output: Undefined variable: argv on line

 

I was able to fix it by following @Evaske's instructions here http://www.blesta.com/forums/index.php?/topic/1226-cron-issues/?hl=cron

 

(enable register_argc_argv)

 

I have the same problem as referenced in the above quote, but the solution suplied in the link did not work for me. I can see via phpinfo that "register_argc_argv". But does not work...

 

 

Blesta should be working fine then. Try editing your cron and instead of sending the output to /dev/null, ie > /dev/null direct it to a file.

 

Like > /path/to/file.txt (Make sure you create the file first)

 

Then, wait 5 minutes and see whats in the file. The most common problem thus far has been Ioncube not being loaded via CLI. This could be the issue here.

 

Seeing the ioncube reference, I checked this too. It is also loaded...

 

Running the cron manually it works fine... any ideas?

  • 0
Posted

 

I can see via phpinfo that "register_argc_argv".

Checking this by vising a page you created?

 

If so, try running php -i via CLI and it will print out the CLI version of phpinfo().  You want the CLI info not the web info.

  • 0
Posted

SOLVED.

 

Thanks secforus and paul; "register_argc_argv".was set on my php file, and ioncube was installed on my server but the php.ini didn't have it running. It was fixed by adjusting the php.ini file correctly

  • 0
Posted

SOLVED.

 

Thanks secforus and paul; "register_argc_argv".was set on my php file, and ioncube was installed on my server but the php.ini didn't have it running. It was fixed by adjusting the php.ini file correctly

No problem.

 

Some server setups will have PHP settings separate for web vs. console/CLI, so its always good to check both. ;)

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