Error in production - file_put_contents

Heya, Getting the following error message after i have deployed to the server. I have googled the error and getting some mixed responses, not sure if this is something that is known? I've replaced the url in the error with XXX. production.ERROR: file_put_contents(/home/forge/XXX/storage/framework/cache/data/85/5f/855f92484c8c414d36c1b25cb24876e30229cbbf): Failed to open stream: Permission denied {"userId":"9a116f8e-fd7f-4874-8138-5e4c6916a88a","exception":"[object] (ErrorException(code: 0): file_put_contents(/home/forge/XXX/storage/framework/cache/data/85/5f/855f92484c8c414d36c1b25cb24876e30229cbbf): Failed to open stream: Permission denied at /home/forge/XXX/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:205)
3 Replies
toeknee
toeknee15mo ago
You have permissions issue with your server, I suspect storage/cache/data folders do not exist and laravel isn't auto-creating them. make sure you ran php artisan:storage link
AsuranDex
AsuranDexOP15mo ago
Ok i recursively added the write permissions to the storage folder, and that seems to have done the trick, cheers! Never had this issue deploying with Forge before, do you know if this would be a Filament 3 issue or a Forge issue not applying folder permissions properly?
toeknee
toeknee15mo ago
Nothing to do with filament, could be a way the servers are setup / configured. Does seem strange though.
Want results from more Discord servers?
Add your server