I use Laradock on mac as my local environment
Currently i use an older instance of Laradock for my local environment and it works fine.
I attempted to update to the latest version of Laradock and the site stopped working.
The only output or clue as to whats going on that i get is in the apache error log which shows
“[Thu Jun 16 16:24:52.728631 2022] [proxy_fcgi:error] [pid 22:tid 140061655668480] [client 172.19.0.1:58540] AH01071: Got error 'PHP message: PHP Warning: Uncaught Illuminate\Contracts\Filesystem\FileNotFoundException: File does not exist at path /var/www/storage/framework/cache/85/4a/854a54028c654716bc56a9a9c41d98b9641d8f9b”
I have tried the following
Making sure to run “october cache:clear” before switching to the new Laradock version.
making a copy of the ‘/storage/framework/cache’ folder before switching Laradock version and copy/pasting it back in place before attempting to load a page using the latest Laradock version.
placing a die() statement in the index.php file ( to make sure the http request is actually being served to the browser properly - it is.
Keeping my Laradock .env file identical except for new values required by the latest version of Laradock.
I have not yet tried the new Laradock version with a Laravel project but I intend to do so.
This list of things attempts to eliminate the following as possible causes of the issue.
- Missing cache files
- Laravel itself ( rather than October )
- My .env file
I have switched between Laradock versions several times and the old version always works the new one has the error described.
My process for switching Laradock versions is to run docker-compose down, restart docker engine, run docker-container-prune and finally run docker-compose -d --build < list containers > from the folder containing the version of Laradock I wish to use.