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 ?![]()
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
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.<br />Insufficient memory<br /><br />Related errors include :<br /><br />Fatal error: Allowed memory size<br />Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed -<br /><br />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:<br />php -d memory_limit=-1 [composer-location] require drupal/module_name -vvv<br /><br />Concrete Examples :<br />php -d memory_limit=-1 /usr/local/bin/composer require "drupal/address ~8.1" -vvv<br />php -d memory_limit=-1 /usr/local/bin/composer.phar require "drupal/address ~8.1" -vvv<br />
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…" ![]()
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
Bonjour,<br /><br />Pouvez-vous me donner votre NIC OVH afin que je regarde plus en détails ? <br /><br />Pour information, j'ai fait une installation complète de drupal 8.4 sans rencontrer de problème.<br /><br />Ci-dessous les traces de mon installation : <br /><br /><br /> ~$ curl -o drupal-8.4.0.tar.gz https://ftp.drupal.org/files/projects/drupal-8.4.0.tar.gz<br /> ~$ tar xzf drupal-8.4.0.tar.gz --strip 1 -C www/<br /> ~$ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"<br /> ~$ php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"<br /> Installer verified<br /> ~$ php composer-setup.php<br /> All settings correct for using Composer<br /> Downloading...<br /><br /> Composer (version 1.5.2) successfully installed to: /home/xxxxxx/composer.phar<br /> Use it: php composer.phar<br /><br /> ~$ php -r "unlink('composer-setup.php');"<br /> ~$ cd www<br /> ~/www$ ~/composer.phar --profile install<br /> [7.4MB/0.01s] Loading composer repositories with package information<br /> [7.8MB/0.01s] Installing dependencies (including require-dev) from lock fileow<br /> [9.0MB/0.03s] Package operations: 31 installs, 0 updates, 0 removals<br /> [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] <br /> [9.4MB/1.10s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [9.4MB/2.11s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [9.4MB/3.35s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [9.5MB/4.21s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [9.5MB/4.97s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [9.6MB/5.82s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [9.6MB/6.55s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [9.8MB/7.86s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [9.9MB/8.92s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [9.9MB/10.02s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [9.9MB/11.10s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [10.0MB/12.35s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [10.0MB/13.43s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [10.1MB/15.31s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [10.1MB/16.18s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [10.2MB/17.04s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [10.2MB/19.26s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [10.3MB/20.05s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [10.3MB/20.88s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [10.4MB/22.13s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [10.4MB/23.02s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [10.5MB/23.91s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [10.5MB/24.73s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [10.6MB/25.63s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [10.6MB/27.02s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [10.7MB/28.02s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [10.8MB/29.62s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [10.8MB/30.91s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [10.9MB/32.00s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [11.0MB/33.23s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [11.1MB/34.31s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [10.0MB/34.35s] behat/mink suggests installing behat/mink-selenium2-driver (slow, but JS-enabled driver for any app (requires Selenium2))<br /> [10.0MB/34.35s] behat/mink suggests installing behat/mink-zombie-driver (fast and JS-enabled headless driver for any app (requires node.js))<br /> [10.0MB/34.35s] phpdocumentor/reflection-docblock suggests installing dflydev/markdown (~1.0)<br /> [10.0MB/34.35s] phpdocumentor/reflection-docblock suggests installing erusev/parsedown (~1.0)<br /> [10.0MB/34.35s] sebastian/global-state suggests installing ext-uopz (*)<br /> [10.0MB/34.35s] phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)<br /> [10.0MB/34.35s] phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)<br /> [9.9MB/34.35s] Generating autoload files<br /> [10.0MB/34.52s] > Drupal\Core\Composer\Composer::preAutoloadDump<br /> [10.6MB/34.77s] > Drupal\Core\Composer\Composer::ensureHtaccess<br /> [10.2MB/34.77s] Memory usage: 10.23MB (peak: 11.68MB), time: 34.77s<br /><br /><br /><br /> ### configuration via le navigateur (Francais / installation standard / BDD MySQL )<br /><br /> ### Une fois Drupal installé:<br /><br /> ~/www$ ~/composer.phar --profile require drupal/pathauto<br /> [110.3MB/7.60s] Using version ^1.0 for drupal/pathauto<br /> [110.4MB/7.60s] ./composer.json has been updated<br /> [112.3MB/7.80s] Loading composer repositories with package information<br /> [112.7MB/8.01s] Updating dependencies (including require-dev)<br /> [395.1MB/23.80s] Package operations: 3 installs, 0 updates, 0 removals<br /> [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] <br /> [395.5MB/24.36s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [395.6MB/24.73s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [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] <br /> [395.6MB/25.07s] > Drupal\Core\Composer\Composer::vendorTestCodeCleanup<br /> [318.5MB/25.98s] Writing lock file<br /> [318.5MB/25.98s] Generating autoload files<br /> [318.6MB/26.11s] > Drupal\Core\Composer\Composer::preAutoloadDump<br /> [319.1MB/26.38s] > Drupal\Core\Composer\Composer::ensureHtaccess<br /> [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