Mautic Community Forums

Cron Error

My troubles with cron have been endless and even after trying the commands.php solution as well as cronfig I am still unable to get cron to work.

Here are some screenshots from my crontab -e

http://imgur.com/OzPz4Yw



Moving further at my ssh console, I execute the jobs to test them out

Here is what I see:

http://imgur.com/m8AeruE



Now moving onto trying with Cronfig, I got update campaigns to work but the remaining two cronjobs gave me this error:

The bottom image is from one of the cronfig’s jobs:

http://imgur.com/p72reoW



Last solution, I found a gist with commands.php and uploaded it to root folder of site and went ahead and changed the secret.

When I go to access the link from my browser, I receive a 404 Not Found nginx error



Any help is appreciated, not having cron jobs defeats the purpose of my work with Mautic and I’m desperately trying to find a solution.

For reference my VPS is hosted on Digital Ocean,

Ubuntu 14.04 with Nginx, MariaDB , PHP

My troubles with cron have been endless and even after trying the commands.php solution as well as cronfig I am still unable to get cron to work.
Here are some screenshots from my crontab -e
http://imgur.com/OzPz4Yw

Moving further at my ssh console, I execute the jobs to test them out
Here is what I see:
http://imgur.com/m8AeruE

Now moving onto trying with Cronfig, I got update campaigns to work but the remaining two cronjobs gave me this error:
The bottom image is from one of the cronfig’s jobs:
http://imgur.com/p72reoW

Last solution, I found a gist with commands.php and uploaded it to root folder of site and went ahead and changed the secret.
When I go to access the link from my browser, I receive a 404 Not Found nginx error

Any help is appreciated, not having cron jobs defeats the purpose of my work with Mautic and I’m desperately trying to find a solution.
For reference my VPS is hosted on Digital Ocean,
Ubuntu 14.04 with Nginx, MariaDB , PHP

So if you’re getting a 404 error then it sounds like an htaccess or permissions problem if the browser can’t find the file. My guess is htaccess. Your troubleshooting is the right thinking. However, if you’re on a VPS with DO you should have absolutely no problems running cron with crontab. To clarify, when you run the commands directly from the command line are they successful? Do you see successes and attempts to run campaign-related jobs?

I am yet to have a successful campaign. When I use non campaign forms and attach them to my site, they execute perfectly but the campaign forms have been a pain, and I am yet to have a successful one. Yesterday I got commands.php working but it crashed my mautic installation and now I am getting this message “Database connection error (code #2002)”

I’m back up and running after a system reboot , here is my output when I attempt to get things working with Cronfig:
http://imgur.com/A2nSEiI

This is the campaign that I am trying to execute as an example.
http://imgur.com/Xlu4stH