Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/htdocs/var/cache/" is not writable in /htdocs/vendor/magento/zend-cache/library/Zend/Cache.php:209
Stack trace:
#0 /htdocs/vendor/magento/zend-cache/library/Zend/Cache/Backend/File.php(180): Zend_Cache::throwException('cache_dir "/htd...')
#1 /htdocs/vendor/colinmollenhour/cache-backend-file/File.php(86): Zend_Cache_Backend_File->setCacheDir('/htdocs/var/cac...')
#2 /htdocs/vendor/magento/zend-cache/library/Zend/Cache.php(153): Cm_Cache_Backend_File->__construct(Array)
#3 /htdocs/vendor/magento/zend-cache/library/Zend/Cache.php(94): Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true)
#4 /htdocs/vendor/magento/framework/App/Cache/Frontend/Factory.php(434): Zend_Cache::factory('Magento\\Framewo...', 'Cm_Cache_Backen...', Array, Array, true, true, true)
#5 /htdocs/vendor/magento/framework/Cache/Frontend/Adapter/Zend.php(45): Magento\Framework\App\Cache\Frontend\Factory->Magento\Framework\App\Cache\Frontend\{closure}()
#6 /htdocs/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(121): Magento\Framework\Cache\Frontend\Adapter\Zend->__construct(Object(Closure))
#7 /htdocs/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Framewo...', Array)
#8 /htdocs/vendor/magento/framework/ObjectManager/ObjectManager.php(59): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Framewo...', Array)
#9 /htdocs/vendor/magento/framework/App/Cache/Frontend/Factory.php(430): Magento\Framework\ObjectManager\ObjectManager->create('Magento\\Framewo...', Array)
#10 /htdocs/vendor/magento/framework/App/Cache/Frontend/Factory.php(176): Magento\Framework\App\Cache\Frontend\Factory->createCacheWithDefaultOptions(Array)
#11 /htdocs/vendor/magento/framework/App/Cache/Frontend/Pool.php(69): Magento\Framework\App\Cache\Frontend\Factory->create(Array)
#12 /htdocs/vendor/magento/framework/App/Cache/Frontend/Pool.php(156): Magento\Framework\App\Cache\Frontend\Pool->_initialize()
#13 /htdocs/vendor/magento/framework/App/Cache/Type/FrontendPool.php(87): Magento\Framework\App\Cache\Frontend\Pool->get('default')
#14 /htdocs/vendor/magento/framework/App/Interception/Cache/CompiledConfig.php(29): Magento\Framework\App\Cache\Type\FrontendPool->get('compiled_config')
#15 /htdocs/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(121): Magento\Framework\App\Interception\Cache\CompiledConfig->__construct(Object(Magento\Framework\App\Cache\Type\FrontendPool))
#16 /htdocs/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Framewo...', Array)
#17 /htdocs/vendor/magento/framework/ObjectManager/ObjectManager.php(73): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Framewo...')
#18 /htdocs/vendor/magento/framework/App/ObjectManager/Environment/Compiled.php(117): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Framewo...')
#19 /htdocs/vendor/magento/framework/App/ObjectManagerFactory.php(191): Magento\Framework\App\ObjectManager\Environment\Compiled->configureObjectManager(Object(Magento\Framework\Interception\ObjectManager\Config\Compiled), Array)
#20 /htdocs/vendor/magento/framework/App/Bootstrap.php(212): Magento\Framework\App\ObjectManagerFactory->create(Array)
#21 /htdocs/vendor/magento/framework/App/Bootstrap.php(127): Magento\Framework\App\Bootstrap->__construct(Object(Magento\Framework\App\ObjectManagerFactory), '/htdocs', Array)
#22 /htdocs/pub/static.php(10): Magento\Framework\App\Bootstrap::create('/htdocs', Array)
#23 {main}
thrown in /htdocs/vendor/magento/zend-cache/library/Zend/Cache.php on line 209