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

[Error] - an index or data stream exists with the same name as the alias #217

Open
SparkDragon opened this issue Jul 22, 2024 · 0 comments

Comments

@SparkDragon
Copy link

Versions

  • PHP: v8.2.19
  • Sylius: v1.12.14
  • Monsieurbiz/SyliusSearchPlugin: v2.1.8

Description
Hi !

When executing the command php bin/console monsieurbiz:search:populate I get the folloing error:

Invalid alias name [monsieurbiz_product_fr_fr]: an index or data stream exists with the same name as the alias

Here is the stack trace:

Indexing monsieurbiz_product
Indexing monsieurbiz_product for locale fr_FR

In Http.php line 178:

  [Elastica\Exception\ResponseException]
  Invalid alias name [monsieurbiz_product_fr_fr]: an index or data stream exists with the same name as the alias


Exception trace:
  at /srv/sylius/vendor/ruflin/elastica/src/Transport/Http.php:178
 Elastica\Transport\Http->exec() at /srv/sylius/vendor/ruflin/elastica/src/Request.php:183
 Elastica\Request->send() at /srv/sylius/vendor/ruflin/elastica/src/Client.php:545
 Elastica\Client->request() at /srv/sylius/vendor/jolicode/elastically/src/IndexBuilder.php:67
 JoliCode\Elastically\IndexBuilder->markAsLive() at /srv/sylius/vendor/monsieurbiz/sylius-search-plugin/src/Index/Indexer.php:200
 MonsieurBiz\SyliusSearchPlugin\Index\Indexer->indexDocumentable() at /srv/sylius/vendor/monsieurbiz/sylius-search-plugin/src/Index/Indexer.php:176
 MonsieurBiz\SyliusSearchPlugin\Index\Indexer->indexDocumentable() at /srv/sylius/vendor/monsieurbiz/sylius-search-plugin/src/Index/Indexer.php:71
 MonsieurBiz\SyliusSearchPlugin\Index\Indexer->indexAll() at /srv/sylius/vendor/monsieurbiz/sylius-search-plugin/src/Command/PopulateCommand.php:42
 MonsieurBiz\SyliusSearchPlugin\Command\PopulateCommand->execute() at /srv/sylius/vendor/symfony/console/Command/Command.php:326
 Symfony\Component\Console\Command\Command->run() at /srv/sylius/vendor/symfony/console/Application.php:1096
 Symfony\Component\Console\Application->doRunCommand() at /srv/sylius/vendor/symfony/framework-bundle/Console/Application.php:126
 Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /srv/sylius/vendor/symfony/console/Application.php:324
 Symfony\Component\Console\Application->doRun() at /srv/sylius/vendor/symfony/framework-bundle/Console/Application.php:80
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /srv/sylius/vendor/symfony/console/Application.php:175
 Symfony\Component\Console\Application->run() at /srv/sylius/vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:49
 Symfony\Component\Runtime\Runner\Symfony\ConsoleApplicationRunner->run() at /srv/sylius/vendor/autoload_runtime.php:29
 require_once() at /srv/sylius/bin/console:11

Any idea what's the origin of this issue ?

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

1 participant