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

liftin's avatar

Cache Directory Issues with Vapor

Trying to deploy an app on Vapor and getting error:

Caching Laravel configuration{"message":"The /var/task/bootstrap/cache directory must be present and writable.","context":{"exception":{"class":"Exception","message":"The /var/task/bootstrap/cache directory must be present and writable.","code":0,"file":"/var/task/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php:177"},"aws_request_id":null},"level":400,"level_name":"ERROR","channel":"staging","datetime":"2020-04-30T13:38:10.025561-04:00","extra":{}}

Does not make sense as using a cache resource and have applied it within the .yml file.

Any suggestions?

0 likes
2 replies
socramjunio2's avatar

Guys, how can I solve this problem, I've done everything here and nothing. I haven't been able to deploy to steam yet!

crnkovic's avatar

Try deleting the cache directory or running php artisan cache:clear before deploying.

Please or to participate in this conversation.