Cron job for phplist in docker

Dears i need help on setting up cron job in docker I tried to use manual Here but it doesn’t help

Please i need help
Anyone can help

There is no need to set up a cronjob in Docker, that’s already there, as you can see here https://github.com/phpList/phplist-docker/blob/master/phplist/Dockerfile#L19

There is a phplist-crontab file there, sure. In my case, and I suspect in @Iappnet 's case as well, the jobs aren’t running. That is, the queue doesn’t get processed, and there are no logs anywhere in the container indicating that cron jobs have ever run. I’m currently trying to crack this nut. If anyone has any helpful suggestions, they would be appreciated.

It turns out there was a bug in the phplist-crontab file until Dec 2022. It lacked the name of the user account meant to run the jobs. That got fixed. I have the fixed version in my image (phplist/phplist:3.6.15). But it doesn’t seem to run. I’ll continue to poke around and update here. If anyone has the answer, I’d love to hear it. :slight_smile:

It should log to /var/log/ according to phplist-docker/phplist/phplist-crontab at master · phpList/phplist-docker · GitHub

Try running the “phplist” command in the container and see what it returns.

I’m surprised it doesn’t work. The whole point of containers is that it’s the same everywhere.