Code Monkey home page Code Monkey logo

Comments (15)

hillelcoren avatar hillelcoren commented on May 14, 2024 1

Please give this a try...

sudo php -d memory_limit=-1 /usr/local/bin/composer install

From http://tech.enekochan.com/2013/12/16/fix-fatal-error-allowed-memory-size-of-x-bytes-exhausted-tried-to-allocate-x-bytes-with-composer-update/

from invoiceninja.

rtconner avatar rtconner commented on May 14, 2024 1

I'm getting this same error in the year 2020.

from invoiceninja.

elrosi avatar elrosi commented on May 14, 2024 1

Hi,
I have the same problem. The memory limit is set to memory_limit=2048M

from invoiceninja.

karneaud avatar karneaud commented on May 14, 2024 1

Tried this again using 5.0.9 and I was met with the same issue. Hopefully this would not be an issue in v6?

from invoiceninja.

pkolenic avatar pkolenic commented on May 14, 2024 1

I was able to resolve it by upgrading to composer 2
https://blog.packagist.com/composer-2-0-is-now-available/

from invoiceninja.

adamellsworth avatar adamellsworth commented on May 14, 2024

No luck. Regardless, after looking into it it's clearly not an invoice-ninja issue so I'll close it and look for a solution elsewhere. Thanks for the help!

from invoiceninja.

arvindkumarc avatar arvindkumarc commented on May 14, 2024

Remove your ~/.composer folder contents. Then execute the install command again.

from invoiceninja.

turbo124 avatar turbo124 commented on May 14, 2024

@rtconner the fix for this is the same every year, you need to increase you php.ini memory_limit variable as your machine is running out of memory

from invoiceninja.

karneaud avatar karneaud commented on May 14, 2024

+1 ... even with the php -d memory_limit=-1 and with swap enabled

from invoiceninja.

karneaud avatar karneaud commented on May 14, 2024

@hillelcoren is there anything we can shed and have them installed "on demand" instead?

from invoiceninja.

karneaud avatar karneaud commented on May 14, 2024

my limit exceeds near

Downloading http://repo.packagist.org/p/symfony/http-client%24a9db168b5df802e4a673e7154eb194622f1864376ab370b62be2cdfa8b30a17e.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/provider-symfony$http-client.json into cache
Downloading http://repo.packagist.org/p/symfony/http-client-contracts%24fc19156552dda72bd5f3ba28f058f2a99fba178bc49560f3012a31d5c1ddb86b.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/provider-symfony$http-client-contracts.json into cache
Downloading http://repo.packagist.org/p/stecman/symfony-console-completion%2419251b784a7c78cfa673f4cddbcfd535afa8fb78e1d4a7b0302cec5a2c6682f8.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/provider-stecman$symfony-console-completion.json into cache
Downloading http://repo.packagist.org/p/codeception/stub%24c379e4da40fd48884b1954b8df249239aedec333162fed97fdc64acd7fdfa155.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/provider-codeception$stub.json into cache
Downloading http://repo.packagist.org/p/codeception/phpunit-wrapper%2485744348903a0967b5194ec30d51c2c4e2cc6088e5ed45acb3f97e539599ab1c.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/provider-codeception$phpunit-wrapper.json into cache
Downloading http://repo.packagist.org/p/phar-io/manifest%245773f97e4ae5dd09c8c434d5cf367689e3881c08af749858ea2acf4b6b392038.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/provider-phar-io$manifest.json into cache
Downloading http://repo.packagist.org/p/phar-io/version%244d7027cb6778ec0c4b6122b93d60a78e64897b5928966366e781f36046c304c7.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/provider-phar-io$version.json into cache
Downloading http://repo.packagist.org/p/sebastian/type%242236534b3ca251111de2082f5fe8636303c1bcfcbb5541ac5534f2685c72857a.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/provider-sebastian$type.json into cache
Downloading http://repo.packagist.org/p/sebastian/object-reflector%24522588e3d4fe97da4bbb788d125f6d9559b75b70dd794ddcb82b189b6c8cf33d.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/provider-sebastian$object-reflector.json into cache
Downloading http://repo.packagist.org/p/phpspec/phpspec%24ee6b417b28d707d8088de17bc8875b37469f9411d160c8bcba49073e1ace0f0d.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/provider-phpspec$phpspec.json into cache
Downloading http://repo.packagist.org/p/phpspec/php-diff%24b789dcecdbfebac79e3db8ae48c7f13d94c464e8beced437fa2e996fabee59dd.json
Writing /root/.composer/cache/repo/https---repo.packagist.org/provider-phpspec$php-diff.json into cache

Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223

from invoiceninja.

hillelcoren avatar hillelcoren commented on May 14, 2024

This should hopefully not be an issue in v5

from invoiceninja.

karneaud avatar karneaud commented on May 14, 2024

I'm using 4.5.18 ...any recommendations on what I can do until then?

from invoiceninja.

hillelcoren avatar hillelcoren commented on May 14, 2024

Sorry, I don't

from invoiceninja.

mitchumowen avatar mitchumowen commented on May 14, 2024

Seems a bit concerning that this has been happening since 2014, and the best solution is to simply remove the guardrails.

from invoiceninja.

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.