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

robgoodliffe's avatar

envoyer - filemtime(): stat failed for certain files. old release folders

Hi I'm getting various errors in my application. It appears that laravel is looking in old release folders generated by envoyer.

filemtime(): stat failed for /home/forge/mysite.co.uk/releases/20170103144609/resources/views/emails/blank.blade.php

I assume it's something to do with cache, but I don't want to fiddle around before I understand the problem.

Can anyone point me in the right direction and perhaps suggest a way of preventing this in the future by changing the deploy script.

Thanks Rob

0 likes
1 reply
robgoodliffe's avatar

I figured it was related to the queues not being restarted, as I've had that issue before.

I had added php artisan queue:restart into the envoyer deploy script, but I had forgot to tick the tiny apply to server checkbox at the bottom.

This actually didn't work after redeploying, but SSH'ing into the server, and running the below commands in the latest release directory, seems to have done the trick.

php artisan config:clear php artisan route:clear php artisan view:clear

I'm not sure which one of those commands changed things or why, so If anyone has any insight into what the issue was and how I can prevent it in the future (perhaps by adding above commands to deploy script), I'd be really grateful.

Thanks.

Please or to participate in this conversation.