Install spryker-shop/suite error


#1

If i install the actual spryker-suite from github, i get this error:

Elastica\Exception\ResponseException - Exception: No handler for type [keyword] declared on field [created-at] [reason: Failed to parse mapping [product-review]: No handler for type [keyword] declared on field [created-at]]
in /data/shop/development/current/vendor/ruflin/elastica/lib/Elastica/Transport/Http.php (179)

Command: vendor/bin/console setup:search

Trace:
#0 /data/shop/development/current/vendor/ruflin/elastica/lib/Elastica/Request.php(193): Elastica\Transport\Http->exec(Object(Elastica\Request), Array)
#1 /data/shop/development/current/vendor/ruflin/elastica/lib/Elastica/Client.php(674): Elastica\Request->send()
#2 /data/shop/development/current/vendor/ruflin/elastica/lib/Elastica/Index.php(547): Elastica\Client->request(‘de_search/’, ‘PUT’, Array, Array)
#3 /data/shop/development/current/vendor/spryker/search/src/Spryker/Zed/Search/Business/Model/Elasticsearch/IndexInstaller.php(159): Elastica\Index->request(‘de_search/’, ‘PUT’, Array)
#4 /data/shop/development/current/vendor/spryker/search/src/Spryker/Zed/Search/Business/Model/Elasticsearch/IndexInstaller.php(75): Spryker\Zed\Search\Business\Model\Elasticsearch\IndexInstaller->importMappingsToNewIndex(Object(Generated\Shared\Transfer\ElasticsearchIndexDefinitionTransfer), Object(Elastica\Index))
#5 /data/shop/development/current/vendor/spryker/search/src/Spryker/Zed/Search/Business/Model/Elasticsearch/IndexInstaller.php(56): Spryker\Zed\Search\Business\Model\Elasticsearch\IndexInstaller->createIndex(Object(Generated\Shared\Transfer\ElasticsearchIndexDefinitionTransfer))
#6 /data/shop/development/current/vendor/spryker/search/src/Spryker/Zed/Search/Business/Model/SearchInstaller.php(31): Spryker\Zed\Search\Business\Model\Elasticsearch\IndexInstaller->install()
#7 /data/shop/development/current/vendor/spryker/search/src/Spryker/Zed/Search/Business/SearchFacade.php(34): Spryker\Zed\Search\Business\Model\SearchInstaller->install()
#8 /data/shop/development/current/vendor/spryker/search/src/Spryker/Zed/Search/Communication/Console/SearchConsole.php(42): Spryker\Zed\Search\Business\SearchFacade->install(Object(Symfony\Component\Console\Logger\ConsoleLogger))
#9 /data/shop/development/current/vendor/symfony/console/Command/Command.php(252): Spryker\Zed\Search\Communication\Console\SearchConsole->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /data/shop/development/current/vendor/symfony/console/Application.php(964): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /data/shop/development/current/vendor/symfony/console/Application.php(248): Symfony\Component\Console\Application->doRunCommand(Object(Spryker\Zed\Search\Communication\Console\SearchConsole), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /data/shop/development/current/vendor/spryker/console/src/Spryker/Zed/Console/Communication/ConsoleBootstrap.php(150): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /data/shop/development/current/vendor/symfony/console/Application.php(148): Spryker\Zed\Console\Communication\ConsoleBootstrap->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /data/shop/development/current/vendor/spryker/console/bin/console(21): Symfony\Component\Console\Application->run()
#15 {main}
In CommandLineExecutable.php line 101:

Aborted install…


#2

Hi Mike,

It seems like your machine has older Elasticsearch version than the code you are using actually needs. From 8.0.0 version of the Search module you need to have Elasticsearch 5.x installed. We’ve prepared a new DevVM which already contains Elasticsearch 5.6.8. To get it, please follow our installation guide on our academy: https://academy.spryker.com/getting_started/installation_guide.html.

Best,
Tamas


#3

Ah, thanks. Now it works.
Is there any migration-guide for production environments?


#4

For that, you need to follow the official guide from Elasticsearch documentation: https://www.elastic.co/guide/en/elasticsearch/reference/5.0/setup-upgrade.html.