Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

stefr's avatar

Schedule:run does not work on my live server

Hi,

I have a strange thing going on here and I can't seem to figure it out. I have a command that I would like to add to my cronjobs. Just to make sure this hasn't got anything to do with the way the cronjob is called on the server I’m testing this in the command-line using

php artisan schedule:run

I have this in my App\Console\Kernel.php:

<?php namespace App\Console;

use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

class Kernel extends ConsoleKernel {

/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
'App\Console\Commands\UpdateStuff',
];

/**
* Define the application's command schedule.
*
* @param  \Illuminate\Console\Scheduling\Schedule  $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('updatestuff')
->everyMinute();
}

}

When I run php artisan schedule:run on my (local) homestead the job gets done. When I do this on my server (Digital Ocean) it says No scheduled commands are ready to run. The scripts on each server are identical (same git)

0 likes
4 replies
bashy's avatar

Make sure the framework folder in storage is writable and there's things being written to it for the scheduling.

stefr's avatar

thanks @bashy I've just performed chmod 777 storage/framework/ but it still doesn't work.

stefr's avatar

Solved! This page was down with php artisan down. I had access based on my IP. Apparently php artisan schedule:run doesn't run anything while 'down'. Thanks @bashy for pointing me in the right direction! I found the 'down'-file in the framework dir.

Please or to participate in this conversation.