Magento\Framework\Exception\FileSystemException: Cannot write to the "/var/www/vitaminwebstore.com/magento/2.x/2.x/var/debug/db.log" file. Unable to write in /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/magento/framework/Filesystem/File/Write.php:54 Stack trace: #0 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/magento/framework/DB/Logger/File.php(57): Magento\Framework\Filesystem\File\Write->write('## 2021-01-24 0...') #1 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/magento/framework/DB/Logger/File.php(69): Magento\Framework\DB\Logger\File->log('## 2021-01-24 0...') #2 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/magento/framework/DB/Logger/LoggerProxy.php(152): Magento\Framework\DB\Logger\File->logStats('query', 'SELECT `store_w...', Array, NULL) #3 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(574): Magento\Framework\DB\Logger\LoggerProxy->logStats('query', 'SELECT `store_w...', Array) #4 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(605): Magento\Framework\DB\Adapter\Pdo\Mysql->_query('SELECT `store_w...', Array) #5 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(737): Magento\Framework\DB\Adapter\Pdo\Mysql->query(Object(Magento\Framework\DB\Select), Array) #6 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/magento/module-store/App/Config/Source/RuntimeConfigSource.php(87): Zend_Db_Adapter_Abstract->fetchAll(Object(Magento\Framework\DB\Select)) #7 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/magento/module-store/App/Config/Source/RuntimeConfigSource.php(57): Magento\Store\App\Config\Source\RuntimeConfigSource->getEntities('store_website', 'code') #8 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/magento/framework/App/Config/ConfigSourceAggregated.php(40): Magento\Store\App\Config\Source\RuntimeConfigSource->get('') #9 /var/www/vitaminwebstore.com/magento/2.x/2.x/generated/code/Magento/Framework/App/Config/ConfigSourceAggregated/Proxy.php(95): Magento\Framework\App\Config\ConfigSourceAggregated->get('') #10 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/magento/module-store/App/Config/Type/Scopes.php(63): Magento\Framework\App\Config\ConfigSourceAggregated\Proxy->get() #11 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/magento/framework/App/Config.php(131): Magento\Store\App\Config\Type\Scopes->get('stores/1') #12 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/magento/module-store/Model/StoreRepository.php(103): Magento\Framework\App\Config->get('scopes', 'stores/1', Array) #13 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/magento/module-store/Model/StoreRepository.php(122): Magento\Store\Model\StoreRepository->getById('1') #14 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/magento/module-store/Model/StoreResolver.php(171): Magento\Store\Model\StoreRepository->getActiveStoreById('1') #15 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/magento/module-store/Model/StoreResolver.php(109): Magento\Store\Model\StoreResolver->getDefaultStoreById('1') #16 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Store\Model\StoreResolver->getCurrentStoreId() #17 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Store\Model\StoreResolver\Interceptor->___callParent('getCurrentStore...', Array) #18 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Store\Model\StoreResolver\Interceptor->Magento\Framework\Interception\{closure}() #19 /var/www/vitaminwebstore.com/magento/2.x/2.x/generated/code/Magento/Store/Model/StoreResolver/Interceptor.php(26): Magento\Store\Model\StoreResolver\Interceptor->___callPlugins('getCurrentStore...', Array, Array) #20 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/magento/module-store/Model/StoreManager.php(157): Magento\Store\Model\StoreResolver\Interceptor->getCurrentStoreId() #21 /var/www/vitaminwebstore.com/magento/2.x/2.x/generated/code/Magento/Store/Model/StoreManagerInterface/Proxy.php(119): Magento\Store\Model\StoreManager->getStore(NULL) #22 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/magento/module-store/Model/Resolver/Store.php(29): Magento\Store\Model\StoreManagerInterface\Proxy->getStore(NULL) #23 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/magento/framework/App/Config/ScopeCodeResolver.php(49): Magento\Store\Model\Resolver\Store->getScope(NULL) #24 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/magento/framework/App/Config.php(69): Magento\Framework\App\Config\ScopeCodeResolver->resolve('stores', NULL) #25 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/magento/module-developer/Model/Logger/Handler/Debug.php(63): Magento\Framework\App\Config->getValue('dev/debug/debug...', 'stores') #26 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(31): Magento\Developer\Model\Logger\Handler\Debug->isHandling(Array) #27 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\Handler\AbstractProcessingHandler->handle(Array) #28 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/magento/framework/Logger/Monolog.php(48): Monolog\Logger->addRecord(400, 'Cannot write to...', Array) #29 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/monolog/monolog/src/Monolog/Logger.php(707): Magento\Framework\Logger\Monolog->addRecord(400, 'Cannot write to...', Array) #30 /var/www/vitaminwebstore.com/magento/2.x/2.x/vendor/magento/framework/App/Bootstrap.php(262): Monolog\Logger->error('Cannot write to...') #31 /var/www/vitaminwebstore.com/magento/2.x/2.x/pub/index.php(37): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http)) #32 {main}