Cronjob Internal Server Error

When visiting /apps/crontab said error is displayed

[31-Mar-2025 10:29:49 Europe/Stockholm] (Illuminate\View\ViewException) EXCEPTION: Impossible CRON expression (View: /usr/local/apnscp/apps/crontab/views/partials/jobs/active.blade.php) (View: /usr/local/apnscp/apps/crontab/views/partials/jobs/active.blade.php) (View: /usr/local/apnscp/apps/crontab/views/partials/jobs/active.blade.php) (View: /usr/local/apnscp/resources/views/partials/app/content.blade.php) (View: /usr/local/apnscp/resources/views/partials/app/content.blade.php) (View: /usr/local/apnscp/resources/views/partials/app/content.blade.php) 
[/usr/local/apnscp/vendor/dragonmantank/cron-expression/src/Cron/CronExpression.php:389]

         0. Illuminate\View\Engines\CompilerEngine->handleViewException(Illuminate\View\ViewException, 1)
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:45]
         1. Illuminate\View\Engines\PhpEngine->evaluatePath("/usr/local/apnscp/storage/framework/cache/abbee3a8670a7ff514f44c04bde78dc24c73fd48.php", [__env:Illuminate\View\Factory, app:Illuminate\Container\Container, Page:apps\crontab\Page, []])
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:59]
         2. Illuminate\View\Engines\CompilerEngine->get("/usr/local/apnscp/resources/views/layout.blade.php", [__env:Illuminate\View\Factory, app:Illuminate\Container\Container, Page:apps\crontab\Page, []])
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/View/View.php:143]
         3. Illuminate\View\View->getContents()
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/View/View.php:126]
         4. Illuminate\View\View->renderContents()
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/View/View.php:91]
         5. Illuminate\View\View->render()
            [/usr/local/apnscp/lib/BladeLite.php:212]
         6. BladeLite->render("layout", [Page:apps\crontab\Page, []])
            [/usr/local/apnscp/lib/html/page_container.php:782]
         7. Page_Container->render()
            [/usr/local/apnscp/lib/html/page_container.php:1051]
         8. Page_Container->handle_request()
            [/usr/local/apnscp/public/index.php:99]

[31-Mar-2025 10:29:51 Europe/Stockholm] (Illuminate\View\ViewException) EXCEPTION: Impossible CRON expression (View: /usr/local/apnscp/apps/crontab/views/partials/jobs/active.blade.php) (View: /usr/local/apnscp/apps/crontab/views/partials/jobs/active.blade.php) (View: /usr/local/apnscp/apps/crontab/views/partials/jobs/active.blade.php) (View: /usr/local/apnscp/resources/views/partials/app/content.blade.php) (View: /usr/local/apnscp/resources/views/partials/app/content.blade.php) (View: /usr/local/apnscp/resources/views/partials/app/content.blade.php) 
[/usr/local/apnscp/vendor/dragonmantank/cron-expression/src/Cron/CronExpression.php:389]

         0. Illuminate\View\Engines\CompilerEngine->handleViewException(Illuminate\View\ViewException, 1)
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:45]
         1. Illuminate\View\Engines\PhpEngine->evaluatePath("/usr/local/apnscp/storage/framework/cache/abbee3a8670a7ff514f44c04bde78dc24c73fd48.php", [__env:Illuminate\View\Factory, app:Illuminate\Container\Container, Page:apps\crontab\Page, []])
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:59]
         2. Illuminate\View\Engines\CompilerEngine->get("/usr/local/apnscp/resources/views/layout.blade.php", [__env:Illuminate\View\Factory, app:Illuminate\Container\Container, Page:apps\crontab\Page, []])
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/View/View.php:143]
         3. Illuminate\View\View->getContents()
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/View/View.php:126]
         4. Illuminate\View\View->renderContents()
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/View/View.php:91]
         5. Illuminate\View\View->render()
            [/usr/local/apnscp/lib/BladeLite.php:212]
         6. BladeLite->render("layout", [Page:apps\crontab\Page, []])
            [/usr/local/apnscp/lib/html/page_container.php:782]
         7. Page_Container->render()
            [/usr/local/apnscp/lib/html/page_container.php:1051]
         8. Page_Container->handle_request()
            [/usr/local/apnscp/public/index.php:99]

[31-Mar-2025 11:09:37 Europe/Stockholm] (Illuminate\View\ViewException) EXCEPTION: Impossible CRON expression (View: /usr/local/apnscp/apps/crontab/views/partials/jobs/active.blade.php) (View: /usr/local/apnscp/apps/crontab/views/partials/jobs/active.blade.php) (View: /usr/local/apnscp/apps/crontab/views/partials/jobs/active.blade.php) (View: /usr/local/apnscp/resources/views/partials/app/content.blade.php) (View: /usr/local/apnscp/resources/views/partials/app/content.blade.php) (View: /usr/local/apnscp/resources/views/partials/app/content.blade.php) 
[/usr/local/apnscp/vendor/dragonmantank/cron-expression/src/Cron/CronExpression.php:389]

         0. Illuminate\View\Engines\CompilerEngine->handleViewException(Illuminate\View\ViewException, 1)
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:45]
         1. Illuminate\View\Engines\PhpEngine->evaluatePath("/usr/local/apnscp/storage/framework/cache/abbee3a8670a7ff514f44c04bde78dc24c73fd48.php", [__env:Illuminate\View\Factory, app:Illuminate\Container\Container, Page:apps\crontab\Page, []])
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:59]
         2. Illuminate\View\Engines\CompilerEngine->get("/usr/local/apnscp/resources/views/layout.blade.php", [__env:Illuminate\View\Factory, app:Illuminate\Container\Container, Page:apps\crontab\Page, []])
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/View/View.php:143]
         3. Illuminate\View\View->getContents()
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/View/View.php:126]
         4. Illuminate\View\View->renderContents()
            [/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/View/View.php:91]
         5. Illuminate\View\View->render()
            [/usr/local/apnscp/lib/BladeLite.php:212]
         6. BladeLite->render("layout", [Page:apps\crontab\Page, []])
            [/usr/local/apnscp/lib/html/page_container.php:782]
         7. Page_Container->render()
            [/usr/local/apnscp/lib/html/page_container.php:1051]
         8. Page_Container->handle_request()
            [/usr/local/apnscp/public/index.php:99]


Impossible CRON expression

That means the crontab was manually edited probably and has an invalid schedule most likely. Log into that account, fix it manually, then visit again that page.

It all looks fine to me!

PM me the output from crontab -l for that user.

Fixed on edge.

The run dates look fine until the timezone is set to Europe/Stockholm… in particular the DOW value of either 0 or 7 in the timespec “2 2 * * 0” is what’s causing the issue… did Sweden recently ban Sundays?

Moving the DOW to any value inclusive of 1-6, or * works as expected. Bizarre. I’ll open a bug report with dragonmantank/cron-expression.

Edit: issue resolved in 3.2.1, which has a hard dep with Laravel to 2.x. Related to DST adjustment.