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

elbsurfer's avatar

Command creates Exception, but Exception is not visible

Hey there, I use forge for a non Laravel application and the scheduler in forge to trigger a command on the server. The command, which runs looks like this:

CRON (forge) CMD (php /home/forge/domain.com/current/bin/console subscription:mail > /home/forge/.forge/scheduled-649387.log 2>&1)

Now it happened, that the code, which is triggered by the command, creates a php exception. I saw it because I debugged it locally. However on the server - in the nginx error logs nor in the scheduled-649387.log there is no exception listed.

Does anybody has an idea why the exception is not written into one of these log files?

0 likes
2 replies
Nakov's avatar

maybe it is an application error, so have you checked the storage/logs/laravel.log or whichever channel you use?

elbsurfer's avatar

I thought that as well, but this log does also not contain the exception I saw locally.

Please or to participate in this conversation.