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

Aronaman's avatar

Laravel schedule failed in Cronjob

I have deployed my Laravel app & set my schedule to ubuntu cron job as Laravel documentation. php 7.3 & php8.0 are installed in the machine. meanwhile I see some errors inside my db->telescope_entries as shown below

{"command":"'\/usr\/bin\/php8.0' 'artisan' snooze:send","description":null,"expression":"* * * * *","timezone":"UTC","user":null,"output":"","hostname":"myApp"}
{"command":"'\/usr\/bin\/php8.0' 'artisan' bookingExpiredAfterTimeLimit","description":null,"expression":"*\/10 * * * *","timezone":"UTC","user":null,"output":"","hostname":"myApp"}

on my server side sudo crontab -e

# m h  dom mon dow   command
* * * * * cd /var/www/myapp && php artisan schedule:run >> /dev/null 2>&1

Inside app->console->commands->ExpiredBooking

class ExpiredBooking extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'bookingExpiredAfterTimeLimit';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'all Booking Expired Time Limit';
....

Can any body explain me what's happening? I am completely lost

0 likes
1 reply
bobwurtz's avatar

Are you sure the entry in telescope_entries is an error? Telescope can log all kinds of information depending on how you configure it. Check the type of the entry. Does it say exception? Or something else?

If it says exception, can you share your App/Console/Kernel.php and the ExpiredBooking command?

Please or to participate in this conversation.