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

cannot load such file -- net\http #13

Open
ghost opened this issue Jun 25, 2019 · 1 comment
Open

cannot load such file -- net\http #13

ghost opened this issue Jun 25, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Jun 25, 2019

Vagrant 2.2.4 on
ProductName: Mac OS X
ProductVersion: 10.14.4
BuildVersion: 18E226

vagrant plugin list
docker (0.4.0, global)
  - Version Constraint: > 0
vagrant-env (0.0.3, global)
  - Version Constraint: > 0
vagrant-hosts (2.9.0, global)
  - Version Constraint: > 0
vagrant-reload (0.0.1, global)
  - Version Constraint: > 0
vagrant-scp (0.5.7, global)
  - Version Constraint: > 0
vagrant-uplift (0.2.1902.49, global)
  - Version Constraint: > 0

 INFO manager: Loading plugin `vagrant-uplift` with default require: `vagrant-uplift`
 INFO manager: Registered plugin: vagrant-uplift-checkpoint
ERROR manager: Failed to load plugin `vagrant-uplift` with default require. - LoadError: cannot load such file -- net\http
 INFO manager: Loading plugin `vagrant-uplift` with slash require: `vagrant/uplift`
ERROR manager: Plugin loading error: LoadError - cannot load such file -- vagrant/uplift
DEBUG manager: /opt/vagrant/embedded/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
DEBUG manager: /opt/vagrant/embedded/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
DEBUG manager: /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/plugin/manager.rb:322:in `rescue in block in load_plugins'
DEBUG manager: /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/plugin/manager.rb:314:in `block in load_plugins'
DEBUG manager: /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/plugin/manager.rb:312:in `each'
DEBUG manager: /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/plugin/manager.rb:312:in `load_plugins'
DEBUG manager: /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/environment.rb:176:in `initialize'
DEBUG manager: /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/bin/vagrant:145:in `new'
DEBUG manager: /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/bin/vagrant:145:in `<main>'
ERROR vagrant: Vagrant experienced an error! Details:
ERROR vagrant: #<Vagrant::Errors::PluginLoadError: The plugins failed to load properly. The error message given is
shown below.

cannot load such file -- vagrant/uplift>
ERROR vagrant: The plugins failed to load properly. The error message given is
shown below.

cannot load such file -- vagrant/uplift
ERROR vagrant: /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/plugin/manager.rb:342:in `rescue in load_plugins'
/opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/plugin/manager.rb:310:in `load_plugins'
/opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/environment.rb:176:in `initialize'
/opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/bin/vagrant:145:in `new'
/opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/bin/vagrant:145:in `<main>'
Vagrant failed to initialize at a very early stage:

The plugins failed to load properly. The error message given is
shown below.

cannot load such file -- vagrant/uplift
@ghost ghost changed the title cannot load such file -- vagrant/uplift cannot load such file -- net\http Jun 25, 2019
@SubPointSupport SubPointSupport self-assigned this Jun 30, 2019
@SubPointSupport SubPointSupport added the bug Something isn't working label Jun 30, 2019
@SubPointSupport
Copy link
Contributor

SubPointSupport commented Jun 30, 2019

Hi @brendanstephens , sorry for this experience.

Did you have this problem with early versions of the vagrant-uplift plugin?

Most likely, the following line introduces a regression. Should be net/http instead of net\http

Several options here:

  • Downgrade to the early version of the plugin, we did not have AppInsights telemetry and hence no net\http
  • Manually change this line to net/http in your vagrant plugin folder (somewhere under ~/.vagrant.d\gems\2.4.4\gems\vagrant-uplift )
  • We are looking into this, will add more regression testing to ensure that plugin can be loaded on all platforms (such as dry run under several docker containers should help)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant