Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magento 2.3 - clean install - Unable to apply patch for Magento_InventorySales #2017

Closed
patvdleer opened this issue Feb 6, 2019 · 31 comments
Milestone

Comments

@patvdleer
Copy link

Completely clean setup, new server about an hour old, installed Ubuntu 18.04, Apache 2, MySQL 5.7 and PHP 7.1. When trying to run the Magento 2.3 setup it failed.

Preconditions (*)

  1. Magento 2.3.0
PHP 7.1.26-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Jan 11 2019 14:13:49) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.1.26-1+ubuntu18.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies

Steps to reproduce (*)

  1. Clean install
  2. follow setup guide

Expected result (*)

  1. Install?

Actual result (*)

image

Module 'Magento_InventorySales':
[ERROR] Magento\Framework\Setup\Exception: Unable to apply patch Magento\InventorySales\Setup\Patch\Schema\InitializeWebsiteDefaultSock for module Magento_InventorySales. Original exception message: No such entity. in /var/www/vhosts/[HOST_REDACTED]/httpdocs/vendor/magento/framework/Setup/Patch/PatchApplier.php:232
Stack trace:
#0 /var/www/vhosts/[HOST_REDACTED]/httpdocs/setup/src/Magento/Setup/Model/Installer.php(1000): Magento\Framework\Setup\Patch\PatchApplier->applySchemaPatch('Magento_Invento...')
#1 /var/www/vhosts/[HOST_REDACTED]/httpdocs/setup/src/Magento/Setup/Model/Installer.php(831): Magento\Setup\Model\Installer->handleDBSchemaData(Object(Magento\Setup\Module\Setup), 'schema', Array)
#2 [internal function]: Magento\Setup\Model\Installer->installSchema(Array)
#3 /var/www/vhosts/[HOST_REDACTED]/httpdocs/setup/src/Magento/Setup/Model/Installer.php(367): call_user_func_array(Array, Array)
#4 /var/www/vhosts/[HOST_REDACTED]/httpdocs/setup/src/Magento/Setup/Controller/Install.php(109): Magento\Setup\Model\Installer->install(Array)
#5 /var/www/vhosts/[HOST_REDACTED]/httpdocs/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(84): Magento\Setup\Controller\Install->startAction()
#6 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#7 /var/www/vhosts/[HOST_REDACTED]/httpdocs/vendor/zendframework/zend-eventmanager/src/EventManager.php(490): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#8 /var/www/vhosts/[HOST_REDACTED]/httpdocs/vendor/zendframework/zend-eventmanager/src/EventManager.php(260): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#9 /var/www/vhosts/[HOST_REDACTED]/httpdocs/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#10 /var/www/vhosts/[HOST_REDACTED]/httpdocs/vendor/zendframework/zend-mvc/src/DispatchListener.php(118): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#11 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#12 /var/www/vhosts/[HOST_REDACTED]/httpdocs/vendor/zendframework/zend-eventmanager/src/EventManager.php(490): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#13 /var/www/vhosts/[HOST_REDACTED]/httpdocs/vendor/zendframework/zend-eventmanager/src/EventManager.php(260): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#14 /var/www/vhosts/[HOST_REDACTED]/httpdocs/vendor/zendframework/zend-mvc/src/Application.php(340): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#15 /var/www/vhosts/[HOST_REDACTED]/httpdocs/setup/index.php(39): Zend\Mvc\Application->run()
#16 {main}

Refs: magento/magento2#21003

@maghamed
Copy link
Contributor

maghamed commented Feb 6, 2019

Hey @patvdleer thanks for the issue report.

What version of MSI you are installing? Do you do composer installation or git?

@maghamed maghamed added this to the MSI Part III milestone Feb 6, 2019
@danielciornei
Copy link

@maghamed same issue happening here
using composer - issue appears on web wizard install

  • magento can be however set-up from CLI , but in this case when trying to add Stock or Sources in admin the following error appears : Could not load Sales Channels for Stock

@smoskaluk
Copy link

Hi @patvdleer !
I couldn't reproduce your issue, so may you please provide more details for it.
Thank you for your report!

@patvdleer
Copy link
Author

I didn't, this is a clean composer install
composer create-project --repository=https://repo.magento.com/ magento/project-community-edition httpdocs

what else do you need?

@danielciornei
Copy link

@patvdleer @smoskaluk
this issue appears if opcache.save_comments in your opcache.ini file is set to 0.
Make sure it's set to 1, restart services and try again

@patvdleer
Copy link
Author

@danielciornei that doesn't fix it

image

image

@danielciornei
Copy link

ok, on closer look you had a different exception message
Original exception message: No such entity. - in your case
Original exception message: Could not load Sales Channels for Stock - in my case

changing opcache.save_comments to 1 fixed my issue.
other change I made - max_input_time = 1800 in php.ini

@smoskaluk smoskaluk removed their assignment Feb 8, 2019
@maghamed
Copy link
Contributor

Does the issue still exist for you @patvdleer ?

@patvdleer
Copy link
Author

@maghamed sadly yes

@IvanPletnyov
Copy link
Contributor

@patvdleer Hello.

  1. Perform please next SQL queries before install and give me results.
    SELECT * FROM store_website;

SELECT * FROM inventory_stock_sales_channel;

  1. Give me please your config.php file (path: [project dir]/app/etc/config.php).

  2. Give me please your root composer.json file (path: [project dir]/composer.json).

  3. After installing (in any case) give me please your install.log (path: [project dir]/var/log/install.log).

  4. Do you use new database ?

  5. Do you use table prefix during installing ?

@patvdleer
Copy link
Author

@IvanPletnyov Before install? It's a clean install so there are no tables in the schema.

@IvanPletnyov
Copy link
Contributor

@patvdleer Okay, without SQL. What about other ones?

@patvdleer
Copy link
Author

patvdleer commented Feb 12, 2019

config.php

