簡體   English   中英

git clone使用vcsrepo模塊人偶引發錯誤

[英]git clone throws error with vcsrepo module puppet

我正在關注本·派珀(Ben Piper)撰寫的關於木偶基本知識的多元教程。 在代理中安裝“ vcsrepo”模塊並下載存儲庫時,puppet代理運行會掛起。

以下是我的人偶主文件“ init.pp”文件的節選

I changed my puppetmaster init.pp file to use the ssh instead.


  `file { '/home/vagrant/.ssh/id_rsa':
  ensure   =>  'present',
  }

  vcsrepo { '/var/www/html':
  ensure    => 'present',
  provider  => 'git',
  source    => 'git@github.com:wikimedia/mediawiki.git',
  user      => 'vagrant',
  revision  => 'REL1_23',
  require   => File['/home/vagrant/.ssh/id_rsa'],

  }

  file { '/var/www/html/index.html':
  ensure   =>  'absent',
 }

 File['/var/www/html/index.html'] -> Vcsrepo['/var/www/html']`

現在拋出以下錯誤

Notice: /Stage[main]/Linux/File[/info.txt]/content: content changed '{md5}dd4735ab73567a89caba62c6607e44b5' to '{md5}e30fa7cc7448a09071a0e4d33efa5986' Notice: /Stage[main]/Mediawiki/Vcsrepo[/var/www/html]/ensure: Creating repository from present Error: Execution of 'git clone git@github.com:wikimedia/mediawiki.git /var/www/html' returned 1: Error: /Stage[main]/Mediawiki/Vcsrepo[/var/www/html]/ensure: change from absent to present failed: Execution of 'git clone git@github.com:wikimedia/mediawiki.git /var/www/html' returned 1:

我已經在github帳戶中共享了系統的公鑰

在Linux上

在執行Git命令之前,請在命令行中執行以下操作:

export GIT_TRACE_PACKET=1
export GIT_TRACE=1
export GIT_CURL_VERBOSE=1

在Windows上

在執行Git命令之前,請在命令行中執行以下操作:

set GIT_TRACE_PACKET=1
set GIT_TRACE=1
set GIT_CURL_VERBOSE=1

原因

錯誤代碼56指示CURLE_RECV_ERROR的卷曲接收錯誤,這意味着存在一些問題,阻止了在克隆過程中接收數據。 通常,這是由網絡設置,防火牆,VPN客戶端或防病毒引起的,它們在傳輸所有數據之前就終止了連接。

解決方法

切換到使用SSH執行克隆。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM