-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cron / hosting-dispatch missing? #31
Comments
Hey @helmo can you provide more details about what you did ? I can find no details about that in the regular aegir install documentations. Moreover, I started the |
Hey! Maybe it was clearer in older documentation. At least I had to set it up on my old hostmaster instance. I think a cronjob should be created which calls /usr/local/bin/drush '@hostmaster' hosting-dispatch. |
Well, putting it in cron.hourly didn't work because is run as root and root doesn't know the site aliases. |
So ...
with the following config.json file:
which seems to work. If you want to use this, you also have to put the docker-entrypoint, in addition to the Dockerfile, from willfarrell/docker-crontab in your ./crontab subdirectory of your aegir-docker project. An additional advantage of this solution is that I can add another cronjob which manages the database backups directly in the database server container and don't need another container with a database client and cron for it. |
Just to keep you and future me up to date. So far it works perfectly fine. I just switched from building the image myself to using the original image willfarrell/crontab directly and got rid of the additional docker-entrypoint file and Dockerfile. One could add an example docker-compose.yml to manage the cronjobs or add it to docker-compose.yml, describe it and comment it out so that users have the option to use it. I think this is rather an documentation issue than an implementation problem. |
I had a same issue on a Debian 9 (stretch) based container. Workaround was:
All these can be added to Dockerfile, entrypoints and sudoer files. |
This is great, thanks for the detailed steps @doka If there are any more specifics to how you achieved success it would help! |
More details to the steps to get cron queues running. TLDR: install cron package and restart the cron service via aegir user after Aegir hosting queue module has been enabled. Detailed steps:
You can see the whole magic working in my Aegir-Docker repo. |
The task queue is being handled OK here but what about the other queues?
In a regular install we have a crontab entry that runs 'hosting-dispatch' to go through all queue's.
Not a big pain for me at the moment though .. I just missed it while looking at hosting_distributions in a dev container.
The text was updated successfully, but these errors were encountered: