gpt4 book ai didi

ruby-on-rails - 亚马逊 AWS - 致命 : could not read Username for 'https://github.com' : No such device or address

转载 作者:行者123 更新时间:2023-12-04 06:24:26 25 4
gpt4 key购买 nike

我正在尝试使用 AWS 实例部署 rails 3 应用程序。对于部署,我使用 opsworks 服务并访问私有(private) github 存储库进行部署。启动实例时,出现以下错误。

[2015-03-10T04:34:32+00:00] INFO: Running queued delayed notifications before re-raising exception
[2015-03-10T04:34:32+00:00] ERROR: Running exception handlers
[2015-03-10T04:34:32+00:00] ERROR: Exception handlers complete
[2015-03-10T04:34:32+00:00] FATAL: Stacktrace dumped to /var/lib/aws/opsworks/cache.stage1/chef-stacktrace.out
[2015-03-10T04:34:32+00:00] ERROR: git[Download Custom Cookbooks] (opsworks_custom_cookbooks::checkout line 29) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '128'
---- Begin output of git ls-remote "https://github.com/user_name/repository.git" HEAD ----
STDOUT:
STDERR: fatal: could not read Username for 'https://github.com': No such device or address
---- End output of git ls-remote "https://github.com/user_name/repository.git" HEAD ----
Ran git ls-remote "https://github.com/user_name/repository.git" HEAD returned 128
[2015-03-10T04:34:32+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

请帮忙。

最佳答案

我的解决方案是在 OpsWorks 堆栈中编辑 App Repository URL。将其更改为:

https://github.com/user_name/repository.git



git@github.com:user_name/repository.git

关于ruby-on-rails - 亚马逊 AWS - 致命 : could not read Username for 'https://github.com' : No such device or address,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28956389/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com