==> default: [2016-06-08T20:40:55+00:00] ERROR: Exception handlers complete
==> default: [2016-06-08T20:40:55+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> default: Chef Client failed. 94 resources updated in 412.459496146 seconds
==> default: [2016-06-08T20:40:55+00:00] ERROR: gem_package[mailcatcher] (vdd::mailcatcher line 5) had an error: Gem::InstallError: mime-types-data requires Ruby version >= 2.0.
==> default: [2016-06-08T20:40:55+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.

I'm getting this error when trying to Vagrant up. I'm currently running Vagrant on Mac:
Vagrant 1.8.1
VirtualBox 4.3.16

I tried changing a line in the initial.sh file from:
apt-get install build-essential ruby1.9.1-dev --no-upgrade --yes &> /dev/null
to:
apt-get install -y build-essential ruby2.0 ruby2.0-dev ruby2.0-doc &> /dev/null
with no luck.

CommentFileSizeAuthor
#4 ruby2.2-2745239-4.patch866 bytesericjenkins
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hook_awesome created an issue. See original summary.

adam_’s picture

Issue summary: View changes
ericjenkins’s picture

When I run vagrant up, I also see the message you refer to. Here's a snippet of my computer's output:

==> default: Setting up ruby1.9.1-dev (1.9.3.484-2ubuntu1.2) ...
==> default: Updating certificates in /etc/ssl/certs... 
==> default: 0 added, 0 removed; done.
==> default: Running hooks in /etc/ca-certificates/update.d....
==> default: done.
==> default: Building native extensions.  This could take a while...
==> default: Building native extensions.  This could take a while...
==> default: Building native extensions.  This could take a while...
==> default: Building native extensions.  This could take a while...
==> default: Building native extensions.  This could take a while...
==> default: ERROR:  Error installing chef:
==> default:    rack requires Ruby version >= 2.2.2.
==> default: installed ruby and chef
==> default: Running provisioner: chef_solo...
    default: Installing Chef (latest)...
==> default: Generating chef JSON and uploading...
==> default: Running chef-solo...


The ruby error occurs right before chef provisioning begins. However, despite seeing this message, Chef provisioning proceeds as usual, and my box still provisions correctly and successfully.

@hook_awesome: Does your box also provision successfully? Is this error worth fixing?

ericjenkins’s picture

I came up with a patch to update Ruby to version 2.2. See attached Patch #4.

Not only does Patch #4 fix the Ruby error referenced in this ticket for me, but it also appears to solve the Mailcatcher error reported in Issue 2697107.

I hope this patch works for others, too!

Johnnie Walker’s picture

Thanks for this.

I submitted the Mailcatcher Issue.

Which version of VDD did you run this patch against? Was it 8.x-1.0-alpha4 or 8.x-1.x-dev ?

ericjenkins’s picture

My apologies, @Johnnie Walker. I ran Patch #4 against the 8.x-1.x-dev version of VDD.

sheldonkreger’s picture

My build was failing until I applied this patch. Thank you.

laurelstreng’s picture

Thanks so much! So many errors until I applied patch #4

LiamPower’s picture

Status: Active » Needs review

This is exactly the same as what I did with my customised VDD.

awm’s picture

Does it make sense to install 2.3 instead?

LiamPower’s picture

I would suggest just getting this added in to make the the current VM work. I'm going to download the dev VM and apply the patch shortly to make sure it does work so we can RTBC this.

LiamPower’s picture

Status: Needs review » Reviewed & tested by the community

With this patch and patch #2 from https://www.drupal.org/node/2789071 this works. RTBC - Hopefully someone will merge these in, I'm, looking at @awm as he recently became a co-maintainer.

LiamPower’s picture

  • awm committed 313f157 on 8.x-1.x authored by ericjenkins
    Issue #2745239 by ericjenkins, hook_awsome, LiamPower, awm: Ruby version...
awm’s picture

Status: Reviewed & tested by the community » Fixed

commited & pushed to 8.x-1.x
Also, I don't see how this is related to the drush master issue. I am removing the link between the 2 issues. @liam please re-add if you are convinced they're related.

awm’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.