VVV icon indicating copy to clipboard operation
VVV copied to clipboard

Bug: Vagrant fails at very early stage after updating to 3.13.2

Open luuptekman opened this issue 1 year ago • 4 comments
trafficstars

Are you using the latest stable or develop branch version of VVV?

Yes (stable)

Is it a new VVV, or an existing VVV that used to work?

Existing, worked but now broken

Did you use a CustomFile?

No (default)

Whats the problem?

I used git pull to update to latest stable version: 3.13.2.

After that I'm unable to start any vagrant commands such as vagrant up, vagrant ssh etc....Execution ends with the following error:

➜  vvv git:(stable) ✗ vagrant ssh
Vagrant failed to initialize at a very early stage:

There was an error loading a Vagrantfile. The file being loaded
and the error message are shown below. This is usually caused by
a syntax error.

Path: /Users/myuser/dev/vvv/Vagrantfile
Line number: 45
Message: Errno::ENOENT: No such file or directory - docker

I noticed this change in Vagrantfile: https://github.com/Varying-Vagrant-Vagrants/VVV/commit/e10bc480339fe5ffb3a8893a5c89e3260131853a#

After modifing line 45 back to if system("docker version") vagrant works again.

About my laptop / vagrant:

  • Macbook Pro with Apple chip M3
  • Vagrant version 2.4.0
  • using Parallels

How do we reproduce it?

No response

What is the output of vagrant status

➜  vvv git:(stable) ✗ vagrant status
__ __ __ __
\ V\ V\ V / v3.13.2 Ruby:3.1.4, Path:"/Users/mrluuptek/dev/vvv"
 \_/\_/\_/  git::stable(e0dad5de)

Vagrant failed to initialize at a very early stage:

There was an error loading a Vagrantfile. The file being loaded
and the error message are shown below. This is usually caused by
a syntax error.

Path: /Users/mrluuptek/dev/vvv/Vagrantfile
Line number: 45
Message: Errno::ENOENT: No such file or directory - docker

Which Operating System are you using?

Apple MacOS (Arm64/Apple Silicon)

Which provider are you using?

Parallels (Apple Silicon/Arm)

luuptekman avatar Aug 14 '24 07:08 luuptekman

Thanks for opening your first issue here! Be sure to follow the issue template and include your OS/Vagrant/VVV versions! Don't forget you can get support in the VVV slack at https://varyingvagrantvagrants.org/docs/en-US/slack/

VVV
Join the VVV Slack Workspace

welcome[bot] avatar Aug 14 '24 07:08 welcome[bot]

Please switch to the develop branch

On Wed, 14 Aug 2024 at 08:26, welcome[bot] @.***> wrote:

Thanks for opening your first issue here! Be sure to follow the issue template and include your OS/Vagrant/VVV versions! Don't forget you can get support in the VVV slack at https://varyingvagrantvagrants.org/docs/en-US/slack/

https://camo.githubusercontent.com/6ec96f6a021c10d60df18198b1c3880c06b53d1571c5c89f865273c8b88c7dc0/68747470733a2f2f76617279696e6776616772616e7476616772616e74732e6f72672f696d616765732f7676762e706e67 http:///images/vvv.png VVV VVV Slack Workspace https://varyingvagrantvagrants.org/docs/en-US/slack/ Join the VVV Slack Workspace

— Reply to this email directly, view it on GitHub https://github.com/Varying-Vagrant-Vagrants/VVV/issues/2726#issuecomment-2288036887, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAOLZ2FDMQZHNXVB4B6VHDZRMBBNAVCNFSM6AAAAABMPXPJL6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBYGAZTMOBYG4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

tomjn avatar Aug 14 '24 07:08 tomjn

The develop branch swaps the check for docker around to instead check for parallels. Of course installing docker and making sure you have parallels set as the provider in config.yml would also fix this ( make sure you set it in config.yml anyway ).

It turns out checking that a command exists in ruby isn't so straight forward, system sort of works but prints out the result and we can't silence it without doing OS specific things like piping to dev null. backticks fails in the way you've described.

The frustrating part is I need docker on my machines for other things I work with so I can't uninstall it to test this particular issue reliably

tomjn avatar Aug 14 '24 08:08 tomjn

Thanks for reaching out Tom, seems that develop branch has no issues 👍

luuptekman avatar Aug 16 '24 06:08 luuptekman

Closing this out as develop has a fix and 3.14 is nearing release

tomjn avatar Sep 20 '24 10:09 tomjn