FriendsOfAkeneo / ExtendedAttributeTypeBundle

Extra attribute types for Akeneo PIM
23 stars 19 forks source link

error resetting elastic indexes #64

Open jotalops opened 5 years ago

jotalops commented 5 years ago

I was following the installation manual of this bundle and I get this error when I'm trying to reset the index, in an almost fresh install of akeneo 2.3 ( with elastic 5.5 ) with customentitybundle + extendedattributetypebundle

If I comment the lines belonging to this project the index are reset successfully

this are the lines that cause the problem in pim_parameters.yml

- '%kernel.root_dir%/../vendor/akeneo/extended-attribute-type/src/Resources/config/elasticsearch/index_configuration.yml'

- '%kernel.root_dir%/../vendor/akeneo/extended-attribute-type/src/Resources/config/elasticsearch/index_configuration_ee.yml'


docker@bd77565bb8e0:/srv/pim$ bin/console akeneo:elasticsearch:reset-indexes --env=prod This action will entirely reset all indexes registered in the PIM. Are you sure you want to proceed ? (Y/n)Y Resetting the index: akeneo_pim_product 16:02:12 ERROR [console] Error thrown while running command "akeneo:elasticsearch:reset-indexes --env=prod". Message: "{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"A dynamic template must be defined with a name"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [pim_catalog_product]: A dynamic template must be defined with a name","caused_by":{"type":"mapper_parsing_exception","reason":"A dynamic template must be defined with a name"}},"status":400}" ["error" => Elasticsearch\Common\Exceptions\BadRequest400Exception { …},"command" => "akeneo:elasticsearch:reset-indexes --env=prod","message" => "{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"A dynamic template must be defined with a name"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [pim_catalog_product]: A dynamic template must be defined with a name","caused_by":{"type":"mapper_parsing_exception","reason":"A dynamic template must be defined with a name"}},"status":400}"] []

In Connection.php line 610:

{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"A dynamic template must be defined with a name"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [pim_cat alog_product]: A dynamic template must be defined with a name","caused_by":{"type":"mapper_parsing_exception","reason":"A dynamic template must be defined with a name"}},"status":400}