Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with vagrant 2.3.0 #266

Open
azmng opened this issue Aug 16, 2022 · 6 comments · Fixed by hashicorp/vagrant#12989
Open

Issue with vagrant 2.3.0 #266

azmng opened this issue Aug 16, 2022 · 6 comments · Fixed by hashicorp/vagrant#12989

Comments

@azmng
Copy link

azmng commented Aug 16, 2022

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.

@RyandenOtter
Copy link

RyandenOtter commented Sep 25, 2022

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

@denders-conception
Copy link

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

@MrZeLee
Copy link

MrZeLee commented Oct 8, 2022

Same problem in the Apple M1 Monterey.

@ericraio
Copy link

Same problem in Apple Intel 2019 Macbook

@ericraio
Copy link

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

@dcode
Copy link
Contributor

dcode commented Nov 8, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants