OVH Community, votre nouvel espace communautaire.

Utilisation de dépots dans composer bloqué par restriction réseau


Ludo.H
09/05/2016, 08h47
Bonjour,

J'ai relancé l'équipe.

Cdt,

romainfl
06/05/2016, 17h37
Des nouvelles?

Ludo.H
28/04/2016, 09h27
Bonjour,

J'ai transmis à Vincent.

Cdt,

romainfl
27/04/2016, 19h30
Citation Envoyé par vcasse
Bonjour Romain,

Nous avons ouvert les dépots qui manquaient pour drupal 7, drupal8 et drupal-dev.

S'il y a encore des soucis, n'hésites pas !

Cordialement,
Vincent
J'ai toujours https://packagist.drupal-composer.org/packages.json qui est inaccessible ...
Le log avec un peu plus de détail :
Code:
ovh_user_name@ssh1.60gp.ha.ovh.net ~/site/www $ composer --version
Composer version 1.0.2 2016-04-21 12:30:18
ovh_user_name@ssh1.60gp.ha.ovh.net ~/site/www $ composer create-project drupal-composer/drupal-project:7.x-dev . --stability dev --no-interaction -vvv
Running 1.0.2 (2016-04-21 12:30:18) with PHP 5.6.20 on Linux / 3.14.51-grsec-hosting-3.14-grsec-ipv6-64-vps
Checking CA file /etc/ssl/certs/ca-certificates.crt
Downloading https://packagist.org/packages.json
Writing /homez/ovh_user_name/.composer/cache/repo/https---packagist.org/packages.json into cache
Downloading http://packagist.org/p/provider-2013%24a8a7ac84d705e1e8ffbad3759fb15e674725872fbb1516bc5b9397554b3c5df9.json
Writing /homez/ovh_user_name/.composer/cache/repo/https---packagist.org/p-provider-2013.json into cache
Downloading http://packagist.org/p/provider-2014%241fa691e2a02fa1f44f316b8b88518dc0a3d3ecb6a8707636eb40b213296e7c14.json
Writing /homez/ovh_user_name/.composer/cache/repo/https---packagist.org/p-provider-2014.json into cache
Downloading http://packagist.org/p/provider-2015%240be549968231a582818fba83566d9ffbea63da3a0e63ed37838d693de84e919f.json
Writing /homez/ovh_user_name/.composer/cache/repo/https---packagist.org/p-provider-2015.json into cache
Downloading http://packagist.org/p/provider-2015-07%248f5617ed52888f24a9d2d3cf805bfa44efde30389cc4fbec020d96e44a8011a5.json
Writing /homez/ovh_user_name/.composer/cache/repo/https---packagist.org/p-provider-2015-07.json into cache
Downloading http://packagist.org/p/provider-2015-10%2440d09620201c93bb8392d643a9eb4d2c8c685e81109d645bccf423165213292f.json
Writing /homez/ovh_user_name/.composer/cache/repo/https---packagist.org/p-provider-2015-10.json into cache
Downloading http://packagist.org/p/provider-2016-01%2468bf1a8e1888217a4d2beed6441f93b7cb6da3e71b0577f251149936997962f5.json
Writing /homez/ovh_user_name/.composer/cache/repo/https---packagist.org/p-provider-2016-01.json into cache
Downloading http://packagist.org/p/provider-2016-04%245c178f37b5f9386790654eb9d7dafdca8404dc5b2cc73b10c62a549fa1a2f58a.json
Writing /homez/ovh_user_name/.composer/cache/repo/https---packagist.org/p-provider-2016-04.json into cache
Downloading http://packagist.org/p/provider-archived%241b17502997534b65bf7bd1ddbc8d1527da4dc7d5ecbcb28430b55905ceba85bd.json
Writing /homez/ovh_user_name/.composer/cache/repo/https---packagist.org/p-provider-archived.json into cache
Downloading http://packagist.org/p/provider-latest%2430abaadfcaf9c9f0af6e5bf3366ea783147b840671d933384e910cc8222522e5.json
Writing /homez/ovh_user_name/.composer/cache/repo/https---packagist.org/p-provider-latest.json into cache
Downloading http://packagist.org/p/drupal-composer/drupal-project%24a58ccb6a9f101e31edd769a0aa56867cf57be8abb05c05bba982c5dc2bf81ab2.json
Writing /homez/ovh_user_name/.composer/cache/repo/https---packagist.org/provider-drupal-composer$drupal-project.json into cache
Installing drupal-composer/drupal-project (7.x-dev 9b60927038e9df97db11f2a1980102a9e76457c6)
  - Installing drupal-composer/drupal-project (7.x-dev 9b60927)
    Cloning 9b60927038e9df97db11f2a1980102a9e76457c6
