【发布时间】: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