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

NameError: uninitialized constant SolrWrapper #139

Closed
gireeshkumar opened this issue Jul 12, 2017 · 9 comments
Closed

NameError: uninitialized constant SolrWrapper #139

gireeshkumar opened this issue Jul 12, 2017 · 9 comments

Comments

@gireeshkumar
Copy link

I am getting error when running "bin/rails hydra:server"

root@92bce299f2d1:/opt/myapp01# bin/rails hydra:server
rails aborted!
NameError: uninitialized constant SolrWrapper
/usr/local/rvm/gems/ruby-2.4.0/gems/active-fedora-11.4.0/lib/active_fedora/rake_support.rb:17:in with_server' /usr/local/rvm/gems/ruby-2.4.0/gems/hydra-core-10.5.0/lib/tasks/hydra.rake:6:in block (2 levels) in <top (required)>'
/usr/local/rvm/gems/ruby-2.4.0/gems/railties-5.1.2/lib/rails/commands/rake/rake_command.rb:21:in block in perform' /usr/local/rvm/gems/ruby-2.4.0/gems/railties-5.1.2/lib/rails/commands/rake/rake_command.rb:18:in perform'
/usr/local/rvm/gems/ruby-2.4.0/gems/railties-5.1.2/lib/rails/command.rb:46:in invoke' /usr/local/rvm/gems/ruby-2.4.0/gems/railties-5.1.2/lib/rails/commands.rb:16:in <top (required)>'
/opt/myapp01/bin/rails:9:in require' /opt/myapp01/bin/rails:9:in <top (required)>'
/usr/local/rvm/gems/ruby-2.4.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in load' /usr/local/rvm/gems/ruby-2.4.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in call'
/usr/local/rvm/gems/ruby-2.4.0/gems/spring-2.0.2/lib/spring/client/command.rb:7:in call' /usr/local/rvm/gems/ruby-2.4.0/gems/spring-2.0.2/lib/spring/client.rb:30:in run'
/usr/local/rvm/gems/ruby-2.4.0/gems/spring-2.0.2/bin/spring:49:in <top (required)>' /usr/local/rvm/gems/ruby-2.4.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in load'
/usr/local/rvm/gems/ruby-2.4.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in <top (required)>' /opt/myapp01/bin/spring:15:in <top (required)>'
bin/rails:3:in load' bin/rails:3:in

'
Tasks: TOP => hydra:server
(See full trace by running task with --trace)

@straccers
Copy link

did you (or anyone else) ever find the solution for this?

@cjcolvar
Copy link
Contributor

This should work if you add gem 'solr_wrapper' to your Gemfile and run bundle install.

@jcoyne
Copy link
Contributor

jcoyne commented Feb 21, 2018

That should have been added to the gemfile when you ran the blacklight generators (via the hydra generators) https://github.com/projectblacklight/blacklight/blob/3370b957eb302e9e64c0b92b7fe63b6af972b239/lib/generators/blacklight/solr_generator.rb#L17

@straccers
Copy link

straccers commented Feb 21, 2018 via email

@jcoyne jcoyne closed this as completed Feb 21, 2018
@avowkind
Copy link

As of Feb 2019 the Vagrant install (on OSX) shows this problem.
I added the line gem 'solr_wrapper' to your Gemfile and run bundle install and this appears to have fixed it. Can the Vagrant file be updated to fix this?

@no-reply
Copy link
Contributor

@avowkind this project is unmaintained. It was previously a meta-distribution of other Samvera project software.

I doubt anyone would object to work updating the Vagrantfile, but it seems likely that you are looking for one or more of the projects in https://github.com/samvera.

@avowkind
Copy link

avowkind commented Feb 20, 2019 via email

@rotated8
Copy link
Contributor

Hi Andrew, Nurax is a sandbox environment that has the latest (unreleased) code for Hyrax.

@avowkind
Copy link

avowkind commented Feb 21, 2019 via email

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

7 participants