-
Notifications
You must be signed in to change notification settings - Fork 27
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 task seems not work #132
Comments
I can't reproduce the issue you're experiencing. Could you provide more specific details so that I can try to replicate your problem? It seems like you're trying to run a Laravel project. Best regards |
Could you help me try pulling the latest Docker images and give it another shot? |
With your latest version I no longer get the error :
Thanks for your fix :) |
@shinsenter mhmm strange after a crash of my docker and a reboot on the version php-fpm 8.4 i got this error :
rollback on shinsenter/php:8.3-fpm => no problem |
Hi @quentingosset, It seems that you are trying to install the IMAP module for PHP version 8.4, which is not yet supported. Could you try using version 8.3 instead? You can check the supported modules for each PHP version here: |
Oh nice catch ! Actually, in 8.3 there are no problems at all |
Hi @shinsenter, i re-open this ticket because crontask seems not work. My observation is that if I restart the container from 0 (clean + re-pull), the cron works. If I simply restart the container, the cron no longer works. |
I believe I’ve identified the cause of the issue and have uploaded a patch. I’ll also rebuild all the Docker images, which will take a few hours to complete. Please wait, pull the updated Docker image after a few hours, and test again to see if your issue is resolved. |
Thanks Shin. |
Same problem with your last version. after a container reboot cron is not working |
@quentingosset |
The patched Docker images will also be updated shortly after the official Docker images for PHP 8.4 are released. I hope the issue you're facing will soon be resolved when using the latest Docker images. |
After update the image with the latest one, all seems work perfectly with cron after a "restart container". I don't know if it a 8.4.1 php fix or if it's a fix from your side. Just a strange thing i see, i pull your image from portainer and portainer return the image hash : sha256:d02d58c57d5f02428382a1e14650a5b60e4a4c4dfee02c930b04d9887128ef61 |
I have no idea about portainer images |
Hello, I followed your documentation (https://hub.docker.com/r/shinsenter/php#other-system-settings) on crontask, but it doesn't seem to work properly.
I have enabled the crontab on my docker-compose :
I have not yet added any crontask in etc/crontab.d and I get the error :
When i try to add my crontask "* * * * * /usr/local/bin/php -q /var/www/html/artisan schedule:run 2>&1" on the folder etc/crontab.d this cron is never executed.
Do you have a idea ?
The text was updated successfully, but these errors were encountered: