Elasticsuite: After installation Modules are outdated error

Created on 11 Feb 2018  路  3Comments  路  Source: Smile-SA/elasticsuite


Hi
I am new to Magento. After installation of elastic suite i am getting few modules are outdated.

Preconditions



Magento Version :CE


ElasticSuite Version :2.5.0


Environment :Developer


Third party modules :

Steps to reproduce


1.Downloaded Magento 2.2.2 with sample data from https://github.com/magento-2/magento-2-community-sample-data/archive/master.tar.gz.

  1. installed successfully in Wamp (Apache 2.4.27,php 7.1.9)
  2. installed elastic suite 2.5.0 successfully using composer

Expected result

  1. Front end and back end should open without errors

Actual result


After installation when i try to open both front end and back end i am getting following issues.

1 exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): Please upgrade your database: Run "bin/magento setup:upgrade" from the Magento root directory.
The following modules are outdated:
Smile_ElasticsuiteCatalog data: current version - none, required version - 1.4.0
Smile_ElasticsuiteCatalogRule data: current version - none, required version - 1.0.0
Smile_ElasticsuiteCatalogOptimizer data: current version - none, required version - 1.0.1
Smile_ElasticsuiteSwatches data: current version - none, required version - 0.0.1
Smile_ElasticsuiteThesaurus data: current version - none, required version - 1.0.0
Smile_ElasticsuiteTracker data: current version - none, required version - 1.1.0
Smile_ElasticsuiteVirtualCategory data: current version - none, required version - 1.1.0

Exception #0 (Magento\Framework\Exception\LocalizedException): Please upgrade your database: Run "bin/magento setup:upgrade" from the Magento root directory.
The following modules are outdated:
Smile_ElasticsuiteCatalog data: current version - none, required version - 1.4.0
Smile_ElasticsuiteCatalogRule data: current version - none, required version - 1.0.0
Smile_ElasticsuiteCatalogOptimizer data: current version - none, required version - 1.0.1
Smile_ElasticsuiteSwatches data: current version - none, required version - 0.0.1
Smile_ElasticsuiteThesaurus data: current version - none, required version - 1.0.0
Smile_ElasticsuiteTracker data: current version - none, required version - 1.1.0
Smile_ElasticsuiteVirtualCategory data: current version - none, required version - 1.1.0
#0 E:\wamp64\www\magento\vendor\magento\framework\Interception\Interceptor.php(121): Magento\Framework\Module\Plugin\DbStatusValidator->beforeDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Magento\Framework\App\Request\Http))
#1 E:\wamp64\www\magento\vendor\magento\framework\Interception\Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#2 E:\wamp64\www\magento\generated\code\Magento\Framework\App\FrontController\Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#3 E:\wamp64\www\magento\vendor\magento\framework\App\Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#4 E:\wamp64\www\magento\generated\code\Magento\Framework\App\Http\Interceptor.php(24): Magento\Framework\App\Http->launch()
#5 E:\wamp64\www\magento\vendor\magento\framework\App\Bootstrap.php(256): Magento\Framework\App\Http\Interceptor->launch()
#6 E:\wamp64\www\magento\index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))
#7 {main}

I tried Run "bin/magento setup:upgrade" but no success.

I found one more similar kind of issue (https://github.com/Smile-SA/elasticsuite/issues/698) in the issue section, In the comment section another link (https://github.com/Smile-SA/elasticsuite/issues/692) was shared. As i am new to magento i don't know exactly what to do.kindly help me fix this issue.

Most helpful comment

My data_version was also empty. I've corrected it with this query

update setup_module set data_version = schema_version where data_version is NULL;

All 3 comments

You should clean you cache and then run the setup:upgrade process :

bin/magento cache:clean && bin/magento setup:ugrade

Do not forget to reindex everything :

bin/magento indexer:reindex && bin/magento cache:clean

In the end, you should prefer installing Magento using composer create-project instead of using a tar as explained here (depending you are using community or enterprise) : http://devdocs.magento.com/guides/v2.0/install-gde/prereq/integrator_install_ce.html and http://devdocs.magento.com/guides/v2.0/install-gde/prereq/integrator_install_ee.html

I close because not related to ElasticSuite but to Magento modules management.

I have the same issue with different versions though.
My magento installation was initially a 2.2.5 which I recently upgraded to 2.2.6. Very basic system so far (new project just started).

I installed with composer require smile/elasticsuite ^2.6.0 followed by a bin/magento setup:upgrade and bin/magento setup:di:compile. Also cleared the cache multiple times but no go:

1 exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): Please upgrade your database: Run "bin/magento setup:upgrade" from the Magento root directory.
The following modules are outdated:
Smile_ElasticsuiteCatalog data: current version - none, required version - 1.5.0
Smile_ElasticsuiteCatalogRule data: current version - none, required version - 1.0.0
Smile_ElasticsuiteCatalogOptimizer data: current version - none, required version - 1.1.0
Smile_ElasticsuiteSwatches data: current version - none, required version - 0.0.1
Smile_ElasticsuiteThesaurus data: current version - none, required version - 1.0.0
Smile_ElasticsuiteTracker data: current version - none, required version - 1.2.0
Smile_ElasticsuiteVirtualCategory data: current version - none, required version - 1.3.0

These are the entries in the setup_module table after enabling the modules:

module;schema_version;data_version
Smile_ElasticsuiteCatalog;1.5.0;
Smile_ElasticsuiteCatalogOptimizer;1.1.0;
Smile_ElasticsuiteCatalogRule;1.0.0;
Smile_ElasticsuiteCore;0.0.1;0.0.1
Smile_ElasticsuiteSwatches;0.0.1;
Smile_ElasticsuiteThesaurus;1.0.0;
Smile_ElasticsuiteTracker;1.2.0;
Smile_ElasticsuiteVirtualCategory;1.3.0;

The only module whose data_version is filled is Smile_ElasticsuiteCore.

I manually filled the blanks in the table and the modules seem to work.

My data_version was also empty. I've corrected it with this query

update setup_module set data_version = schema_version where data_version is NULL;

Was this page helpful?
0 / 5 - 0 ratings