【问题标题】:Chef error after upgrading to Amazon Linux 2016升级到 Amazon Linux 2016 后出现 Chef 错误
【发布时间】:2016-08-31 07:23:39
【问题描述】:

自从我升级到 Amazon Linux 2016 后,我收到了 Chef 错误,提示找不到存储库。我没有更改任何其他内容,在我连接到同一个存储库但没有升级操作系统的其他实例上,一切仍然正常。有什么想法吗?

Error executing action `checkout` on resource 'git[Download Custom Cookbooks]'
================================================================================


Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '128'
---- Begin output of git ls-remote "https://github.com:CompanyName/repo" master* ----
STDOUT: 
STDERR: fatal: repository 'https://github.com:CompanyName/repo/' not found
---- End output of git ls-remote "https://github.com:CompanyName/repo" master* ----
Ran git ls-remote "https://github.com:CompanyName/repo" master* returned 128

【问题讨论】:

  • 好像用错了远程URL,应该是github.com/CompanyName/repo或者git@github.com:CompanyName/repo
  • 它 def 是正确的遥控器。直到升级,它工作正常。我的另一个实例上的同一个遥控器工作正常。
  • 当我使用斜杠而不是冒号时,我也会收到一个错误,所以它定义需要冒号。
  • 暂时忘记大厨,在签出的 repo 上查看 git remote -v

标签: linux amazon-web-services chef-infra chef-recipe


【解决方案1】:

您正在混合 git 语法。您可能需要repository "https://github.com/CompanyName/repo.git",冒号用于gitssh 传输,而不是HTTP。

【讨论】:

    猜你喜欢
    • 2015-02-06
    • 1970-01-01
    • 1970-01-01
    • 2013-09-07
    • 2020-01-19
    • 2014-10-06
    • 1970-01-01
    • 2021-09-26
    • 2011-06-23
    相关资源
    最近更新 更多