From a96ad0c10cce2aa723872292c0a1d2e30c3f6437 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 3 Feb 2021 14:45:11 -0500 Subject: [PATCH 1/2] docs: add note about the dokku user cron being overwritten by Dokku This is a BC-incompatible change introduced by 0.23.0. --- docs/appendices/0.23.0-migration-guide.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/appendices/0.23.0-migration-guide.md b/docs/appendices/0.23.0-migration-guide.md index c6d499fbd..05f8d353d 100644 --- a/docs/appendices/0.23.0-migration-guide.md +++ b/docs/appendices/0.23.0-migration-guide.md @@ -4,3 +4,4 @@ - The `plugin:list` command no longer outputs the version for the `plugn` binary. - Users building docker images that run Dokku will need to use a new sudoer wrapper for the `docker-image-labeler` binary to work correctly. A reference version has been placed in the `docker` skeleton directory. This should only impact platform developers, and users of our Docker image will already have the file available. +- The `dokku` user's cron is now in use by Dokku itself. Customizations will be overwritten. Users are encouraged to use a cron entry in `/etc/cron.d/dokku` to avoid this issue. From 82da43cfbacaa16564820577d53c7769148624d7 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 3 Feb 2021 14:49:25 -0500 Subject: [PATCH 2/2] docs: fix reference to dokku user crontab in cron docs [ci skip] --- docs/processes/scheduled-cron-tasks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/processes/scheduled-cron-tasks.md b/docs/processes/scheduled-cron-tasks.md index 9b063b997..6e0118cb1 100644 --- a/docs/processes/scheduled-cron-tasks.md +++ b/docs/processes/scheduled-cron-tasks.md @@ -141,7 +141,7 @@ For tasks that will properly resume, you *should* use the above method, as runni Regularly scheduled tasks can be a bit of a pain with Dokku. The following are general recommendations to follow to help ensure successful task runs. -- Use the `dokku` user's crontab. +- Use the `dokku` user in your cron entry. - If you do not, the `dokku` binary will attempt to execute with `sudo`, and your cron run with fail with `sudo: no tty present and no askpass program specified`. - Add a `MAILTO` environment variable to ship cron emails to yourself. - Add a `PATH` environment variable or specify the full path to binaries on the host.