Die HTTP-Anforderung ist bei der Bower-Eingabe der Winkelkarten-Eingabe für das Jenkins-Build-Skript fehlgeschlagen

499
JonyD

Beim Ausführen von Bower-Skript wird ein Fehler angezeigt, um ein Frontend in eckig zu erstellen:

bower angle-ui-utils # bower ECMDERR Fehler beim Ausführen von "git ls-remote --tags --heads https://github.com/angular-ui/ui-utils.git ", Beendigungscode von Fehler # 128: while Zugriff auf https://github.com/angular-ui/ui-utils.git/info/refs fatal: HTTP-Anforderung fehlgeschlagen

Der vorherige Link lautet:

"Aktualisieren Sie Ihren Git-Client. GitHub.com unterstützt Git nicht mehr über Dumb-http: https://github.com/blog/809-git-dumb-http-transport-to-be-turned-off-in-90 -Tage "

Es scheint also, als hätte mein Rechner eine alte Version des Git-Clients ... aber ich habe gerade ein Update gemacht (Yum-Update):

  • Git-Client auf die aktuellste Version (1.7.1-9)
  • jenkins auf die aktuell letzte wöchentliche Version (2.109).

und der gleiche Fehler tritt immer noch auf. Mehr sollte es nicht passieren, weil der Github-Link oben sagt:

"Ab 7. Juni 2011 wird GitHub das Abrufen über den" dummen "HTTP-Transportmechanismus von Git nicht mehr unterstützen. Dies wirkt sich nicht auf Sie aus, wenn Sie eine git-Version vor v1.6.6 ausführen und über eine http-Remote-URL abrufen."

und meine git-Client-Version (1.7.x) ist höher als das erforderliche Minimum (1.6.6). Ich denke, das kann nicht das Problem sein.

Hat npm oder bower einen internen git-Client, der veraltet sein könnte?

Hinweise zur Behebung dieses Problems sind sehr willkommen. Vielen Dank

Dies ist ein Teil des Jenkins-Buildprotokolls:

