无法在厨师运行时安装厨师宝石

问题描述 投票:0回答:1

我正在使用以下版本的厨师环境

操作系统和版本详细信息如下:

  • Chef Server-RHEL7
  • Chef工作站-Windows 7 Professional
  • 主节点:Windows 2016 Server数据中心
  • Chef开发工具包版本:3.3.23
  • 首席客户端版本:14.14.25
  • berks版本:7.0.6
  • 厨房版本:1.23.2
  • 检查版本:2.2.112

我在初次运行时安装chef gem所配置的节点上运行chef-client失败,并出现以下错误。

检查后,它无法连接到ruby站点以安装gem,但是我的服务器具有有效的Internet连接。我从Bundle Install Not Working]中获得了这些详细信息

安装食谱宝石:

Running handlers:
[2019-10-17T19:09:35+08:00] ERROR: Running exception handlers
Running handlers complete
[2019-10-17T19:09:35+08:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 05 minutes 13 seconds
[2019-10-17T19:09:35+08:00] INFO: Sending resource update report (run-id: 942e7eaa-14c0-487d-8a6c-6d96a49c99ff)
[2019-10-17T19:09:36+08:00] FATAL: Stacktrace dumped to c:/chef/cache/chef-stacktrace.out
[2019-10-17T19:09:36+08:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2019-10-17T19:09:36+08:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received
 '17'
---- Begin output of bundle install ----
STDOUT: Fetching source index from https://www.rubygems.org/

Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://www.rubygems.org/
Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from https://www.rubygems.org/
Retrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch specs from https://www.rubygems.org/
Could not fetch specs from https://www.rubygems.org/
STDERR:
---- End output of bundle install ----
Ran bundle install returned 17 

可以是DNS问题吗?我有来自服务器的有效互联网连接,可以手动登陆红宝石网站。

有没有办法我可以手动安装ruby / cookbook gem?

我正在使用以下版本的OS进行厨师环境,并且版本详细信息如下:Chef Server-RHEL7 Chef Workstation-Windows 7 Professional Chef节点:Windows 2016 Server ...

ruby ruby-on-rails-3 chef chef-recipe
1个回答
0
投票

可以是DNS问题吗?我有来自服务器的有效互联网连接,可以手动登陆红宝石网站。

© www.soinside.com 2019 - 2024. All rights reserved.