Executing command (CWD): git clone --no-checkout 'https://github.com/drupal-composer/drupal-project.git' './' && cd './' && git remote add composer 'https://github.com/drupal-composer/drupal-project.git' && git fetch composer
Executing command (./): git remote set-url --push origin 'git@github.com:drupal-composer/drupal-project.git'
Executing command (./): git branch -r
Executing command (./): git checkout '7' --
Executing command (./): git checkout -B '7' 'composer/7' --
Executing command (./): git checkout '9b60927038e9df97db11f2a1980102a9e76457c6' -- && git reset --hard '9b60927038e9df97db11f2a1980102a9e76457c6' --

Created project in .
Reading ./composer.json
Loading config file /homez/ovh_user_name/.composer/config.json
Loading config file /homez/ovh_user_name/.composer/auth.json
Loading config file ./composer.json
Failed to initialize global composer: Composer could not find the config file: /homez/ovh_user_name/.composer/composer.json
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
Loading composer repositories with package information
Downloading https://packagist.drupal-composer.org/packages.json
Downloading https://packagist.drupal-composer.org/packages.json
Downloading https://packagist.drupal-composer.org/packages.json
Reading ./composer.json
Loading config file /homez/ovh_user_name/.composer/config.json
Loading config file /homez/ovh_user_name/.composer/auth.json
Loading config file ./composer.json
Failed to initialize global composer: Composer could not find the config file: /homez/ovh_user_name/.composer/composer.json
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section

                                                                                                                                         
  [Composer\Downloader\TransportException]                                                                                               
  The "https://packagist.drupal-composer.org/packages.json" file could not be downloaded: failed to open stream: Network is unreachable  
                                                                                                                                         

Exception trace:
 () at phar:///home/ovh_user_name/bin/composer.phar/src/Composer/Util/RemoteFilesystem.php:457
 Composer\Util\RemoteFilesystem->get() at phar:///home/ovh_user_name/bin/composer.phar/src/Composer/Util/RemoteFilesystem.php:99
 Composer\Util\RemoteFilesystem->getContents() at phar:///home/ovh_user_name/bin/composer.phar/src/Composer/Repository/ComposerRepository.php:645
 Composer\Repository\ComposerRepository->fetchFile() at phar:///home/ovh_user_name/bin/composer.phar/src/Composer/Repository/ComposerRepository.php:462
 Composer\Repository\ComposerRepository->loadRootServerFile() at phar:///home/ovh_user_name/bin/composer.phar/src/Composer/Repository/ComposerRepository.php:256
 Composer\Repository\ComposerRepository->hasProviders() at phar:///home/ovh_user_name/bin/composer.phar/src/Composer/DependencyResolver/Pool.php:99
 Composer\DependencyResolver\Pool->addRepository() at phar:///home/ovh_user_name/bin/composer.phar/src/Composer/Installer.php:402
 Composer\Installer->doInstall() at phar:///home/ovh_user_name/bin/composer.phar/src/Composer/Installer.php:228
 Composer\Installer->run() at phar:///home/ovh_user_name/bin/composer.phar/src/Composer/Command/CreateProjectCommand.php:187
 Composer\Command\CreateProjectCommand->installProject() at phar:///home/ovh_user_name/bin/composer.phar/src/Composer/Command/CreateProjectCommand.php:142
 Composer\Command\CreateProjectCommand->execute() at phar:///home/ovh_user_name/bin/composer.phar/vendor/symfony/console/Command/Command.php:259
 Symfony\Component\Console\Command\Command->run() at phar:///home/ovh_user_name/bin/composer.phar/vendor/symfony/console/Application.php:844
 Symfony\Component\Console\Application->doRunCommand() at phar:///home/ovh_user_name/bin/composer.phar/vendor/symfony/console/Application.php:192
 Symfony\Component\Console\Application->doRun() at phar:///home/ovh_user_name/bin/composer.phar/src/Composer/Console/Application.php:189
 Composer\Console\Application->doRun() at phar:///home/ovh_user_name/bin/composer.phar/vendor/symfony/console/Application.php:123
 Symfony\Component\Console\Application->run() at phar:///home/ovh_user_name/bin/composer.phar/src/Composer/Console/Application.php:99
 Composer\Console\Application->run() at phar:///home/ovh_user_name/bin/composer.phar/bin/composer:43
 require() at /home/ovh_user_name/bin/composer.phar:24

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [--] [] [] []

