vagrant provisionを成功させたい
vagrant provisionを実行すると以下のようなエラーが出てしまいます。
エラーを解消して、vagrant provisionを成功させたいです。
$ vagrant provision ==> default: Running provisioner: chef_solo... ==> default: Detected Chef (latest) is already installed ==> default: Generating chef JSON and uploading... ==> default: Running chef-solo... ==> default: [2019-03-28T14:46:28+00:00] INFO: Forking chef instance to converge... ==> default: [2019-03-28T14:46:28+00:00] WARN: ==> default: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ==> default: SSL validation of HTTPS requests is disabled. HTTPS connections are still ==> default: encrypted, but chef is not able to detect forged replies or man in the middle ==> default: attacks. ==> default: ==> default: To fix this issue add an entry like this to your configuration file: ==> default: ==> default: ``` ==> default: # Verify all HTTPS connections (recommended) ==> default: ssl_verify_mode :verify_peer ==> default: ==> default: # OR, Verify only connections to chef-server ==> default: verify_api_cert true ==> default: ``` ==> default: ==> default: To check your SSL configuration, or troubleshoot errors, you can use the ==> default: `knife ssl check` command like so: ==> default: ==> default: ``` ==> default: knife ssl check -c /tmp/vagrant-chef/solo.rb ==> default: ``` ==> default: ==> default: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ==> default: Starting Chef Client, version 11.12.2 ==> default: [2019-03-28T14:46:28+00:00] INFO: *** Chef 11.12.2 *** ==> default: [2019-03-28T14:46:28+00:00] INFO: Chef-client pid: 1718 ==> default: [2019-03-28T14:46:30+00:00] INFO: Setting the run_list to ["recipe[git]"] from CLI options ==> default: [2019-03-28T14:46:30+00:00] INFO: Run List is [recipe[git]] ==> default: [2019-03-28T14:46:30+00:00] INFO: Run List expands to [git] ==> default: [2019-03-28T14:46:30+00:00] INFO: Starting Chef Run for vagrant-61925b61 ==> default: [2019-03-28T14:46:30+00:00] INFO: Running start handlers ==> default: [2019-03-28T14:46:30+00:00] INFO: Start handlers complete. ==> default: Compiling Cookbooks... ==> default: ==> default: ================================================================================ ==> default: Recipe Compile Error in /tmp/vagrant-chef/4618c8f496a28f1b72ccd8e4151f604f/cookbooks/windows/libraries/windows_helper.rb ==> default: ================================================================================ ==> default: ==> default: ==> default: LoadError ==> default: --------- ==> default: cannot load such file -- chef/mixin/powershell_out ==> default: ==> default: ==> default: Cookbook Trace: ==> default: --------------- ==> default: /tmp/vagrant-chef/4618c8f496a28f1b72ccd8e4151f604f/cookbooks/windows/libraries/windows_helper.rb:24:in `<top (required)>' ==> default: ==> default: ==> default: Relevant File Content: ==> default: ==> default: ---------------------- ==> default: /tmp/vagrant-chef/4618c8f496a28f1b72ccd8e4151f604f/cookbooks/windows/libraries/windows_helper.rb: ==> default: ==> default: 17: # See the License for the specific language governing permissions and ==> default: 18: # limitations under the License. ==> default: 19: ==> default: 20: require 'uri' ==> default: 21: require 'Win32API' if Chef::Platform.windows? ==> default: 22: require 'chef/exceptions' ==> default: 23: require 'openssl' ==> default: 24>> require 'chef/mixin/powershell_out' ==> default: 25: require 'chef/util/path_helper' ==> default: 26: ==> default: 27: module Windows ==> default: 28: module Helper ==> default: 29: AUTO_RUN_KEY = 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run'.freeze unless defined?(AUTO_RUN_KEY) ==> default: 30: ENV_KEY = 'HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment'.freeze unless defined?(ENV_KEY) ==> default: 31: ExpandEnvironmentStrings = Win32API.new('kernel32', 'ExpandEnvironmentStrings', %w(P P L), 'L') if Chef::Platform.windows? && !defined?(ExpandEnvironmentString s) ==> default: 32: ==> default: 33: # returns windows friendly version of the provided path, ==> default: ==> default: ==> default: ==> default: ==> default: Running handlers: ==> default: [2019-03-28T14:46:30+00:00] ERROR: Running exception handlers ==> default: Running handlers complete ==> default: ==> default: [2019-03-28T14:46:30+00:00] ERROR: Exception handlers complete ==> default: [2019-03-28T14:46:30+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out ==> default: Chef Client failed. 0 resources updated in 2.137659494 seconds ==> default: [2019-03-28T14:46:30+00:00] ERROR: cannot load such file -- chef/mixin/powershell_out ==> default: [2019-03-28T14:46:30+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) Chef never successfully completed! Any errors should be visible in the output above. Please fix your recipes so that they properly complete.
色々調べてみたのですが、今回の
==> default: 24>> require 'chef/mixin/powershell_out'
で失敗している情報がみつからなく、ヒントがない状態です。
現在は以下のスペック実行しています。
OS:macos mojave v10.14.1(18B75) ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin17.0] Bundler version 1.17.1
Berksfile,Berksfile.lockは以下です。
source "https://api.berkshelf.com" cookbook "git"
DEPENDENCIES git GRAPH build-essential (8.2.1) mingw (>= 1.1) seven_zip (>= 0.0.0) git (9.0.1) build-essential (>= 5.0.0) mingw (2.1.0) seven_zip (>= 0.0.0) seven_zip (3.1.0) windows (>= 0.0.0) windows (5.2.3)
長々と書いてしまいましたが、他に足りない情報などありましたら教えてください。
よろしくおねがいします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/03/30 17:02