Reputation: 1468
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
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
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
Reputation: 2954
Just clear cache of composer use composer clear-cache
Reference
Upvotes: 6
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;
COMPOSER_HOME=/new/path
.COMPOSER_CACHE_DIR=/dev/null
.Upvotes: 3
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