vccw-team / vccw

A Vagrant based development environment.
http://vccw.cc/
MIT License
1.02k stars 181 forks source link

Chef never successfully completed! error is occured #76

Closed ryohei0411 closed 7 years ago

ryohei0411 commented 9 years ago

Hello my environment is ・Mac OS X Yosemite v10.10.3 ・Vagrant 1.7.2 ・VirtualBox 4.3.26 ・VCCW v2.11.0

I runned 'vagrant up' the error below occured.

Chef never successfully completed! Any errors should be visible in the output above. Please fix your recipes so that they properly complete.

I tried some other versions VCCW but all of them didn't work.

Help me, please!

miya0001 commented 9 years ago

Please share error message. I don't have supernatural power. :wink:

The reason for your problem is probably network problem. Please try vagrant provision after error.

ryohei0411 commented 9 years ago

I'm sorry for forgetting to share code. Below is the err message.

==> default: Running chef-solo...
==> default: [2015-06-18T05:24:39+00:00] INFO: Forking chef instance to converge...
==> default: [2015-06-18T05:24:39+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: [2015-06-18T05:24:39+00:00] INFO: *** Chef 11.16.4 ***
==> default: [2015-06-18T05:24:39+00:00] INFO: Chef-client pid: 20231
==> default: [2015-06-18T05:24:56+00:00] INFO: Setting the run_list to ["recipe[wpcli]", "recipe[wpcli::install]", "recipe[vccw]"] from CLI options
==> default: [2015-06-18T05:24:56+00:00] INFO: Run List is [recipe[wpcli], recipe[wpcli::install], recipe[vccw]]
==> default: [2015-06-18T05:24:56+00:00] INFO: Run List expands to [wpcli, wpcli::install, vccw]
==> default: [2015-06-18T05:24:56+00:00] INFO: Starting Chef Run for wordpress.local
==> default: [2015-06-18T05:24:56+00:00] INFO: Running start handlers
==> default: [2015-06-18T05:24:56+00:00] INFO: Start handlers complete.
==> default: [2015-06-18T05:24:56+00:00] ERROR: Running exception handlers
==> default: [2015-06-18T05:24:56+00:00] ERROR: Exception handlers complete
==> default: [2015-06-18T05:24:56+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> default: [2015-06-18T05:24:56+00:00] ERROR: Cookbook wpcli not found. If you're loading wpcli from another cookbook, make sure you configure the dependency in your metadata
==> default: [2015-06-18T05:24:56+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.
miya0001 commented 9 years ago

Are there any vagrant machines in your local machine? Please open VirtualBox.app.

If you have another machines, please shutdown all virtual machines.

ryohei0411 commented 9 years ago

Due to your answer, vagrant successfully ran "vagrant up". But I got the same message as the above when I tried "vagrant provision".

I confirmed only 1 local machine working in GUI of VirtualBox.app and VBoxManage list vms and vagrant global-status.

miya0001 commented 9 years ago

Sorry for late.

Please try with latest version of VirtualBox and Vagrant. Because it looks problem with shared folder.

ryohei0411 commented 9 years ago

Thank you for reply. Finally I achieved my goal after so many trial and error that I can't explain it all... At least I installed chef, latest ruby, and latest mysql with Homebrew. Then anything works well. I don't know what's happened...

Anyway, I appreciate to your help.

adamclerk commented 9 years ago

I'm now running into the same issue. Is there a proposed resolution?

ryohei0411 commented 9 years ago

In my case, I reinstalled chef, latest ruby, and latest mysql with Homebrew. And confirm that latest version of VB and Vagrant is installed.

miya0001 commented 9 years ago

You don't need chef in your system for VCCW, It runs only in virtual machine. And also Vagrant includes ruby too. :)

markhughes commented 8 years ago

I have just run into this issue myself..

$ vagrant provision
==> vccw.dev: Running provisioner: chef_solo...
==> vccw.dev: Detected Chef (latest) is already installed
Generating chef JSON and uploading...
==> vccw.dev: Running chef-solo...
==> vccw.dev: [2015-11-27T06:39:43+00:00] INFO: Forking chef instance to converge...
==> vccw.dev: [2015-11-27T06:39:43+00:00] WARN: 
==> vccw.dev: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
==> vccw.dev: SSL validation of HTTPS requests is disabled. HTTPS connections are still
==> vccw.dev: encrypted, but chef is not able to detect forged replies or man in the middle
==> vccw.dev: attacks.
==> vccw.dev: 
==> vccw.dev: To fix this issue add an entry like this to your configuration file:
==> vccw.dev: 
==> vccw.dev: ```
==> vccw.dev:   # Verify all HTTPS connections (recommended)
==> vccw.dev:   ssl_verify_mode :verify_peer
==> vccw.dev: 
==> vccw.dev:   # OR, Verify only connections to chef-server
==> vccw.dev:   verify_api_cert true
==> vccw.dev: ```
==> vccw.dev: 
==> vccw.dev: To check your SSL configuration, or troubleshoot errors, you can use the
==> vccw.dev: `knife ssl check` command like so:
==> vccw.dev: 
==> vccw.dev: ```
==> vccw.dev:   knife ssl check -c /tmp/vagrant-chef/solo.rb
==> vccw.dev: ```
==> vccw.dev: 
==> vccw.dev: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
==> vccw.dev: Starting Chef Client, version 11.16.4
==> vccw.dev: [2015-11-27T06:39:43+00:00] INFO: *** Chef 11.16.4 ***
==> vccw.dev: [2015-11-27T06:39:43+00:00] INFO: Chef-client pid: 28059
==> vccw.dev: [2015-11-27T06:39:48+00:00] INFO: Setting the run_list to ["recipe[wpcli]", "recipe[wpcli::install]", "recipe[vccw]"] from CLI options
==> vccw.dev: [2015-11-27T06:39:48+00:00] INFO: Run List is [recipe[wpcli], recipe[wpcli::install], recipe[vccw]]
==> vccw.dev: [2015-11-27T06:39:48+00:00] INFO: Run List expands to [wpcli, wpcli::install, vccw]
==> vccw.dev: [2015-11-27T06:39:48+00:00] INFO: Starting Chef Run for vccw.dev
==> vccw.dev: [2015-11-27T06:39:48+00:00] INFO: Running start handlers
==> vccw.dev: [2015-11-27T06:39:48+00:00] INFO: Start handlers complete.
==> vccw.dev: Compiling Cookbooks...
==> vccw.dev: 
==> vccw.dev: Running handlers:
==> vccw.dev: [2015-11-27T06:39:48+00:00] ERROR: Running exception handlers
==> vccw.dev: Running handlers complete
==> vccw.dev: 
==> vccw.dev: [2015-11-27T06:39:48+00:00] ERROR: Exception handlers complete
==> vccw.dev: [2015-11-27T06:39:48+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> vccw.dev: Chef Client failed. 0 resources updated in 5.107558522 seconds
==> vccw.dev: [2015-11-27T06:39:48+00:00] ERROR: Cookbook wpcli not found. If you're loading wpcli from another cookbook, make sure you configure the dependency in your metadata
==> vccw.dev: [2015-11-27T06:39:48+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.

(/var/chef/cache/chef-stacktrace.out does not exist)

miya0001 commented 8 years ago

it seems like a problem of shared folder with your host machine and virtual machine. Are your Vagrant and VirtualBox latest?

markhughes commented 8 years ago

Yep. Solved the issue by a fresh install though, unfortunately did not have time to debug the issue for you.

It was the shared folder, checked myself. Not sure why it wasn't doing it though.

linwoodc3 commented 8 years ago

Chef error in vagrant OS = OSX El Capitan, 10.11.3 Editing

*Solved for me, but my issue was provisioning for the book github repo where I got the solution; maybe it helps folks here

Found the solution for my problem in another Issue thread on Github for "Mining Social Media 2nd Edition" by fbgava:

Editing the file:

Mining-the-Social-Web-2nd-Edition/deploy/cookbooks/python/attributes/default.rb

on your machine and changing the line:

default['python']['pip_script_url'] = 'https://raw.github.com/pypa/pip/master/contrib/get-pip.py'

to:

default['python']['pip_script_url'] = 'https://bootstrap.pypa.io/get-pip.py'

should fix the problem.

I checked the bootstrap.pypa page just to be sure. It's listed in several www.pypi.org pages: https://pypi.python.org/pypi/setuptools http://crossbar.io/docs/Installation-from-Source/

And there's an explanation for the page as well here: https://bootstrap.pypa.io/get-pip.py

okonomiyaki3000 commented 8 years ago

I'm getting something similar but maybe a little different. Sorry, it's pretty long:

==> vccw.dev: Running chef-solo...
==> vccw.dev: [2016-03-31T15:31:05+00:00] INFO: Forking chef instance to converge...
==> vccw.dev: [2016-03-31T15:31:05+00:00] WARN:
==> vccw.dev: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
==> vccw.dev: SSL validation of HTTPS requests is disabled. HTTPS connections are still
==> vccw.dev: encrypted, but chef is not able to detect forged replies or man in the middle
==> vccw.dev: attacks.
==> vccw.dev:
==> vccw.dev: To fix this issue add an entry like this to your configuration file:
==> vccw.dev:
==> vccw.dev: ```
==> vccw.dev:   # Verify all HTTPS connections (recommended)
==> vccw.dev:   ssl_verify_mode :verify_peer
==> vccw.dev:
==> vccw.dev:   # OR, Verify only connections to chef-server
==> vccw.dev:   verify_api_cert true
==> vccw.dev: ```
==> vccw.dev:
==> vccw.dev: To check your SSL configuration, or troubleshoot errors, you can use the
==> vccw.dev: `knife ssl check` command like so:
==> vccw.dev:
==> vccw.dev: ```
==> vccw.dev:   knife ssl check -c /tmp/vagrant-chef/solo.rb
==> vccw.dev: ```
==> vccw.dev:
==> vccw.dev: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
==> vccw.dev: Starting Chef Client, version 11.16.4
==> vccw.dev: [2016-03-31T15:31:05+00:00] INFO: *** Chef 11.16.4 ***
==> vccw.dev: [2016-03-31T15:31:05+00:00] INFO: Chef-client pid: 27089
==> vccw.dev: [2016-03-31T15:31:06+00:00] INFO: Setting the run_list to ["recipe[wpcli]", "recipe[wpcli::install]", "recipe[vccw]"] from CLI options
==> vccw.dev: [2016-03-31T15:31:06+00:00] INFO: Run List is [recipe[wpcli], recipe[wpcli::install], recipe[vccw]]
==> vccw.dev: [2016-03-31T15:31:06+00:00] INFO: Run List expands to [wpcli, wpcli::install, vccw]
==> vccw.dev: [2016-03-31T15:31:06+00:00] INFO: Starting Chef Run for vagrant-daa6ca8a
==> vccw.dev: [2016-03-31T15:31:06+00:00] INFO: Running start handlers
==> vccw.dev: [2016-03-31T15:31:06+00:00] INFO: Start handlers complete.
==> vccw.dev: Compiling Cookbooks...
==> vccw.dev: [2016-03-31T15:31:07+00:00] WARN: Cloning resource attributes for package[perl] from prior resource (CHEF-3694)
==> vccw.dev: [2016-03-31T15:31:07+00:00] WARN: Previous package[perl]: /tmp/vagrant-chef/e3ade6ffc86d2c17aa3f204caebfef5c/cookbooks/wpcli/recipes/default.rb:12:in `block in from_file'
==> vccw.dev: [2016-03-31T15:31:07+00:00] WARN: Current  package[perl]: /tmp/vagrant-chef/3841741cc0484b5f1b7809d9680e6183/cookbooks/apache2/recipes/default.rb:51:in `from_file'
==> vccw.dev: [2016-03-31T15:31:07+00:00] WARN: Cloning resource attributes for service[apache2] from prior resource (CHEF-3694)
==> vccw.dev: [2016-03-31T15:31:07+00:00] WARN: Previous service[apache2]: /tmp/vagrant-chef/3841741cc0484b5f1b7809d9680e6183/cookbooks/apache2/recipes/default.rb:24:in `from_file'
==> vccw.dev: [2016-03-31T15:31:07+00:00] WARN: Current  service[apache2]: /tmp/vagrant-chef/3841741cc0484b5f1b7809d9680e6183/cookbooks/apache2/recipes/default.rb:221:in `from_file'
==> vccw.dev: [2016-03-31T15:31:07+00:00] WARN: Cloning resource attributes for file[/etc/httpd/conf.d/ssl.conf] from prior resource (CHEF-3694)
==> vccw.dev: [2016-03-31T15:31:07+00:00] WARN: Previous file[/etc/httpd/conf.d/ssl.conf]: /tmp/vagrant-chef/3841741cc0484b5f1b7809d9680e6183/cookbooks/apache2/recipes/default.rb:84:in `block in from_file'
==> vccw.dev: [2016-03-31T15:31:07+00:00] WARN: Current  file[/etc/httpd/conf.d/ssl.conf]: /tmp/vagrant-chef/3841741cc0484b5f1b7809d9680e6183/cookbooks/apache2/recipes/mod_ssl.rb:31:in `from_file'
==> vccw.dev: [2016-03-31T15:31:07+00:00] WARN: Cloning resource attributes for template[/etc/httpd/ports.conf] from prior resource (CHEF-3694)
==> vccw.dev: [2016-03-31T15:31:07+00:00] WARN: Previous template[/etc/httpd/ports.conf]: /tmp/vagrant-chef/3841741cc0484b5f1b7809d9680e6183/cookbooks/apache2/recipes/default.rb:195:in `from_file'
==> vccw.dev: [2016-03-31T15:31:07+00:00] WARN: Current  template[/etc/httpd/ports.conf]: /tmp/vagrant-chef/3841741cc0484b5f1b7809d9680e6183/cookbooks/apache2/recipes/mod_ssl.rb:37:in `from_file'
==> vccw.dev: [2016-03-31T15:31:07+00:00] WARN: Cloning resource attributes for directory[/var/lib/mysql] from prior resource (CHEF-3694)
==> vccw.dev: [2016-03-31T15:31:07+00:00] WARN: Previous directory[/var/lib/mysql]: /tmp/vagrant-chef/3841741cc0484b5f1b7809d9680e6183/cookbooks/mysql/recipes/server.rb:108:in `block in from_file'
==> vccw.dev: [2016-03-31T15:31:07+00:00] WARN: Current  directory[/var/lib/mysql]: /tmp/vagrant-chef/3841741cc0484b5f1b7809d9680e6183/cookbooks/mysql/recipes/server.rb:108:in `block in from_file'
==> vccw.dev: [2016-03-31T15:31:07+00:00] INFO: Could not find previously defined grants.sql resource
==> vccw.dev: [2016-03-31T15:31:07+00:00] WARN: Cloning resource attributes for service[mysql] from prior resource (CHEF-3694)
==> vccw.dev: [2016-03-31T15:31:07+00:00] WARN: Previous service[mysql]: /tmp/vagrant-chef/3841741cc0484b5f1b7809d9680e6183/cookbooks/mysql/recipes/server.rb:154:in `from_file'
==> vccw.dev: [2016-03-31T15:31:07+00:00] WARN: Current  service[mysql]: /tmp/vagrant-chef/3841741cc0484b5f1b7809d9680e6183/cookbooks/mysql/recipes/server.rb:218:in `from_file'
==> vccw.dev: Recipe: build-essential::rhel
==> vccw.dev:
==> vccw.dev: * package[autoconf] action install
==> vccw.dev:
==> vccw.dev:
==> vccw.dev:
==> vccw.dev: ================================================================================
==> vccw.dev:
==> vccw.dev: Error executing action `install` on resource 'package[autoconf]'
==> vccw.dev:
==> vccw.dev: ================================================================================
==> vccw.dev:
==> vccw.dev:
==> vccw.dev:     Mixlib::ShellOut::ShellCommandFailed
==> vccw.dev:     ------------------------------------
==> vccw.dev:     Expected process to exit with [0], but received '1'
==> vccw.dev:     ---- Begin output of /usr/bin/python /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/provider/package/yum-dump.py --options --installed-provides --yum-lock-timeout 30 ----
==> vccw.dev:     STDOUT: [option installonlypkgs] kernel kernel-bigmem installonlypkg(kernel-module) installonlypkg(vm) kernel-enterprise kernel-smp kernel-debug kernel-unsupported kernel-source kernel-devel kernel-PAE kernel-PAE-debug
==> vccw.dev:     Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=os&infra=stock error was
==> vccw.dev:     14: PYCURL ERROR 7 - "Failed to connect to 0.0.7.29: Invalid argument"
==> vccw.dev:     STDERR: yum-dump Repository Error: Cannot find a valid baseurl for repo: base
==> vccw.dev:     ---- End output of /usr/bin/python /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/provider/package/yum-dump.py --options --installed-provides --yum-lock-timeout 30 ----
==> vccw.dev:     Ran /usr/bin/python /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/provider/package/yum-dump.py --options --installed-provides --yum-lock-timeout 30 returned 1
==> vccw.dev:
==> vccw.dev:     Cookbook Trace:
==> vccw.dev:     ---------------
==> vccw.dev:     /tmp/vagrant-chef/3841741cc0484b5f1b7809d9680e6183/cookbooks/build-essential/recipes/rhel.rb:41:in `block in from_file'
==> vccw.dev:     /tmp/vagrant-chef/3841741cc0484b5f1b7809d9680e6183/cookbooks/build-essential/recipes/rhel.rb:36:in `each'
==> vccw.dev:     /tmp/vagrant-chef/3841741cc0484b5f1b7809d9680e6183/cookbooks/build-essential/recipes/rhel.rb:36:in `from_file'
==> vccw.dev:     /tmp/vagrant-chef/3841741cc0484b5f1b7809d9680e6183/cookbooks/build-essential/recipes/default.rb:21:in `from_file'
==> vccw.dev:     /tmp/vagrant-chef/3841741cc0484b5f1b7809d9680e6183/cookbooks/mysql/recipes/ruby.rb:24:in `from_file'
==> vccw.dev:     /tmp/vagrant-chef/e3ade6ffc86d2c17aa3f204caebfef5c/cookbooks/wpcli/recipes/install.rb:10:in `from_file'
==> vccw.dev:
==> vccw.dev:     Resource Declaration:
==> vccw.dev:     ---------------------
==> vccw.dev:     # In /tmp/vagrant-chef/3841741cc0484b5f1b7809d9680e6183/cookbooks/build-essential/recipes/rhel.rb
==> vccw.dev:
==> vccw.dev:      38:   r = package pkg do
==> vccw.dev:      39:     action( node['build_essential']['compiletime'] ? :nothing : :install )
==> vccw.dev:      40:   end
==> vccw.dev:      41:   r.run_action(:install) if node['build_essential']['compiletime']
==> vccw.dev:
==> vccw.dev:     Compiled Resource:
==> vccw.dev:     ------------------
==> vccw.dev:     # Declared in /tmp/vagrant-chef/3841741cc0484b5f1b7809d9680e6183/cookbooks/build-essential/recipes/rhel.rb:38:in `block in from_file'
==> vccw.dev:
==> vccw.dev:     package("autoconf") do
==> vccw.dev:       action [:nothing]
==> vccw.dev:       retries 0
==> vccw.dev:       retry_delay 2
==> vccw.dev:       guard_interpreter :default
==> vccw.dev:       package_name "autoconf"
==> vccw.dev:       timeout 900
==> vccw.dev:       cookbook_name :"build-essential"
==> vccw.dev:       recipe_name "rhel"
==> vccw.dev:     end
==> vccw.dev:
==> vccw.dev:
==> vccw.dev:
==> vccw.dev:
==> vccw.dev:
==> vccw.dev: ================================================================================
==> vccw.dev:
==> vccw.dev: Recipe Compile Error in /tmp/vagrant-chef/e3ade6ffc86d2c17aa3f204caebfef5c/cookbooks/wpcli/recipes/install.rb
==> vccw.dev:
==> vccw.dev: ================================================================================
==> vccw.dev:
==> vccw.dev:
==> vccw.dev:
==> vccw.dev:   Mixlib::ShellOut::ShellCommandFailed
==> vccw.dev:   ------------------------------------
==> vccw.dev:   package[autoconf] (build-essential::rhel line 38) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
==> vccw.dev:   ---- Begin output of /usr/bin/python /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/provider/package/yum-dump.py --options --installed-provides --yum-lock-timeout 30 ----
==> vccw.dev:   STDOUT: [option installonlypkgs] kernel kernel-bigmem installonlypkg(kernel-module) installonlypkg(vm) kernel-enterprise kernel-smp kernel-debug kernel-unsupported kernel-source kernel-devel kernel-PAE kernel-PAE-debug
==> vccw.dev:   Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=os&infra=stock error was
==> vccw.dev:   14: PYCURL ERROR 7 - "Failed to connect to 0.0.7.29: Invalid argument"
==> vccw.dev:   STDERR: yum-dump Repository Error: Cannot find a valid baseurl for repo: base
==> vccw.dev:   ---- End output of /usr/bin/python /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/provider/package/yum-dump.py --options --installed-provides --yum-lock-timeout 30 ----
==> vccw.dev:   Ran /usr/bin/python /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/provider/package/yum-dump.py --options --installed-provides --yum-lock-timeout 30 returned 1
==> vccw.dev:
==> vccw.dev:   Cookbook Trace:
==> vccw.dev:   ---------------
==> vccw.dev:     /tmp/vagrant-chef/3841741cc0484b5f1b7809d9680e6183/cookbooks/build-essential/recipes/rhel.rb:41:in `block in from_file'
==> vccw.dev:     /tmp/vagrant-chef/3841741cc0484b5f1b7809d9680e6183/cookbooks/build-essential/recipes/rhel.rb:36:in `each'
==> vccw.dev:     /tmp/vagrant-chef/3841741cc0484b5f1b7809d9680e6183/cookbooks/build-essential/recipes/rhel.rb:36:in `from_file'
==> vccw.dev:     /tmp/vagrant-chef/3841741cc0484b5f1b7809d9680e6183/cookbooks/build-essential/recipes/default.rb:21:in `from_file'
==> vccw.dev:     /tmp/vagrant-chef/3841741cc0484b5f1b7809d9680e6183/cookbooks/mysql/recipes/ruby.rb:24:in `from_file'
==> vccw.dev:     /tmp/vagrant-chef/e3ade6ffc86d2c17aa3f204caebfef5c/cookbooks/wpcli/recipes/install.rb:10:in `from_file'
==> vccw.dev:
==> vccw.dev:   Relevant File Content:
==> vccw.dev:   ----------------------
==> vccw.dev:   /tmp/vagrant-chef/3841741cc0484b5f1b7809d9680e6183/cookbooks/build-essential/recipes/rhel.rb:
==> vccw.dev:
==> vccw.dev:    34:  end
==> vccw.dev:    35:
==> vccw.dev:    36:  pkgs.flatten.each do |pkg|
==> vccw.dev:    37:
==> vccw.dev:    38:    r = package pkg do
==> vccw.dev:    39:      action( node['build_essential']['compiletime'] ? :nothing : :install )
==> vccw.dev:    40:    end
==> vccw.dev:    41>>   r.run_action(:install) if node['build_essential']['compiletime']
==> vccw.dev:    42:
==> vccw.dev:    43:  end
==> vccw.dev:    44:
==> vccw.dev:
==> vccw.dev:
==> vccw.dev:   Running handlers:
==> vccw.dev: [2016-03-31T15:31:07+00:00] ERROR: Running exception handlers
==> vccw.dev:   Running handlers complete
==> vccw.dev: [2016-03-31T15:31:07+00:00] ERROR: Exception handlers complete
==> vccw.dev: [2016-03-31T15:31:07+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> vccw.dev:
==> vccw.dev: Chef Client failed. 0 resources updated in 2.494322281 seconds
==> vccw.dev: [2016-03-31T15:31:07+00:00] ERROR: package[autoconf] (build-essential::rhel line 38) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
==> vccw.dev: ---- Begin output of /usr/bin/python /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/provider/package/yum-dump.py --options --installed-provides --yum-lock-timeout 30 ----
==> vccw.dev: STDOUT: [option installonlypkgs] kernel kernel-bigmem installonlypkg(kernel-module) installonlypkg(vm) kernel-enterprise kernel-smp kernel-debug kernel-unsupported kernel-source kernel-devel kernel-PAE kernel-PAE-debug
==> vccw.dev: Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=os&infra=stock error was
==> vccw.dev: 14: PYCURL ERROR 7 - "Failed to connect to 0.0.7.29: Invalid argument"
==> vccw.dev: STDERR: yum-dump Repository Error: Cannot find a valid baseurl for repo: base
==> vccw.dev: ---- End output of /usr/bin/python /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/provider/package/yum-dump.py --options --installed-provides --yum-lock-timeout 30 ----
==> vccw.dev: Ran /usr/bin/python /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/provider/package/yum-dump.py --options --installed-provides --yum-lock-timeout 30 returned 1
==> vccw.dev: [2016-03-31T15:31:07+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.
okonomiyaki3000 commented 8 years ago

Ah, in case it's relevant, I'm on OSX 10.11.4, vagrant 1.8.1, virtualbox 5.0.16 r105871, vccw 2.19.0

miya0001 commented 8 years ago

There is a following line in your error.

"Failed to connect to 0.0.7.29: Invalid argument"

I guess it is a temporary failure.

If you would have a error while vagrant is provisioning. Please try vagrant provision.

okonomiyaki3000 commented 8 years ago

I've tried that many times. Always the same thing. I've also tried switching it off and switching it back on again.

miya0001 commented 8 years ago

OK, thanks.

Are there any machines in VirtualBox app? If you have another machines, please stop them. Then try again.

okonomiyaki3000 commented 8 years ago

There are machines but they are not active. Should I delete them completely?

miya0001 commented 8 years ago

I guess you don't need to delete, but If you don't need those machines you should delete them. (You can save disk. 😄 )

okonomiyaki3000 commented 8 years ago

Well that's a good tip but it's not really my immediate problem.

okonomiyaki3000 commented 8 years ago

I figured it out. During the provisioning process, I suppose there are some connections made to github using ssh. These will fail if the user has not registered a public key with github (which I had not). Maybe this prerequisite should be added to the instructions page. I don't know if it's the same problem that @MarkehMe and @ryohei0411 were having but it does look very similar.

miya0001 commented 8 years ago

Nice! If you have time I want you to try following for investigating details. 😄

Disable forward_agent

https://github.com/vccw-team/vccw/blob/master/Vagrantfile#L52

Before:

  config.ssh.forward_agent = true

After:

  config.ssh.forward_agent = false

Provision

Then:

vagrant up
okonomiyaki3000 commented 8 years ago

Should I try that with or without my key registered at github? Since I've registered it now, vagrant up seems to work properly and the box is up and running.

miya0001 commented 8 years ago

I wanted you to try with not-registerd key, but you already registered, so I will try it. Thanks! I learned many things. 😄

okonomiyaki3000 commented 8 years ago

Glad I could help!