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

jgravois's avatar

Forge is not running Scheduled Commands

I have been monitoring and the commands I have scheduled are not running.

On the Scheduler tab, I have this command set to run every minute by the root user

Command: /home/forge/avtechnix.com/artisan schedule:run

If I click the paper icon next to that command I see

/bin/sh: 1: /home/forge/avtechnix.com/artisan: Permission denied

This is my scheduler

protected function schedule(Schedule $schedule)
    {
        $schedule->command('telescope:prune')->daily();
        $schedule->command('database:backup')->daily();
        $schedule->command('media-library:delete-old-temporary-uploads')->daily();
        $schedule->command('uam:set-overdue-in-masters')->daily();
        $schedule->command('uam:refresh-models')->daily();
        $schedule->command('uam:troll-sales-totals')
            ->weekdays()
            ->everyTenMinutes()
            ->environments('production');
        $schedule->command('uam:troll-sales-day')
            ->timezone('UTC')
            ->weekdays()
            ->everyFiveMinutes()
            ->environments('production');
        $schedule->command('uam:troll-sales-month')
            ->timezone('UTC')
            ->weekdays()
            ->everyTenMinutes()
            ->environments('production');
        $schedule->command('uam:troll-open-sales')
            ->weekdays()
            ->everyThirtyMinutes()
            ->environments('production');
        $schedule->command('uam:troll-new-repairs')
            ->weekdays()
            ->everyTenMinutes()
            ->environments('production');
        $schedule->command('uam:troll-shipments')
            ->weekdays()
            ->everyMinute()
            ->environments('production');
        $schedule->command('uam:troll-quotes')
            ->weekdays()
            ->everyThirtyMinutes()
            ->environments('production');
    }
0 likes
3 replies
Nakov's avatar
Nakov
Best Answer
Level 73

@jgravois have you tried with the forge user instead of root?

And the command should be :

php /home/forge/avtechnix.com/artisan schedule:run
jgravois's avatar

little paper icon gives me this with forge as user

cat: /home/forge/.forge/scheduled-774889.log: No such file or directory

(at least it is not permission denied)

Nakov's avatar

That's because none of your jobs is ready to run. So it is fixed with what I said above :)

once the time comes it will get executed.

Please or to participate in this conversation.