Skip to content
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

Scheduler : crontab configuration is missing #36

Open
Ribero opened this issue Jan 19, 2021 · 3 comments
Open

Scheduler : crontab configuration is missing #36

Ribero opened this issue Jan 19, 2021 · 3 comments

Comments

@Ribero
Copy link

Ribero commented Jan 19, 2021

The crontab of the container based on the official docker image is missing the crontab configuration see issue getgrav/grav#3153

(crontab -l; echo "* * * * * cd /var/www/html;/usr/local/bin/php bin/grav scheduler 1>> /dev/null 2>&1") | crontab -

it would be nice if this command could be added to the default configuration.

@Ribero
Copy link
Author

Ribero commented Jan 19, 2021

While I was looking at the build of the image I saw in the console:

Removing intermediate container 65182375dd3a
 ---> e79c52559349
Step 12/15 : RUN (crontab -l; echo "* * * * * cd /var/www/html;/usr/local/bin/php bin/grav scheduler 1>> /dev/null 2>&1") | crontab -
 ---> Running in e8e8b6409060
**no crontab for www-data**
Removing intermediate container e8e8b6409060

@Ribero
Copy link
Author

Ribero commented Jan 25, 2021

The configuration is "missing" for root user but the scheduler must not run as root.

The crontab for www-data user is present but was not working.

Removing the crontab for this user then re-adding solved the issue for me. See #3153

@stavros-k
Copy link

I just tried to build the image, still the same error

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants