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

vnc00's avatar
Level 3

"No such file or directory" when running scheduler in Forge

Hi, I'm using Forge with Envoyer and followed Taylor with this tutorial: https://laracasts.com/series/server-management-with-forge/episodes/11

Now I wanna create an scheduling task in Forge to run every hour like: https://abload.de/img/bildschirmfoto2016-11mvsq9.png https://abload.de/img/bildschirmfoto2016-1196sdl.png

The log in Forge says:

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

Any ideas? I don't changed anything on the server.

0 likes
7 replies
azimidev's avatar

You're seeing this because none of your cron jobs are due to run, you'll see the log once one of them ran.

7 likes
richardjkeys's avatar

Same problem - new server; scheduled tasks aren't running.

richardjkeys's avatar

My bad - error in syntax.

Run this to see any problems:

sudo cat /var/log/syslog | grep cron
fkwok's avatar

Hi,

I know this thread is a bit old. But when I google my issue it show up. So I thought just share some resolution from me.

Today I got an error in my forge deployment.

cat: /home/forge/.forge/provision-30371639.output: No such file or directory

So based on what it mention in this thread, I think it is related to the worker I was running.

Previously, I have a "merge conflict" issue from one of the deployment to the server ... I kind of fixed it by resolving it.... so some reason it was running fine for the next deployment.

But when I try to redeploy another new updates, it got this no such file error. To try to fix it, I SSH into the server and manually run.

php artisan queue:restart

and see the would this recreate the file for the "scheduler or worker" then I hit deploy again in forge. And this actually work for me.

Hope this help.

2 likes

Please or to participate in this conversation.