2017-08-02 190 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配置問題。 –