<?php
return [
    'modules' => [
        'Magento_Store' => 1,
        'Magento_Directory' => 1,
        'Magento_Theme' => 1,
        'Magento_Backend' => 1,
        'Magento_Variable' => 1,
        'Magento_Eav' => 1,
        'Magento_AdminNotification' => 1,
        'MSP_ReCaptcha' => 1,
        'Magento_Config' => 1,
        'Magento_Indexer' => 1,
        'Magento_AdvancedPricingImportExport' => 1,
        'Magento_Search' => 1,
        'Magento_Amqp' => 1,
        'Magento_Security' => 1,
        'Magento_User' => 1,
        'Magento_Authorization' => 1,
        'Magento_Customer' => 1,
        'Magento_Rule' => 1,
        'Magento_Backup' => 1,
        'Magento_Cms' => 1,
        'Magento_Catalog' => 1,
        'Magento_GraphQl' => 1,
        'Magento_BundleImportExport' => 1,
        'Magento_CacheInvalidate' => 1,
        'Magento_Quote' => 1,
        'Magento_SalesSequence' => 1,
        'Magento_Integration' => 1,
        'Magento_EavGraphQl' => 1,
        'Magento_CatalogImportExport' => 1,
        'Magento_Payment' => 1,
        'Magento_CatalogInventory' => 1,
        'Magento_Cron' => 1,
        'Magento_Msrp' => 1,
        'Magento_CatalogRule' => 1,
        'Magento_CatalogUrlRewrite' => 1,
        'Magento_CatalogUrlRewriteGraphQl' => 1,
        'Magento_Widget' => 1,
        'Magento_Sales' => 1,
        'Magento_Checkout' => 1,
        'Magento_Vault' => 1,
        'Magento_CmsGraphQl' => 1,
        'Magento_CmsUrlRewrite' => 1,
        'Magento_CmsUrlRewriteGraphQl' => 1,
        'MSP_TwoFactorAuth' => 1,
        'Magento_ConfigurableImportExport' => 1,
        'Magento_ConfigurableProduct' => 1,
        'Magento_StoreGraphQl' => 1,
        'Magento_ConfigurableProductSales' => 1,
        'Magento_Contact' => 1,
        'Magento_Cookie' => 1,
        'Magento_Email' => 1,
        'Magento_CurrencySymbol' => 1,
        'Magento_Paypal' => 1,
        'Magento_Analytics' => 1,
        'Magento_CustomerGraphQl' => 1,
        'Magento_CustomerImportExport' => 1,
        'Magento_Deploy' => 1,
        'Magento_Developer' => 1,
        'Magento_Dhl' => 1,
        'Amazon_Core' => 1,
        'Magento_Downloadable' => 1,
        'Magento_CatalogGraphQl' => 1,
        'Magento_ImportExport' => 1,
        'Magento_Authorizenet' => 1,
        'Magento_BundleGraphQl' => 1,
        'Magento_CatalogSearch' => 1,
        'Magento_Newsletter' => 1,
        'Magento_EncryptionKey' => 1,
        'Magento_Fedex' => 1,
        'Magento_GiftMessage' => 1,
        'Magento_GoogleAdwords' => 1,
        'Magento_GoogleAnalytics' => 1,
        'Magento_Ui' => 1,
        'Magento_ConfigurableProductGraphQl' => 1,
        'Magento_GroupedImportExport' => 1,
        'Magento_GroupedProduct' => 1,
        'Magento_GroupedProductGraphQl' => 1,
        'Magento_DownloadableImportExport' => 1,
        'Magento_Braintree' => 1,
        'Magento_InstantPurchase' => 1,
        'Magento_CatalogAnalytics' => 1,
        'Magento_Inventory' => 1,
        'Magento_InventoryAdminUi' => 1,
        'Magento_InventoryApi' => 1,
        'Magento_InventoryBundleProduct' => 1,
        'Magento_InventoryBundleProductAdminUi' => 1,
        'Magento_InventoryCatalog' => 1,
        'Magento_InventorySales' => 1,
        'Magento_InventoryCatalogAdminUi' => 1,
        'Magento_InventoryCatalogApi' => 1,
        'Magento_InventoryCatalogSearch' => 1,
        'Magento_InventoryConfigurableProduct' => 1,
        'Magento_InventoryConfigurableProductAdminUi' => 1,
        'Magento_InventoryConfigurableProductIndexer' => 1,
        'Magento_InventoryConfiguration' => 1,
        'Magento_InventoryConfigurationApi' => 1,
        'Magento_InventoryGroupedProduct' => 1,
        'Magento_InventoryGroupedProductAdminUi' => 1,
        'Magento_InventoryGroupedProductIndexer' => 1,
        'Magento_InventoryImportExport' => 1,
        'Magento_InventoryIndexer' => 1,
        'Magento_InventoryLowQuantityNotification' => 1,
        'Magento_InventoryLowQuantityNotificationAdminUi' => 1,
        'Magento_InventoryLowQuantityNotificationApi' => 1,
        'Magento_InventoryMultiDimensionalIndexerApi' => 1,
        'Magento_InventoryProductAlert' => 1,
        'Magento_InventoryReservations' => 1,
        'Magento_InventoryReservationsApi' => 1,
        'Magento_InventoryCache' => 1,
        'Magento_InventorySalesAdminUi' => 1,
        'Magento_InventorySalesApi' => 1,
        'Magento_InventorySalesFrontendUi' => 1,
        'Magento_InventoryShipping' => 1,
        'Magento_Shipping' => 1,
        'Magento_InventorySourceDeductionApi' => 1,
        'Magento_InventorySourceSelection' => 1,
        'Magento_InventorySourceSelectionApi' => 1,
        'Magento_LayeredNavigation' => 1,
        'Magento_Marketplace' => 1,
        'Magento_MediaStorage' => 1,
        'Magento_MessageQueue' => 1,
        'Magento_CatalogRuleConfigurable' => 1,
        'Magento_Multishipping' => 1,
        'Magento_MysqlMq' => 1,
        'Magento_NewRelicReporting' => 1,
        'Magento_ProductAlert' => 1,
        'Magento_OfflinePayments' => 1,
        'Magento_SalesRule' => 1,
        'Magento_PageCache' => 1,
        'Magento_Captcha' => 1,
        'Klarna_Core' => 1,
        'Magento_Persistent' => 1,
        'Magento_Reports' => 1,
        'Magento_ProductVideo' => 1,
        'Amazon_Login' => 1,
        'Magento_QuoteAnalytics' => 1,
        'Magento_QuoteGraphQl' => 1,
        'Magento_ReleaseNotification' => 1,
        'Magento_Review' => 1,
        'Magento_RequireJs' => 1,
        'Magento_SendFriend' => 1,
        'Magento_ReviewAnalytics' => 1,
        'Magento_Robots' => 1,
        'Magento_Rss' => 1,
        'Magento_AdvancedSearch' => 1,
        'Amazon_Payment' => 1,
        'Magento_SalesAnalytics' => 1,
        'Magento_SalesInventory' => 1,
        'Magento_OfflineShipping' => 1,
        'Klarna_Ordermanagement' => 1,
        'Magento_UrlRewrite' => 1,
        'Magento_Elasticsearch' => 1,
        'Magento_CustomerAnalytics' => 1,
        'Magento_Wishlist' => 1,
        'Magento_InventoryShippingAdminUi' => 1,
        'Magento_Signifyd' => 1,
        'Magento_Sitemap' => 1,
        'Magento_CatalogInventoryGraphQl' => 1,
        'Magento_DownloadableGraphQl' => 1,
        'Magento_Webapi' => 1,
        'Magento_SwaggerWebapi' => 1,
        'Magento_SwaggerWebapiAsync' => 1,
        'Magento_Swatches' => 1,
        'Magento_SwatchesGraphQl' => 1,
        'Magento_SwatchesLayeredNavigation' => 1,
        'Magento_Tax' => 1,
        'Magento_TaxGraphQl' => 1,
        'Magento_TaxImportExport' => 1,
        'Magento_CheckoutAgreements' => 1,
        'Magento_Tinymce3' => 1,
        'Magento_Translation' => 1,
        'Magento_GoogleOptimizer' => 1,
        'Magento_Ups' => 1,
        'Magento_SampleData' => 1,
        'Magento_UrlRewriteGraphQl' => 1,
        'Magento_AsynchronousOperations' => 1,
        'Magento_Usps' => 1,
        'Magento_Bundle' => 1,
        'Klarna_Kp' => 1,
        'Magento_Version' => 1,
        'Magento_Swagger' => 1,
        'Magento_WebapiAsync' => 1,
        'Magento_WebapiSecurity' => 1,
        'Magento_Weee' => 1,
        'Magento_WeeeGraphQl' => 1,
        'Magento_CatalogWidget' => 1,
        'Dotdigitalgroup_Email' => 1,
        'Magento_WishlistAnalytics' => 1,
        'Temando_Shipping' => 1,
        'Vertex_Tax' => 1
    ]
];

