Forums › Forums › OroCRM › OroCRM – Installation/Technical Issues or Problems › Install fails on Centos 7.2.1511
This topic contains 24 replies, has 4 voices, and was last updated by Michael 8 years ago.
Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.
- CreatorTopic
- February 22, 2016 at 11:49 am #26990
Folks my installation fails with the following error:
PowerShell12345678910111213141516php -dmemory_limit=2G /bin/composer installLoading composer repositories with package informationInstalling dependencies (including require-dev)Your requirements could not be resolved to an installable set of packages.Problem 1- oro/platform 1.9.0 requires composer/composer 1.0.0-p1 -> no matching package found.- oro/crm 1.9.0 requires oro/platform 1.9.0 -> satisfiable by oro/platform[1.9.0].- Installation request for oro/crm ^1.9 -> satisfiable by oro/crm[1.9.0].Potential causes:- A typo in the package name- The package is not available in a stable-enough version according to your minimum-stability settingsee <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.I have doubled checked my repositories and downloads, they should be oki.
Composer is installed as you can see:
PHP1234/bin/composer aboutComposer - Package Management for PHPComposer is a dependency manager tracking local dependencies of your projects and libraries.See https://getcomposer.org/ for more information.I got it from https://getcomposer.org/download/ and I’m using version:
1.0.0-alpha11 (2015-11-14)My machine has 2 GB RAM, is it enough? I’ve noticed that the machine almost runs into swap before failing at the installation. Ive read here https://github.com/composer/composer/issues/2704 and tried to install gaving the ram limit as a command line argument.
Any pointers?
Regards,
vfbsilva - CreatorTopic
- AuthorReplies
- February 23, 2016 at 10:17 am #26991
So I answer my own question. I’ve foind that I needed a specific version of composer I’ve installed it modifying the composer.json to the following
{
“require”: {
“oro/crm”: “^1.9”
},
“repositories”: [
{
“type”: “composer”,
“url”: “http://packagist.orocrm.com”
}
]}
February 23, 2016 at 10:20 am #26992But now it fails with:
PHP12345678910111213141516171819Loading composer repositories with package informationUpdating dependencies (including require-dev)Your requirements could not be resolved to an installable set of packages.Problem 1- oro/crm 1.9.0 requires oro/platform 1.9.0 -> satisfiable by oro/platform[1.9.0].- oro/crm 1.9.0 requires oro/platform 1.9.0 -> satisfiable by oro/platform[1.9.0].- oro/platform 1.9.0 requires knplabs/knp-menu 2.0.0-alpha2 -> no matching package found.- oro/platform 1.9.0 requires knplabs/knp-menu 2.0.0-alpha2 -> no matching package found.- Installation request for oro/crm ^1.9 -> satisfiable by oro/crm[1.9.0].Potential causes:- A typo in the package name- The package is not available in a stable-enough version according to your minimum-stability settingsee <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.Installation failed, reverting ./composer.json to its original content.But knp is installed on a newer version:
PHP123php -dmemory_limit=2G /bin/composer require knplabs/knp-menuUsing version ^2.1 for knplabs/knp-menu./composer.json has been updatedFebruary 24, 2016 at 6:54 am #26993Hi vfbsilva,
we were not able to reproduce the issue described on the CentOS.
Please clone latest stable OroCRM application from GitHub or use these composer.json and composer.lock and try again.February 24, 2016 at 10:23 am #26994I’ve tried with the composer files you provided and ended on the same error.
123456789101112131415161718192021222324252627php -dmemory_limit=2G /bin/composer --no-dev installLoading composer repositories with package informationInstalling dependencies from lock fileYour requirements could not be resolved to an installable set of packages.Problem 1- Installation request for besimple/soap v0.2.2 -> satisfiable by besimple/soap[v0.2.2].- besimple/soap v0.2.2 requires ext-soap * -> the requested PHP extension soap is missing from your system.Problem 2- besimple/soap v0.2.2 requires ext-soap * -> the requested PHP extension soap is missing from your system.- oro/platform 1.9.0 requires besimple/soap 0.2.2 -> satisfiable by besimple/soap[v0.2.2].- Installation request for oro/platform 1.9.0 -> satisfiable by oro/platform[1.9.0].To enable extensions, verify that they are enabled in those .ini files:- /etc/php.ini- /etc/php.d/curl.ini- /etc/php.d/fileinfo.ini- /etc/php.d/gd.ini- /etc/php.d/intl.ini- /etc/php.d/json.ini- /etc/php.d/mbstring.ini- /etc/php.d/pdo.ini- /etc/php.d/pdo_sqlite.ini- /etc/php.d/phar.ini- /etc/php.d/sqlite3.ini- /etc/php.d/zip.iniYou can also run <code>php --ini</code> inside terminal to see which files are used by PHP in CLI mode.February 24, 2016 at 10:34 am #26995Did you run “composer install” or “composer update”?
Recommended way is to runcomposer install
February 24, 2016 at 10:41 am #26996I’ve ran install as follows:
PHP1php -dmemory_limit=2G /bin/composer --no-dev installFebruary 25, 2016 at 10:29 am #26997I’ve fixed this issue by installing
PHP1yum install php-soapBut now it fails with
PHP12345678ComponentInstaller\Installer::postAutoloadDumpCompiling component files> Incenteev\ParameterHandler\ScriptHandler::buildParametersScript Incenteev\ParameterHandler\ScriptHandler::buildParameters handling the post-install-cmd event terminated with an exception[InvalidArgumentException]The dist file "app/config/parameters.yml.dist" does not exist. Check your dist-file config or create it.February 25, 2016 at 12:08 pm #26998More details from the error here:
Shell1234567891011121314151617Exception trace:() at /root/vendor/incenteev/composer-parameter-handler/Incenteev/ParameterHandler/Processor.php:77Incenteev\ParameterHandler\Processor->processConfig() at /root/vendor/incenteev/composer-parameter-handler/Incenteev/ParameterHandler/Processor.php:21Incenteev\ParameterHandler\Processor->processFile() at /root/vendor/incenteev/composer-parameter-handler/Incenteev/ParameterHandler/ScriptHandler.php:34Incenteev\ParameterHandler\ScriptHandler::buildParameters() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:233Composer\EventDispatcher\EventDispatcher->executeEventPhpScript() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:187Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:94Composer\EventDispatcher\EventDispatcher->dispatchScript() at phar:///usr/bin/composer/src/Composer/Installer.php:333Composer\Installer->run() at phar:///usr/bin/composer/src/Composer/Command/InstallCommand.php:134Composer\Command\InstallCommand->execute() at phar:///usr/bin/composer/vendor/symfony/console/Command/Command.php:259Symfony\Component\Console\Command\Command->run() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:844Symfony\Component\Console\Application->doRunCommand() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:192Symfony\Component\Console\Application->doRun() at phar:///usr/bin/composer/src/Composer/Console/Application.php:166Composer\Console\Application->doRun() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:123Symfony\Component\Console\Application->run() at phar:///usr/bin/composer/src/Composer/Console/Application.php:99Composer\Console\Application->run() at phar:///usr/bin/composer/bin/composer:43require() at /usr/bin/composer:25February 26, 2016 at 10:20 am #26999So, I’ve discovered that running the install seems to must be made from inside the crm app folder. But now it fails again with no RAM despite the amount being defined on command line.
PHP12345678910111213php -dmemory_limit=4G /bin/composer --no-dev installLoading composer repositories with package informationInstalling dependencies from lock fileWarning: 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.Nothing to install or updateGenerating autoload files> ComponentInstaller\Installer::postAutoloadDumpCompiling component files> Incenteev\ParameterHandler\ScriptHandler::buildParametersUpdating the "app/config/parameters.yml" file> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrapPHP Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 12288 bytes) in /root/crm-application/vendor/composer/autoload_real.php on line 43Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap handling the post-install-cmd event terminated with an exceptionFebruary 26, 2016 at 10:46 am #27000I’ve edited the php.ini to have 12MB as default ram for php processes and now it is oki I finished the build but when I get to setup the database it fails:
PHP12php app/console doctrine:database:createPHP Fatal error: Class 'DOMDocument' not found in /var/www/html/orocrm/vendor/symfony/symfony/src/Symfony/Component/Config/Util/XmlUtils.php on line 52February 26, 2016 at 1:27 pm #27001Okay I improved the situation but now the installer fails;
February 29, 2016 at 5:19 am #27002Could you please share install and prod logs. We need to check the error to understand where could be an issue.
February 29, 2016 at 10:13 am #27003Here we go.
prod.log
install.logFebruary 29, 2016 at 10:33 am #27004I’ve cleared all the caches and got some progress. Not it fails with
PHP1234567891011tail -f prod.log[2016-02-29 15:27:49] request.CRITICAL: Uncaught PHP Exception RuntimeException: "Admin user wasn't loaded in fixtures." at /var/www/html/orocrm/vendor/oro/platform/src/Oro/Bundle/InstallerBundle/Process/Step/SetupStep.php line 39 {"exception":"[object] (RuntimeException: Admin user wasn't loaded in fixtures. at /var/www/html/orocrm/vendor/oro/platform/src/Oro/Bundle/InstallerBundle/Process/Step/SetupStep.php:39)"} [][2016-02-29 15:27:49] security.DEBUG: Invoked controller "FOS\RestBundle\Controller\ExceptionController::showAction". (SUB_REQUEST) [] [][2016-02-29 15:28:05] request.INFO: Matched route "sylius_flow_forward". {"route_parameters":{"_controller":"sylius.controller.process:forwardAction","scenarioAlias":"oro_installer","stepName":"setup","_route":"sylius_flow_forward"},"request_uri":"http://10.139.2.186/orocrm/web/app.php/installer/flow/oro_installer/setup/forward"} [][2016-02-29 15:28:05] security.DEBUG: Invoked controller "Sylius\Bundle\FlowBundle\Controller\ProcessController::forwardAction". (MASTER_REQUEST) [] [][2016-02-29 15:28:05] request.CRITICAL: Uncaught PHP Exception RuntimeException: "Admin user wasn't loaded in fixtures." at /var/www/html/orocrm/vendor/oro/platform/src/Oro/Bundle/InstallerBundle/Process/Step/SetupStep.php line 39 {"exception":"[object] (RuntimeException: Admin user wasn't loaded in fixtures. at /var/www/html/orocrm/vendor/oro/platform/src/Oro/Bundle/InstallerBundle/Process/Step/SetupStep.php:39)"} [][2016-02-29 15:28:05] security.DEBUG: Invoked controller "FOS\RestBundle\Controller\ExceptionController::showAction". (SUB_REQUEST) [] [][2016-02-29 15:30:38] request.INFO: Matched route "sylius_flow_forward". {"route_parameters":{"_controller":"sylius.controller.process:forwardAction","scenarioAlias":"oro_installer","stepName":"setup","_route":"sylius_flow_forward"},"request_uri":"http://10.139.2.186/orocrm/web/app.php/installer/flow/oro_installer/setup/forward"} [][2016-02-29 15:30:38] security.DEBUG: Invoked controller "Sylius\Bundle\FlowBundle\Controller\ProcessController::forwardAction". (MASTER_REQUEST) [] [][2016-02-29 15:30:39] request.CRITICAL: Uncaught PHP Exception RuntimeException: "Admin user wasn't loaded in fixtures." at /var/www/html/orocrm/vendor/oro/platform/src/Oro/Bundle/InstallerBundle/Process/Step/SetupStep.php line 39 {"exception":"[object] (RuntimeException: Admin user wasn't loaded in fixtures. at /var/www/html/orocrm/vendor/oro/platform/src/Oro/Bundle/InstallerBundle/Process/Step/SetupStep.php:39)"} [][2016-02-29 15:30:39] security.DEBUG: Invoked controller "FOS\RestBundle\Controller\ExceptionController::showAction". (SUB_REQUEST) [] []February 29, 2016 at 10:41 am #27005Cleared all buffers, dumped database started over same problem:
PHP1234[2016-02-29 15:39:35] request.INFO: Matched route "sylius_flow_display". {"route_parameters":{"_controller":"sylius.controller.process:displayAction","scenarioAlias":"oro_installer","stepName":"installation","_route":"sylius_flow_display"},"request_uri":"http://10.139.2.186/orocrm/web/app.php/installer/flow/oro_installer/installation?action=assetic"} [][2016-02-29 15:39:35] security.DEBUG: Invoked controller "Sylius\Bundle\FlowBundle\Controller\ProcessController::displayAction". (MASTER_REQUEST) [] [][2016-02-29 15:39:55] request.CRITICAL: Uncaught PHP Exception RuntimeException: "The command terminated with an exit code: 1." at /var/www/html/orocrm/vendor/oro/platform/src/Oro/Bundle/InstallerBundle/CommandExecutor.php line 200 {"exception":"[object] (RuntimeException: The command terminated with an exit code: 1. at /var/www/html/orocrm/vendor/oro/platform/src/Oro/Bundle/InstallerBundle/CommandExecutor.php:200)"} [][2016-02-29 15:39:55] security.DEBUG: Invoked controller "FOS\RestBundle\Controller\ExceptionController::showAction". (SUB_REQUEST) [] - AuthorReplies
The forum ‘OroCRM – Installation/Technical Issues or Problems’ is closed to new topics and replies.