docker-magento icon indicating copy to clipboard operation
docker-magento copied to clipboard

crontab ?

Open tmccaff57 opened this issue 3 months ago • 3 comments

I keep getting error crontab not running. How is this done in docker environment>?

tmccaff57 avatar Sep 22 '25 00:09 tmccaff57

Hi @tmccaff57! I'm Dosu and I’m helping the docker-magento team.

In docker-magento, cron jobs aren't managed by the traditional system crontab. Instead, they're handled inside the PHP container using Supervisor, which keeps Magento's cron running as a background process. To start or restart the cron service, use the helper script: bin/cron start from your project root. If you see "crontab not running" errors, it's likely the Supervisor-managed cron process isn't running or hasn't been started yet. You can find more about this in the README.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

dosubot[bot] avatar Sep 22 '25 00:09 dosubot[bot]

It worked for me after initial setup. But it stopped to work after I swtitched php images from 8.3 to 8.4. So I'm searching where it installed too.

Dylfin avatar Sep 29 '25 18:09 Dylfin

Have you run bin/cron start? That is documented at https://github.com/markshust/docker-magento?tab=readme-ov-file#custom-cli-commands

markshust avatar Oct 21 '25 13:10 markshust