Composer.json

{
    "name": "magento/project-community-edition",
    "description": "eCommerce Platform for Growth (Community Edition)",
    "type": "project",
    "license": [
        "OSL-3.0",
        "AFL-3.0"
    ],
    "config": {
        "preferred-install": "dist",
        "sort-packages": true
    },
    "require": {
        "magento/product-community-edition": "2.3.0"
    },
    "require-dev": {
        "friendsofphp/php-cs-fixer": "~2.13.0",
        "lusitanian/oauth": "~0.8.10",
        "magento/magento2-functional-testing-framework": "2.3.9",
        "pdepend/pdepend": "2.5.2",
        "phpmd/phpmd": "@stable",
        "phpunit/phpunit": "~6.5.0",
        "sebastian/phpcpd": "~3.0.0",
        "squizlabs/php_codesniffer": "3.3.1"
    },
    "conflict": {
        "gene/bluefoot": "*"
    },
    "autoload": {
        "psr-4": {
            "Magento\\Framework\\": "lib/internal/Magento/Framework/",
            "Magento\\Setup\\": "setup/src/Magento/Setup/",
            "Magento\\": "app/code/Magento/",
            "Zend\\Mvc\\Controller\\": "setup/src/Zend/Mvc/Controller/"
        },
        "psr-0": {
            "": [
                "app/code/",
                "generated/code/"
            ]
        },
        "files": [
            "app/etc/NonComposerComponentRegistration.php"
        ],
        "exclude-from-classmap": [
            "**/dev/**",
            "**/update/**",
            "**/Test/**"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/",
            "Magento\\Tools\\": "dev/tools/Magento/Tools/",
            "Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/",
            "Magento\\TestFramework\\Inspection\\": "dev/tests/static/framework/Magento/TestFramework/Inspection/",
            "Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/"
        }
    },
    "version": "2.3.0",
    "minimum-stability": "stable",
    "repositories": [
        {
            "type": "composer",
            "url": "https://repo.magento.com/"
        }
    ],
    "extra": {
        "magento-force": "override"
    }
}

Install.log

