Bonjour
Le Cloud Web a 2 GB de ram.
Nous utilisons composer pour mettre à jour Drupal 8.4.0 et installer de nouveaux modules
Malheureusement, ça plante :
../composer require drupal/pathauto
Using version ^1.0 for drupal/pathauto
./composer.json has been updated
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 3 installs, 0 updates, 0 removals
- Installing drupal/token (1.0.0): Downloading (100%)
Installation failed, reverting ./composer.json to its original content.
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
[ErrorException]
proc_open(): fork failed - Cannot allocate memory
ça ne m'étonne pas.
J'ai déjà eu ce problème "Lack of memory" avec un VPS 2 GB ram et Composer.
La solution que j'avais trouvée était de créer un swap file en 2GB et de le mettre dans le /etc/fstab.
Ce que je ne sais pas faire ici car pas l'accès root.
**Que conseillez-vous ?**
Demander plus de ram ?
:p
Ou créer ce fichier swap de 2 GB ?
Mais n'ayant pas les droits root, je ne sais pas faire de fallocate ou de swapon etc
Merci.
Bonne soirée
Drupal 8 - Composer - lack of memory
Sujets apparentés
- Modification des variables php.ini
25193
23.01.2019 16:32
- Lancement App front React
14806
26.04.2019 12:54
- Accès à la configuration du serveur apache ?
11136
23.10.2017 12:25
- Connexion SSH ?
8974
14.10.2017 09:53
- FTP and SFTP time out
8607
14.01.2018 08:55
- Transferts FTP/SFTP
7083
21.10.2017 13:00
- DésespoirJS WEB CLOUD 1
7075
26.01.2019 03:44
- Activer Memcached PECL
6759
17.12.2018 13:07
- 504 Gateway Timeout depuis bientôt 24h
6564
24.04.2019 11:19
Bonjour,
je pense qu'à l'heure actuelle aucune solution n'est possible car :
* Offre managé donc jamais l'accès root ne sera donné au client (car le client ne sait peut être pas gérer du docker et/ou peu potentiellement tout casser).
* Offre en bêta limité au VPS 1 qui a comme limite 1vCPU / 2Go RAM / 10Go
Cordialement, janus57
Par contre Composer marche en mutualisé pro non?
évidemment, en offre PROD (et pas Béta) la solution sera de payer un peu plus pour monter à 4 GB et 2 cpu par ex... on verra ça.
En béta, la solution sera probablement de demander au support de créer un swap file de 2 GB et de le mettre dans le fstab.
Composer ne consomme pas toujours autant.
ça dépend du appli / CMS (ici c'est Drupal 8) et des commandes.
Bonjour,
dans ce genre de cas je dirais surtout de faire des petit update (si possible) car sur un offre managé comme ça, je doute que OVH s'amuse à mettre un swap file qui va vous amputer l'espace de stockage pour vos sites/BDD et qui en prime va sortir le VPS de sa configuration nominale/générique à toute l'offre (cela pourrait potentiellement fausser vos test de la bêta du produit).
Car bon aussi un update qui arrive à saturer la totalité de la RAM c'est un poil abusé quand même à ce niveau.
Note : d'après la doc drupal il est possible de palier au fait que composer ce limite à la mémoire de PHP.
[code]
Insufficient memory
Related errors include :
Fatal error: Allowed memory size
Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed -
The workaround for these errors is to execute composer with more or maximum available memory the system can provide. There are a variety of methods for accomplishing this. Some examples:
php -d memory_limit=-1 [composer-location] require drupal/module_name -vvv
Concrete Examples :
php -d memory_limit=-1 /usr/local/bin/composer require "drupal/address ~8.1" -vvv
php -d memory_limit=-1 /usr/local/bin/composer.phar require "drupal/address ~8.1" -vvv
[/code]
Cordialement, janus57
Justement ici même, je ne sais plus qui, a dit qu'il utilisait Composer pour Drupal 8 en hébergement mutualisé pro (car il y a ssh). Ca m’intéresse car justement si je n'utilise pas Drupal 8 c'est du fait de cette obligation d'utiliser Composer (contrairement à Drupal 7).
Bonjour
Quand le Cloud Web sera en production, certain qu'il y aura différents choix avec 1, 2, 4 ... cpu et avec 4, 8, 16 GB de ram.
Alors, il me suffira de prendre l'offre au dessus, un peu plus chère, pour doubler la ram etc.
D'accord qu'en production, ce ne sera pas viable (ni accepté) de demander au support de créer un swap file. Je sais aussi que, malgré les disques SSD, quand Composer va utiliser le swap file par manque de mémoire, ça ralenti fortement !
Je sais, je l'ai expérimenté chez un concurrent sur Sydney (maintenant OVH est sur Sydney...).
Mais en Béta, je n'ai pas le choix de monter en puissance.
Ce serait malgré tout dommage de devoir dire "le Cloud Web béta ne supporte pas Drupal 8 par manque de ram..." :p
Donc, oui je vais évidemment tester ces paramètres mémoire pour composer.
Mais pas sûr que ce soit suffisant.
Sinon, je demanderai au support ou à Vincent avec qui j'ai discuté à l' OVH Summit.
Ce sera une solution "béta", et évidemment PAS applicable lorsque le Cloud Web sera en vente officiellement.
Bonne journée.
test Drupal 8.4.0 en vitesse ce soir :
php -d memory_limit=-1 ../composer.phar require drupal/pathauto -vvv
...
Package operations: 3 installs, 0 updates, 0 removals
Installs: drupal/token:1.0.0, drupal/ctools:3.0.0, drupal/pathauto:1.0.0
Patching is disabled. Skipping.
- Installing drupal/token (1.0.0):
Failed: [ErrorException] 0: proc_open(): fork failed - Cannot allocate memory
Installation failed, reverting ./composer.json to its original content.
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
[ErrorException]
proc_open(): fork failed - Cannot allocate memory
Toujours le même plantage par manque de mémoire...
:-(
Bon WE. Didier
Comment afficher en ligne de commande la quantité RAM réellement disponible à un script PHP quand il tourne en CLI ?
Bon WE
```text Bonjour,
Pouvez-vous me donner votre NIC OVH afin que je regarde plus en détails ?
Pour information, j'ai fait une installation complète de drupal 8.4 sans rencontrer de problème.
Ci-dessous les traces de mon installation :
~$ curl -o drupal-8.4.0.tar.gz https://ftp.drupal.org/files/projects/drupal-8.4.0.tar.gz
~$ tar xzf drupal-8.4.0.tar.gz --strip 1 -C www/
~$ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
~$ php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
Installer verified
~$ php composer-setup.php
All settings correct for using Composer
Downloading...
Composer (version 1.5.2) successfully installed to: /home/xxxxxx/composer.phar
Use it: php composer.phar
~$ php -r "unlink('composer-setup.php');"
~$ cd www
~/www$ ~/composer.phar --profile install
[7.4MB/0.01s] Loading composer repositories with package information
[7.8MB/0.01s] Installing dependencies (including require-dev) from lock fileow
[9.0MB/0.03s] Package operations: 31 installs, 0 updates, 0 removals
[9.0MB/0.03s] - Installing symfony/css-selector (v3.2.8): [9.1MB/0.04s] [9.1MB/0.90s] Downloading (0%)[9.1MB/0.90s] [9.2MB/0.90s] Downloading (5[9.2MB/0.90s] Downloading (1[9.2MB/0.98s] Downloading (1[9.2MB/0.98s] Downloading (2[9.2MB/0.98s] Downloading (3[9.2MB/0.98s] Downloading (4[9.2MB/0.98s] Downloading (4[9.2MB/1.05s] Downloading (5[9.2MB/1.06s] Downloading (5[9.2MB/1.06s] Downloading (6[9.2MB/1.06s] Downloading (7[9.2MB/1.06s] Downloading (75%)[9.2M[9.2MB/1.06s] Downloading (8[9.2MB/1.06s] Downloading (8[9.2MB/1.06s] Downloading (9[9.2MB/1.06s] Downloading (100%)[9.1MB/1.06s]
[9.4MB/1.10s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[9.4MB/1.11s] - Installing behat/mink (dev-master 9ea1ceb): [9.4MB/1.11s] [9.4MB/1.92s] Downloading (0%)[9.4MB/1.92s] [9.4MB/1.92s] Downloading (1[9.4MB/1.99s] Downloading (5[9.4MB/2.00s] Downloading (6[9.4MB/2.00s] Downloading (9[9.4MB/2.07s] Downloading (100%)[9.4MB/2.08s]
[9.4MB/2.11s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[9.4MB/2.11s] - Installing symfony/dom-crawler (v3.2.8): [9.4MB/2.11s] [9.4MB/3.13s] Downloading (0%)[9.4MB/3.13s] [9.4MB/3.13s] Downloading (2[9.4MB/3.22s] Downloading (3[9.4MB/3.22s] Downloading (4[9.4MB/3.22s] Downloading (4[9.4MB/3.22s] Downloading (6[9.5MB/3.22s] Downloading (7[9.5MB/3.22s] Downloading (8[9.5MB/3.30s] Downloading (8[9.5MB/3.31s] Downloading (100%)[9.4MB/3.31s]
[9.4MB/3.35s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[9.4MB/3.35s] - Installing symfony/browser-kit (v3.2.8): [9.4MB/3.35s] [9.5MB/4.10s] Downloading (0%)[9.5MB/4.10s] [9.5MB/4.10s] Downloading (5[9.5MB/4.18s] Downloading (5[9.5MB/4.18s] Downloading (8[9.5MB/4.18s] Downloading (8[9.5MB/4.19s] Downloading (100%)[9.4MB/4.19s]
[9.5MB/4.21s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[9.5MB/4.22s] - Installing fabpot/goutte (v3.2.1): [9.5MB/4.22s] [9.5MB/4.94s] Downloading (0%)[9.5MB/4.94s] [9.5MB/4.94s] Downloading (7[9.5MB/4.94s] Downloading (100%)[9.5MB/4.95s]
[9.5MB/4.97s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[9.5MB/4.97s] - Installing behat/mink-browserkit-driver (v1.3.2): [9.5MB/4.97s] [9.5MB/5.70s] Downloading (0%)[9.5MB/5.70s] [9.6MB/5.79s] Downloading (5[9.5MB/5.79s] Downloading (100%)[9.5MB/5.79s]
[9.6MB/5.82s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[9.6MB/5.82s] - Installing behat/mink-goutte-driver (v1.2.1): [9.6MB/5.82s] [9.6MB/6.51s] Downloading (0%)[9.6MB/6.51s] [9.6MB/6.51s] Downloading (3[9.6MB/6.51s] Downloading (7[9.6MB/6.52s] Downloading (100%)[9.6MB/6.52s]
[9.6MB/6.55s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[9.6MB/6.55s] - Installing squizlabs/php_codesniffer (2.8.1): [9.6MB/6.55s] [9.6MB/7.27s] Downloading (0%)[9.6MB/7.27s] [9.6MB/7.35s] Downloading (5[9.7MB/7.43s] Downloading (1[9.7MB/7.47s] Downloading (1[9.7MB/7.51s] Downloading (2[9.8MB/7.51s] Downloading (2[9.8MB/7.51s] Downloading (3[9.8MB/7.59s] Downloading (3[9.9MB/7.59s] Downloading (4[9.9MB/7.59s] Downloading (4[9.9MB/7.59s] Downloading (50[10.0MB/7.59s] Downloading (55[10.0MB/7.63s] Downloading (60[10.0MB/7.67s] Downloading (65[10.0MB/7.67s] Downloading (70[10.1MB/7.67s] Downloading (75[10.1MB/7.67s] Downloading (80[10.1MB/7.67s] Downloading (85[10.2MB/7.68s] Downloading (90[10.2MB/7.68s] Downloading (95[10.2MB/7.69s] Downloading (100%)[9.6MB/7.69s]
[9.8MB/7.86s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[9.8MB/7.86s] - Installing drupal/coder (8.2.12): [9.8MB/7.86s] [9.8MB/8.55s] Downloading (0%)[9.8MB/8.55s] [9.9MB/8.55s] Downloading (5[9.9MB/8.63s] Downloading (1[9.9MB/8.63s] Downloading (1[9.9MB/8.63s] Downloading (20%)[9.9MB/8.71s] Downloading (2[9.9MB/8.71s] Downloading (3[9.9MB/8.71s] Downloading (3[9.9MB/8.71s] Downloading (4[9.9MB/8.71s] Downloading (4[9.9MB/8.71s] Downloading (5[9.9MB/8.79s] Downloading (5[9.9MB/8.79s] Downloading (60%)[10.0MB/8.[10.0MB/8.79s] Downloading (65[10.0MB/8.79s] Downloading (70[10.0MB/8.79s] Downloading (75[10.0MB/8.79s] Downloading (80[10.0MB/8.79s] Downloading (85[10.0MB/8.79s] Downloading (90[10.0MB/8.79s] Downloading (95[10.0MB/8.79s] Downloading (100%)[9.8MB/8.80s]
[9.9MB/8.92s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[9.9MB/8.93s] - Installing ircmaxell/password-compat (v1.0.4): [9.9MB/8.93s] [9.9MB/9.89s] Downloading (0%)[9.9MB/9.89s] [9.9MB/9.89s] Downloading (100%)[9.9MB/9.90s]
[9.9MB/10.02s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[9.9MB/10.02s] - Installing jcalderonzumba/gastonjs (v1.0.2): [9.9MB/10.02s] [9.9MB/10.75s] Downloading (0%)[9.9MB/10.75s] [9.9MB/10.75s] Downloading (5%[9.9MB/10.83s] Downloading (10[9.9MB/10.83s] Downloading (15%)[10.0M[10.0MB/10.83s] Downloading (20%[10.0MB/10.83s] Downloading (25%[10.0MB/10.91s] Downloading (30%[10.0MB/10.91s] Downloading (35%[10.0MB/10.91s] Downloading (40%[10.0MB/10.91s] Downloading (45%[10.0MB/10.91s] Downloading (50%)[10.0MB/10.9[10.0MB/10.91s] Downloading (55%[10.0MB/10.91s] Downloading (60%[10.0MB/10.91s] Downloading (65%[10.0MB/10.99s] Downloading (70%[10.0MB/10.99s] Downloading (75%[10.0MB/10.99s] Downloading (80%[10.0MB/10.99s] Downloading (85%)[10.0MB/10.9[10.0MB/10.99s] Downloading (90%[10.1MB/10.99s] Downloading (95%[10.0MB/10.99s] Downloading (100%)[9.9MB/10.99s]
[9.9MB/11.10s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[9.9MB/11.11s] - Installing jcalderonzumba/mink-phantomjs-driver (v0.3.1): [9.9MB/11.11s] D[10.0MB/12.15s] Downloading (0%)[10.0MB/12.15s] [10.0MB/12.15s] Downloading (5%)[10.0MB/12.23s] Downloading (70%)[10.0MB/12.23s][10.0MB/12.23s] Downloading (75%[10.0MB/12.23s] Downloading (80%[10.0MB/12.23s] Downloading (85%[10.0MB/12.23s] Downloading (100%)[9.9MB/12.24s]
[10.0MB/12.35s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[10.0MB/12.35s] - Installing mikey179/vfsstream (v1.6.5): [10.0MB/12.35s] [10.0MB/13.06s] Downloading (0%)[10.0MB/13.06s] [10.0MB/13.15s] Downloading (15%[10.0MB/13.15s] Downloading (20%[10.0MB/13.15s] Downloading (25%)[10.0MB/13.15s] Downloading (30%[10.0MB/13.15s] Downloading (35%[10.1MB/13.23s] Downloading (45%[10.1MB/13.23s] Downloading (55%[10.1MB/13.23s] Downloading (65%[10.1MB/13.23s] Downloading (75%[10.1MB/13.23s] Downloading (80%)[10.1MB/13.2[10.1MB/13.23s] Downloading (85%[10.1MB/13.23s] Downloading (90%[10.1MB/13.23s] Downloading (95%[10.1MB/13.31s] Downloading (100%)[10.0MB/13.32s]
[10.0MB/13.43s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[10.0MB/13.44s] - Installing phpdocumentor/reflection-docblock (2.0.4): [10.0MB/13.44s] [10.1MB/14.86s] Downloading (0%)[10.1MB/14.86s] [10.1MB/14.86s] Downloading (15%[10.1MB/14.86s] Downloading (20%[10.1MB/15.02s] Downloading (30%[10.1MB/15.02s] Downloading (35%[10.1MB/15.02s] Downloading (50%[10.1MB/15.02s] Downloading (55%[10.1MB/15.02s] Downloading (60%[10.1MB/15.18s] Downloading (75%[10.1MB/15.19s] Downloading (80%[10.1MB/15.19s] Downloading (95%[10.1MB/15.19s] Downloading (100%)[10.0MB/15.19s]
[10.1MB/15.31s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[10.1MB/15.32s] - Installing phpunit/php-token-stream (1.4.11): [10.1MB/15.32s] [10.1MB/16.01s] Downloading (0%)[10.1MB/16.01s] [10.1MB/16.01s] Downloading (5%)[10.1MB/16.01s] Downloading (10%[10.1MB/16.01s] Downloading (15%[10.1MB/16.01s] Downloading (20%[10.1MB/16.09s] Downloading (65%[10.1MB/16.09s] Downloading (70%[10.1MB/16.09s] Downloading (75%[10.1MB/16.09s] Downloading (80%[10.1MB/16.09s] Downloading (85%[10.1MB/16.09s] Downloading (90%)[10.1MB[10.1MB/16.09s] Downloading (95%[10.1MB/16.09s] Downloading (100%)[10.1MB/16.10s]
[10.1MB/16.18s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[10.1MB/16.19s] - Installing sebastian/version (1.0.6): [10.1MB/16.19s] [10.2MB/16.93s] Downloading (0%)[10.2MB/16.93s] [10.1MB/16.93s] Downloading (100%)[10.1MB/16.93s]
[10.2MB/17.04s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[10.2MB/17.04s] - Installing sebastian/global-state (1.1.1): [10.2MB/17.04s] [10.2MB/19.07s] Downloading (0%)[10.2MB/19.08s] [10.2MB/19.08s] Downloading (40%[10.2MB/19.08s] Downloading (70%[10.2MB/19.15s] Downloading (100%)[10.2MB/19.16s]
[10.2MB/19.26s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[10.2MB/19.27s] - Installing sebastian/recursion-context (1.0.5): [10.2MB/19.27s] [10.2MB/19.97s] Downloading (0%)[10.2MB/19.97s] [10.2MB/19.97s] Downloading (35%[10.2MB/19.97s] Downloading (70%[10.2MB/19.97s] Downloading (100%)[10.2MB/19.97s]
[10.3MB/20.05s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[10.3MB/20.06s] - Installing sebastian/exporter (1.2.2): [10.3MB/20.06s] [10.3MB/20.78s] Downloading (0%)[10.3MB/20.78s] [10.3MB/20.78s] Downloading (100%)[10.3MB/20.79s]
[10.3MB/20.88s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[10.3MB/20.89s] - Installing sebastian/environment (1.3.8): [10.3MB/20.89s] [10.3MB/22.02s] Downloading (0%)[10.3MB/22.02s] [10.3MB/22.02s] Downloading (15%[10.3MB/22.02s] Downloading (30%[10.3MB/22.02s] Downloading (45%[10.3MB/22.02s] Downloading (60%[10.3MB/22.03s] Downloading (75%[10.3MB/22.03s] Downloading (100%)[10.3MB/22.03s]
[10.4MB/22.13s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[10.4MB/22.13s] - Installing sebastian/diff (1.4.1): [10.4MB/22.13s] [10.4MB/22.83s] Downloading (0%)[10.4MB/22.83s] [10.4MB/22.83s] Downloading (15%[10.4MB/22.83s] Downloading (30%[10.4MB/22.83s] Downloading (45%)[10.4[10.4MB/22.83s] Downloading (50%[10.4MB/22.84s] Downloading (65%[10.4MB/22.91s] Downloading (100%)[10.4MB/22.91s]
[10.4MB/23.02s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[10.4MB/23.03s] - Installing sebastian/comparator (1.2.4): [10.4MB/23.03s] [10.4MB/23.72s] Downloading (0%)[10.4MB/23.72s] [10.4MB/23.72s] Downloading (10%[10.5MB/23.80s] Downloading (75%[10.4MB/23.80s] Downloading (100%)[10.4MB/23.80s]
[10.5MB/23.91s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[10.5MB/23.92s] - Installing phpunit/php-text-template (1.2.1): [10.5MB/23.92s] [10.5MB/24.61s] Downloading (0%)[10.5MB/24.61s] [10.5MB/24.61s] Downloading (35%[10.5MB/24.61s] Downloading (100%)[10.5MB/24.61s]
[10.5MB/24.73s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[10.5MB/24.73s] - Installing doctrine/instantiator (1.0.5): [10.5MB/24.73s] [10.5MB/25.42s] Downloading (0%)[10.5MB/25.42s] [10.5MB/25.42s] Downloading (15%[10.5MB/25.42s] Downloading (30%[10.6MB/25.50s] Downloading (45%[10.6MB/25.50s] Downloading (50%[10.6MB/25.50s] Downloading (65%[10.6MB/25.50s] Downloading (75%[10.6MB/25.50s] Downloading (90%[10.6MB/25.50s] Downloading (100%)[10.5MB/25.51s]
[10.6MB/25.63s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[10.6MB/25.63s] - Installing phpunit/phpunit-mock-objects (2.3.8): [10.6MB/25.64s] [10.6MB/26.67s] Downloading (0%)[10.6MB/26.67s] [10.6MB/26.67s] Downloading (5%)[10.6MB/26.75s] Downloading (20%[10.6MB/26.75s] Downloading (25%[10.6MB/26.75s] Downloading (30%[10.6MB/26.83s] Downloading (45%[10.6MB/26.83s] Downloading (50%[10.6MB/26.83s] Downloading (55%[10.7MB/26.83s] Downloading (70%[10.7MB/26.83s] Downloading (75%[10.7MB/26.83s] Downloading (80%)[10.[10.7MB/26.83s] Downloading (85%[10.7MB/26.91s] Downloading (95%[10.7MB/26.91s] Downloading (100%)[10.6MB/26.91s]
[10.6MB/27.02s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[10.6MB/27.02s] - Installing phpunit/php-timer (1.0.9): [10.6MB/27.02s] [10.7MB/27.92s] Downloading (0%)[10.7MB/27.92s] [10.7MB/27.92s] Downloading (45%[10.7MB/27.92s] Downloading (90%[10.7MB/27.93s] Downloading (100%)[10.6MB/27.93s]
[10.7MB/28.02s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[10.7MB/28.02s] - Installing phpunit/php-file-iterator (1.4.2): [10.7MB/28.02s] [10.7MB/29.52s] Downloading (0%)[10.7MB/29.52s] [10.7MB/29.52s] Downloading (20%[10.7MB/29.52s] Downloading (40%[10.7MB/29.52s] Downloading (60%[10.7MB/29.52s] Downloading (100%)[10.7MB/29.52s]
[10.8MB/29.62s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[10.8MB/29.62s] - Installing phpunit/php-code-coverage (2.2.4): [10.8MB/29.62s] [10.8MB/30.43s] Downloading (0%)[10.8MB/30.43s] [10.8MB/30.51s] Downloading (5%)[10.8MB/30.51s] Downloading (10%[10.8MB/30.58s] Downloading (15%[10.9MB/30.58s] Downloading (20%[10.9MB/30.66s] Downloading (25%[10.9MB/30.66s] Downloading (30%[10.9MB/30.66s] Downloading (35%[10.9MB/30.67s] Downloading (40%[11.0MB/30.67s] Downloading (45%[11.0MB/30.67s] Downloading (50%)[11.0MB[11.0MB/30.74s] Downloading (55%[11.0MB/30.74s] Downloading (60%[11.0MB/30.74s] Downloading (65%[11.0MB/30.75s] Downloading (70%[11.1MB/30.75s] Downloading (80%[11.1MB/30.75s] Downloading (85%[11.1MB/30.75s] Downloading (95%)[11.1MB/30.7[11.1MB/30.75s] Downloading (100%)[10.8MB/30.76s]
[10.8MB/30.91s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[10.8MB/30.92s] - Installing phpspec/prophecy (v1.7.0): [10.8MB/30.92s] [10.9MB/31.60s] Downloading (0%)[10.9MB/31.60s] [10.9MB/31.61s] Downloading (5%)[10.9MB/31.68s] Downloading (10%[10.9MB/31.68s] Downloading (15%)[1[10.9MB/31.68s] Downloading (20%[10.9MB/31.68s] Downloading (25%[10.9MB/31.76s] Downloading (30%[10.9MB/31.76s] Downloading (35%[10.9MB/31.76s] Downloading (40%[10.9MB/31.76s] Downloading (45%[10.9MB/31.76s] Downloading (50%)[10.9MB/31.7[10.9MB/31.76s] Downloading (55%[10.9MB/31.76s] Downloading (60%[11.0MB/31.84s] Downloading (65%[11.0MB/31.84s] Downloading (70%[11.0MB/31.84s] Downloading (75%[11.0MB/31.84s] Downloading (80%[11.0MB/31.84s] Downloading (85%)[11.0MB/31.8[11.0MB/31.84s] Downloading (90%[11.0MB/31.84s] Downloading (95%[11.0MB/31.84s] Downloading (100%)[10.8MB/31.85s]
[10.9MB/32.00s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[10.9MB/32.00s] - Installing phpunit/phpunit (4.8.36): [10.9MB/32.00s] [10.9MB/32.69s] Downloading (0%)[10.9MB/32.69s] [10.9MB/32.77s] Downloading (5%)[11.0MB/32.77s] Downloading (10%[11.0MB/32.85s] Downloading (15%)[11[11.0MB/32.85s] Downloading (20%[11.0MB/32.92s] Downloading (25%[11.0MB/32.93s] Downloading (30%[11.1MB/32.93s] Downloading (35%[11.1MB/32.93s] Downloading (40%[11.1MB/32.93s] Downloading (45%[11.1MB/32.93s] Downloading (50%)[11.1MB/33.0[11.1MB/33.00s] Downloading (55%[11.1MB/33.00s] Downloading (60%[11.2MB/33.01s] Downloading (65%[11.2MB/33.01s] Downloading (70%[11.2MB/33.01s] Downloading (75%[11.2MB/33.01s] Downloading (80%[11.2MB/33.01s] Downloading (85%)[11.3MB/33.0[11.3MB/33.01s] Downloading (90%[11.3MB/33.01s] Downloading (95%[11.3MB/33.02s] Downloading (100%)[10.9MB/33.02s]
[11.0MB/33.23s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[11.0MB/33.26s] - Installing symfony/phpunit-bridge (v3.2.8): [11.0MB/33.26s] [11.0MB/34.03s] Downloading (0%)[11.0MB/34.03s] [11.0MB/34.03s] Downloading (20%[11.0MB/34.13s] Downloading (100%)[11.0MB/34.13s]
[11.1MB/34.31s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[10.0MB/34.35s] behat/mink suggests installing behat/mink-selenium2-driver (slow, but JS-enabled driver for any app (requires Selenium2))
[10.0MB/34.35s] behat/mink suggests installing behat/mink-zombie-driver (fast and JS-enabled headless driver for any app (requires node.js))
[10.0MB/34.35s] phpdocumentor/reflection-docblock suggests installing dflydev/markdown (~1.0)
[10.0MB/34.35s] phpdocumentor/reflection-docblock suggests installing erusev/parsedown (~1.0)
[10.0MB/34.35s] sebastian/global-state suggests installing ext-uopz (*)
[10.0MB/34.35s] phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)
[10.0MB/34.35s] phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
[9.9MB/34.35s] Generating autoload files
[10.0MB/34.52s] > Drupal\Core\Composer\Composer::preAutoloadDump
[10.6MB/34.77s] > Drupal\Core\Composer\Composer::ensureHtaccess
[10.2MB/34.77s] Memory usage: 10.23MB (peak: 11.68MB), time: 34.77s
### configuration via le navigateur (Francais / installation standard / BDD MySQL )
### Une fois Drupal installé:
~/www$ ~/composer.phar --profile require drupal/pathauto
[110.3MB/7.60s] Using version ^1.0 for drupal/pathauto
[110.4MB/7.60s] ./composer.json has been updated
[112.3MB/7.80s] Loading composer repositories with package information
[112.7MB/8.01s] Updating dependencies (including require-dev)
[395.1MB/23.80s] Package operations: 3 installs, 0 updates, 0 removals
[395.2MB/23.82s] - Installing drupal/token (1.0.0): [395.2MB/23.82s] [395.2MB/23.87s] Downloading (0%)[395.2MB/23.87s] [[395.2MB/23.87s] Downloading (5%)[[395.2MB/23.88s] Downloading (45%)[395.3MB/23.90s] Downloading (100%)[395.2MB/23.90s]
[395.5MB/24.36s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[395.5MB/24.37s] - Installing drupal/ctools (3.0.0): [395.5MB/24.37s] [395.5MB/24.41s] Downloading (0%)[395.5MB/24.41s] [[395.5MB/24.42s] Downloading (10%)[395.5MB/24.42s] Downloading (15%)[395.6MB/24.43s] Downloading (40%)[395.6MB/24.43s] Downloading (45%)[395.6MB/24.43s] Downloading (50%)[395.6MB/24.44s] Downloading (85%)[395.6MB/24.44s] Downloading (100%)[395.5MB/24.44s]
[395.6MB/24.73s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[395.6MB/24.73s] - Installing drupal/pathauto (1.0.0): [395.6MB/24.74s] [395.6MB/24.78s] Downloading (0%)[395.6MB/24.78s] [[395.6MB/24.78s] Downloading (5%)[[395.6MB/24.79s] Downloading (30%)[395.6MB/24.79s] Downloading (70%)[395.7MB/24.80s] Downloading (95%)[395.7MB/24.80s] Downloading (100%)[395.6MB/24.80s]
[395.6MB/25.07s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup
[318.5MB/25.98s] Writing lock file
[318.5MB/25.98s] Generating autoload files
[318.6MB/26.11s] > Drupal\Core\Composer\Composer::preAutoloadDump
[319.1MB/26.38s] > Drupal\Core\Composer\Composer::ensureHtaccess
[318.7MB/26.66s] Memory usage: 318.74MB (peak: 396.14MB), time: 26.66s[/details] ```
Bonjour Arnaud.
Merci pour le test.
Je vais comparer avec mon installation D8.4.0.
Il y a peut-être des paramètres différents (Composer ? Json ? je ne maîtrise pas encore entièrement)
Je te passe notre ID en privée.
Didier
Bonjour Arnaud.
Merci pour le test.
Je vais comparer avec mon installation.
Il y a peut-être des paramètres différents (Composer ? Json ? je ne maîtrise pas encore entièrement)
Je te passe notre ID en privée.
ma commande Composer pour l'installation n'est pas la même :
**composer create-project drupal-composer/drupal-project:8.x-dev public_html --stability dev --no-interaction**
"public_html" est remplacé par le dossier dans le home de notre Cloud Web.
doc
https://commerceguys.fr/blog/drupal8-et-composer-un-mariage-reussi
La commande indiquée correspond bien à ce que nous avons utilisé :
composer create-project drupal-composer/drupal-project:8.x-dev some-dir --stability dev --no-interaction
ça correspond aussi à la doc d'installation, option A, du site drupal.org :
https://www.drupal.org/docs/develop/using-composer/using-composer-to-manage-drupal-site-dependencies
Merci. Didier
Ok merci, je test ta procédure. Je te fais un retour rapidement
Arnaud
Didier,
je viens d'ajouter 1G de swap ( pris dans ton homez, il te reste donc 14G au lieu de 15G) sur ton cloudweb.
Peux tu réessayer l'installation de Drupal via composer ?
Une fois l'installation terminée je pourrais supprimer le swap afin que tu récupères les 1G utilisés par le swap.
On étudie la possibilité d'une option dans le manager pour l'ajout / suppression de swap.
Pour finir, as tu réellement besoin de la version de dev de drupal, ne serait-il pas préférable d'utiliser la dernière version stable de drupal ?
Arnaud
Bonjour Arnaud
Je vais tester.
Je n'utilise pas la version Dev de Drupal.
Le Drupal installé est **D8.4.0, la dernière stable** sortie il y a 1 semaine environ.
La commande Composer utilise le mot "dev", mais c'est une référence (je crois) au fait que le niveau minimum des modules doit être Dev (et pas Alpha, etc).
C'est en tout cas la commande Composer d'install donnée dans les doc Drupal, pour un Drupal STABLE de Prod.
Merci. Didier
OK
ça passe !
**../composer require drupal/pathauto**
Using version ^1.0 for drupal/pathauto
./composer.json has been updated
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 3 installs, 0 updates, 0 removals
**- Installing drupal/token (1.0.0): Loading from cache**
** - Installing drupal/ctools (3.0.0): Downloading (100%) **
** - Installing drupal/pathauto (1.0.0): Downloading (100%)**
Writing lock file
Generating autoload files
Removing packages services cache file:
/home/pvcmeuq/tourisme-wf/vendor/drupal/console/extend.console.uninstall.services.yml
Creating packages services cache file:
/home/pvcmeuq/tourisme-wf/vendor/drupal/console/extend.console.uninstall.services.yml
> DrupalProject\composer\ScriptHandler::createRequiredFiles
La rapidité d'install est correcte, malgré le swap file.
---------------------------
**$ free**
total **used** free shared buffers cached
Mem: 1987480 1210832 776648 77652 13128 203856
-/+ buffers/cache: 993848 993632
**Swap: 1048572 148832** 899740
Donc, l'install des modules (j'en ai mis plusieurs) à pris au maximum 149 MB de swap.
Je ne comprend toujours pas pourquoi Composer, qui est supposé ne faire que gérer des fiches sources PHP, n'a pas assez avec 2 GB !
Si tu supprimes le swap, nous ne pourrons plus installer d'autres modules... ni donc d'autres sites Drupal 8...
------------
Je vais faire un test avec ta commande d'installation sur mon Cloud Web perso (là c'était celui d'Eric)
et voir ce qui change...
Car si vraiment on y arrive avec 2GB, ce serait bien.
Merci. Didier
Bonjour,
question : pourquoi ne pas utiliser une des autres option d'install pour voir si elle consomme moins (preuve avec l'installation de @ArnaudF2 ) ?
Cordialement, janus57
Bonjour Janus
C'est exactement ce que je suis en train de faire.
Je veux voir le résultat, et si la structure des dossiers Drupal 8 est différente ou pas.
Didier
L'ajout de module Drupal 8 passe avec ta procédure, sur mon Cloud Web 2 GB (sans le swap file).
Mais je vais encore refaire un test.
Avec ta procédure, je n'ai pas la même structure de dossiers Drupal.
ça me dérange un peu (mais ce n'est pas "mortel"), car moins bien organisé
et aussi car je crois que lors d'un "composer update", ça ne mettra pas à jour les fichiers à la racine Drupal.
(il y a des expli sur cela sur le site Drupal)
MAIS... je me demande si mon problème ne vient pas du fait que j'ai fait ma commande "composer" pour installer Drupal 8.4.0
mais JAMAIS fait la commande
**~/composer.phar --profile install**
Je vais refaire ma procédure, mais en ajoutant ça !
Si c'est ça mon erreur, alors Composer consommerait nettement moins.
Je refais ce test et je vous tient au courant.
Merci. Didier
Bonjour,
sinon il reste les options B et C de la doc drupal (visiblement la C est équivalente à la A en terme de "fonctionnalités").
Cordialement, janus57
```text je refais ma procédure complète pour Drupal 8.4.0
mais sur mon Cloud Web avec 2 GB (sans swap file) :
**~/composer create-project drupal-composer/drupal-project:8.x-dev cloudweb2 --stability dev --no-interaction**
Installing drupal-composer/drupal-project (8.x-dev 6418a08f89b7580d1a51f47cb0f08afc0bd572e7)
- Installing drupal-composer/drupal-project (8.x-dev 6418a08): Cloning 6418a08f89
Created project in cloudweb2
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 104 installs, 0 updates, 0 removals
- Installing cweagans/composer-patches (1.6.2): Downloading (100%)
- Installing drupal-composer/drupal-scaffold (2.3.0): Downloading (100%)
- Installing composer/installers (v1.4.0): Downloading (100%)
- Installing symfony/finder (v3.3.10): Downloading (100%)
- Installing symfony/yaml (v3.2.13): Downloading (100%)
- Installing drupal/console-extend-plugin (0.9.2): Downloading (100%)
- Installing paragonie/random_compat (v2.0.11): Downloading (100%)
- Installing symfony/polyfill-mbstring (v1.6.0): Downloading (100%)
- Installing symfony/http-foundation (v3.2.13): Downloading (100%)
- Installing psr/simple-cache (1.0.0): Downloading (100%)
- Installing psr/log (1.0.2): Downloading (100%)
- Installing psr/cache (1.0.1): Downloading (100%)
- Installing symfony/polyfill-apcu (v1.6.0): Downloading (100%)
- Installing symfony/cache (v3.3.10): Downloading (100%)
- Installing symfony/expression-language (v3.3.10): Downloading (100%)
- Installing symfony/dom-crawler (v3.3.10): Downloading (100%)
- Installing symfony/css-selector (v3.3.10): Downloading (100%)
- Installing jakub-onderka/php-console-color (0.1): Downloading (100%)
- Installing jakub-onderka/php-console-highlighter (v0.3.2): Downloading (100%)
- Installing dnoegel/php-xdg-base-dir (0.1): Downloading (100%)
- Installing nikic/php-parser (v3.1.1): Downloading (100%)
- Installing symfony/var-dumper (v3.3.10): Downloading (100%)
- Installing symfony/debug (v3.3.10): Downloading (100%)
- Installing symfony/console (v3.2.13): Downloading (100%)
- Installing psy/psysh (v0.8.13): Downloading (100%)
- Installing psr/http-message (1.0.1): Downloading (100%)
- Installing guzzlehttp/psr7 (1.4.2): Downloading (100%)
- Installing guzzlehttp/promises (v1.3.1): Downloading (100%)
- Installing guzzlehttp/guzzle (6.3.0): Downloading (100%)
- Installing gabordemooij/redbean (v4.3.4): Downloading (100%)
- Installing vlucas/phpdotenv (v2.4.0): Downloading (100%)
- Installing drupal/console-dotenv (0.3.0): Downloading (100%)
- Installing webmozart/assert (1.2.0): Downloading (100%)
- Installing webmozart/path-util (2.3.0): Downloading (100%)
- Installing webflo/drupal-finder (1.0.0): Downloading (100%)
- Installing twig/twig (v1.35.0): Downloading (100%)
- Installing symfony/translation (v3.2.13): Downloading (100%)
- Installing symfony/process (v3.2.13): Downloading (100%)
- Installing symfony/filesystem (v3.3.10): Downloading (100%)
- Installing symfony/event-dispatcher (v3.2.13): Downloading (100%)
- Installing symfony/dependency-injection (v3.2.13): Downloading (100%)
- Installing symfony/config (v3.2.13): Downloading (100%)
- Installing stecman/symfony-console-completion (0.7.0): Downloading (100%)
- Installing drupal/console-en (1.0.2): Downloading (100%)
- Installing dflydev/placeholder-resolver (v1.0.2): Downloading (100%)
- Installing dflydev/dot-access-data (v1.1.0): Downloading (100%)
- Installing dflydev/dot-access-configuration (v1.0.2): Downloading (100%)
- Installing drupal/console-core (1.0.2): Downloading (100%)
- Installing doctrine/collections (v1.5.0): Downloading (100%)
- Installing doctrine/lexer (v1.0.1): Downloading (100%)
- Installing doctrine/annotations (v1.5.0): Downloading (100%)
- Installing alchemy/zippy (0.4.3): Downloading (100%)
- Installing drupal/console (1.0.2): Downloading (100%)
- Installing zendframework/zend-stdlib (3.1.0): Downloading (100%)
- Installing zendframework/zend-escaper (2.5.2): Downloading (100%)
- Installing zendframework/zend-feed (2.8.0): Downloading (100%)
- Installing zendframework/zend-diactoros (1.6.1): Downloading (100%)
- Installing symfony/validator (v3.2.13): Downloading (100%)
- Installing symfony/serializer (v3.2.13): Downloading (100%)
- Installing symfony/routing (v3.2.13): Downloading (100%)
- Installing symfony/psr-http-message-bridge (v1.0.0): Downloading (100%)
- Installing symfony/polyfill-iconv (v1.6.0): Downloading (100%)
- Installing symfony/http-kernel (v3.2.13): Downloading (100%)
- Installing symfony/class-loader (v3.2.13): Downloading (100%)
- Installing symfony-cmf/routing (1.4.1): Downloading (100%)
- Installing stack/builder (v1.0.4): Downloading (100%)
- Installing masterminds/html5 (2.3.0): Downloading (100%)
- Installing egulias/email-validator (1.2.14): Downloading (100%)
- Installing easyrdf/easyrdf (0.9.1): Downloading (100%)
- Installing doctrine/inflector (v1.2.0): Downloading (100%)
- Installing doctrine/cache (v1.7.1): Downloading (100%)
- Installing doctrine/common (v2.8.1): Downloading (100%)
- Installing composer/semver (1.4.2): Downloading (100%)
- Installing asm89/stack-cors (1.1.0): Downloading (100%)
- Installing drupal/core (8.4.0): Downloading (100%)
- Installing phpdocumentor/reflection-docblock (2.0.5): Downloading (100%)
- Installing pear/console_table (v1.3.0): Downloading (100%)
- Installing consolidation/output-formatters (3.1.12): Downloading (100%)
- Installing consolidation/annotated-command (2.8.1): Downloading (100%)
- Installing drush/drush (8.1.15): Downloading (100%)
- Installing symfony/browser-kit (v3.3.10): Downloading (100%)
- Installing fabpot/goutte (v3.2.1): Loading from cache
- Installing behat/mink (v1.7.1): Downloading (100%)
- Installing behat/mink-browserkit-driver (v1.3.2): Loading from cache
- Installing behat/mink-goutte-driver (v1.2.1): Loading from cache
- Installing jcalderonzumba/gastonjs (v1.0.3): Downloading (100%)
- Installing jcalderonzumba/mink-phantomjs-driver (v0.3.3): Downloading (100%)
- Installing mikey179/vfsstream (v1.6.5): Loading from cache
- Installing sebastian/version (1.0.6): Loading from cache
- Installing sebastian/global-state (1.1.1): Loading from cache
- Installing sebastian/recursion-context (1.0.5): Loading from cache
- Installing sebastian/exporter (1.2.2): Loading from cache
- Installing sebastian/environment (1.3.8): Loading from cache
- Installing sebastian/diff (1.4.3): Downloading (100%)
- Installing sebastian/comparator (1.2.4): Loading from cache
- Installing doctrine/instantiator (1.1.0): Downloading (100%)
- Installing phpunit/php-text-template (1.2.1): Loading from cache
- Installing phpunit/phpunit-mock-objects (2.3.8): Loading from cache
- Installing phpunit/php-timer (1.0.9): Loading from cache
- Installing phpunit/php-file-iterator (1.4.2): Loading from cache
- Installing phpunit/php-token-stream (1.4.11): Loading from cache
- Installing phpunit/php-code-coverage (2.2.4): Loading from cache
- Installing phpspec/prophecy (v1.7.2): Downloading (100%)
- Installing phpunit/phpunit (4.8.36): Loading from cache
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
symfony/var-dumper suggests installing ext-symfony_debug ()
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
psy/psysh suggests installing hoa/console (A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit.)
symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them)
alchemy/zippy suggests installing guzzle/guzzle (To use the GuzzleTeleporter with Guzzle 3)
zendframework/zend-feed suggests installing zendframework/zend-cache (Zend\Cache component, for optionally caching feeds between requests)
zendframework/zend-feed suggests installing zendframework/zend-db (Zend\Db component, for use with PubSubHubbub)
zendframework/zend-feed suggests installing zendframework/zend-http (Zend\Http for PubSubHubbub, and optionally for use with Zend\Feed\Reader)
zendframework/zend-feed suggests installing zendframework/zend-servicemanager (Zend\ServiceManager component, for easily extending ExtensionManager implementations)
zendframework/zend-feed suggests installing zendframework/zend-validator (Zend\Validator component, for validating email addresses used in Atom feeds and entries ehen using the Writer subcomponent)
symfony/validator suggests installing symfony/intl ()
symfony/serializer suggests installing symfony/property-access (For using the ObjectNormalizer.)
symfony/serializer suggests installing symfony/property-info (To deserialize relations.)
easyrdf/easyrdf suggests installing ml/json-ld (~1.0)
doctrine/cache suggests installing alcaeus/mongo-php-adapter (Required to use legacy MongoDB driver)
phpdocumentor/reflection-docblock suggests installing dflydev/markdown (~1.0)
phpdocumentor/reflection-docblock suggests installing erusev/parsedown (~1.0)
pear/console_table suggests installing pear/Console_Color2 (>=0.1.2)
drush/drush suggests installing drush/config-extra (Provides configuration workflow commands, such as config-merge.)
behat/mink suggests installing behat/mink-selenium2-driver (slow, but JS-enabled driver for any app (requires Selenium2))
behat/mink suggests installing behat/mink-zombie-driver (fast and JS-enabled headless driver for any app (requires node.js))
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
Writing lock file
Generating autoload files
Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (connecting.Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (100%)Downloading (connecting.Downloading (100%)Downloading (100%)Downloading (100%)Creating packages services cache file:
/home/zbvabpx/cloudweb2/vendor/drupal/console/extend.console.uninstall.services.yml
> DrupalProject\composer\ScriptHandler::createRequiredFiles
Create a sites/default/settings.php file with chmod 0666
Create a sites/default/files directory with chmod 0777
De cette façon, le code Drupal est dans des sous-dossiers
et drush est installé.
**J'ajoute la commande qui me manquait :**
**~/composer.phar --profile install**
[8.6MB/0.07s] > DrupalProject\composer\ScriptHandler::checkComposerVersion
[8.9MB/0.08s] Loading composer repositories with package information
[9.3MB/0.08s] Installing dependencies (including require-dev) from lock file
[11.0MB/0.11s] Nothing to install or update
[9.4MB/0.12s] Generating autoload files
[9.9MB/0.23s] Removing packages services cache file:
[9.9MB/0.23s] /home/zbvabpx/cloudweb2/vendor/drupal/console/extend.console.uninstall.services.yml
[9.9MB/0.23s] Creating packages services cache file:
[9.9MB/0.23s] /home/zbvabpx/cloudweb2/vendor/drupal/console/extend.console.uninstall.services.yml
[9.9MB/0.25s] > DrupalProject\composer\ScriptHandler::createRequiredFiles
[10.1MB/0.25s] Memory usage: 10.07MB (peak: 11.58MB), time: 0.25s
Je dois modifier dans le manager OVH pour avoir la racine du site dans
/cloudweb2/web
Le code Drupal est dans le sous-dossier /web
Ensuite je fais la config Drupal DB standard via le web.
Puis je fais l'installation d'un module :
et ça coince !
composer require drupal/pathauto
-bash: composer: command not found
zbvabpx@e82ecb26f949:~/cloudweb2$ ../composer require drupal/pathauto
Using version ^1.0 for drupal/pathauto
./composer.json has been updated
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 3 installs, 0 updates, 0 removals
- Installing drupal/token (1.0.0): Loading from cache
Installation failed, reverting ./composer.json to its original content.
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
[ErrorException]
proc_open(): fork failed - **Cannot allocate memory**
**... je ne comprend pas comment ce changement de config des dossiers, et l'ajout de certains composants telque Drush, fait que Composer BOUFFE la mémoire comme cela !**
bon, je vais essayer de m'adapter à l'autre structure de dossiers (celle que tu as utilisée), qui consomme nettement moins de ram.
Merci. Didier ```
l'option d'installation C pour Drupal 8 "**hussainweb/drupal-composer-init**" ?
Oui, je vais la tester.
Je ne comprend pas la quantité de RAM bouffée par l'installation A.
Didier
Après avoir suivi la procédure d'installation de Drupal 8, option C "hussainweb/drupal-composer-init" :
https://www.drupal.org/node/2718229
**~/cloudweb3$ ../composer install**
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 111 installs, 0 updates, 0 removals
- Installing cweagans/composer-patches (1.6.2): Loading from cache
No patches supplied.
Gathering patches for dependencies. This might take a minute.
- Installing drupal-composer/drupal-scaffold (2.3.0): Loading from cache
- Installing composer/installers (v1.4.0): Loading from cache
- Installing symfony/yaml (v3.2.13): Loading from cache
- Installing webmozart/assert (1.2.0): Loading from cache
- Installing webmozart/path-util (2.3.0): Loading from cache
- Installing symfony/filesystem (v3.3.10): Loading from cache
- Installing hussainweb/drupal-composer-helper (v1.0.0-beta3): Downloading (100%)
- Installing symfony/finder (v3.3.10): Loading from cache
- Installing drupal/console-extend-plugin (0.9.2): Loading from cache
- Installing zendframework/zend-stdlib (3.1.0): Loading from cache
- Installing zendframework/zend-escaper (2.5.2): Loading from cache
- Installing zendframework/zend-feed (2.8.0): Loading from cache
- Installing psr/http-message (1.0.1): Loading from cache
- Installing zendframework/zend-diactoros (1.6.1): Loading from cache
- Installing twig/twig (v1.35.0): Loading from cache
- Installing symfony/polyfill-mbstring (v1.6.0): Loading from cache
- Installing symfony/translation (v3.2.13): Loading from cache
- Installing symfony/validator (v3.2.13): Loading from cache
- Installing symfony/serializer (v3.2.13): Loading from cache
- Installing symfony/routing (v3.2.13): Loading from cache
- Installing paragonie/random_compat (v2.0.11): Loading from cache
- Installing symfony/http-foundation (v3.2.13): Loading from cache
- Installing symfony/psr-http-message-bridge (v1.0.0): Loading from cache
- Installing symfony/process (v3.2.13): Loading from cache
- Installing symfony/polyfill-iconv (v1.6.0): Loading from cache
- Installing symfony/event-dispatcher (v3.2.13): Loading from cache
- Installing psr/log (1.0.2): Loading from cache
- Installing symfony/debug (v3.3.10): Loading from cache
- Installing symfony/http-kernel (v3.2.13): Loading from cache
- Installing symfony/dependency-injection (v3.2.13): Loading from cache
- Installing symfony/console (v3.2.13): Loading from cache
- Installing symfony/class-loader (v3.2.13): Loading from cache
- Installing symfony-cmf/routing (1.4.1): Loading from cache
- Installing stack/builder (v1.0.4): Loading from cache
- Installing masterminds/html5 (2.3.0): Loading from cache
- Installing guzzlehttp/psr7 (1.4.2): Loading from cache
- Installing guzzlehttp/promises (v1.3.1): Loading from cache
- Installing guzzlehttp/guzzle (6.3.0): Loading from cache
- Installing doctrine/lexer (v1.0.1): Loading from cache
- Installing egulias/email-validator (1.2.14): Loading from cache
- Installing easyrdf/easyrdf (0.9.1): Loading from cache
- Installing doctrine/inflector (v1.2.0): Loading from cache
- Installing doctrine/collections (v1.5.0): Loading from cache
- Installing doctrine/cache (v1.7.1): Loading from cache
- Installing doctrine/annotations (v1.5.0): Loading from cache
- Installing doctrine/common (v2.8.1): Loading from cache
- Installing composer/semver (1.4.2): Loading from cache
- Installing asm89/stack-cors (1.1.0): Loading from cache
- Installing drupal/core (8.4.0): Loading from cache
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
[ErrorException]
proc_open(): fork failed - **Cannot allocate memory**
Marre de Composer !
Pourquoi ça bouffe autant de ram pour donwloader des fichiers source PHP ?
Merci. Didier
Si ça peut aider, J'ai réussi à ajouter des modules via composer en stoppant les services apache et mysql:
sudo systemctl stop apache2.service
sudo systemctl stop mysql.service
un peu radicale, mais j'ai pu donwloader mes modules qui me manquaient...
composer require drupal/robotstxt
composer require drupal/backup_migrate
puis redémarrage des services:
sudo systemctl start apache2.service
sudo systemctl start mysql.service
Bonne astuce, merci. Mais effectivement on se demande pourquoi Composer a besoin d'autant de mémoire. Il cache les fichiers ou quoi? Si oui, pour un téléchargement one shot on voit pas bien à quoi ça sert.
oui, intéressant pour un VPS par exemple.
Mais avec OVH Cloud Web, on n'a pas la possibilité de faire un "stop apache" ...
;-)
C'est une très bonne question !
Je me demande aussi pourquoi Composer à besoin de tant de mémoire.
Composer avec drupal "tout seul" ça semble aller...
mais si tu installes un projet plus complet, du genre :
`composer create-project drupal-composer/drupal-project:8.x-dev my_site_name_dir --stability dev --no-interaction`
alors, là, ça bouffe de la RAM ...
Bonjour,
je viens de lire vos posts parce que je bute sur le même problème en essayant d'installer "opigno-composer". Je suis effectivement passé en hébergement Pro pour avoir le ssh parce que je n'arrive pas à obtenir une installation correcte en sftp avec FileZilla comme je l'ai toujours fait.
J'espère que, depuis le mois de mars, vous avez trouvé une solution et, dans ce cas, pourriez-vous m'aider à ce propos ?
Amicalement,
Olivier
quelle commande pose souci?
dans un autre sujet, c'est expliqué, ajoute un truc du genre
```text
php -d memory_limit=1G composer ...
```
à extrapoler, moi j'utilise ça pour un autre packager