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

LoadError: cannot load such file -- net/ssh after upgrading to fog-1.35.0 #3765

Closed
wgc-admin opened this issue Nov 16, 2015 · 7 comments
Closed

Comments

@wgc-admin
Copy link

This is the error message:

LoadError: cannot load such file -- net/ssh
ruby-2.2.3@test_app/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'
ruby-2.2.3@test_app/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `block in require'
ruby-2.2.3@test_app/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in `load_dependency'
ruby-2.2.3@test_app/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'
ruby-2.2.3@test_app/gems/fog-1.35.0/lib/fog/joyent/compute.rb:3:in `<top (required)>'

The net-ssh gem was a dependency of fog-core, but as I see that dependency has been removed in version 1.33.0.
Adding gem 'net-ssh' to my Gemfile solves the problem, but I think this dependency should be in fog somewhere since I'm not using it in my application.

Using ruby 2.2.3, Rails 4.2.5, carrierwave-0.10.0.

@h-michael
Copy link

👍

@plribeiro3000
Copy link
Member

Actually we just removed net-ssh because of compatibility issues.
If it is complaining about not having it we might have some place that was not patched against it correctly.

@geemus You think this might be happening because when you require the provider joyent it is requiring all files of the provider and in this case even the one that requires net-ssh?

@geemus
Copy link
Member

geemus commented Nov 16, 2015

Yeah, this has been fixed on master, just need to follow up with a fog release I think/hope.

@geemus
Copy link
Member

geemus commented Nov 16, 2015

I've just release v1.36.0, which should hopefully help here, sorry for the temporary pain.

@geemus geemus closed this as completed Nov 16, 2015
@agnel
Copy link

agnel commented Nov 25, 2015

Thanks @geemus for the update. I just faced the same issue with fog '1.23.0' on c9.io 👍

@geemus
Copy link
Member

geemus commented Nov 30, 2015

@agnel glad to hear that helped.

@agnel
Copy link

agnel commented Dec 1, 2015

Thanks Wesley. :)
On 01-Dec-2015 2:50 am, "Wesley Beary" notifications@github.com wrote:

@agnel https://github.com/agnel glad to hear that helped.


Reply to this email directly or view it on GitHub
#3765 (comment).

alexmuller added a commit to gds-operations/vcloud-core that referenced this issue Dec 18, 2015
There's a bug in fog 1.34 and 1.35 where `net/ssh` wasn't removed
properly [1] which is causing problems. Bumping the requirement to
at least 1.36 fixes the issue.

However bumping the version of fog causes our tests to fail with the
error:

```
     NameError:
       uninitialized constant Vcloud::Core::Logger
     # ./lib/vcloud/core.rb:31:in `logger'
     # ./spec/vcloud/core/config_loader_spec.rb:54:in `block (3 levels) in <top (required)>'
```

I'm not sure why this upgrade has caused that to break, but explicitly requiring
the Logger class in that module fixes it.

[1]: fog/fog#3765
brettrann added a commit to brettrann/rails4inaction-ticketee that referenced this issue Jan 29, 2016
using the correct Gemfile, but installing at different times to the book,
resulted in different version of numerous items in the Gemfile.lock

those version differences meant that On git push heroku master the following
deployment error occurred:

remote:        Could not detect rake tasks
remote:        ensure you can run `$ bundle exec rake -P` against your app with
no environment variables present
remote:        and using the production group of your Gemfile.
remote:        rake aborted!
remote:        LoadError: cannot load such file -- net/ssh
remote:
/tmp/build_e9fe78a314ac8fb6d1bd3fd9b48ae6af/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'

fog/fog#3765

noted net-ssh was removed because of compatability errors, and is fixed in
fog 1.36.0
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

No branches or pull requests

5 participants