<span class="text-info">Starting Magento installation:</span><br><span class="text-info">File permissions check...</span><br><span class="hidden">[Progress: 1 / 773]</span><br><span class="text-info">Required extensions check...</span><br><span class="hidden">[Progress: 2 / 773]</span><br><span class="text-info">Enabling Maintenance Mode...</span><br><span class="hidden">[Progress: 3 / 773]</span><br><span class="text-info">Installing deployment configuration...</span><br><span class="hidden">[Progress: 4 / 773]</span><br><span class="text-info">Installing database schema:</span><br><span class="text-info">Schema creation/updates:</span><br><span class="text-info">Module 'Magento_Store':</span><br><span class="hidden">[Progress: 5 / 773]</span><br><span class="text-info">Module 'Magento_Directory':</span><br><span class="hidden">[Progress: 6 / 773]</span><br><span class="text-info">Module 'Magento_Theme':</span><br><span class="hidden">[Progress: 7 / 773]</span><br><span class="text-info">Module 'Magento_Backend':</span><br><span class="hidden">[Progress: 8 / 773]</span><br><span class="text-info">Module 'Magento_Variable':</span><br><span class="hidden">[Progress: 9 / 773]</span><br><span class="text-info">Module 'Magento_Eav':</span><br><span class="hidden">[Progress: 10 / 773]</span><br><span class="text-info">Module 'Magento_AdminNotification':</span><br><span class="hidden">[Progress: 11 / 773]</span><br><span class="text-info">Module 'MSP_ReCaptcha':</span><br><span class="hidden">[Progress: 12 / 773]</span><br><span class="text-info">Module 'Magento_Config':</span><br><span class="hidden">[Progress: 13 / 773]</span><br><span class="text-info">Module 'Magento_Indexer':</span><br><span class="hidden">[Progress: 14 / 773]</span><br><span class="text-info">Module 'Magento_AdvancedPricingImportExport':</span><br><span class="hidden">[Progress: 15 / 773]</span><br><span class="text-info">Module 'Magento_Search':</span><br><span class="hidden">[Progress: 16 / 773]</span><br><span class="text-info">Module 'Magento_Amqp':</span><br><span class="hidden">[Progress: 17 / 773]</span><br><span class="text-info">Module 'Magento_Security':</span><br><span class="hidden">[Progress: 18 / 773]</span><br><span class="text-info">Module 'Magento_User':</span><br><span class="hidden">[Progress: 19 / 773]</span><br><span class="text-info">Module 'Magento_Authorization':</span><br><span class="hidden">[Progress: 20 / 773]</span><br><span class="text-info">Module 'Magento_Customer':</span><br><span class="hidden">[Progress: 21 / 773]</span><br><span class="text-info">Module 'Magento_Rule':</span><br><span class="hidden">[Progress: 22 / 773]</span><br><span class="text-info">Module 'Magento_Backup':</span><br><span class="hidden">[Progress: 23 / 773]</span><br><span class="text-info">Module 'Magento_Cms':</span><br><span class="hidden">[Progress: 24 / 773]</span><br><span class="text-info">Module 'Magento_Catalog':</span><br><span class="hidden">[Progress: 25 / 773]</span><br><span class="text-info">Module 'Magento_GraphQl':</span><br><span class="hidden">[Progress: 26 / 773]</span><br><span class="text-info">Module 'Magento_BundleImportExport':</span><br><span class="hidden">[Progress: 27 / 773]</span><br><span class="text-info">Module 'Magento_CacheInvalidate':</span><br><span class="hidden">[Progress: 28 / 773]</span><br><span class="text-info">Module 'Magento_Quote':</span><br><span class="hidden">[Progress: 29 / 773]</span><br><span class="text-info">Module 'Magento_SalesSequence':</span><br><span class="hidden">[Progress: 30 / 773]</span><br><span class="text-info">Module 'Magento_Integration':</span><br><span class="hidden">[Progress: 31 / 773]</span><br><span class="text-info">Module 'Magento_EavGraphQl':</span><br><span class="hidden">[Progress: 32 / 773]</span><br><span class="text-info">Module 'Magento_CatalogImportExport':</span><br><span class="hidden">[Progress: 33 / 773]</span><br><span class="text-info">Module 'Magento_Payment':</span><br><span class="hidden">[Progress: 34 / 773]</span><br><span class="text-info">Module 'Magento_CatalogInventory':</span><br><span class="hidden">[Progress: 35 / 773]</span><br><span class="text-info">Module 'Magento_Cron':</span><br><span class="hidden">[Progress: 36 / 773]</span><br><span class="text-info">Module 'Magento_Msrp':</span><br><span class="hidden">[Progress: 37 / 773]</span><br><span class="text-info">Module 'Magento_CatalogRule':</span><br><span class="hidden">[Progress: 38 / 773]</span><br><span class="text-info">Module 'Magento_CatalogUrlRewrite':</span><br><span class="hidden">[Progress: 39 / 773]</span><br><span class="text-info">Module 'Magento_CatalogUrlRewriteGraphQl':</span><br><span class="hidden">[Progress: 40 / 773]</span><br><span class="text-info">Module 'Magento_Widget':</span><br><span class="hidden">[Progress: 41 / 773]</span><br><span class="text-info">Module 'Magento_Sales':</span><br><span class="hidden">[Progress: 42 / 773]</span><br><span class="text-info">Module 'Magento_Checkout':</span><br><span class="hidden">[Progress: 43 / 773]</span><br><span class="text-info">Module 'Magento_Vault':</span><br><span class="hidden">[Progress: 44 / 773]</span><br><span class="text-info">Module 'Magento_CmsGraphQl':</span><br><span class="hidden">[Progress: 45 / 773]</span><br><span class="text-info">Module 'Magento_CmsUrlRewrite':</span><br><span class="hidden">[Progress: 46 / 773]</span><br><span class="text-info">Module 'Magento_CmsUrlRewriteGraphQl':</span><br><span class="hidden">[Progress: 47 / 773]</span><br><span class="text-info">Module 'MSP_TwoFactorAuth':</span><br><span class="text-info">Installing schema... </span><span class="text-info">Upgrading schema... </span><br><span class="hidden">[Progress: 48 / 773]</span><br><span class="text-info">Module 'Magento_ConfigurableImportExport':</span><br><span class="hidden">[Progress: 49 / 773]</span><br><span class="text-info">Module 'Magento_ConfigurableProduct':</span><br><span class="hidden">[Progress: 50 / 773]</span><br><span class="text-info">Module 'Magento_StoreGraphQl':</span><br><span class="hidden">[Progress: 51 / 773]</span><br><span class="text-info">Module 'Magento_ConfigurableProductSales':</span><br><span class="hidden">[Progress: 52 / 773]</span><br><span class="text-info">Module 'Magento_Contact':</span><br><span class="hidden">[Progress: 53 / 773]</span><br><span class="text-info">Module 'Magento_Cookie':</span><br><span class="hidden">[Progress: 54 / 773]</span><br><span class="text-info">Module 'Magento_Email':</span><br><span class="hidden">[Progress: 55 / 773]</span><br><span class="text-info">Module 'Magento_CurrencySymbol':</span><br><span class="hidden">[Progress: 56 / 773]</span><br><span class="text-info">Module 'Magento_Paypal':</span><br><span class="hidden">[Progress: 57 / 773]</span><br><span class="text-info">Module 'Magento_Analytics':</span><br><span class="hidden">[Progress: 58 / 773]</span><br><span class="text-info">Module 'Magento_CustomerGraphQl':</span><br><span class="hidden">[Progress: 59 / 773]</span><br><span class="text-info">Module 'Magento_CustomerImportExport':</span><br><span class="hidden">[Progress: 60 / 773]</span><br><span class="text-info">Module 'Magento_Deploy':</span><br><span class="hidden">[Progress: 61 / 773]</span><br><span class="text-info">Module 'Magento_Developer':</span><br><span class="hidden">[Progress: 62 / 773]</span><br><span class="text-info">Module 'Magento_Dhl':</span><br><span class="hidden">[Progress: 63 / 773]</span><br><span class="text-info">Module 'Amazon_Core':</span><br><span class="hidden">[Progress: 64 / 773]</span><br><span class="text-info">Module 'Magento_Downloadable':</span><br><span class="hidden">[Progress: 65 / 773]</span><br><span class="text-info">Module 'Magento_CatalogGraphQl':</span><br><span class="hidden">[Progress: 66 / 773]</span><br><span class="text-info">Module 'Magento_ImportExport':</span><br><span class="hidden">[Progress: 67 / 773]</span><br><span class="text-info">Module 'Magento_Authorizenet':</span><br><span class="hidden">[Progress: 68 / 773]</span><br><span class="text-info">Module 'Magento_BundleGraphQl':</span><br><span class="hidden">[Progress: 69 / 773]</span><br><span class="text-info">Module 'Magento_CatalogSearch':</span><br><span class="hidden">[Progress: 70 / 773]</span><br><span class="text-info">Module 'Magento_Newsletter':</span><br><span class="hidden">[Progress: 71 / 773]</span><br><span class="text-info">Module 'Magento_EncryptionKey':</span><br><span class="hidden">[Progress: 72 / 773]</span><br><span class="text-info">Module 'Magento_Fedex':</span><br><span class="hidden">[Progress: 73 / 773]</span><br><span class="text-info">Module 'Magento_GiftMessage':</span><br><span class="hidden">[Progress: 74 / 773]</span><br><span class="text-info">Module 'Magento_GoogleAdwords':</span><br><span class="hidden">[Progress: 75 / 773]</span><br><span class="text-info">Module 'Magento_GoogleAnalytics':</span><br><span class="hidden">[Progress: 76 / 773]</span><br><span class="text-info">Module 'Magento_Ui':</span><br><span class="hidden">[Progress: 77 / 773]</span><br><span class="text-info">Module 'Magento_ConfigurableProductGraphQl':</span><br><span class="hidden">[Progress: 78 / 773]</span><br><span class="text-info">Module 'Magento_GroupedImportExport':</span><br><span class="hidden">[Progress: 79 / 773]</span><br><span class="text-info">Module 'Magento_GroupedProduct':</span><br><span class="hidden">[Progress: 80 / 773]</span><br><span class="text-info">Module 'Magento_GroupedProductGraphQl':</span><br><span class="hidden">[Progress: 81 / 773]</span><br><span class="text-info">Module 'Magento_DownloadableImportExport':</span><br><span class="hidden">[Progress: 82 / 773]</span><br><span class="text-info">Module 'Magento_Braintree':</span><br><span class="hidden">[Progress: 83 / 773]</span><br><span class="text-info">Module 'Magento_InstantPurchase':</span><br><span class="hidden">[Progress: 84 / 773]</span><br><span class="text-info">Module 'Magento_CatalogAnalytics':</span><br><span class="hidden">[Progress: 85 / 773]</span><br><span class="text-info">Module 'Magento_Inventory':</span><br><span class="hidden">[Progress: 86 / 773]</span><br><span class="text-info">Module 'Magento_InventoryAdminUi':</span><br><span class="hidden">[Progress: 87 / 773]</span><br><span class="text-info">Module 'Magento_InventoryApi':</span><br><span class="hidden">[Progress: 88 / 773]</span><br><span class="text-info">Module 'Magento_InventoryBundleProduct':</span><br><span class="hidden">[Progress: 89 / 773]</span><br><span class="text-info">Module 'Magento_InventoryBundleProductAdminUi':</span><br><span class="hidden">[Progress: 90 / 773]</span><br><span class="text-info">Module 'Magento_InventoryCatalog':</span><br><span class="hidden">[Progress: 91 / 773]</span><br><span class="text-info">Module 'Magento_InventorySales':</span><br><span class="text-danger">[ERROR] Magento\Framework\Setup\Exception: Unable to apply patch Magento\InventorySales\Setup\Patch\Schema\InitializeWebsiteDefaultSock for module Magento_InventorySales. Original exception message: No such entity. in /var/www/vhosts/[HOST_REDACTED]/httpdocs/vendor/magento/framework/Setup/Patch/PatchApplier.php:232
Stack trace:
#0 /var/www/vhosts/[HOST_REDACTED]/httpdocs/setup/src/Magento/Setup/Model/Installer.php(1000): Magento\Framework\Setup\Patch\PatchApplier->applySchemaPatch('Magento_Invento...')
#1 /var/www/vhosts/[HOST_REDACTED]/httpdocs/setup/src/Magento/Setup/Model/Installer.php(831): Magento\Setup\Model\Installer->handleDBSchemaData(Object(Magento\Setup\Module\Setup), 'schema', Array)
#2 [internal function]: Magento\Setup\Model\Installer->installSchema(Array)
#3 /var/www/vhosts/[HOST_REDACTED]/httpdocs/setup/src/Magento/Setup/Model/Installer.php(367): call_user_func_array(Array, Array)
#4 /var/www/vhosts/[HOST_REDACTED]/httpdocs/setup/src/Magento/Setup/Controller/Install.php(109): Magento\Setup\Model\Installer->install(Array)
#5 /var/www/vhosts/[HOST_REDACTED]/httpdocs/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(84): Magento\Setup\Controller\Install->startAction()
#6 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#7 /var/www/vhosts/[HOST_REDACTED]/httpdocs/vendor/zendframework/zend-eventmanager/src/EventManager.php(490): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#8 /var/www/vhosts/[HOST_REDACTED]/httpdocs/vendor/zendframework/zend-eventmanager/src/EventManager.php(260): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#9 /var/www/vhosts/[HOST_REDACTED]/httpdocs/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#10 /var/www/vhosts/[HOST_REDACTED]/httpdocs/vendor/zendframework/zend-mvc/src/DispatchListener.php(118): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#11 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#12 /var/www/vhosts/[HOST_REDACTED]/httpdocs/vendor/zendframework/zend-eventmanager/src/EventManager.php(490): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#13 /var/www/vhosts/[HOST_REDACTED]/httpdocs/vendor/zendframework/zend-eventmanager/src/EventManager.php(260): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#14 /var/www/vhosts/[HOST_REDACTED]/httpdocs/vendor/zendframework/zend-mvc/src/Application.php(340): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#15 /var/www/vhosts/[HOST_REDACTED]/httpdocs/setup/index.php(39): Zend\Mvc\Application->run()
#16 {main}<span><br>

