Open corasaniti opened 1 year ago
I also don't seem to see any automatically run hourly tasks.
The "Test Again" button works to run a manual test.
I also don't seem to see any automatically run hourly tasks.
The "Test Again" button works to run a manual test.
Go to settings -> General -> Schedule and enter /60 * (star slash sixty star star star star)
@henrywhitaker3 @Dari74 @BrianLakstins crontab scheduling seems to work fine. But what are the differences between 1.12.2 and 112.3. Thanks
crontab seems to be working, but the actual speedtest from crontab does not seem to be.
root@07a303a717a8:/# crontab -l
# do daily/weekly/monthly maintenance
# min hour day month weekday command
*/15 * * * * run-parts /etc/periodic/15min
0 * * * * run-parts /etc/periodic/hourly
0 2 * * * run-parts /etc/periodic/daily
0 3 * * 6 run-parts /etc/periodic/weekly
0 5 1 * * run-parts /etc/periodic/monthly
# speedtest cron
* * * * * php /config/www/artisan schedule:run >> /config/log/speedtest/cron.log
# */5 * * * * php /config/www/artisan queue:retry all >> /config/log/speedtest.cron.log
This is showing in /config/log/speedtest/cron.log file
Error
Class "PDO" not found
at /config/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:1474
Error
Call to undefined function NunoMaduro\Collision\token_get_all()
at /config/www/vendor/nunomaduro/collision/src/Highlighter.php:138
Symfony\Component\ErrorHandler\Error\FatalError
Uncaught Error: Call to undefined function NunoMaduro\Collision\token_get_all() in /config/www/vendor/nunomaduro/collision/src/Highlighter.php:138
Stack trace:
#0 /config/www/vendor/nunomaduro/collision/src/Highlighter.php(128): NunoMaduro\Collision\Highlighter->tokenize()
#1 /config/www/vendor/nunomaduro/collision/src/Highlighter.php(110): NunoMaduro\Collision\Highlighter->getHighlightedLines()
#2 /config/www/vendor/nunomaduro/collision/src/Highlighter.php(99): NunoMaduro\Collision\Highlighter->getCodeSnippet()
#3 /config/www/vendor/nunomaduro/collision/src/Writer.php(280): NunoMaduro\Collision\Highlighter->highlight()
#4 /config/www/vendor/nunomaduro/collision/src/Writer.php(120): NunoMaduro\Collision\Writer->renderEditor()
#5 /config/www/vendor/nunomaduro/collision/src/Handler.php(39): NunoMaduro\Collision\Writer->write()
#6 /config/www/vendor/filp/whoops/src/Whoops/Run.php(398): NunoMaduro\Collision\Handler->handle()
#7 [internal function]: Whoops\Run->handleException()
#8 {main}
thrown
at /config/www/vendor/nunomaduro/collision/src/Highlighter.php:138
@BrianLakstins I'm experiencing this very same problem. However I made it work by switching the php symlink. the current version, /usr/bin/php
is symlinked to /usr/bin/php81
which don't have PDO. But there's a /usr/bin/php82
which has PDO extension included.
$> sudo ln -sf /usr/bin/php82 /usr/bin/php
and then edit the cron entry (crontab -e
) into:
* * * * * php /config/www/artisan speedtest:run >> /config/log/speedtest/cron.log
Basically I just replaced the
schedule:run
intospeedtest:run
and now it works fine.
That worked for me too, but it's a kludgy hack. Definitely interested in seeing this officially fixed too.
That worked for me too, but it's a kludgy hack. Definitely interested in seeing this officially fixed too.
I'm not sure if you can say it's a hack considering that it's just using whatever existing functionality it has. I mean I didn't install anything or changed any of the code for it to work. I just put things in the right place.
Anyway, there's less hope for it to get "officially" fixed. The last update to the repo was like 2 years ago.
Glad to see the project is not dead and abandoned. Glad to have seen a release after a long time
There is a reason why the following crontab doesn't work after upgrading to version 1.12.3 30 /2
At 8.30 this morning he did not leave. Did you change something you need to set the timezone?
Here is my docker command
Thanks in advance