samvera-deprecated / hydra

Project Hydra Stack Dependencies
Other
83 stars 30 forks source link

NameError: uninitialized constant SolrWrapper #139

Closed gireeshkumar closed 6 years ago

gireeshkumar commented 6 years ago

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:inblock (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:inperform' /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:incall' /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:inrun' /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:inload' /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 commented 6 years ago

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

cjcolvar commented 6 years ago

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

jcoyne commented 6 years ago

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 commented 6 years ago

thanks justin. I think I found the underlying cause, which was that ffi was not installing properly. Googling around, I found that the solution to this was to run apt-get install libffi-dev, however I needed to add this to the bootstrap.sh - when I tried to add it after the vm was created, then run bundle update again, even with a completely clean build, I got the solrwrapper error. But adding it to the bootstrap fixed it and the hyrax-demo then ran as expected without further bad things happening

Regards Peri Stracchino University of York Digital Library Technical Team

On 21 February 2018 at 14:41, Justin Coyne notifications@github.com wrote:

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

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/samvera/hydra/issues/139#issuecomment-367347312, or mute the thread https://github.com/notifications/unsubscribe-auth/AKCpNPZgdqRW8uhufreUTSj3YWqFDr6qks5tXCsegaJpZM4OVZ3n .

avowkind commented 5 years ago

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 commented 5 years ago

@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 commented 5 years ago

OK Thanks. Is there anywhere I can go to have a demo or sandbox play with Samvera without having to launch my own copy?

Ngā mihi, Andrew

On 20/02/2019, at 15:46, Tom Johnson notifications@github.com wrote:

@avowkind https://github.com/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 https://github.com/samvera.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/samvera-deprecated/hydra/issues/139#issuecomment-465398319, or mute the thread https://github.com/notifications/unsubscribe-auth/ABhcFTmZSjwWS55lT5_Qi-C5gw0yKub4ks5vPLcJgaJpZM4OVZ3n.

rotated8 commented 5 years ago

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

avowkind commented 5 years ago

Thats perfect - thanks.

On 21/02/2019, at 13:23, Collin Brittle notifications@github.com wrote:

Hi Andrew, Nurax https://nurax-dev.curationexperts.com/ is a sandbox environment that has the latest (unreleased) code for Hyrax.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/samvera-deprecated/hydra/issues/139#issuecomment-465810812, or mute the thread https://github.com/notifications/unsubscribe-auth/ABhcFUZOvOU3AL5WfolS9hZLZANMyc-mks5vPeb4gaJpZM4OVZ3n.