thaiphan / magento2-s3

Use Amazon S3 as the file storage solution for your Magento 2 application
MIT License
142 stars 95 forks source link

Installing magento2-s3 while installing magento throws an exception #63

Closed lracicot closed 6 years ago

lracicot commented 6 years ago

Problem

If the database does not already exists, the install scripts throw an exception:

Running upgrade..
Starting Magento installation:
File permissions check...
[Progress: 1 / 545]
Required extensions check...
[Progress: 2 / 545]
Enabling Maintenance Mode...
[Progress: 3 / 545]
Installing deployment configuration...
[Progress: 4 / 545]
Installing database schema:

  [Zend_Db_Statement_Exception]                                                                                                                              
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento.store_website' doesn't exist, query was: SELECT `store_website`.* FROM `store_website`  

Exception trace:
 () at /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php:235
 Zend_Db_Statement_Pdo->_execute() at /var/www/html/vendor/magento/framework/DB/Statement/Pdo/Mysql.php:93
 Magento\Framework\DB\Statement\Pdo\Mysql->_execute() at /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Statement.php:303
 Zend_Db_Statement->execute() at /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php:480
 Zend_Db_Adapter_Abstract->query() at /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:238
 Zend_Db_Adapter_Pdo_Abstract->query() at /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php:533
 Magento\Framework\DB\Adapter\Pdo\Mysql->_query() at /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php:605
 Magento\Framework\DB\Adapter\Pdo\Mysql->query() at /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php:737
 Zend_Db_Adapter_Abstract->fetchAll() at /var/www/html/vendor/magento/module-store/App/Config/Source/RuntimeConfigSource.php:87
 Magento\Store\App\Config\Source\RuntimeConfigSource->getEntities() at /var/www/html/vendor/magento/module-store/App/Config/Source/RuntimeConfigSource.php:57
 Magento\Store\App\Config\Source\RuntimeConfigSource->get() at /var/www/html/vendor/magento/framework/App/Config/ConfigSourceAggregated.php:40
 Magento\Framework\App\Config\ConfigSourceAggregated->get() at /var/www/html/generated/code/Magento/Framework/App/Config/ConfigSourceAggregated/Proxy.php:95
 Magento\Framework\App\Config\ConfigSourceAggregated\Proxy->get() at /var/www/html/vendor/magento/module-store/App/Config/Type/Scopes.php:63
 Magento\Store\App\Config\Type\Scopes->get() at /var/www/html/vendor/magento/framework/App/Config.php:131
 Magento\Framework\App\Config->get() at /var/www/html/vendor/magento/module-store/Model/WebsiteRepository.php:182
 Magento\Store\Model\WebsiteRepository->initDefaultWebsite() at /var/www/html/vendor/magento/module-store/Model/WebsiteRepository.php:141
 Magento\Store\Model\WebsiteRepository->getDefault() at /var/www/html/vendor/magento/module-store/Model/StoreResolver/Website.php:46
 Magento\Store\Model\StoreResolver\Website->getAllowedStoreIds() at /var/www/html/vendor/magento/module-store/Model/StoreResolver.php:140
 Magento\Store\Model\StoreResolver->readStoresData() at /var/www/html/vendor/magento/module-store/Model/StoreResolver.php:126
 Magento\Store\Model\StoreResolver->getStoresData() at /var/www/html/vendor/magento/module-store/Model/StoreResolver.php:89
 Magento\Store\Model\StoreResolver->getCurrentStoreId() at /var/www/html/vendor/magento/module-store/Model/StoreManager.php:157
 Magento\Store\Model\StoreManager->getStore() at /var/www/html/generated/code/Magento/Store/Model/StoreManagerInterface/Proxy.php:119
 Magento\Store\Model\StoreManagerInterface\Proxy->getStore() at /var/www/html/vendor/magento/module-store/Model/Resolver/Store.php:29
 Magento\Store\Model\Resolver\Store->getScope() at /var/www/html/vendor/magento/framework/App/Config/ScopeCodeResolver.php:49
 Magento\Framework\App\Config\ScopeCodeResolver->resolve() at /var/www/html/vendor/magento/framework/App/Config.php:69
 Magento\Framework\App\Config->getValue() at /var/www/html/vendor/magento/framework/Locale/Resolver.php:91
 Magento\Framework\Locale\Resolver->getDefaultLocale() at /var/www/html/vendor/magento/framework/Locale/Resolver.php:108
 Magento\Framework\Locale\Resolver->setLocale() at /var/www/html/vendor/magento/framework/Locale/Resolver.php:65
 Magento\Framework\Locale\Resolver->__construct() at /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:111
 Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject() at /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:66
 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create() at /var/www/html/vendor/magento/framework/ObjectManager/ObjectManager.php:70
 Magento\Framework\ObjectManager\ObjectManager->get() at /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:144
 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument() at /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:230
 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime() at /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:34
 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments() at /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:59
 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create() at /var/www/html/vendor/magento/framework/ObjectManager/ObjectManager.php:70
 Magento\Framework\ObjectManager\ObjectManager->get() at /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:144
 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument() at /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:230
 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime() at /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:34
 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments() at /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:59
 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create() at /var/www/html/vendor/magento/framework/ObjectManager/ObjectManager.php:70
 Magento\Framework\ObjectManager\ObjectManager->get() at /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:144
 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument() at /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:230
 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime() at /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:34
 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments() at /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:59
 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create() at /var/www/html/vendor/magento/framework/ObjectManager/ObjectManager.php:70
 Magento\Framework\ObjectManager\ObjectManager->get() at /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:144
 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument() at /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:230
 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime() at /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:34
 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments() at /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:59
 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create() at /var/www/html/vendor/magento/framework/ObjectManager/ObjectManager.php:70
 Magento\Framework\ObjectManager\ObjectManager->get() at /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:144
 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument() at /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:230
 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime() at /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:34
 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments() at /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:59
 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create() at /var/www/html/vendor/magento/framework/ObjectManager/ObjectManager.php:56
 Magento\Framework\ObjectManager\ObjectManager->create() at /var/www/html/generated/code/Magento/MediaStorage/Helper/File/StorageFactory.php:43
 Magento\MediaStorage\Helper\File\StorageFactory->create() at /var/www/html/vendor/thaiphan/magento2-s3/Console/Command/StorageEnableCommand.php:54
 Thai\S3\Console\Command\StorageEnableCommand->__construct() at /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:111

Solution

Depencencies needs to be added in the module.xml file.

thaiphan commented 6 years ago

User resolved own issue with pull request.