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

Installation failure #929

Open
codebach opened this issue Aug 13, 2023 · 0 comments
Open

Installation failure #929

codebach opened this issue Aug 13, 2023 · 0 comments

Comments

@codebach
Copy link

Hi there,

Just installed Sylius and getting this error while running install command

In UnitOfWork.php line 1637:
                                                                                                        
  [RuntimeException]                                                                                    
  While adding an entity of class App\Entity\Locale\Locale with an ID hash of "1" to the identity map,  
  another object of class App\Entity\Locale\Locale was already present for the same ID. This exception  
  is a safeguard against an internal inconsistency - IDs should uniquely map to                         
  entity object instances. This problem may occur if:                                                   
                                                                                                        
  - you use application-provided IDs and reuse ID values;                                               
  - database-provided IDs are reassigned after truncating the database without                          
    clearing the EntityManager;                                                                         
  - you might have been using EntityManager#getReference() to create a reference                        
    for a nonexistent ID that was subsequently (by the RDBMS) assigned to another                       
    entity.                                                                                             
                                                                                                        
  Otherwise, it might be an ORM-internal inconsistency, please report it.                               
                                                                                                        

Exception trace:
  at /srv/sylius/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:1637
 Doctrine\ORM\UnitOfWork->addToIdentityMap() at /srv/sylius/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:3888
 Doctrine\ORM\UnitOfWork->assignPostInsertId() at /srv/sylius/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:286
 Doctrine\ORM\Persisters\Entity\BasicEntityPersister->executeInserts() at /srv/sylius/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:1177
 Doctrine\ORM\UnitOfWork->executeInserts() at /srv/sylius/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:442
 Doctrine\ORM\UnitOfWork->commit() at /srv/sylius/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:403
 Doctrine\ORM\EntityManager->flush() at /srv/sylius/vendor/sylius/sylius/src/Sylius/Bundle/CoreBundle/Fixture/LocaleFixture.php:50
 Sylius\Bundle\CoreBundle\Fixture\LocaleFixture->load() at /srv/sylius/vendor/sylius/fixtures-bundle/src/Loader/FixtureLoader.php:23
 Sylius\Bundle\FixturesBundle\Loader\FixtureLoader->load() at /srv/sylius/vendor/sylius/fixtures-bundle/src/Loader/HookableFixtureLoader.php:37
 Sylius\Bundle\FixturesBundle\Loader\HookableFixtureLoader->load() at /srv/sylius/vendor/sylius/fixtures-bundle/src/Loader/SuiteLoader.php:33
 Sylius\Bundle\FixturesBundle\Loader\SuiteLoader->load() at /srv/sylius/vendor/sylius/fixtures-bundle/src/Loader/HookableSuiteLoader.php:36
 Sylius\Bundle\FixturesBundle\Loader\HookableSuiteLoader->load() at /srv/sylius/vendor/sylius/fixtures-bundle/src/Command/FixturesLoadCommand.php:80
 Sylius\Bundle\FixturesBundle\Command\FixturesLoadCommand->loadSuites() at /srv/sylius/vendor/sylius/fixtures-bundle/src/Command/FixturesLoadCommand.php:67
 Sylius\Bundle\FixturesBundle\Command\FixturesLoadCommand->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:1081
 Symfony\Component\Console\Application->doRunCommand() at /srv/sylius/vendor/symfony/framework-bundle/Console/Application.php:91
 Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /srv/sylius/vendor/symfony/console/Application.php:320
 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:174
 Symfony\Component\Console\Application->run() at /srv/sylius/vendor/sylius/sylius/src/Sylius/Bundle/CoreBundle/Installer/Executor/CommandExecutor.php:41
 Sylius\Bundle\CoreBundle\Installer\Executor\CommandExecutor->runCommand() at /srv/sylius/vendor/sylius/sylius/src/Sylius/Bundle/CoreBundle/Command/AbstractInstallCommand.php:104
 Sylius\Bundle\CoreBundle\Command\AbstractInstallCommand->runCommands() at /srv/sylius/vendor/sylius/sylius/src/Sylius/Bundle/CoreBundle/Command/InstallSampleDataCommand.php:82
 Sylius\Bundle\CoreBundle\Command\InstallSampleDataCommand->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:1081
 Symfony\Component\Console\Application->doRunCommand() at /srv/sylius/vendor/symfony/framework-bundle/Console/Application.php:91
 Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /srv/sylius/vendor/symfony/console/Application.php:320
 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:174
 Symfony\Component\Console\Application->run() at /srv/sylius/vendor/sylius/sylius/src/Sylius/Bundle/CoreBundle/Installer/Executor/CommandExecutor.php:41
 Sylius\Bundle\CoreBundle\Installer\Executor\CommandExecutor->runCommand() at /srv/sylius/vendor/sylius/sylius/src/Sylius/Bundle/CoreBundle/Command/InstallDatabaseCommand.php:61
 Sylius\Bundle\CoreBundle\Command\InstallDatabaseCommand->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:1081
 Symfony\Component\Console\Application->doRunCommand() at /srv/sylius/vendor/symfony/framework-bundle/Console/Application.php:91
 Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /srv/sylius/vendor/symfony/console/Application.php:320
 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:174
 Symfony\Component\Console\Application->run() at /srv/sylius/vendor/sylius/sylius/src/Sylius/Bundle/CoreBundle/Installer/Executor/CommandExecutor.php:41
 Sylius\Bundle\CoreBundle\Installer\Executor\CommandExecutor->runCommand() at /srv/sylius/vendor/sylius/sylius/src/Sylius/Bundle/CoreBundle/Command/InstallCommand.php:92
 Sylius\Bundle\CoreBundle\Command\InstallCommand->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:1081
 Symfony\Component\Console\Application->doRunCommand() at /srv/sylius/vendor/symfony/framework-bundle/Console/Application.php:91
 Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /srv/sylius/vendor/symfony/console/Application.php:320
 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:174
 Symfony\Component\Console\Application->run() at /srv/sylius/vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:54
 Symfony\Component\Runtime\Runner\Symfony\ConsoleApplicationRunner->run() at /srv/sylius/vendor/autoload_runtime.php:29
 require_once() at /srv/sylius/bin/console:11

sylius:fixtures:load [<suite>]
@codebach codebach changed the title Fixture failure Installation failure Aug 13, 2023
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