@patvdleer
Copy link
Author

patvdleer commented Feb 12, 2019

install.log formatted

<span class="text-info">Starting Magento installation:</span>
<br><span class="text-info">File permissions check...</span>
<br><span class="hidden">[Progress: 1 / 773]</span>
<br><span class="text-info">Required extensions check...</span>
<br><span class="hidden">[Progress: 2 / 773]</span>
<br><span class="text-info">Enabling Maintenance Mode...</span>
<br><span class="hidden">[Progress: 3 / 773]</span>
<br><span class="text-info">Installing deployment configuration...</span>
<br><span class="hidden">[Progress: 4 / 773]</span>
<br><span class="text-info">Installing database schema:</span>
<br><span class="text-info">Schema creation/updates:</span>
<br><span class="text-info">Module 'Magento_Store':</span>
<br><span class="hidden">[Progress: 5 / 773]</span>
<br><span class="text-info">Module 'Magento_Directory':</span>
<br><span class="hidden">[Progress: 6 / 773]</span>
<br><span class="text-info">Module 'Magento_Theme':</span>
<br><span class="hidden">[Progress: 7 / 773]</span>
<br><span class="text-info">Module 'Magento_Backend':</span>
<br><span class="hidden">[Progress: 8 / 773]</span>
<br><span class="text-info">Module 'Magento_Variable':</span>
<br><span class="hidden">[Progress: 9 / 773]</span>
<br><span class="text-info">Module 'Magento_Eav':</span>
<br><span class="hidden">[Progress: 10 / 773]</span>
<br><span class="text-info">Module 'Magento_AdminNotification':</span>
<br><span class="hidden">[Progress: 11 / 773]</span>
<br><span class="text-info">Module 'MSP_ReCaptcha':</span>
<br><span class="hidden">[Progress: 12 / 773]</span>
<br><span class="text-info">Module 'Magento_Config':</span>
<br><span class="hidden">[Progress: 13 / 773]</span>
<br><span class="text-info">Module 'Magento_Indexer':</span>
<br><span class="hidden">[Progress: 14 / 773]</span>
<br><span class="text-info">Module 'Magento_AdvancedPricingImportExport':</span>
<br><span class="hidden">[Progress: 15 / 773]</span>
<br><span class="text-info">Module 'Magento_Search':</span>
<br><span class="hidden">[Progress: 16 / 773]</span>
<br><span class="text-info">Module 'Magento_Amqp':</span>
<br><span class="hidden">[Progress: 17 / 773]</span>
<br><span class="text-info">Module 'Magento_Security':</span>
<br><span class="hidden">[Progress: 18 / 773]</span>
<br><span class="text-info">Module 'Magento_User':</span>
<br><span class="hidden">[Progress: 19 / 773]</span>
<br><span class="text-info">Module 'Magento_Authorization':</span>
<br><span class="hidden">[Progress: 20 / 773]</span>
<br><span class="text-info">Module 'Magento_Customer':</span>
<br><span class="hidden">[Progress: 21 / 773]</span>
<br><span class="text-info">Module 'Magento_Rule':</span>
<br><span class="hidden">[Progress: 22 / 773]</span>
<br><span class="text-info">Module 'Magento_Backup':</span>
<br><span class="hidden">[Progress: 23 / 773]</span>
<br><span class="text-info">Module 'Magento_Cms':</span>
<br><span class="hidden">[Progress: 24 / 773]</span>
<br><span class="text-info">Module 'Magento_Catalog':</span>
<br><span class="hidden">[Progress: 25 / 773]</span>
<br><span class="text-info">Module 'Magento_GraphQl':</span>
<br><span class="hidden">[Progress: 26 / 773]</span>
<br><span class="text-info">Module 'Magento_BundleImportExport':</span>
<br><span class="hidden">[Progress: 27 / 773]</span>
<br><span class="text-info">Module 'Magento_CacheInvalidate':</span>
<br><span class="hidden">[Progress: 28 / 773]</span>
<br><span class="text-info">Module 'Magento_Quote':</span>
<br><span class="hidden">[Progress: 29 / 773]</span>
<br><span class="text-info">Module 'Magento_SalesSequence':</span>
<br><span class="hidden">[Progress: 30 / 773]</span>
<br><span class="text-info">Module 'Magento_Integration':</span>
<br><span class="hidden">[Progress: 31 / 773]</span>
<br><span class="text-info">Module 'Magento_EavGraphQl':</span>
<br><span class="hidden">[Progress: 32 / 773]</span>
<br><span class="text-info">Module 'Magento_CatalogImportExport':</span>
<br><span class="hidden">[Progress: 33 / 773]</span>
<br><span class="text-info">Module 'Magento_Payment':</span>
<br><span class="hidden">[Progress: 34 / 773]</span>
<br><span class="text-info">Module 'Magento_CatalogInventory':</span>
<br><span class="hidden">[Progress: 35 / 773]</span>
<br><span class="text-info">Module 'Magento_Cron':</span>
<br><span class="hidden">[Progress: 36 / 773]</span>
<br><span class="text-info">Module 'Magento_Msrp':</span>
<br><span class="hidden">[Progress: 37 / 773]</span>
<br><span class="text-info">Module 'Magento_CatalogRule':</span>
<br><span class="hidden">[Progress: 38 / 773]</span>
<br><span class="text-info">Module 'Magento_CatalogUrlRewrite':</span>
<br><span class="hidden">[Progress: 39 / 773]</span>
<br><span class="text-info">Module 'Magento_CatalogUrlRewriteGraphQl':</span>
<br><span class="hidden">[Progress: 40 / 773]</span>
<br><span class="text-info">Module 'Magento_Widget':</span>
<br><span class="hidden">[Progress: 41 / 773]</span>
<br><span class="text-info">Module 'Magento_Sales':</span>
<br><span class="hidden">[Progress: 42 / 773]</span>
<br><span class="text-info">Module 'Magento_Checkout':</span>
<br><span class="hidden">[Progress: 43 / 773]</span>
<br><span class="text-info">Module 'Magento_Vault':</span>
<br><span class="hidden">[Progress: 44 / 773]</span>
<br><span class="text-info">Module 'Magento_CmsGraphQl':</span>
<br><span class="hidden">[Progress: 45 / 773]</span>
<br><span class="text-info">Module 'Magento_CmsUrlRewrite':</span>
<br><span class="hidden">[Progress: 46 / 773]</span>
<br><span class="text-info">Module 'Magento_CmsUrlRewriteGraphQl':</span>
<br><span class="hidden">[Progress: 47 / 773]</span>
<br><span class="text-info">Module 'MSP_TwoFactorAuth':</span>
<br><span class="text-info">Installing schema... </span><span class="text-info">Upgrading schema... </span>
<br><span class="hidden">[Progress: 48 / 773]</span>
<br><span class="text-info">Module 'Magento_ConfigurableImportExport':</span>
<br><span class="hidden">[Progress: 49 / 773]</span>
<br><span class="text-info">Module 'Magento_ConfigurableProduct':</span>
<br><span class="hidden">[Progress: 50 / 773]</span>
<br><span class="text-info">Module 'Magento_StoreGraphQl':</span>
<br><span class="hidden">[Progress: 51 / 773]</span>
<br><span class="text-info">Module 'Magento_ConfigurableProductSales':</span>
<br><span class="hidden">[Progress: 52 / 773]</span>
<br><span class="text-info">Module 'Magento_Contact':</span>
<br><span class="hidden">[Progress: 53 / 773]</span>
<br><span class="text-info">Module 'Magento_Cookie':</span>
<br><span class="hidden">[Progress: 54 / 773]</span>
<br><span class="text-info">Module 'Magento_Email':</span>
<br><span class="hidden">[Progress: 55 / 773]</span>
<br><span class="text-info">Module 'Magento_CurrencySymbol':</span>
<br><span class="hidden">[Progress: 56 / 773]</span>
<br><span class="text-info">Module 'Magento_Paypal':</span>
<br><span class="hidden">[Progress: 57 / 773]</span>
<br><span class="text-info">Module 'Magento_Analytics':</span>
<br><span class="hidden">[Progress: 58 / 773]</span>
<br><span class="text-info">Module 'Magento_CustomerGraphQl':</span>
<br><span class="hidden">[Progress: 59 / 773]</span>
<br><span class="text-info">Module 'Magento_CustomerImportExport':</span>
<br><span class="hidden">[Progress: 60 / 773]</span>
<br><span class="text-info">Module 'Magento_Deploy':</span>
<br><span class="hidden">[Progress: 61 / 773]</span>
<br><span class="text-info">Module 'Magento_Developer':</span>
<br><span class="hidden">[Progress: 62 / 773]</span>
<br><span class="text-info">Module 'Magento_Dhl':</span>
<br><span class="hidden">[Progress: 63 / 773]</span>
<br><span class="text-info">Module 'Amazon_Core':</span>
<br><span class="hidden">[Progress: 64 / 773]</span>
<br><span class="text-info">Module 'Magento_Downloadable':</span>
<br><span class="hidden">[Progress: 65 / 773]</span>
<br><span class="text-info">Module 'Magento_CatalogGraphQl':</span>
<br><span class="hidden">[Progress: 66 / 773]</span>
<br><span class="text-info">Module 'Magento_ImportExport':</span>
<br><span class="hidden">[Progress: 67 / 773]</span>
<br><span class="text-info">Module 'Magento_Authorizenet':</span>
<br><span class="hidden">[Progress: 68 / 773]</span>
<br><span class="text-info">Module 'Magento_BundleGraphQl':</span>
<br><span class="hidden">[Progress: 69 / 773]</span>
<br><span class="text-info">Module 'Magento_CatalogSearch':</span>
<br><span class="hidden">[Progress: 70 / 773]</span>
<br><span class="text-info">Module 'Magento_Newsletter':</span>
<br><span class="hidden">[Progress: 71 / 773]</span>
<br><span class="text-info">Module 'Magento_EncryptionKey':</span>
<br><span class="hidden">[Progress: 72 / 773]</span>
<br><span class="text-info">Module 'Magento_Fedex':</span>
<br><span class="hidden">[Progress: 73 / 773]</span>
<br><span class="text-info">Module 'Magento_GiftMessage':</span>
<br><span class="hidden">[Progress: 74 / 773]</span>
<br><span class="text-info">Module 'Magento_GoogleAdwords':</span>
<br><span class="hidden">[Progress: 75 / 773]</span>
<br><span class="text-info">Module 'Magento_GoogleAnalytics':</span>
<br><span class="hidden">[Progress: 76 / 773]</span>
<br><span class="text-info">Module 'Magento_Ui':</span>
<br><span class="hidden">[Progress: 77 / 773]</span>
<br><span class="text-info">Module 'Magento_ConfigurableProductGraphQl':</span>
<br><span class="hidden">[Progress: 78 / 773]</span>
<br><span class="text-info">Module 'Magento_GroupedImportExport':</span>
<br><span class="hidden">[Progress: 79 / 773]</span>
<br><span class="text-info">Module 'Magento_GroupedProduct':</span>
<br><span class="hidden">[Progress: 80 / 773]</span>
<br><span class="text-info">Module 'Magento_GroupedProductGraphQl':</span>
<br><span class="hidden">[Progress: 81 / 773]</span>
<br><span class="text-info">Module 'Magento_DownloadableImportExport':</span>
<br><span class="hidden">[Progress: 82 / 773]</span>
<br><span class="text-info">Module 'Magento_Braintree':</span>
<br><span class="hidden">[Progress: 83 / 773]</span>
<br><span class="text-info">Module 'Magento_InstantPurchase':</span>
<br><span class="hidden">[Progress: 84 / 773]</span>
<br><span class="text-info">Module 'Magento_CatalogAnalytics':</span>
<br><span class="hidden">[Progress: 85 / 773]</span>
<br><span class="text-info">Module 'Magento_Inventory':</span>
<br><span class="hidden">[Progress: 86 / 773]</span>
<br><span class="text-info">Module 'Magento_InventoryAdminUi':</span>
<br><span class="hidden">[Progress: 87 / 773]</span>
<br><span class="text-info">Module 'Magento_InventoryApi':</span>
<br><span class="hidden">[Progress: 88 / 773]</span>
<br><span class="text-info">Module 'Magento_InventoryBundleProduct':</span>
<br><span class="hidden">[Progress: 89 / 773]</span>
<br><span class="text-info">Module 'Magento_InventoryBundleProductAdminUi':</span>
<br><span class="hidden">[Progress: 90 / 773]</span>
<br><span class="text-info">Module 'Magento_InventoryCatalog':</span>
<br><span class="hidden">[Progress: 91 / 773]</span>
<br><span class="text-info">Module 'Magento_InventorySales':</span>
<br><span class="text-danger">[ERROR] Magento\Framework\Setup\Exception: Unable to apply patch Magento\InventorySales\Setup\Patch\Schema\InitializeWebsiteDefaultSock for module Magento_InventorySales. Original exception message: No such entity. in /var/www/vhosts/[HOST_REDACTED]/httpdocs/vendor/magento/framework/Setup/Patch/PatchApplier.php:232

