I have a project that was previously working, and when I tried to open it today, I got the following errors.
Unable to create lockable file: /var/www/storage/framework/cache/data/15/ed/15ed45fc33a4af8dc4baab88de709b23759e5b28. Please ensure you have permission to create files in this location
Which then further expanded with:
The stream or file \"/var/www/storage/logs/laravel.log\" could not be opened in append mode: Failed to open stream: Permission denied
The project is running in docker, my storage folder is 777 and is owned by root:www-data.
root@5090cb912799:/var/www/storage/logs# ls -lsa
total 232
4 drwxrwxrwx+ 2 root www-data 4096 Dec 6 13:56 .
4 drwxrwxrwx+ 5 root www-data 4096 Jul 26 2023 ..
4 -rwxrwxrwx 1 root www-data 14 Jul 26 2023 .gitignore
220 -rwxrwxrwx 1 root www-data 220713 Dec 20 16:53 laravel.log
root@5090cb912799:/var/www/storage# ls -lsa
total 20
4 drwxrwxrwx+ 5 root www-data 4096 Jul 26 2023 .
4 drwxr-s---+ 14 root www-data 4096 Dec 20 13:32 ..
4 drwxrwxrwx+ 3 root www-data 4096 Jul 26 2023 app
4 drwxrwxrwx+ 6 root www-data 4096 Jul 26 2023 framework
4 drwxrwxrwx+ 2 root www-data 4096 Dec 6 13:56 logs
I tried rebuilding the container and php artisan cache:clear too.
When I search for this error only these ideas are coming up. What else can cause it?