Skip to content

Error on setup:install at creating database schema

Do you knows the trouble origin?

terminal log

In adittion, there is this error report from php at acessing the app root directory

Fatal error: Uncaught Zend_Cache_Exception: cache_dir “/var/www/var/cache/” is not writable in /var/www/vendor/magento/zend-cache/library/Zend/Cache.php:209 Stack trace: #0 /var/www/vendor/magento/zend-cache/library/Zend/Cache/Backend/File.php(180): Zend_Cache::throwException(‘cache_dir “/var…’) #1 /var/www/vendor/colinmollenhour/cache-backend-file/File.php(86): Zend_Cache_Backend_File->setCacheDir(‘/var/www/var/ca…’) #2 /var/www/vendor/magento/zend-cache/library/Zend/Cache.php(153): Cm_Cache_Backend_File->__construct(Array) #3 /var/www/vendor/magento/zend-cache/library/Zend/Cache.php(94): Zend_Cache::_makeBackend(‘Cm_Cache_Backen…’, Array, true, true) #4 /var/www/vendor/magento/framework/App/Cache/Frontend/Factory.php(434): Zend_Cache::factory(‘MagentoFramewo…’, ‘Cm_Cache_Backen…’, Array, Array, true, true, true) #5 /var/www/vendor/magento/framework/Cache/Frontend/Adapter/Zend.php(45): MagentoFrameworkAppCacheFrontendFactory->MagentoFrameworkAppCacheFrontend{closure}() #6 /var/www/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(121): MagentoFrameworkCacheFrontendAdapterZend->__construct(Object(Closure)) #7 /var/www/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(66): MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject(‘MagentoFramewo…’, Array) #8 /var/www/vendor/magento/framework/ObjectManager/ObjectManager.php(59): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create(‘MagentoFramewo…’, Array) #9 /var/www/vendor/magento/framework/App/Cache/Frontend/Factory.php(430): MagentoFrameworkObjectManagerObjectManager->create(‘MagentoFramewo…’, Array) #10 /var/www/vendor/magento/framework/App/Cache/Frontend/Factory.php(176): MagentoFrameworkAppCacheFrontendFactory->createCacheWithDefaultOptions(Array) #11 /var/www/vendor/magento/framework/App/Cache/Frontend/Pool.php(69): MagentoFrameworkAppCacheFrontendFactory->create(Array) #12 /var/www/vendor/magento/framework/App/Cache/Frontend/Pool.php(156): MagentoFrameworkAppCacheFrontendPool->_initialize() #13 /var/www/vendor/magento/framework/App/Cache/Type/FrontendPool.php(87): MagentoFrameworkAppCacheFrontendPool->get(‘default’) #14 /var/www/vendor/magento/framework/App/Cache/Type/Config.php(52): MagentoFrameworkAppCacheTypeFrontendPool->get(‘config’) #15 /var/www/vendor/magento/framework/Cache/Frontend/Decorator/Bare.php(65): MagentoFrameworkAppCacheTypeConfig->_getFrontend() #16 /var/www/vendor/magento/framework/App/ObjectManager/ConfigLoader.php(73): MagentoFrameworkCacheFrontendDecoratorBare->load(‘global::DiConfi…’) #17 /var/www/vendor/magento/framework/App/ObjectManager/Environment/Developer.php(79): MagentoFrameworkAppObjectManagerConfigLoader->load(‘global’) #18 /var/www/vendor/magento/framework/App/ObjectManagerFactory.php(191): MagentoFrameworkAppObjectManagerEnvironmentDeveloper->configureObjectManager(Object(MagentoFrameworkInterceptionObjectManagerConfigDeveloper), Array) #19 /var/www/vendor/magento/framework/App/Bootstrap.php(212): MagentoFrameworkAppObjectManagerFactory->create(Array) #20 /var/www/vendor/magento/framework/App/Bootstrap.php(127): MagentoFrameworkAppBootstrap->__construct(Object(MagentoFrameworkAppObjectManagerFactory), ‘/var/www’, Array) #21 /var/www/pub/index.php(27): MagentoFrameworkAppBootstrap::create(‘/var/www’, Array) #22 {main} thrown in /var/www/vendor/magento/zend-cache/library/Zend/Cache.php on line 209

The “/var/www/var/cache/” doesn’t exists and doens’t seems to make sense and Bootstrap try to create “/var/www”, which is the current directory and already exists, for summarize. The app wasn’t been installed yet, nevertheless.

I’d appreciate.