+ sudo -E npm update + bower install bower angular-ui-utils extra-resolution Unnecessary resolution: angular-ui-utils#bower + bower update bower angular-card-input#* not-cached https://github.com/OutlawAndy/angular-card-input.git#* bower angular-card-input#* resolve https://github.com/OutlawAndy/angular-card-input.git#* bower angular-ui-utils#bower not-cached https://github.com/angular-ui/ui-utils.git#bower bower angular-ui-utils#bower resolve https://github.com/angular-ui/ui-utils.git#bower bower angular#1.4.8 cached https://github.com/angular/bower-angular.git#1.4.8 bower angular#1.4.8 validate 1.4.8 against https://github.com/angular/bower-angular.git#1.4.8 bower angular-sanitize#1.4.8 cached https://github.com/angular/bower-angular-sanitize.git#1.4.8 bower angular-sanitize#1.4.8 validate 1.4.8 against https://github.com/angular/bower-angular-sanitize.git#1.4.8 bower font-awesome#~4.2.0 cached https://github.com/FortAwesome/Font-Awesome.git#4.2.0 bower font-awesome#~4.2.0 validate 4.2.0 against https://github.com/FortAwesome/Font-Awesome.git#~4.2.0 bower json3#~3.3.1 cached https://github.com/bestiejs/json3.git#3.3.2 bower json3#~3.3.1 validate 3.3.2 against https://github.com/bestiejs/json3.git#~3.3.1 bower angular-resource#1.4.8 cached https://github.com/angular/bower-angular-resource.git#1.4.8 bower angular-resource#1.4.8 validate 1.4.8 against https://github.com/angular/bower-angular-resource.git#1.4.8 bower es5-shim#~4.0.3 cached https://github.com/es-shims/es5-shim.git#4.0.6 bower es5-shim#~4.0.3 validate 4.0.6 against https://github.com/es-shims/es5-shim.git#~4.0.3 bower angular-bootstrap-show-errors#* cached https://github.com/paulyoder/angular-bootstrap-show-errors.git#2.3.0 bower angular-bootstrap-show-errors#* validate 2.3.0 against https://github.com/paulyoder/angular-bootstrap-show-errors.git#* bower angular-ui-router#~0.2.11 cached https://github.com/angular-ui/angular-ui-router-bower.git#0.2.18 bower angular-ui-router#~0.2.11 validate 0.2.18 against https://github.com/angular-ui/angular-ui-router-bower.git#~0.2.11 bower ngstorage#~0.3.6 cached https://github.com/gsklee/ngStorage.git#0.3.11 bower ngstorage#~0.3.6 validate 0.3.11 against https://github.com/gsklee/ngStorage.git#~0.3.6 bower angular-translate-handler-log#~2.8.0 cached https://github.com/PascalPrecht/bower-angular-translate-handler-log.git#2.8.1 bower angular-translate-handler-log#~2.8.0 validate 2.8.1 against https://github.com/PascalPrecht/bower-angular-translate-handler-log.git#~2.8.0 bower angular-translate#~2.8.0 cached https://github.com/PascalPrecht/bower-angular-translate.git#2.8.1 bower angular-translate#~2.8.0 validate 2.8.1 against https://github.com/PascalPrecht/bower-angular-translate.git#~2.8.0 bower famfamfam-flags-sprite#~1.0.0 cached https://github.com/atelierspierrot/famfamfam-flags-sprite.git#1.0.0 bower famfamfam-flags-sprite#~1.0.0 validate 1.0.0 against https://github.com/atelierspierrot/famfamfam-flags-sprite.git#~1.0.0 bower angular-bootstrap#~0.11.2 cached https://github.com/angular-ui/bootstrap-bower.git#0.11.2 bower angular-bootstrap#~0.11.2 validate 0.11.2 against https://github.com/angular-ui/bootstrap-bower.git#~0.11.2 bower moment-timezone#~0.4.1 cached https://github.com/moment/moment-timezone.git#0.4.1 bower moment-timezone#~0.4.1 validate 0.4.1 against https://github.com/moment/moment-timezone.git#~0.4.1 bower angular-moment#~0.9.0 cached https://github.com/urish/angular-moment.git#0.9.2 bower angular-moment#~0.9.0 validate 0.9.2 against https://github.com/urish/angular-moment.git#~0.9.0 bower moment#~2.9.0 cached https://github.com/moment/moment.git#2.9.0 bower moment#~2.9.0 validate 2.9.0 against https://github.com/moment/moment.git#~2.9.0 bower jstzdetect#~1.0.6 cached https://github.com/HenningM/jstimezonedetect.git#1.0.6 bower jstzdetect#~1.0.6 validate 1.0.6 against https://github.com/HenningM/jstimezonedetect.git#~1.0.6 bower angular-messages#1.4.8 cached https://github.com/angular/bower-angular-messages.git#1.4.8 bower angular-messages#1.4.8 validate 1.4.8 against https://github.com/angular/bower-angular-messages.git#1.4.8 bower angular-mocks#1.4.8 cached https://github.com/angular/bower-angular-mocks.git#1.4.8 bower angular-mocks#1.4.8 validate 1.4.8 against https://github.com/angular/bower-angular-mocks.git#1.4.8 bower angular-scenario#1.4.8 cached https://github.com/angular/bower-angular-scenario.git#1.4.8 bower angular-scenario#1.4.8 validate 1.4.8 against https://github.com/angular/bower-angular-scenario.git#1.4.8 bower angular-ui-utils#bower ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/angular-ui/ui-utils.git", exit code of #128 error: while accessing https://github.com/angular-ui/ui-utils.git/info/refs fatal: HTTP request failed  Additional error details: error: while accessing https://github.com/angular-ui/ui-utils.git/info/refs  fatal: HTTP request failed Build step 'Execute shell' marked build as failure [WARNINGS] Skipping publisher since build result is FAILURE Archiving artifacts Finished: FAILURE 
1
Ich sage oben "Git-Client auf die aktuellste Version (1.7.1-9)" - das ist die neueste Version in meinem CentOs-Repo. JonyD vor 6 Jahren 0

2 Antworten auf die Frage

1
IT Gumby

Wir hatten gerade das gleiche Problem auf unserem Jenkins-Server. Wir haben es versucht:

  • Aktualisierung von git
  • git config --global url."https://".insteadOf git://
  • .bowerrc "Abkürzungsauflöser" -Muster

Nichts hat geklappt.

Was scheinbar gelöst wurde, war die Aktualisierung von nss libcurl und curl - im Grunde die SSL-Unterstützungsbibliotheken in der (alten) Jenkins-Box. Die Theorie steht auch im Zusammenhang mit der neuen DDOS-Auflösung von GitHub, die SSL-Updates auf Client-Seite erfordert.

1
S.Fuller

Wir hatten vor kurzem ein ähnliches Problem. Wir haben das Problem behoben, indem sichergestellt wurde, dass unsere Support-Bibliotheken (nss, libcurl, openssl usw.) aktualisiert wurden und dann auf die neueste Version von git aktualisiert wurden. Wir haben git aus dem Quellcode zusammengestellt, da das Paket aus dem von uns verwendeten Repo einige Versionen hinter sich hatte.