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

watchwood's avatar

Failing to create cache files

fopen(/home/vagrant/code/storage/framework\cache/70/f2/70f26811f7787b15eefb9f96f37402e6776199a3): Failed to open stream: No such file or directory

This is coming up when trying to log into my app running on a local vagrant box. I've cleared every cache file and followed every debug step I can find. I've ever blown away the vagrant box and the repo itself locally, and started again from completely nothing.

Any thoughts on how to handle this?

0 likes
3 replies
Snapey's avatar

if your web server runs under the account www-data, make sure it owns the storage folder

watchwood's avatar

For whichever poor bastard runs into this error after me, try toggling the CACHE_DRIVER and SESSION_DRIVER to a different setting, wiping the config cache files manually, then switching the settings back, then wiping the config cache files again.

Please or to participate in this conversation.