OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce OroCommerce install Failed migrations error

This topic contains 5 replies, has 2 voices, and was last updated by  Andrey Yatsenko 5 years, 9 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #33142

    mayank2
    Participant

    I have tried to install OroCommerce by using php bin/console oro:install –env=prod –timeout=0 command but it always gives below error. I have tried to install 3 times but always same result. So can you please help me?

    In MigrationExecutor.php line 116:

    Failed migrations: Oro\Bundle\SearchBundle\Migrations\Schema\OroSearchBundl
    eInstaller.

    oro:migration:load [–force] [–dry-run] [–show-queries] [–bundles [BUNDLES]]
    [–exclude [EXCLUDE]] [–timeout [TIMEOUT]] [-h|–help] [-q|–quiet] [-v|vv|vvv|
    –verbose] [-V|–version] [–ansi] [–no-ansi] [-n|–no-interaction] [-e|–env E
    NV] [–no-debug] [–disabled-listeners DISABLED-LISTENERS] [–current-user CURRE
    NT-USER] [–current-organization CURRENT-ORGANIZATION] [–] <command>

    The command E:\wamp64\bin\php\php7.1.18\php.exe “bin/console” oro:migration:load
    –force –timeout=0 –env=prod terminated with an exit code: 1.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #33144

    Andrey Yatsenko
    Moderator

    Please make sure you are installing stable version, not the master or some development branch version, like 1.6.
    Also check that database credentials you entered at app/configs/parameters.yml are correct.

    There is an installation guide and it’s not enough just to run oro:install command to have a working application.
    https://oroinc.com/b2b-ecommerce/doc/1.6/install-upgrade/installation-quick-start-dev/commerce-crm#installation-orocommerce-crm-ce-readme

    If it does not help, please share the full installation log, environment details and version number you are trying to install.

    #33145

    mayank2
    Participant

    Thanks for the replay

    I am trying to install latest orocommerce version 3.0. The database parameter are also correct because around 114 table are created every-time I try to install.

    I have tried in both environment dev & prod. But it did not work in both.

    Here is the full log file

    | OK | intl extension should be available
    |
    | OK | icu library must be at least 3.8
    |
    | OK | zip extension should be installed
    |
    | OK | public/uploads/ directory must be writable
    |
    | OK | public/media/ directory must be writable
    |
    | OK | public/bundles/ directory must be writable
    |
    | OK | var/attachment/ directory must be writable
    |
    | OK | var/import_export/ directory must be writable
    |
    | OK | public directory must be writable
    |
    | OK | config/parameters.yml file must be writable
    |
    +———+———————————————————————
    ———+
    +———+———————————————————————
    —————————————————————-+
    | Check | Optional recommendations
    |
    +———+———————————————————————
    —————————————————————-+
    | OK | Vendors should be installed in order to check all requirements.
    |
    | OK | Requirements file should be up-to-date
    |
    | OK | PCRE extension should be at least version 8.0 (8.38 installed)
    |
    | OK | PHP-DOM and PHP-XML modules should be installed
    |
    | OK | mb_strlen() should be available
    |
    | OK | utf8_decode() should be available
    |
    | OK | filter_var() should be available
    |
    | OK | intl extension should be available
    |
    | OK | intl extension should be correctly configured
    |
    | OK | intl ICU version should be at least 4+
    |
    | WARNING | To get the latest internationalization data upgrade the ICU system p
    ackage and the intl PHP extension. |
    | OK | intl.error_level should be 0 in php.ini
    |
    | WARNING | Install and/or enable a PHP accelerator (highly recommended).
    |
    | WARNING | Setting “realpath_cache_size” to e.g. “5242880” or “5M” in php.ini*
    may improve performance on Windows significantly in some cases. |
    | OK | short_open_tag should be disabled in php.ini
    |
    | OK | magic_quotes_gpc should be disabled in php.ini
    |
    | OK | register_globals should be disabled in php.ini
    |
    | OK | session.auto_start should be disabled in php.ini
    |
    | OK | PDO should be installed
    |
    | OK | PDO should have some drivers installed (currently available: mysql,
    sqlite) |
    | OK | SOAP extension should be installed (API calls)
    |
    | WARNING | Install and enable the Tidy extension.
    |
    | OK | finfo_open() should be available
    |
    | WARNING | Install and enable the COM extension.
    |
    | OK | A JS Engine (node) is installed
    |
    +———+———————————————————————
    —————————————————————-+
    The application meets all mandatory requirements
    Setting up database.
    Process migrations…
    > Oro\Bundle\EntityExtendBundle\Migration\LoadEntityConfigStateMigration
    > Oro\Bundle\MigrationBundle\Migration\CreateMigrationTableMigration
    > Oro\Bundle\PlatformBundle\Migrations\Schema\OroPlatformBundleInstaller
    > Oro\Bundle\ScopeBundle\Migrations\Schema\OroScopeBundleInstaller
    > Oro\Bundle\OrganizationBundle\Migrations\Schema\OroOrganizationBundleInstall
    er
    > Oro\Bundle\SecurityBundle\Migrations\Schema\OroSecurityBundleInstaller
    > Oro\Bundle\AttachmentBundle\Migrations\Schema\OroAttachmentBundleInstaller
    > Oro\Bundle\OroMessageQueueBundle\Migrations\Schema\OroMessageQueueBundleInst
    aller
    > Oro\Bundle\EmailBundle\Migrations\Schema\OroEmailBundleInstaller
    > Oro\Bundle\CronBundle\Migrations\Schema\OroCronBundleInstaller
    > Oro\Bundle\UserBundle\Migrations\Schema\OroUserBundleInstaller
    > Oro\Bundle\DataGridBundle\Migrations\Schema\OroDataGridBundleInstaller
    > Oro\Bundle\SSOBundle\Migrations\Schema\OroSSOBundleInstaller
    > Oro\Bundle\TranslationBundle\Migrations\Schema\OroTranslationBundleInstaller

    > Oro\Bundle\EntityBundle\Migrations\Schema\OroEntityBundleInstaller
    > Oro\Bundle\LocaleBundle\Migrations\Schema\OroLocaleBundleInstaller
    > Oro\Bundle\EntityConfigBundle\Migrations\Schema\OroEntityConfigBundleInstall
    er
    > Oro\Bundle\EntityExtendBundle\Migrations\Schema\OroEntityExtendBundleInstall
    er
    > Oro\Bundle\IntegrationBundle\Migrations\Schema\OroIntegrationBundleInstaller

    > Oro\Bundle\RuleBundle\Migrations\Schema\OroRuleBundleInstaller
    > Oro\Bundle\NotificationBundle\Migrations\Schema\OroNotificationBundleInstall
    er
    > Oro\Bundle\ActivityBundle\Migrations\Schema\OroActivityBundleInstaller
    > Oro\Bundle\ActivityContactBundle\Migrations\Schema\OroActivityContactBundleI
    nstaller
    > Oro\Bundle\ActivityListBundle\Migrations\Schema\OroActivityListBundleInstall
    er
    > Oro\Bundle\AddressBundle\Migrations\Schema\OroAddressBundleInstaller
    > Oro\Bundle\BatchBundle\Migrations\Schema\OroBatchBundleInstaller
    > Oro\Bundle\ConfigBundle\Migrations\Schema\OroConfigBundleInstaller
    > Oro\Bundle\DataAuditBundle\Migrations\Schema\OroDataAuditBundleInstaller
    > Oro\Bundle\EmbeddedFormBundle\Migrations\Schema\OroEmbeddedFormBundleInstall
    er
    > Oro\Bundle\ImapBundle\Migrations\Schema\OroImapBundleInstaller
    > Oro\Bundle\ImportExportBundle\Migrations\Schema\OroImportExportBundleInstall
    er
    > Oro\Bundle\InstallerBundle\Migrations\Schema\OroInstallerBundleInstaller
    > Oro\Bundle\MigrationBundle\Migrations\Schema\OroMigrationBundleInstaller
    > Oro\Bundle\NoteBundle\Migrations\Schema\OroNoteBundleInstaller
    > Oro\Bundle\ReportBundle\Migrations\Schema\OroReportBundleInstaller
    > Oro\Bundle\SearchBundle\Migrations\Schema\OroSearchBundleInstaller
    ERROR: Driver “mysqli” not found
    > Oro\Bundle\SegmentBundle\Migrations\Schema\OroSegmentBundleInstaller – skipp
    ed
    > Oro\Bundle\SidebarBundle\Migrations\Schema\OroSidebarBundleInstaller – skipp
    ed
    > Oro\Bundle\TagBundle\Migrations\Schema\OroTagBundleInstaller – skipped
    > Oro\Bundle\WebsiteSearchBundle\Migrations\Schema\OroWebsiteSearchBundleInsta
    ller – skipped
    > Oro\Bundle\WindowsBundle\Migrations\Schema\OroWindowsBundleInstaller – skipp
    ed
    > Oro\Bundle\WorkflowBundle\Migrations\Schema\OroWorkflowBundleInstaller – ski
    pped
    > Oro\Bundle\CommentBundle\Migrations\Schema\OroCommentBundleInstaller – skipp
    ed
    > Oro\Bundle\CRMBundle\Migrations\Schema\OroCRMBundleInstaller – skipped
    > Oro\Bundle\DashboardBundle\Migrations\Schema\OroDashboardBundleInstaller – s
    kipped
    > Oro\Bundle\CalendarBundle\Migrations\Schema\OroCalendarBundleInstaller – ski
    pped
    > Oro\Bundle\HangoutsCallBundle\Migrations\Schema\OroHangoutsCallBundleInstall
    er – skipped
    > Oro\Bundle\FrontendBundle\Migrations\Schema\OroFrontendBundleInstaller – ski
    pped
    > Oro\Bundle\WebsiteBundle\Migrations\Schema\OroWebsiteBundleInstaller – skipp
    ed
    > Oro\Bundle\ContactBundle\Migrations\Schema\OroContactBundleInstaller – skipp
    ed
    > Oro\Bundle\CurrencyBundle\Migrations\Schema\OroCurrencyBundleInstaller – ski
    pped
    > Oro\Bundle\FallbackBundle\Migrations\Schema\OroFallbackBundleInstaller – ski
    pped
    > Oro\Bundle\NavigationBundle\Migrations\Schema\OroNavigationBundleInstaller –
    skipped
    > Oro\Bundle\RedirectBundle\Migrations\Schema\OroRedirectBundleInstaller – ski
    pped
    > Oro\Bundle\WebCatalogBundle\Migrations\Schema\OroWebCatalogBundleInstaller –
    skipped
    > Oro\Bundle\CommerceMenuBundle\Migrations\Schema\OroCommerceMenuBundleInstall
    er – skipped
    > Oro\Bundle\ProductBundle\Migrations\Schema\OroProductBundleInstaller – skipp
    ed
    > Oro\Bundle\CatalogBundle\Migrations\Schema\OroCatalogBundleInstaller – skipp
    ed
    > Oro\Bundle\MarketingListBundle\Migrations\Schema\OroMarketingListBundleInsta
    ller – skipped
    > Oro\Bundle\CustomerBundle\Migrations\Schema\OroCustomerBundleInstaller – ski
    pped
    > Oro\Bundle\TrackingBundle\Migrations\Schema\OroTrackingBundleInstaller – ski
    pped
    > Oro\Bundle\AccountBundle\Migrations\Schema\OroAccountBundleInstaller – skipp
    ed
    > Oro\Bundle\VisibilityBundle\Migrations\Schema\OroVisibilityBundleInstaller –
    skipped
    > Oro\Bundle\CallBundle\Migrations\Schema\OroCallBundleInstaller – skipped
    > Oro\Bundle\CampaignBundle\Migrations\Schema\OroCampaignBundleInstaller – ski
    pped
    > Oro\Bundle\ChannelBundle\Migrations\Schema\OroChannelBundleInstaller – skipp
    ed
    > Oro\Bundle\MagentoContactUsBundle\Migrations\Schema\OroMagentoContactUsBundl
    eInstaller – skipped
    > Oro\Bundle\PaymentBundle\Migrations\Schema\OroPaymentBundleInstaller – skipp
    ed
    > Oro\Bundle\ReminderBundle\Migrations\Schema\OroReminderBundleBundleInstaller
    – skipped
    > Oro\Bundle\TaskBundle\Migrations\Schema\OroTaskBundleInstaller – skipped
    > Oro\Bundle\AnalyticsBundle\Migrations\Schema\OroAnalyticsBundleInstaller – s
    kipped
    > Oro\Bundle\CMSBundle\Migrations\Schema\OroCMSBundleInstaller – skipped
    > Oro\Bundle\MarketingActivityBundle\Migrations\Schema\OroMarketingActivityBun
    dleInstaller – skipped
    > Oro\Bundle\MoneyOrderBundle\Migrations\Schema\OroMoneyOrderBundleInstaller –
    skipped
    > Oro\Bundle\PaymentTermBundle\Migrations\Schema\OroPaymentTermBundleInstaller
    – skipped
    > Oro\Bundle\PayPalBundle\Migrations\Schema\OroPayPalBundleInstaller – skipped

    > Oro\Bundle\PricingBundle\Migrations\Schema\OroPricingBundleInstaller – skipp
    ed
    > Oro\Bundle\RFPBundle\Migrations\Schema\OroRFPBundleInstaller – skipped
    > Oro\Bundle\SalesBundle\Migrations\Schema\OroSalesBundleInstaller – skipped
    > Oro\Bundle\ContactUsBundle\Migrations\Schema\OroContactUsBundleInstaller – s
    kipped
    > Oro\Bundle\InvoiceBundle\Migrations\Schema\OroInvoiceBundleInstaller – skipp
    ed
    > Oro\Bundle\MagentoBundle\Migrations\Schema\OroMagentoBundleInstaller – skipp
    ed
    > Oro\Bundle\OrderBundle\Migrations\Schema\OroOrderBundleInstaller – skipped
    > Oro\Bundle\TaxBundle\Migrations\Schema\OroTaxBundleInstaller – skipped
    > Oro\Bridge\MarketingCRM\Migrations\Schema\OroMarketingCRMBridgeBundleInstall
    er – skipped
    > Oro\Bundle\CheckoutBundle\Migrations\Schema\OroCheckoutBundleInstaller – ski
    pped
    > Oro\Bridge\ContactUs\Migrations\Schema\OroContactUsBridgeBundleInstaller – s
    kipped
    > Oro\Bundle\AlternativeCheckoutBundle\Migrations\Schema\OroAlternativeCheckou
    tBundleInstaller – skipped
    > Oro\Bundle\SaleBundle\Migrations\Schema\OroSaleBundleInstaller – skipped
    > Oro\Bundle\ShoppingListBundle\Migrations\Schema\OroShoppingListBundleInstall
    er – skipped
    > Oro\Bridge\CalendarCommerce\Migrations\Schema\OroCalendarCommerceBridgeBundl
    eInstaller – skipped
    > Oro\Bridge\CustomerSales\Migrations\Schema\OroCustomerSalesBridgeBundleInsta
    ller – skipped
    > Oro\Bridge\QuoteSales\Migrations\Schema\OroQuoteSalesBridgeBundleInstaller –
    skipped
    > Oro\Bundle\CaseBundle\Migrations\Schema\OroCaseBundleInstaller – skipped
    > Oro\Bundle\EntitySerializedFieldsBundle\Migrations\Schema\OroEntitySerialize
    dFieldsBundleInstaller – skipped
    > Oro\Bundle\InventoryBundle\Migrations\Schema\OroInventoryBundleInstaller – s
    kipped
    > Oro\Bundle\PromotionBundle\Migrations\Schema\OroPromotionBundleInstaller – s
    kipped
    > Oro\Bundle\SEOBundle\Migrations\Schema\OroSEOBundleInstaller – skipped
    > Oro\Bridge\CalendarCRM\Migrations\Schema\OroCalendarCRMBridgeBundleInstaller
    – skipped
    > Oro\Bundle\ZendeskBundle\Migrations\Schema\OroZendeskBundleInstaller – skipp
    ed
    > Oro\Bundle\MailChimpBundle\Migrations\Schema\OroMailChimpBundleInstaller – s
    kipped
    > Oro\Bridge\CallCRM\Migrations\Schema\OroCallCRMBridgeBundleInstaller – skipp
    ed
    > Oro\Bridge\CustomerAccount\Migrations\Schema\OroCustomerAccountBridgeBundleI
    nstaller – skipped
    > Oro\Bridge\TaskCRM\Migrations\Schema\OroTaskCRMBundleInstaller – skipped
    > Oro\Bundle\DotmailerBundle\Migrations\Schema\OroDotmailerBundleInstaller – s
    kipped
    > Oro\Bundle\AbandonedCartBundle\Migrations\Schema\OroAbandonedCartBundleInsta
    ller – skipped
    > Oro\Bundle\ShippingBundle\Migrations\Schema\OroShippingBundleInstaller – ski
    pped
    > Oro\Bundle\FedexShippingBundle\Migrations\Schema\OroFedexShippingBundleInsta
    ller – skipped
    > Oro\Bundle\FlatRateShippingBundle\Migrations\Schema\OroFlatRateBundleInstall
    er – skipped
    > Oro\Bundle\UPSBundle\Migrations\Schema\OroUPSBundleInstaller – skipped
    > Oro\Bundle\MigrationBundle\Migration\UpdateBundleVersionMigration
    > Oro\Bundle\CheckoutBundle\Migrations\Schema\RemoveWorkflowFieldsMigration –
    skipped
    > Oro\Bundle\EntityExtendBundle\Migration\RefreshExtendCacheMigration – skippe
    d
    > Oro\Bundle\EntityConfigBundle\Migration\UpdateEntityConfigMigration – skippe
    d
    > Oro\Bundle\EntitySerializedFieldsBundle\Migration\SerializedDataMigration –
    skipped
    > Oro\Bundle\EntityExtendBundle\Migration\UpdateExtendConfigMigration – skippe
    d
    > Oro\Bundle\ActivityContactBundle\Migration\ActivityContactMigration – skippe
    d
    > Oro\Bundle\ActivityListBundle\Migration\ActivityListMigration – skipped
    > Oro\Bundle\EntityExtendBundle\Migration\UpdateExtendIndicesMigration – skipp
    ed
    > Oro\Bundle\EntityConfigBundle\Migration\WarmUpEntityConfigCacheMigration – s
    kipped

    In MigrationExecutor.php line 116:

    Failed migrations: Oro\Bundle\SearchBundle\Migrations\Schema\OroSearchBundl
    eInstaller.

    oro:migration:load [–force] [–dry-run] [–show-queries] [–bundles [BUNDLES]]
    [–exclude [EXCLUDE]] [–timeout [TIMEOUT]] [-h|–help] [-q|–quiet] [-v|vv|vvv|
    –verbose] [-V|–version] [–ansi] [–no-ansi] [-n|–no-interaction] [-e|–env E
    NV] [–no-debug] [–disabled-listeners DISABLED-LISTENERS] [–current-user CURRE
    NT-USER] [–current-organization CURRENT-ORGANIZATION] [–] <command>

    The command E:\wamp64\bin\php\php7.1.18\php.exe “bin/console” oro:migration:load
    –force –timeout=0 –env=prod terminated with an exit code: 1.

    • This reply was modified 5 years, 9 months ago by  mayank2.
    • This reply was modified 5 years, 9 months ago by  mayank2.
    #33148

    Andrey Yatsenko
    Moderator

    3.0.0 version has not been released yet, the latest unstable version that released is 3.0.0-RC, but it’s a feature preview version and should not be used for production websites.

    About environment, I mean OS, web server, PHP version and MySQL version.

    According to an error in log something wrong with the database connection, I suppose database version used is not supported or you don’t have MySQL extension installed for PHP.

    Please share the output of the following commands:

    #33149

    mayank2
    Participant

    I am using Apache Server 2.4.23, PHP version 7.1.18 and MySQL version is 5.7.14. I am working on Windows 7 OS. And I have installed WAMPSERVER 3.1.3 for Apache, PHP and MySQL. All of this working fine because my other projects are running on it perfectly including Magento 2.1.4 as well.

    composer info | grep ‘oro/’
    php -m | grep mysql #

    This command are not working as it gives below error
    grep is not recognized as an internal or external command

    #33150

    Andrey Yatsenko
    Moderator

    Sorry, I’m not a windows user, guys say that you can use git bash terminal to have this commands work.

    Best regards.

Viewing 5 replies - 1 through 5 (of 5 total)

The forum ‘OroCommerce’ is closed to new topics and replies.

Back to top