This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Uncaught exception 'ErrorException' with message 'proc_open(

Discuss installing Symfony 2 here

Uncaught exception 'ErrorException' with message 'proc_open(

by ahujsak » Fri Aug 01, 2014 9:51 pm

I have a Digital Ocean Server. Standard LAMP on Ubuntu LAMP on Ubuntu 14.04
Running
PHP 5.5.9-1ubuntu4 (cli) (built: Apr 9 2014 17:11:57)

This is a brand new box. Nothing custom on it.
512MB Ram

I am following the get started documentation

I installed composer.
When I run : composer create-project symfony/framework-standard-edition myproject/ ~2.5

This is my stack trace. I have tried on two different brand new servers and got the same error.

root@Symp:/usr/local/bin# composer create-project symfony/framework-standard-edition myproject/ ~2.5
Installing symfony/framework-standard-edition (v2.5.2)
- Installing symfony/framework-standard-edition (v2.5.2)
Downloading: 100%

Created project in myproject/
Loading composer repositories with package information
Installing dependencies (including require-dev)
- Installing jdorn/sql-formatter (v1.2.17)
Downloading: 100%
PHP Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory' in phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:981
Stack trace:
#0 [internal function]: Composer\Util\ErrorHandler::handle(2, 'proc_open(): fo...', 'phar:///usr/loc...', 981, Array)
#1 phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php(981): proc_open('stty -a | grep ...', Array, NULL, NULL, NULL, Array)
#2 phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php(799): Symfony\Component\Console\Application->getSttyColumns()
#3 phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php(760): Symfony\Component\Console\Application->getTerminalDimensions()
#4 phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php(690): Symfony\Component\Console\Application->getTerminalWidth()
#5 phar:///usr/local/bin/com in phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php on line 981

Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory' in phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:981
Stack trace:
#0 [internal function]: Composer\Util\ErrorHandler::handle(2, 'proc_open(): fo...', 'phar:///usr/loc...', 981, Array)
#1 phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php(981): proc_open('stty -a | grep ...', Array, NULL, NULL, NULL, Array)
#2 phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php(799): Symfony\Component\Console\Application->getSttyColumns()
#3 phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php(760): Symfony\Component\Console\Application->getTerminalDimensions()
#4 phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php(690): Symfony\Component\Console\Application->getTerminalWidth()
#5 phar:///usr/local/bin/com in phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php on line 981


Any insight would be helpful.
I don't want to have to punt on using this technology.
ahujsak
Junior Member
 
Posts: 2
Joined: Fri Aug 01, 2014 9:43 pm

Re: Uncaught exception 'ErrorException' with message 'proc_o

by ahujsak » Mon Aug 04, 2014 3:11 pm

So I wanted to follow up on this. Composer is a pig. It will work if you have an instance that has at least 1GB of RAM.
I was able to get it in stalled.
ahujsak
Junior Member
 
Posts: 2
Joined: Fri Aug 01, 2014 9:43 pm