- Status New
- Percent Complete
- Task Type Information
- Category Installer and Upgrader
- Assigned To No-one
- Operating System Linux
- Severity Low
- Priority Very Low
- Reported Version 1.0 devel (github master)
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
Opened by peterdd - 04.10.2017
Last edited by peterdd - 04.10.2017
FS#2444 - composer hits memory limits
Quick anwser: enable swap partition on your server.
Tried upgrading a rc4-dev to rc5-dev/rc6/flyspray-master on a virtual server with 500MB RAM and php5.6.30 on the commandline (debian)
After file upgrade, I wanted also update the vendor stuff according to composer.json changes.
But surprisingly this failed:
php composer.phar update
and also after
php composer.phar selfupdate
to version Composer version 1.5.2 2017-09-11 the memory limit bug exists:
The following exception is caused by a lack of memory or swap, or not having swap configured Check https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors for details PHP Warning: proc_open(): fork failed - Cannot allocate memory in phar:///var/www/***/composer.phar/vendor/symfony/console/Application.php on line 979 Warning: proc_open(): fork failed - Cannot allocate memory in phar:///var/www/***/composer.phar/vendor/symfony/console/Application.php on line 979 [ErrorException] proc_open(): fork failed - Cannot allocate memory
Also doing a more fresh vendor install like
rm composer.lock rm vendor/* (keeps the .htaccess there) php composer.phar install
300 MB not enough for a handful of php package installations? wtf, but didn’t dig deeper..
I temporarly solved the problem by making a swap partition on this vServer like suggested at
https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors
/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 /sbin/mkswap /var/swap.1 chmod 600 /var/swap.1 /sbin/swapon /var/swap.1
free total used free shared buffers cached Mem: 506300 374920 131380 30628 21904 143872 -/+ buffers/cache: 209144 297156 Swap: 1048572 0 1048572
This is just documentation and is for the people who prefer a Flyspray development version from github.com
Full Flyspray release download files do not needs to fiddle with composer.
Maybe an entry for the FAQ
Loading...
Available keyboard shortcuts
- Alt + l Login Dialog / Logout
- Alt + a Add new task
- Alt + m My searches
- Alt + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + e ↵ Enter Edit this task
- Alt + w watch task
- Alt + y Close Task
Task Editing
- Alt + s save task