@smoskaluk
Copy link

smoskaluk commented Feb 13, 2019

Hi @patvdleer, in your composer.json MSI package line is missing, please insert it like this if you want latest MSI package 1.1.0

"require": {
"magento/product-community-edition": "2.3.0",
"magento/inventory-composer-metapackage": "1.1.0"
},

or "magento/inventory-composer-metapackage": "1.0.3" - for previous MSI version

here is full instruction how to install MSI
https://devdocs.magento.com/guides/v2.3/comp-mgr/install-extensions/inventory-management-installation.html

@patvdleer
Copy link
Author

Well that's the thing, I wasn't looking for that, I am trying to run the default install. Should I still add it?

@smoskaluk
Copy link

sure, if you want MSI to be installed

@patvdleer
Copy link
Author

@smoskaluk I don't, I don't need it

@smoskaluk
Copy link

smoskaluk commented Feb 13, 2019

Hi @patvdleer , as a work around you may disable all Magento_Inventory* modules in your Magento (set 0 for all of them in app/etc/config.php) and then try to install

Magento_Inventory => 0,
Magento_InventoryAdminUi => 0,
Magento_InventoryApi => 0,
Magento_InventoryBundleProduct => 0,
Magento_InventoryBundleProductAdminUi => 0,
Magento_InventoryCatalog => 0,
Magento_InventorySales => 0,
Magento_InventoryCatalogAdminUi => 0,
Magento_InventoryCatalogApi => 0,
Magento_InventoryCatalogSearch => 0,
Magento_InventoryConfigurableProduct => 0,
Magento_InventoryConfigurableProductAdminUi => 0,
Magento_InventoryConfigurableProductIndexer => 0,
Magento_InventoryConfiguration => 0,
Magento_InventoryConfigurationApi => 0,
Magento_InventoryGroupedProduct => 0,
Magento_InventoryGroupedProductAdminUi => 0,
Magento_InventoryGroupedProductIndexer => 0,
Magento_InventoryImportExport => 0,
Magento_InventoryIndexer => 0,
Magento_InventoryLowQuantityNotification => 0,
Magento_InventoryLowQuantityNotificationAdminUi => 0,
Magento_InventoryLowQuantityNotificationApi => 0,
Magento_InventoryMultiDimensionalIndexerApi => 0,
Magento_InventoryProductAlert => 0,
Magento_InventoryReservations => 0,
Magento_InventoryReservationsApi => 0,
Magento_InventoryCache => 0,
Magento_InventorySalesAdminUi => 0,
Magento_InventorySalesApi => 0,
Magento_InventorySalesFrontendUi => 0,
Magento_InventoryShipping => 0,
Magento_InventorySourceDeductionApi => 0,
Magento_InventorySourceSelection => 0,
Magento_InventorySourceSelectionApi => 0 ,
Magento_InventoryShippingAdminUi => 0

@patvdleer
Copy link
Author

still doesn't explain how a clean install causes this error

@maghamed
Copy link
Contributor

Hey @patvdleer ,

Well that's the thing, I wasn't looking for that, I am trying to run the default install. Should I still add it?
@smoskaluk I don't, I don't need it

MSI is a core part, it's a name for the new Inventory mechanism in Magento.
The old one - CatalogInventory is deprecated.

So, MSI is not just for merchants who want to use multi-sourcing capabilities of Magento, but for all merchants who wish to use Inventory functionality (as product Qty calculation) for their eCommerce stores.

With a high probability, the legacy mechanism (CatalogInventory) would be fully eliminated within the next major Magento release (2.4).

Thus, we recommend using MSI interfaces for all new projects if in the scope of the project you need to work/customize out of the box inventory operations.

still doesn't explain how a clean install causes this error

A clean Magento install includes MSI, as MSI is a core bundle extension.
It's the way how other components would be developed and deployed in a coming future. Each one would reside in own GitHub repository.

@maghamed
Copy link
Contributor

still doesn't explain how a clean install causes this error

True, this is still an open question.
Btw, from which source did you get your composer.json?

On Magento marketplace, we generate meta-package which includes MSI.

@patvdleer
Copy link
Author

patvdleer commented Feb 27, 2019

I can not, for the life of me, figure out why this is... I've tried switching to PHP7.2, reverting to "regular" MySQL instead of Percona MySQL... Still same shit

(composer) reinstalled multiple times, including clearing the cache...

@patvdleer
Copy link
Author

via the tar.gz install

[ERROR] Magento\Framework\Setup\Exception: Unable to apply patch Magento\InventorySales\Setup\Patch\Schema\InitializeWebsiteDefaultSock for module Magento_InventorySales. Original exception message: No such entity. in /var/www/vhosts/[]/httpdocs/vendor/magento/framework/Setup/Patch/PatchApplier.php:232

@smoskaluk
Copy link

Yes, it's very weird situation. I'm installing Magento several times every day and never faced such problem. Did you have any errors when you create your Database for Magento? Did you try to re-create new one before installation?

@patvdleer
Copy link
Author

I tried 2.2.7 which also gave me issues, so I did what every reasonable devop would do, reinstall the VPS en threaten the server with a glass of water. I'll keep you posted once I finish setting it back up again

@patvdleer
Copy link
Author

