Trying to install via composer gives me the following...

user@host [~]# composer require drupal/backup_db
Using version ^1.0 for drupal/backup_db
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Killed
user@host [~]# 

I'm assuming that composer has run out of memory. I've tried allocating up to 4GB but to no avail.

alias composer="php -d memory_limit=4096M -d allow_url_fopen=1 -d detect_unicode=0 ~/bin/composer.phar"

Any other suggestions? Unfortunately, it's shared hosting. so my options are limited...

Comments

Onein created an issue. See original summary.

swim’s picture

Never encountered that error before sorry :S, 'killed' is sadly undescriptive - is there a verbose mode for composer? Shared hosting has never been friendly to me with devops.

petergus’s picture

I got the same error, my shared host informed me that the install command should have run but it exceeds the RAM allocation.

sobi3ch’s picture

Just to prove it..

$ sudo tail /var/log/syslog 
Aug 24 02:34:15 drupal kernel: [  977.074886] [ 1827]     0  1827    26996        1   245760      252             0 sshd
Aug 24 02:34:15 drupal kernel: [  977.074887] [ 1829]   900  1829    19158        0   184320      281             0 systemd
Aug 24 02:34:15 drupal kernel: [  977.074888] [ 1830]   900  1830    48387        0   262144      572             0 (sd-pam)
Aug 24 02:34:15 drupal kernel: [  977.074890] [ 1877]   900  1877    27086        0   241664      308             0 sshd
Aug 24 02:34:15 drupal kernel: [  977.074891] [ 1878]   900  1878     5690        1    90112      423             0 bash
Aug 24 02:34:15 drupal kernel: [  977.074892] [ 2349]   900  2349   386001   103965  2994176   196351             0 php
Aug 24 02:34:15 drupal kernel: [  977.074894] Out of memory: Kill process 2349 (php) score 804 or sacrifice child
Aug 24 02:34:15 drupal kernel: [  977.074925] Killed process 2349 (php) total-vm:1544004kB, anon-rss:415860kB, file-rss:0kB, shmem-rss:0kB
Aug 24 02:34:15 drupal kernel: [  977.149790] oom_reaper: reaped process 2349 (php), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB
Aug 24 02:34:41 drupal systemd[1]: Started Session 5 of user vagrant.
geoanders’s picture

Priority: Major » Normal
Status: Active » Closed (works as designed)