docker-magento: Fatal error: Uncaught Zend_Cache_Exception

After running docker-compose up, all of the containers load, but I get a fatal PHP error:

Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/src/var/page_cache" is not writable in /src/vendor/magento/zendframework1/library/Zend/Cache.php:209 
Stack trace: 
#0 /src/vendor/magento/zendframework1/library/Zend/Cache/Backend/File.php(180): Zend_Cache::throwException('cache_dir "/src...')
#1 /src/lib/internal/Cm/Cache/Backend/File.php(82): Zend_Cache_Backend_File->setCacheDir('/src/var/page_c...')
#2 /src/vendor/magento/zendframework1/library/Zend/Cache.php(153): Cm_Cache_Backend_File->__construct(Array)
#3 /src/vendor/magento/zendframework1/library/Zend/Cache.php(94): Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true)
#4 /src/vendor/magento/framework/App/Cache/Frontend/Factory.php(154): Zend_Cache::factory('Magento\\Framewo...', 'Cm_Cache_Backen...', Array, Array, true, true, true)
#5 /src/vendor/magento/framework/App/Cache/Frontend/Pool.php(67): Magento\Framework\App\Cache\Frontend\Factory->create(Array)
#6 /src/vendor/magento/framework/App/Cache/Frontend/Pool.php(146): Magento\Framework\App\Cach in /src/vendor/magento/zendframework1/library/Zend/Cache.php on line 209

Please help!

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 55 (25 by maintainers)

Commits related to this issue

Most upvoted comments

@daim2k5 This conversation is not fruitful. Please cease and desist.

@daim2k5 all i’ve heard is talk. magento needs to start doing. i’m sick of talk, i’ve heard this for a long time now. you’ve had enough time to learn.

i’m not going to delete this project. that would be a disservice to the community. that is a horrible suggestion, and it shows just how disconnected magento inc. is from their dev base to even recommend such a thing.