Fatal error: Uncaught Magento\Framework\Exception\LocalizedException: Invalid Document
Error in merged XML after reading /app/app/etc/di.xml
Element 'preference': Duplicate key-sequence ['Psr\Log\LoggerInterface'] in unique identity-constraint 'uniquePreference'.
Line: 28
The xml was:
23: </argument>
24: </arguments>
25: </type>
26: <preference for="DateTimeInterface" type="DateTime"/>
27: <preference for="Psr\Log\LoggerInterface" type="Magento\Framework\Logger\LoggerProxy"/>
28: <preference for="Magento\Framework\Webapi\Backpressure\BackpressureRequestTypeExtractorInterface" type="Magento\Framework\Webapi\Backpressure\CompositeRequestTypeExtractor"/>
29: <preference for="Magento\Framework\App\Backpressure\SlidingWindow\RequestLoggerFactoryInterface" type="Magento\Framework\App\Backpressure\SlidingWindow\RequestLoggerFactory"/>
30: <preference for="Magento\Framework\EntityManager\EntityMetadataInterface" type="Magento\Framework\EntityManager\EntityMetadata"/>
31: <preference for="Magento\Framework\EntityManager\HydratorInterface" type="Magento\Framework\EntityManager\Hydrator"/>
32: <preference for="Magento\Framework\View\Template\Html\MinifierInterface" type="Magento\Framework\View\Template\Html\Minifier"/>
in /app/vendor/magento/framework/Config/Reader/Filesystem.php:186
Stack trace:
#0 /app/vendor/magento/framework/Config/Reader/Filesystem.php(131): Magento\Framework\Config\Reader\Filesystem->_readFiles(Object(Magento\Framework\Config\FileIterator))
#1 /app/vendor/magento/framework/App/ObjectManagerFactory.php(279): Magento\Framework\Config\Reader\Filesystem->read('primary')
#2 /app/vendor/magento/framework/App/ObjectManagerFactory.php(140): Magento\Framework\App\ObjectManagerFactory->_loadPrimaryConfig(Object(Magento\Framework\App\Filesystem\DirectoryList), Object(Magento\Framework\Filesystem\DriverPool), Object(Magento\Framework\ObjectManager\Config\Mapper\Dom), 'developer')
#3 /app/vendor/magento/framework/App/Bootstrap.php(212): Magento\Framework\App\ObjectManagerFactory->create(Array)
#4 /app/vendor/magento/framework/App/Bootstrap.php(127): Magento\Framework\App\Bootstrap->__construct(Object(Magento\Framework\App\ObjectManagerFactory), '/app', Array)
#5 /app/pub/index.php(27): Magento\Framework\App\Bootstrap::create('/app', Array)
#6 {main}
Next Magento\Framework\Exception\State\InitException: Invalid Document
Error in merged XML after reading /app/app/etc/di.xml
Element 'preference': Duplicate key-sequence ['Psr\Log\LoggerInterface'] in unique identity-constraint 'uniquePreference'.
Line: 28
The xml was:
23: </argument>
24: </arguments>
25: </type>
26: <preference for="DateTimeInterface" type="DateTime"/>
27: <preference for="Psr\Log\LoggerInterface" type="Magento\Framework\Logger\LoggerProxy"/>
28: <preference for="Magento\Framework\Webapi\Backpressure\BackpressureRequestTypeExtractorInterface" type="Magento\Framework\Webapi\Backpressure\CompositeRequestTypeExtractor"/>
29: <preference for="Magento\Framework\App\Backpressure\SlidingWindow\RequestLoggerFactoryInterface" type="Magento\Framework\App\Backpressure\SlidingWindow\RequestLoggerFactory"/>
30: <preference for="Magento\Framework\EntityManager\EntityMetadataInterface" type="Magento\Framework\EntityManager\EntityMetadata"/>
31: <preference for="Magento\Framework\EntityManager\HydratorInterface" type="Magento\Framework\EntityManager\Hydrator"/>
32: <preference for="Magento\Framework\View\Template\Html\MinifierInterface" type="Magento\Framework\View\Template\Html\Minifier"/>
in /app/vendor/magento/framework/App/ObjectManagerFactory.php:281
Stack trace:
#0 /app/vendor/magento/framework/App/ObjectManagerFactory.php(140): Magento\Framework\App\ObjectManagerFactory->_loadPrimaryConfig(Object(Magento\Framework\App\Filesystem\DirectoryList), Object(Magento\Framework\Filesystem\DriverPool), Object(Magento\Framework\ObjectManager\Config\Mapper\Dom), 'developer')
#1 /app/vendor/magento/framework/App/Bootstrap.php(212): Magento\Framework\App\ObjectManagerFactory->create(Array)
#2 /app/vendor/magento/framework/App/Bootstrap.php(127): Magento\Framework\App\Bootstrap->__construct(Object(Magento\Framework\App\ObjectManagerFactory), '/app', Array)
#3 /app/pub/index.php(27): Magento\Framework\App\Bootstrap::create('/app', Array)
#4 {main}
thrown in /app/vendor/magento/framework/App/ObjectManagerFactory.php on line 281