A solicitação HTTP falhou na instalação do cartão de entrada angular do bower no script de construção do jenkins

1

Estou recebendo um erro ao executar o script bower para criar um front-end angular:

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

O link anterior afirma:

"Please upgrade your git client. GitHub.com no longer supports git over dumb-http: https://github.com/blog/809-git-dumb-http-transport-to-be-turned-off-in-90-days"

Então, parece que minha máquina tem uma versão antiga do cliente Git ... mas Acabei de atualizar (yum update):

  • Git cliente para a última versão atual (1.7.1-9)
  • jenkins para a versão mais recente do momento (2.109).

e o mesmo erro ainda acontece. Mais, isso não deve acontecer porque o link do github acima diz:

"Starting June 7th, 2011, GitHub will no longer support fetching over Git's "dumb" HTTP transport mechanism. This won't effect you unless you're running a git version prior to v1.6.6 and fetch using a http remote URL."

e minha versão do cliente git (1.7.x) é maior que o mínimo requerido (1.6.6). Então, suponho que isso não seja o problema.

O npm ou o bower tem um cliente git interno que pode estar desatualizado?

Quaisquer dicas sobre como corrigir esse problema são muito bem-vindas. Obrigado

Esta é uma parte do log de criação do jenkins:

+ 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
    
por JonyD 27.02.2018 / 17:30

2 respostas

1

Acabamos de ter o mesmo problema no nosso servidor jenkins. Nós tentamos:

  • atualizando o git
  • git config --global url."https://".insteadOf git://
  • .bowerrc "resumo abreviado" padrão

nada funcionou.

O que parecia resolver as coisas era atualizar nss libcurl e curl - basicamente as bibliotecas de suporte SSL na caixa (antiga) jenkins. Mais uma vez, a teoria está relacionada à recente resolução de DDOS do GitHub exigirá atualizações de SSL no cliente final.

    
por 13.03.2018 / 16:57
1

Tivemos um problema semelhante há pouco tempo. Nós o corrigimos certificando-nos de que nossas bibliotecas de suporte (nss, libcurl, openssl, etc) fossem atualizadas e atualizadas para a versão mais recente do git. Nós compilamos o git da fonte desde que o pacote do repo que estamos usando era algumas versões atrás.

    
por 13.03.2018 / 17:13