Forums › Forums › OroCRM › OroCRM – Installation/Technical Issues or Problems › Allowed Memory Size Error
This topic contains 36 replies, has 3 voices, and was last updated by Ayushi Sangal 9 years, 7 months ago.
Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.
- CreatorTopic
- August 6, 2014 at 5:22 am #26181
Hello,
I am trying to install OroPlatform on server and results into an error (Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes)) on installing dependencies.
- CreatorTopic
- AuthorReplies
- August 6, 2014 at 6:01 am #26182
Hello, Ayushi Sangal.
Yes, it’s known issue – composer requires really big amount of memory for initial install. If you have strict memory restriction, you can use installation with already downloaded dependencies from here http://oroinc.com/orocrm/download. There are links to archives in zip, tar.gz and tar.bz2 formats – these archives already has all dependencies to do installation from scratch.
August 6, 2014 at 9:00 pm #26183Also please make sure you are using latest release (as for today it is 1.3.0) as it has composer.lock file bundled which minimize memory consumption and dependency installation a lot.
August 6, 2014 at 11:33 pm #26184Hello,
Thank you for your help
I have cloned the official git-hub repository from above link but results into same error again on updating my dependencies. Is this is Something Related to my php.ini Memory limit.
August 7, 2014 at 1:38 am #26185Well, instead of cloning you should download whole installation and unpack it – f.e. this one http://oroinc.com/orocrm/downloads/crm-application.zip. After you’ll do that you already don’t have to run “php composer.phar install –prefer-dist” because all dependencies are already there – instead you should run “php composer.phar run-script post-install-cmd” to set up parameters and execute other installation scripts. After that you can open OroCRM host in browser and continue installation there.
For server configuration see http://symfony.com/doc/2.3/cookbook/configuration/web_server_configuration.html.
August 7, 2014 at 2:25 am #26186Alternative solution is to change memory_limit in php.ini to -1 (unlimited) and try to run composer install again. But it is not always allowed because OroCRM might be installed on environment with strict memory restriction (f.e. cloud instance).
August 7, 2014 at 3:06 am #26187I am trying to deploy my oro-platform application on server.I have run “php composer.phar run-script post-install-cmd” but got error.
Class Incenteev\ParameterHandler\ScriptHandler is not autoloadable, can not call post-install-cmd script
Class Sensio\Bundle\DistributionBundle\Composer\ScriptHandler is not autoloadable, can not call post-install-cmd scriptwhat can i do regarding this issue.
August 7, 2014 at 3:19 am #26188Please, ensure that vendor directory contains all dependencies, like that:
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950user@host:~/tmp/crm-application/vendor$ ls -ltotal 188drwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 a2lixdrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 akeneodrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 ass-rw-rw-r-- 1 maniac maniac 183 Jul 25 14:05 autoload.phpdrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 besimpledrwxrwxr-x 2 maniac maniac 4096 Jul 25 14:09 bindrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 cbodendrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 composerdrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 dflydevdrwxrwxr-x 13 maniac maniac 4096 Jul 25 14:09 doctrinedrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 escapestudiosdrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 evenementdrwxrwxr-x 5 maniac maniac 4096 Jul 25 14:09 friendsofsymfonydrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 gedmodrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 genemudrwxrwxr-x 6 maniac maniac 4096 Jul 25 14:09 guzzledrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 imaginedrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 incenteevdrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 jdaredrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 jdorndrwxrwxr-x 10 maniac maniac 4096 Jul 25 14:09 jmsdrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 justinrainbowdrwxrwxr-x 6 maniac maniac 4096 Jul 25 14:09 knplabsdrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 kriswallsmithdrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 leafodrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 lexikdrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 liipdrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 luxiferdrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 monologdrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 mtdowlingdrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 nelmiodrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 nesbotdrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 ocramiusdrwxrwxr-x 4 maniac maniac 4096 Jul 25 14:09 orodrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 phpcollectiondrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 phpoptiondrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 psrdrwxrwxr-x 5 maniac maniac 4096 Jul 25 14:09 reactdrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 selddrwxrwxr-x 5 maniac maniac 4096 Jul 25 14:09 sensiodrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 stofdrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 swiftmailerdrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 syliusdrwxrwxr-x 7 maniac maniac 4096 Jul 25 14:09 symfonydrwxrwxr-x 4 maniac maniac 4096 Jul 25 14:09 twigdrwxrwxr-x 3 maniac maniac 4096 Jul 25 14:09 willduranddrwxrwxr-x 11 maniac maniac 4096 Jul 25 14:09 zendframeworkIf there are no vendors – please, unpack them from archive http://oroinc.com/orocrm/downloads/crm-application.zip
Also to manually update autoloader you can run “php composer.phar dump-autoload”
August 7, 2014 at 4:07 am #26189Thank you for your help.
Finally I have vendor now.Now can you let me know step to futhur set it up.
August 7, 2014 at 5:08 am #26190Hello Yevhen,
I have run “php composer.phar install –prefer-dist” command but there is no installation process.Can you help me regarding this.
August 7, 2014 at 5:39 am #26191Now you have vendors, next:
1) php composer.phar dump-autoload – just to ensure that autoloader is correct;
2) php composer.phar run-script post-install-cmd – it should ask you default parameters, generate app/config/parameters.yml and app/bootstrap.php.cache (if you didn’t do that before)
3) http://symfony.com/doc/2.3/cookbook/configuration/web_server_configuration.html – set up server configuration (create virtual host and restart server)
4) open browser and go to your virtual host – and then continue installation from UI (see http://oroinc.com/orocrm/doc/current/book/installation#the-installation)August 7, 2014 at 9:42 pm #26192Thank you for your help.
August 7, 2014 at 11:35 pm #26193Hello Yevhen,
Here Again I am in problem after running “php composer.phar install –prefer-dist” command got few errors.
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Your requirements could not be resolved to an installable set of packages.Problem 1
– The requested package oro/platform could not be found in any version, there may be a typo in the package name.
Problem 2
– symfony/icu v1.2.1 requires lib-icu >=4.4 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
– symfony/icu v1.2.1 requires lib-icu >=4.4 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
– Installation request for symfony/icu v1.2.1 -> satisfiable by symfony/icu[v1.2.1].Potential causes:
– A typo in the package name
– The package is not available in a stable-enough version according to your minimum-stabilityWhat should I do to resolve this problem.
August 8, 2014 at 1:56 am #26194> The lock file is not up to date with the latest changes in composer.json
Probably, you have latest master branch with dependencies from archive – problem is that master is continuously updating, so dependencies are also changing. Please, remove whole application that you cloned from github and extract these files from archive. Then you can run composer install, result should look like this:123456user@host:~/tmp/crm-application$ composer installLoading composer repositories with package informationInstalling dependencies (including require-dev) from lock fileNothing to install or updateGenerating autoload filesUpdating the "app/config/parameters.yml" fileIf you want to work with latest master you have to increase your memory limit. In this case you can clone github repository and run composer install there.
August 8, 2014 at 2:23 am #26195okay thank you :)
August 8, 2014 at 11:47 pm #26196My php ini memory is set to 252m.can you please tell me how much i should increase to install my dependencies properly.
- AuthorReplies
The forum ‘OroCRM – Installation/Technical Issues or Problems’ is closed to new topics and replies.