sudo su
apt install mysql-server apache2 libapache2-mod-php7.2 php7.2 php7.2-bcmath php7.2-cli php7.2-common php7.2-curl php7.2-gd php7.2-intl php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-readline php7.2-recode php7.2-soap php7.2-tidy php7.2-xml php7.2-xmlrpc php7.2-xsl php7.2-zip 
a2enmod php7.2
a2enmod rewrite
cp -r .ssh /root/.ssh

mkdir -p /var/www/vhosts/CUSTOMER
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php 
mv composer.phar /bin/composer
rm composer-setup.php 
cd /var/www/vhosts/CUSTOMER

# Setup didn't set the root passwd
service mysql stop
mkdir /var/run/mysqld
chown mysql: /var/run/mysqld
mysqld_safe --skip-grant-tables --skip-networking &
mysql -uroot mysql
UPDATE mysql.user SET authentication_string=PASSWORD('XXXXXXXXXXXXX'), plugin='mysql_native_password', host='%' WHERE User='root';
EXIT;
mysqladmin -S /var/run/mysqld/mysqld.sock shutdown
service mysql start

mysql -uroot -pXXXXXXXXXXX
CREATE USER 'CUSTOMER'@'%';
ALTER USER 'CUSTOMER'@'%'
IDENTIFIED BY 'XXXXXXXXXXX' ;
GRANT Alter ON CUSTOMER.* TO 'CUSTOMER'@'%';
GRANT Create ON CUSTOMER.* TO 'CUSTOMER'@'%';
GRANT Create view ON CUSTOMER.* TO 'CUSTOMER'@'%';
GRANT Delete ON CUSTOMER.* TO 'CUSTOMER'@'%';
GRANT Drop ON CUSTOMER.* TO 'CUSTOMER'@'%';
GRANT Grant option ON CUSTOMER.* TO 'CUSTOMER'@'%';
GRANT Index ON CUSTOMER.* TO 'CUSTOMER'@'%';
GRANT Insert ON CUSTOMER.* TO 'CUSTOMER'@'%';
GRANT References ON CUSTOMER.* TO 'CUSTOMER'@'%';
GRANT Select ON CUSTOMER.* TO 'CUSTOMER'@'%';
GRANT Show view ON CUSTOMER.* TO 'CUSTOMER'@'%';
GRANT Trigger ON CUSTOMER.* TO 'CUSTOMER'@'%';
GRANT Update ON CUSTOMER.* TO 'CUSTOMER'@'%';
GRANT Alter routine ON CUSTOMER.* TO 'CUSTOMER'@'%';
GRANT Create routine ON CUSTOMER.* TO 'CUSTOMER'@'%';
GRANT Create temporary tables ON CUSTOMER.* TO 'CUSTOMER'@'%';
GRANT Execute ON CUSTOMER.* TO 'CUSTOMER'@'%';
GRANT Lock tables ON CUSTOMER.* TO 'CUSTOMER'@'%';
FLUSH PRIVILEGES;
exit;

rm /etc/apache2/sites-enabled/000-default.conf

cat >/etc/apache2/sites-enabled/production.conf <<EOL
<VirtualHost *:80>
    ServerName www.CUSTOMER.com
    ServerAlias CUSTOMER.com
    # SetEnv MAGE_RUN_CODE "CUSTOMER_website"
    # SetEnv MAGE_RUN_TYPE "website"
    ServerAdmin webmaster@CUSTOMER.com
    
    DocumentRoot /var/www/vhosts/CUSTOMER/httpdocs

    <Directory "/var/www/vhosts/CUSTOMER/httpdocs">
        Options Indexes FollowSymLinks MultiViews
        RewriteEngine On
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
	
	# making sure git isn't open
	<Directory  ~ ".git">
		Order allow,deny
		Deny from all
	</Directory>

	# making sure hg isn't open
	<Directory  ~ ".hg">
		Order allow,deny
		Deny from all
	</Directory>
	
	<IfModule mod_php7.c>
		php_value memory_limit 512M
		php_value max_execution_time 30
		php_flag magic_quotes_gpc off
		php_flag session.auto_start off
		php_flag suhosin.session.cryptua off
		php_flag zend.ze1_compatibility_mode Off
		php_value newrelic.appname "CUSTOMER"
		php_value opcache.enable 1
    </IfModule>
</VirtualHost>
EOL

apache2ctl configtest

/etc/init.d/apache2 restart

apt install unzip

# https://account.magento.com/applications/customer/login/
# https://marketplace.magento.com/customer/accessKeys/

composer create-project --repository=https://repo.magento.com/ magento/project-community-edition httpdocs

chown -R www-data:patrick httpdocs
chmod -R 777 httpdocs/var httpdocs/generated httpdocs/pub/

after this the installation went flawless

@masterroz
Copy link

masterroz commented Jan 13, 2020

Is this still a bug /relevant?

Not using composer or git, clean install zip package from site.. version 2.3.3

PHP 7.2.26
Zend Engine v3.2.0, Zend OPcache v7.2.26
Percona Server 5.6.45-86.1
Nginx/1.16.1

[ERROR] Magento\Framework\Setup\Exception: Unable to apply patch Magento\InventorySales\Setup\Patch\Schema\InitializeWebsiteDefaultSock for module Magento_InventorySales. Original exception message: Could not load Sales Channels for Stock in /var/www/vhosts/domain/htdocs/vendor/magento/framework/Setup/Patch/PatchApplier.php:241
Stack trace:
#0 /var/www/vhosts/domain/htdocs/setup/src/Magento/Setup/Model/Installer.php(1004): Magento\Framework\Setup\Patch\PatchApplier->applySchemaPatch('Magento_Invento...')
#1 /var/www/vhosts/domain/htdocs/setup/src/Magento/Setup/Model/Installer.php(832): Magento\Setup\Model\Installer->handleDBSchemaData(Object(Magento\Setup\Module\Setup), 'schema', Array)
#2 [internal function]: Magento\Setup\Model\Installer->installSchema(Array)
#3 /var/www/vhosts/domain/htdocs/setup/src/Magento/Setup/Model/Installer.php(367): call_user_func_array(Array, Array)
#4 /var/www/vhosts/domain/htdocs/setup/src/Magento/Setup/Controller/Install.php(109): Magento\Setup\Model\Installer->install(Array)
#5 /var/www/vhosts/domain/htdocs/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(84): Magento\Setup\Controller\Install->startAction()
#6 /var/www/vhosts/domain/htdocs/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#7 /var/www/vhosts/domain/htdocs/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#8 /var/www/vhosts/domain/htdocs/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#9 /var/www/vhosts/domain/htdocs/vendor/zendframework/zend-mvc/src/DispatchListener.php(118): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#10 /var/www/vhosts/domain/htdocs/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#11 /var/www/vhosts/domain/htdocs/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#12 /var/www/vhosts/domain/htdocs/vendor/zendframework/zend-mvc/src/Application.php(340): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#13 /var/www/vhosts/domain/htdocs/setup/index.php(39): Zend\Mvc\Application->run()
#14 {main}

@adamzero1
Copy link

@riconeitzel
Copy link

Amazing, that we still have to patch the core in order to get a running magento installation 😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants