Gaylord.P
Gaylord.P

Reputation: 1468

.composer is full ? No space left on device

When I deploy my project with capistrano (for Symfony), I have this error :

INFO [72050b7f] Running /usr/bin/env composer install --no-dev --prefer-dist --no-interaction --quiet --optimize-autoloader as [email protected]
DEBUG [72050b7f] Command: cd /var/www/dev/Dome/releases/20160812073355 && ( export SYMFONY_ENV="prod" ; /usr/bin/env composer install --no-dev --prefer-dist --no-interaction --quiet --optimize-autoloader )
DEBUG [72050b7f]    The disk hosting /var/www/.composer is full, this may be the cause of the following exception
DEBUG [72050b7f]
DEBUG [72050b7f]
[ErrorException]
ZipArchive::extractTo(): No space left on device

Can you help me ?

Upvotes: -2

Views: 11024

Answers (5)

Sherri
Sherri

Reputation: 943

(Linux) This can sometimes happen if the Inotify Watches Limit has been reached. For example if you have sync/backup programs watching for changed files. For me (Ubuntu 20.04) it started happening shortly after setting up iDrive backups.

Check your limit with: cat /proc/sys/fs/inotify/max_user_watches

Mine was 65536. I increased it to 75000 with:

sudo sysctl fs.inotify.max_user_watches=75000

In fact, using this script I can see that iDrive is indeed the culprit.

   INOTIFY   INSTANCES
   WATCHES      PER   
    COUNT     PROCESS   PID USER         COMMAND
------------------------------------------------------------
   64501         1        2792 sherriw     /opt/IDriveForLinux/bin/idrive --cdp-client
...

Upvotes: 0

Manuel Solis
Manuel Solis

Reputation: 1

You have no permission to run the commands, if it works with sudo you did your deploy with root privilegies in the first place.

Upvotes: -1

Ayman Elshehawy
Ayman Elshehawy

Reputation: 2954

Just clear cache of composer use composer clear-cache Reference

Upvotes: 6

alcohol
alcohol

Reputation: 24086

Use df -h to check all partitions (make sure to check the relevant partition, there can be multiple) and free space if possible.

Alternative options;

  • You can try changing the Composer home directory to another partition/location using the environment variable COMPOSER_HOME=/new/path.
  • You can disable the cache directory by using COMPOSER_CACHE_DIR=/dev/null.

Upvotes: 3

Flo Schild
Flo Schild

Reputation: 5294

The disk hosting /var/www/.composer is full.

The message is quite expressive, you have run out of ROM memory on your disk / partition, and can no longer download even source-code packages with composer.

I suggest you to either change of disk, or if it is a virtual partition, to improve the memory-size.

This does not seem to be related with either Capistrano, Symfony, Composer or PHP.

Upvotes: 1

Related Questions