2017-08-02 187 views
0

我有一个Windows实例,其中我正在运行一个Windows Docker容器。在实例本身,我成功执行berks vendor/install,没有任何问题。然而,在该机器上运行的Windows泊坞窗容器不起作用,并引发超时错误。 错误是不够清楚,所以我决定执行librarian-chef install并获得更多的输出。看起来有什么与SSL连接有关。 在过去几天的长时间研究之后,我尝试了几件事情,但仍然得到相同的错误。运行berks安装时发生错误

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.

我将不胜感激,如果有人可以帮助这里。 在此先感谢

+0

请包括实际的错误信息。同时你也不会同时使用Berks和Librarian,所以这可能是一个红鲱鱼。 – coderanger

+0

我不是在同一时间使用Berks和图书管理员,因为我解释Berks日志不够清晰,所以我跑图书管理员厨师,看我是否可以得到一个高级错误日志,我得到了。伯克斯和图书管理员是不同的工具,但最终他们接受相同的(连接到超市或任何地方,并下载所需的食谱)。 –

+0

他们使用完全无关的配置文件(Berksfile vs Cheffile),所以你不能只运行一个或另一个。 – coderanger

回答

0

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

Slava:我真心希望这是同一类问题;我只是不想重复这个问题;请让我知道,我可以创建一个不同的项目。

当我得到这个问题,该错误信息是:在我的情况

>>>>>> ------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代理,以便正确设置。

+0

卡洛斯,感谢分享,但不幸的是,它从任何地方都不适合我。 –

+0

对不起,斯拉瓦。一个问题:你究竟做了什么来得到这个错误?你是否登录容器并直接在命令行上运行'berks vendor/install'? –

+0

另外:你在最初的问题中分享的信息后没有得到更多信息吗?就我而言,我得到了“例外”,表明该问题是DNS问题,这有助于我进一步探索。您提供的信息似乎是由更深层次的问题引起的。在出现错误的情况下,我有限的经验一直存在SSL配置问题。 –