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

Installing symfony/http-foundation (v2.3.0) fails

Discuss installing Symfony 2 here

Installing symfony/http-foundation (v2.3.0) fails

by Borstenhorst » Thu Jun 06, 2013 9:33 am

Hi!
Im trying to install Ratchet Server from http://socketo.me/ via Composer.

It requires symphony.
I installed it yesterday morning but had to reinstall it but was not able to. Since this server (Ubuntu 12.04.2 LTS) is more like a sandbox I decided that it is a good time to set it completely new up.

I then again tried to install Ratchet but unfortunately still the same:
root@v22013041628912084:/websocket# php composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev)
- Installing symfony/http-foundation (v2.3.0)
Downloading: 100%
PHP Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory' in phar:///websocket/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:975
Stack trace:
#0 [internal function]: Composer\Util\ErrorHandler::handle(2, 'proc_open(): fo...', 'phar:///websock...', 975, Array)
#1 phar:///websocket/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php(975): proc_open('stty -a | grep ...', Array, NULL, NULL, NULL, Array)
#2 phar:///websocket/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php(853): Symfony\Component\Console\Application->getSttyColumns()
#3 phar:///websocket/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php(818): Symfony\Component\Console\Application->getTerminalDimensions()
#4 phar:///websocket/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php(752): Symfony\Component\Console\Application->getTerminalWidth()
#5 phar:///websocket/co in phar:///websocket/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php on line 975

Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory' in phar:///websocket/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:975
Stack trace:
#0 [internal function]: Composer\Util\ErrorHandler::handle(2, 'proc_open(): fo...', 'phar:///websock...', 975, Array)
#1 phar:///websocket/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php(975): proc_open('stty -a | grep ...', Array, NULL, NULL, NULL, Array)
#2 phar:///websocket/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php(853): Symfony\Component\Console\Application->getSttyColumns()
#3 phar:///websocket/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php(818): Symfony\Component\Console\Application->getTerminalDimensions()
#4 phar:///websocket/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php(752): Symfony\Component\Console\Application->getTerminalWidth()
#5 phar:///websocket/co in phar:///websocket/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php on line 975
root@v22013041628912084:/websocket# Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory' in phar:///websocket/composer.phar/Installing symfony/http-foundation (v2.3.0)
-bash: syntax error near unexpected token `('
Borstenhorst
Junior Member
 
Posts: 3
Joined: Thu Jun 06, 2013 9:26 am

Re: Installing symfony/http-foundation (v2.3.0) fails

by tiagojsag » Thu Jun 06, 2013 11:25 am

Hi,

PHP Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory


Do you have enough memory in your server?

cheers
Tiago Garcia
@tiagojsag

Core Web Developer @ Shopware
http://www.shopware.de
User avatar
tiagojsag
Faithful Member
 
Posts: 885
Joined: Wed Aug 10, 2011 4:58 pm

Re: Installing symfony/http-foundation (v2.3.0) fails

by Borstenhorst » Thu Jun 06, 2013 11:45 am

As I said, its completely fresh setted up.
Code: Select all
Real memory   491.66 MB total, 227.09 MB used

Local disk space   19.40 GB total, 2.71 GB used


should be enough or not?
Borstenhorst
Junior Member
 
Posts: 3
Joined: Thu Jun 06, 2013 9:26 am

Re: Installing symfony/http-foundation (v2.3.0) fails

by Borstenhorst » Thu Jun 06, 2013 12:02 pm

I updatet proc and now it worked
Borstenhorst
Junior Member
 
Posts: 3
Joined: Thu Jun 06, 2013 9:26 am