运行berks install时出错

时间:2017-08-02 12:22:17

标签: windows ssl docker chef berkshelf

我有一个Windows实例,最重要的是我正在运行一个Windows docker容器。在实例本身上,我成功执行berks vendor/install而没有任何问题。但是在该机器上运行的Windows docker容器上它不起作用并抛出超时错误。 错误不够明确,所以我决定执行librarian-chef install并获得更多输出。似乎存在与SSL连接相关的内容。 在过去几天经过长时间的研究后,我尝试了几件事,但仍然遇到同样的错误。

Resolving cookbook dependencies... Fetching 'firefox' from source at . Fetching 'firefox_test' from source at test/fixtures/cookbooks/firefox_test Fetching cookbook index from https://supermarket.chef.io... [2017-08-02T09:09:19+00:00] ERROR: Timeout connecting to https://supermarket.chef.io/universe, retry 1/5 [2017-08-02T09:14:24+00:00] ERROR: Timeout connecting to https://supermarket.chef.io/universe, retry 2/5 [2017-08-02T09:19:29+00:00] ERROR: Timeout connecting to https://supermarket.chef.io/universe, retry 3/5 [2017-08-02T09:24:34+00:00] ERROR: Timeout connecting to https://supermarket.chef.io/universe, retry 4/5 [2017-08-02T09:29:39+00:00] ERROR: Timeout connecting to https://supermarket.chef.io/universe, retry 5/5 Error retrieving universe from source: https://supermarket.chef.io * [Berkshelf::APIClient::TimeoutError] Unable to connect to: universe Using firefox (4.0.0) from source at . Using firefox_test (0.1.0) from source at test/fixtures/cookbooks/firefox_test Cookbook 'dmg' (4.0.0) not found in any of the sources! This can happen if the remote cookbook has been deleted or if the sources inside the Berksfile have changed Please run berks update dmg to resolve to a valid version.

如果有人能在这里提供帮助,我将不胜感激。 提前致谢

1 个答案:

答案 0 :(得分:0)

我有同样的错误;这只有在我登录公司网络时才会发生。当我直接上网时,没有问题;所以我怀疑这是代理服务器的问题,或者是我公司网络中的问题。

斯拉瓦:我真诚地希望这是同一个问题;我只是不想复制这个问题;请告诉我,我可以创建一个不同的项目。

当我遇到此问题时,错误消息为:

>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>>     Failed to complete #converge action: [Error connecting to https://supermarket.chef.io/universe - Failed to open TCP connection to supermarket.chef.io:443 (getaddrinfo: No address associated with hostname)] on default-centos-67
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

在我的情况下,需要正确设置Web代理。