Console tour errors.

19 views
Skip to first unread message

Alexander

unread,
May 16, 2011, 5:13:25 AM5/16/11
to ActiveFedora / Ruby + Fedora Commons
I've installed fedora and solr manually as described in
http://projects.mediashelf.us/projects/active-fedora/wiki/Setting_up_Fedora_and_Solr_for_use_with_ActiveFedora
but that required some fixes, like schema.xml from ActiveFedora was
broken, so I take it from jetty and all forks fine.

Also I have hudra-jetty, cloned from git repo. Fedora runs fine, but
for solr i got
"HTTP ERROR: 404

NOT_FOUND
RequestURI=/solr/development

Powered by Jetty://
"

The main problem is in active-fedora ruby gem.
going by http://projects.mediashelf.us/projects/active-fedora/wiki/ActiveFedora_Console_Tour
all works fine until

"oh.save"
here is full trace:
ruby-1.9.2-p180 :002 > oh.save
NoMethodError: undefined method `map' for "info:fedora/
afmodel:OralHistory":String
from /home/ap/.rvm/gems/ruby-1.9.2-p180@fedora/gems/solrizer-1.0.4/
lib/solrizer/extractor.rb:39:in `format_node_value'
from /home/ap/.rvm/gems/ruby-1.9.2-p180@fedora/gems/solrizer-1.0.4/
lib/solrizer/extractor.rb:21:in `insert_solr_field_value'
from /home/ap/.rvm/gems/ruby-1.9.2-p180@fedora/gems/active-
fedora-2.2.0/lib/active_fedora/rels_ext_datastream.rb:53:in `block (3
levels) in to_solr'
from /home/ap/.rvm/gems/ruby-1.9.2-p180@fedora/gems/active-
fedora-2.2.0/lib/active_fedora/rels_ext_datastream.rb:52:in `each'
from /home/ap/.rvm/gems/ruby-1.9.2-p180@fedora/gems/active-
fedora-2.2.0/lib/active_fedora/rels_ext_datastream.rb:52:in `block (2
levels) in to_solr'
from /home/ap/.rvm/gems/ruby-1.9.2-p180@fedora/gems/active-
fedora-2.2.0/lib/active_fedora/rels_ext_datastream.rb:51:in
`each_pair'
from /home/ap/.rvm/gems/ruby-1.9.2-p180@fedora/gems/active-
fedora-2.2.0/lib/active_fedora/rels_ext_datastream.rb:51:in `block in
to_solr'
from /home/ap/.rvm/gems/ruby-1.9.2-p180@fedora/gems/active-
fedora-2.2.0/lib/active_fedora/rels_ext_datastream.rb:49:in
`each_pair'
from /home/ap/.rvm/gems/ruby-1.9.2-p180@fedora/gems/active-
fedora-2.2.0/lib/active_fedora/rels_ext_datastream.rb:49:in `to_solr'
from /home/ap/.rvm/gems/ruby-1.9.2-p180@fedora/gems/active-
fedora-2.2.0/lib/active_fedora/base.rb:876:in `block in to_solr'
from /home/ap/.rvm/gems/ruby-1.9.2-p180@fedora/gems/active-
fedora-2.2.0/lib/active_fedora/base.rb:874:in `each_value'
from /home/ap/.rvm/gems/ruby-1.9.2-p180@fedora/gems/active-
fedora-2.2.0/lib/active_fedora/base.rb:874:in `to_solr'
from /home/ap/.rvm/gems/ruby-1.9.2-p180@fedora/gems/active-
fedora-2.2.0/lib/active_fedora/base.rb:935:in `update_index'
from /home/ap/.rvm/gems/ruby-1.9.2-p180@fedora/gems/active-
fedora-2.2.0/lib/active_fedora/base.rb:101:in `save'
from (irb):2
from /home/ap/.rvm/gems/ruby-1.9.2-p180@fedora/gems/railties-3.0.7/
lib/rails/commands/console.rb:44:in `start'
from /home/ap/.rvm/gems/ruby-1.9.2-p180@fedora/gems/railties-3.0.7/
lib/rails/commands/console.rb:8:in `start'
from /home/ap/.rvm/gems/ruby-1.9.2-p180@fedora/gems/railties-3.0.7/
lib/rails/commands.rb:23:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

Matt Zumwalt

unread,
May 16, 2011, 10:42:59 AM5/16/11
to active...@googlegroups.com
HI Alex,

We're working on a new console tour this week.  Would you be willing to take that one for a spin and lend any feedback?



Matt Zumwalt
MediaShelf, LLC




--
You received this message because you are subscribed to the Google Groups "ActiveFedora / Ruby + Fedora Commons" group.
To post to this group, send email to active...@googlegroups.com.
To unsubscribe from this group, send email to active-fedor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/active-fedora?hl=en.


Alexander

unread,
May 17, 2011, 3:37:45 AM5/17/11
to ActiveFedora / Ruby + Fedora Commons
yesterday, I done some work and found, that problem that i got for
activefedora was in ruby version. On 1.8.7 all works.

On 16 май, 17:42, Matt Zumwalt <matt.zumw...@yourmediashelf.com>
wrote:
> HI Alex,
>
> We're working on a new console tour this week.  Would you be willing to take that one for a spin and lend any feedback?
>
> https://github.com/mediashelf/active_fedora/blob/master/CONSOLE_GETTI...
>
> Matt Zumwalt
> MediaShelf, LLChttp://www.yourmediashelf.com
>
> On May 16, 2011, at 4:13 AM, Alexander wrote:
>
>
>
>
>
>
>
> > I've installed fedora and solr manually as described in
> >http://projects.mediashelf.us/projects/active-fedora/wiki/Setting_up_...
> > but that required some fixes, like schema.xml from ActiveFedora was
> > broken, so I take it from jetty and all forks fine.
>
> > Also I have hudra-jetty, cloned from git repo. Fedora runs fine, but
> > for solr i got
> > "HTTP ERROR: 404
>
> > NOT_FOUND
> > RequestURI=/solr/development
>
> > Powered by Jetty://
> > "
>
> > The main problem is in active-fedora ruby gem.
> > going byhttp://projects.mediashelf.us/projects/active-fedora/wiki/ActiveFedor...

Alexander

unread,
May 17, 2011, 3:46:13 AM5/17/11
to ActiveFedora / Ruby + Fedora Commons
new tour is also 1.8.7 only.
dependencies error:
Installing linecache (0.43) with native extensions /home/ap/.rvm/
rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:
533:in `rescue in block in build_extensions': ERROR: Failed to build
gem native extension. (Gem::Installer::ExtensionBuildError)

