Magento Crons Stopped Working

Last night, I ran a Magento cron job that ended up not finishing. It got stuck in pending mode for some reason. The job took a lot of resources, so I wonder if it screwed up the rest of my cron jobs.

Now my other cron jobs aren't working at all, and when I try to run "php cron.php" nothing is getting scheduled in the "mag1cron_schedule" table within magento. I'm not sure what's going on. Any help would be greatly appreciated.
m3developer2Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bernard S.CTOCommented:
If you have a shell access, check the following
- is there any log file which would give you some info on what has happened?
- check which cron jobs are programmed (crontab -l ). If none then you might suspect that your Linux server has restarted and did not restart the crontab schedule
- is this cron job still running (something like ps aux|grep php)? If yes, then you job has met a problem, you'll probably need to kill it... but this might left your database in an unstable state -->first make an extra backup copy of the db before going further
- killing this cron will probably unlock the corresponding "pid" file, which would leave room for the other cron jobs to start

Not sure how Magento's cron.php works. From what you write:
- presumably there is a shell-level cron job (should appear in the crontab -l) "php cron.php"
- this was working and does no more. the shell level-cron is not working as expected, main suspects here:
-- not present in crontab
-- shell level php command has changed (eg, php was updated or some parameters have changed, eg safety level)
-- maybe the command "php cron.php" was running fine from you crons user and its home directory, but now you need to give the full file path (eg, something like /var/www/mymagento/cron.php)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
m3developer2Author Commented:
Thank you for the reply, we apologize for not awarding earlier!
0
Bernard S.CTOCommented:
B-) Glad to help.
Thx for the grade and points.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.