YunoHost-Apps / roundcube_ynh

Roundcube package for YunoHost
https://roundcube.net/
GNU Affero General Public License v3.0
11 stars 21 forks source link

Cannot allocate memory #25

Open zamentur opened 6 years ago

zamentur commented 6 years ago

On a Lime1 Internet Cube (so 512 MB ram)

debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
2017-12-15 18:05:36 URL:https://github-production-release-asset-2e65be.s3.amazonaws.com/42245717?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A/20171215/us-east-1/s3/aws4_request&X-Amz-Date=20171215T170534Z&X-Amz-Expires=300&X-Amz-Signature=7181271bebf3aed4&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment;%20filename=roundcubemail-1.3.3.tar.gz&response-content-type=application/octet-stream [3153569/3153569] -> "app.tar.gz" [1]
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/roundcube/composer.phar/vendor/symfony/console/Application.php on line 979

  [ErrorException]
  proc_open(): fork failed - Cannot allocate memory

require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...

!!
  roundcube's script has encountered an error. Its execution was cancelled.
!!

Removing database roundcube
E: Unable to locate package roundcube-ynh-deps
Remove the user roundcube
The SSOwat configuration has been generated
Installation failed
ghost commented 5 years ago

Same issue recently. Also on a LIME1. Have temporary added a swap and the installation process was successful. :ok_hand:

/bin/dd if=/dev/zero of=/var/swap1 bs=1M count=512
/sbin/mkswap /var/swap1
/sbin/swapon /var/swap1

Did not change /etc/fstab to keep that swap file for the next reboots.

Maybe an « add before » and « remove after » install would be the only « solution » on a 512MB ram lime1.