ovh_user_name@ssh1.60gp.ha.ovh.net ~/site/www $

vcasse
19/04/2016, 15h45
Bonjour Romain,

Nous avons ouvert les dépots qui manquaient pour drupal 7, drupal8 et drupal-dev.

S'il y a encore des soucis, n'hésites pas !

Cordialement,
Vincent

Ludo.H
18/04/2016, 09h21
Bonjour,

J'ai forwardé la demande pour faire ouvrir les flux qui vont bien.

Cdt,

romainfl
17/04/2016, 18h58
Toujours pas, même erreur :
Code:
[Composer\Downloader\TransportException]                                                                                               
The "https://packagist.drupal-composer.org/packages.json" file could not be downloaded: failed to open stream: Network is unreachable
Pour essayer :
drupal 7 :
Code:
composer create-project drupal-composer/drupal-project:7.x-dev www --stability dev --no-interaction
drupal 8 :
Code:
composer create-project drupal-composer/drupal-project:8.x-dev www --stability dev --no-interaction
Plus d'informations :
Documentation sur drupal.org
drupal-composer.org



Petite remarque, si on veut installer drupal sans passer par le starterkit drupal-composer, la commande avec le package drupal/drupal essaie de se connecter à git.drupal.org qui lui aussi est innaccessible :

Code:
composer create-project drupal/drupal www 8.0.*@dev

Installing drupal/drupal (8.0.x-dev 5c4e2e76a1c7972c4b03496ab51846dad63aa762)
  - Installing drupal/drupal (8.0.x-dev 5c4e2e7)
    Cloning 5c4e2e76a1c7972c4b03496ab51846dad63aa762
                                                                               
[RuntimeException]                                                           
    Failed to execute git clone --no-checkout 'https://git.drupal.org/project/d  
  rupal.git' 'www/' && cd 'www/' && git remote add composer 'https://git.drup  
  al.org/project/drupal.git' && git fetch composer                             
  error: Failed to connect to 140.211.10.43: Network is unreachable while acc  
  essing https://git.drupal.org/project/drupal.git/info/refs                   
  fatal: HTTP request failed
Plus d'informations :
Packagist.org - drupal/drupal

vcasse
11/04/2016, 15h06
Bonjour,

Ca devrait maintenant être bon

Cordialement,
Vincent

vcasse
08/04/2016, 17h57
Bonjour,

Le patch est tout chaud. On le déploie sur nos infrastructures en début de semaine prochaine.

Bon week end
Cordialement,
Vincent

romainfl
07/04/2016, 17h11
Code:
    "repositories": [
        {
            "type": "composer",
            "url": "https://packagist.drupal-composer.org"
        }
    ],
composer.json pour drupal 8, et 7.x/composer.json

Merci de votre réponse rapide !

vcasse
07/04/2016, 16h49
Bonjour Romainfl,

Les principaux repository sont actuellement ouverts en HTTP afin de récupérer les sources. Il est possible qu'il en manque certain.
Afin d'être sur, pourriez vous m'indiquer le fichier composer.json que vous utilisez, afin d'ouvrir tous les repository nécessaires ?

Cordialement,
Vincent

romainfl
07/04/2016, 16h37
Bonjour,
Il est actuellement possible d'utiliser composer uniquement avec le dépôt officiel packagist.org...

Serait-il possible d'ajouter le dépôt de drupal : packagist.drupal-composer.org ?
Car pour l'instant :
Code:
loading composer repositories with package information
                                                                                      
  [Composer\Downloader\TransportException]                                                                                          
  The "https://packagist.drupal-composer.org/packages.json" file could not be downloaded: failed to open stream: Network is unreachable
Ce serait quand meme sympatique maintenant qu'on a enfin composer de pouvoir utiliser drupal-composer/drupal-project ...