Giter VIP home page Giter VIP logo

Comments (9)

sylvainraye avatar sylvainraye commented on July 22, 2024

Ok after an other try, problem disappeared.

from pim-community-dev.

sylvainraye avatar sylvainraye commented on July 22, 2024

Seems I was not the only one: http://www.akeneo.com/topic/abrupt-termination-while-loading-fixtures-data/

from pim-community-dev.

sylvainraye avatar sylvainraye commented on July 22, 2024

I got the problem again :-( I'm maybe a crazy installer. In fact I try to reproduce an other issue :-(
Sorry for all my messages, let me know if it bother you, I will try to be less prolix. This idea is jut to share what kind of issues I met during the install.

Here the reproduced error I got after running the pim:install --force --env=dev

  Creating indexes for string index table  




  Completed.  


Starting reindex task

PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes) in /var/www/akeneo/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php on line 579
PHP Stack trace:
PHP   1. {main}() /var/www/akeneo/app/console:0
PHP   2. Symfony\Component\Console\Application->run() /var/www/akeneo/app/console:27
PHP   3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /var/www/akeneo/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:121
PHP   4. Symfony\Component\Console\Application->doRun() /var/www/akeneo/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:96
PHP   5. Symfony\Component\Console\Application->doRunCommand() /var/www/akeneo/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:191
PHP   6. Symfony\Component\Console\Command\Command->run() /var/www/akeneo/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:904
PHP   7. Pim\Bundle\InstallerBundle\Command\InstallCommand->execute() /var/www/akeneo/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:244
PHP   8. Pim\Bundle\InstallerBundle\Command\InstallCommand->databaseStep() /var/www/akeneo/src/Pim/Bundle/InstallerBundle/Command/InstallCommand.php:117
PHP   9. Pim\Bundle\InstallerBundle\Command\InstallCommand->launchCommands() /var/www/akeneo/src/Pim/Bundle/InstallerBundle/Command/InstallCommand.php:234
PHP  10. Oro\Bundle\InstallerBundle\CommandExecutor->runCommand() /var/www/akeneo/src/Pim/Bundle/InstallerBundle/Command/InstallCommand.php:420
PHP  11. Symfony\Component\Console\Application->run() /var/www/akeneo/vendor/oro/platform/src/Oro/Bundle/InstallerBundle/CommandExecutor.php:116
PHP  12. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /var/www/akeneo/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:121
PHP  13. Symfony\Component\Console\Application->doRun() /var/www/akeneo/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:96
PHP  14. Symfony\Component\Console\Application->doRunCommand() /var/www/akeneo/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:191
PHP  15. Symfony\Component\Console\Command\Command->run() /var/www/akeneo/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:904
PHP  16. Pim\Bundle\SearchBundle\Command\ReindexCommand->execute() /var/www/akeneo/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:244
PHP  17. Oro\Bundle\SearchBundle\Engine\Orm->reindex() /var/www/akeneo/src/Pim/Bundle/SearchBundle/Command/ReindexCommand.php:43
PHP  18. Doctrine\ORM\EntityManager->flush() /var/www/akeneo/vendor/oro/platform/src/Oro/Bundle/SearchBundle/Engine/Orm.php:75
PHP  19. Doctrine\ORM\UnitOfWork->commit() /var/www/akeneo/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:389
PHP  20. Doctrine\ORM\UnitOfWork->computeChangeSets() /var/www/akeneo/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:297
PHP  21. Doctrine\ORM\UnitOfWork->computeScheduleInsertsChangeSets() /var/www/akeneo/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:703
PHP  22. Doctrine\ORM\UnitOfWork->computeChangeSet() /var/www/akeneo/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:404

from pim-community-dev.

BitOne avatar BitOne commented on July 22, 2024

Hi @diglin,

Please don't stop sending us these messages ;) We are really grateful to have your feedbacks !

On the memory limit, it seems that some operation on Oro side needs more than 512 MB on the php-cli side. As it seems that it's linked to installation, we could add a ini_set() inside the installation script to temporary boost the memory_limit for the installation (but it's really hackish and not respectful of the system configuration).

Did you try with 728 MB memory_limit for CLI ? If it works, I will update the README.md.

Thanks again !

from pim-community-dev.

sylvainraye avatar sylvainraye commented on July 22, 2024

Hello @BitOne
Thank you for ALL of your feedbacks :-)
Raising to 728MB seems to be more stable. I tried several times and no problem appeared.

from pim-community-dev.

BitOne avatar BitOne commented on July 22, 2024

Thank you @diglin ;)

I just changed the README.md doc to 728 MB. I will keep this issue open as I considered this value quite too high, but as it seem to be related to Oro platform, it could be fixed with a new version.

from pim-community-dev.

crxgames avatar crxgames commented on July 22, 2024

I also had this issue. Running MAMP with php 5.4.4 and I actually had to go up to 1gb and over that while actually using the install as it would randomly exhaust the memory.

from pim-community-dev.

nidup avatar nidup commented on July 22, 2024

Hi @crxgames
Thank you for the feedback, do you have this issue on the same step "Starting reindex task" or on another one ?

from pim-community-dev.

crxgames avatar crxgames commented on July 22, 2024

Yes, it was on the reindex task.

The memory issue I mentioned while using the install is different. I was getting a segfault and just up'd the memory and it stopped. I haven't had time to dig into it much yet.

from pim-community-dev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.