vagrant-google icon indicating copy to clipboard operation
vagrant-google copied to clipboard

Issue with vagrant 2.3.0

Open azmng opened this issue 3 years ago • 6 comments

Ran into this issue after upgrade to Vagrant version 2.3.0 (Ubuntu 18.04)

$ vagrant up 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 an invalid or undefined variable.

Path: /opt/vagrant/embedded/gems/2.3.0/gems/vagrant-2.3.0/plugins/commands/serve/command.rb:24 Line number: 0 Message: uninitialized constant VagrantPlugins::Google::Protobuf

It works well on Vagrant 2.2.19 and previous versions.

Tried plugin versions 2.7.0 and 2.6.0 with the same result.

azmng avatar Aug 16 '22 09:08 azmng

I am also experiencing the same issue on an Apple M1 Monterey.

RyandenOtter avatar Sep 25 '22 19:09 RyandenOtter

I also am having this error on an Apple M1 Monterey.

denders-conception avatar Sep 29 '22 00:09 denders-conception

Same problem in the Apple M1 Monterey.

MrZeLee avatar Oct 08 '22 17:10 MrZeLee

Same problem in Apple Intel 2019 Macbook

ericraio avatar Oct 11 '22 20:10 ericraio

I fixed the issue by prepending :: on Empty = Google::Protobuf::Empty

i.e. Empty = ::Google::Protobuf::Empty

in file path /opt/vagrant/embedded/gems/2.3.1/gems/vagrant-2.3.1/plugins/commands/serve/command.rb

ericraio avatar Oct 11 '22 20:10 ericraio

@ericraio 's fix worked for me on vagrant version 2.3.2 and plugin version 2.7.0, as well.

dcode avatar Nov 08 '22 14:11 dcode