/home/ap/.rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb
Can't handle 1.9.x yet

But i hope, that you will add ruby 1.9 support.


On 16 май, 17:42, Matt Zumwalt <matt.zumw...@yourmediashelf.com>
wrote:
> HI Alex,
>
> We're working on a new console tour this week.  Would you be willing to take that one for a spin and lend any feedback?
>
> https://github.com/mediashelf/active_fedora/blob/master/CONSOLE_GETTI...
>
> Matt Zumwalt
> MediaShelf, LLChttp://www.yourmediashelf.com
>
> On May 16, 2011, at 4:13 AM, Alexander wrote:
>
>
>
>
>
>
>
> > I've installed fedora and solr manually as described in
> >http://projects.mediashelf.us/projects/active-fedora/wiki/Setting_up_...
> > but that required some fixes, like schema.xml from ActiveFedora was
> > broken, so I take it from jetty and all forks fine.
>
> > Also I have hudra-jetty, cloned from git repo. Fedora runs fine, but
> > for solr i got
> > "HTTP ERROR: 404
>
> > NOT_FOUND
> > RequestURI=/solr/development
>
> > Powered by Jetty://
> > "
>
> > The main problem is in active-fedora ruby gem.
> > going byhttp://projects.mediashelf.us/projects/active-fedora/wiki/ActiveFedor...

Alexander

unread,
May 24, 2011, 4:48:32 AM5/24/11
to ActiveFedora / Ruby + Fedora Commons
Matt Zumwalt, can you give me a schema.xml for Solr conf for current
version of ActiveFedora?
I tried to use jetty's schema.xml form hydra-jetty/solr/test-core/
conf, but i got 400 responce for it for fedora+solr setup.
From hydra-jetty all goes pretty good, but I want to have fedora+solr
working with activefedora.

I've installed fedora+solr, following
http://projects.mediashelf.us/projects/active-fedora/wiki/Setting_up_Fedora_and_Solr_for_use_with_ActiveFedora
I blocked only by schema.xml to start using your active-fedora gem.

On 16 май, 17:42, Matt Zumwalt <matt.zumw...@yourmediashelf.com>
wrote:
> HI Alex,
>
> We're working on a new console tour this week.  Would you be willing to take that one for a spin and lend any feedback?
>
> https://github.com/mediashelf/active_fedora/blob/master/CONSOLE_GETTI...
>
> Matt Zumwalt
> MediaShelf, LLChttp://www.yourmediashelf.com
>
> On May 16, 2011, at 4:13 AM, Alexander wrote:
>
>
>
>
>
>
>
> > I've installed fedora and solr manually as described in
> >http://projects.mediashelf.us/projects/active-fedora/wiki/Setting_up_...
> > but that required some fixes, like schema.xml from ActiveFedora was
> > broken, so I take it from jetty and all forks fine.
>
> > Also I have hudra-jetty, cloned from git repo. Fedora runs fine, but
> > for solr i got
> > "HTTP ERROR: 404
>
> > NOT_FOUND
> > RequestURI=/solr/development
>
> > Powered by Jetty://
> > "
>
> > The main problem is in active-fedora ruby gem.
> > going byhttp://projects.mediashelf.us/projects/active-fedora/wiki/ActiveFedor...
Reply all
Reply to author
Forward
0 new messages