Ich habe ein Projekt auf CircleCI, das irgendwann rot wird (aufgrund eines Fehlers bei der Installation von dredd). Momentan kann das selbe genaue Projekt (gleicher Code, selbe circle.yml) fehlschlagen oder zufällig erfolgreich sein.npm install -g dredd @ stable schlägt auf CircleCI aufgrund von npm ERR fehl! code ECONNRESET
Das Scheitern ist immer in der Phase ‚npm -g dredd @ stabil install‘ mit dem folgenden Fehler, die sich mehrmals wiederholt und versagt schließlich die Build:
make: Leaving directory `/opt/circleci/nodejs/v4.2.6/lib/node_modules/dredd/node_modules/dredd-transactions/node_modules/fury-adapter-apib-parser/node_modules/drafter/node_modules/protagonist/build' npm ERR! Linux 3.13.0-117-generic npm ERR! argv "/opt/circleci/nodejs/v4.2.6/bin/node" "/opt/circleci/nodejs/v4.2.6/bin/npm" "install" "-g" "[email protected]" npm ERR! node v4.2.6 npm ERR! npm v2.14.12 npm ERR! code ECONNRESET npm ERR! errno ECONNRESET npm ERR! syscall read npm ERR! network read ECONNRESET npm ERR! network This is most likely not a problem with npm itself npm ERR! network and is related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config'
Wenn ich versuche, die erneut ausführen baue es mehrmals, es wird irgendwann gelingen (grün). Die dredd Installation zeigt dann etwa wie folgt auf:
make: Leaving directory `/opt/circleci/nodejs/v4.2.6/lib/node_modules/dredd/node_modules/dredd-transactions/node_modules/fury-adapter-apib-parser/node_modules/drafter/node_modules/protagonist/build' /opt/circleci/nodejs/v4.2.6/bin/dredd -> /opt/circleci/nodejs/v4.2.6/lib/node_modules/dredd/bin/dredd [email protected] /opt/circleci/nodejs/v4.2.6/lib/node_modules/dredd ├── [email protected] ├── [email protected] ├── [email protected]
etc‘, im Grunde dredd der erfolgreichen Installation und Bewegen auf den Build zu testen.
Da es nach dem Zufallsprinzip zu scheitern scheint, glaube ich nicht, dass der Proxy etwas damit zu tun hat. Hier ist die circle.yml Datei als Referenz:
machine: environment: APIARY_API_KEY: "123456789ab12cd1234a1a1a123a123a" ruby: version: 2.3.1 dependencies: pre: - npm install -g [email protected] - gem install apiaryio - pip install dredd_hooks database: override: - bundle exec rake db:create db:schema:load db:seed test: pre: - apiary fetch --api-name=ourAPIName --output=api-description.yml - dredd
Jede Hilfe sehr willkommen sein würde.
Es sieht aus wie einige Verbindungsprobleme mit der NPM-Registrierung. Ich würde den CircleCI-Support kontaktieren, um das Problem zu lösen. –
Haben Sie versucht, Garn zu sehen, ob das mit der Stabilität des Aufbaus hilft? – FelicianoTech