mautic/docker-mautic

Cron jobs on fresh mautic docker install not executing

ScottAMains opened this issue · 1 comments

HI folks.

I have looked around to see where this issue could be laying.
I have a fresh install of Mautic on docker and while enabling the campaigns I am noticing that it's not pushing the campaign at the specified time, or even within the hour of the specified times.

My guess is that the cron jobs aren't being executed properly.

My experience with CLI is pretty basic and I have looked in the docker container via portioner to check out the cron.d in
/etc/cron.d

I had removed the issue which was brought up in another thread

I have checked to ensure that it's using the V2 layout "app/console" as opposed to "bin/console" as mentioned by Mautic here however I am not having the scheduled tasks run.
ENV variable is set to MAUTIC_RUN_CRON_JOBS | true

Have I missed something very obvious with regards to enabling the cron's to do its thing automatically?

System brief info: System Ubuntu 20.04 all up to date, PHP Version 7.1.33, Docker is just a standard install.

upon "crontab -l" nothing is appearing when viewing as root outside of the container it just moves to a fresh line in the CLI, in the docker container it states "no crontab for root"

Answering this so future me, or anyone else looking at it can see the working solution

Execute the cron inside the docker container at "/etc/cron.d" chmod 0744 mautic