Your software
My Mautic version is:3.0.1
My PHP version is:7.3
Your problem
My problem is: corn job not working
I’m trying to import contacts in the background but nothing happens
These errors are showing in the log:
Steps I have tried to fix the problem: fresh install and clean the cash and change the directory to bin/console instead of app/console
this is my setting
What happens if you run some commands manually? E.g. /var/www/html/mautic/bin/console mautic:campaigns:update? Do you see any errors or does the process complete successfully?
Thanks for your post. It was extremely helpful and got my cron jobs sorted out. I had spent a lot of the last few days reading through sites and posts, most of which referred to mautic version 2 and their suggestions did not fit to the current version or did not work. Your suggestion to change the permissions as per the earlier mautic guide and providing the updated commands along with www-data user worked fine.
were referring to the wrong folders (app/cache and app/logs) instead of the new ones defined from version 3.0.0 and above (var/cache and var/logs).
The instructions look correct now, so you can just follow them.
I’m assuming you have ssh access and sudo permission to root. You also need to know the “path/to/mautic” folder where Mautic is installed (that’s “/var/www/html/mautic/” in my server). It’s easier if you save that path in a shell variable, like “mauticPATH”. The complete set of commands is:
Permissions look fine. First of all, what do you mean by “on mautic nothing is working”? I thought your issue was just about making the crontab jobs run, is that correct?
Do the crontab jobs run if you launch the commands manually? I mean, what happens if you run this commands from your terminal:
Wait, the “cache” folder is in “var”, not in “bin”!
I have the “mautic folder” in /opt instead of /var/www/html, but that makes no difference (as long as you put the correct folder in your crontab jobs):