Adeel Ahmad
2008-Apr-12 15:52 UTC
Help -Ultrasphinx::UsageError (Invalid class name "Product")
Hi, I''ve got Ultrasphinx running under RoR on both my local Windows development machine and now on the production Linux server. On my dev machine I''m able to search and it returns queries. On my production server I get the following error in my production.log when I try to run a query: Ultrasphinx::UsageError (Invalid class name "Product"): vendor/plugins/ultrasphinx/lib/ultrasphinx/search/internals.rb:88:in `build_request_with_options'' vendor/plugins/ultrasphinx/lib/ultrasphinx/search/internals.rb:85:in `map'' vendor/plugins/ultrasphinx/lib/ultrasphinx/search/internals.rb:85:in `build_request_with_options'' vendor/plugins/ultrasphinx/lib/ultrasphinx/search.rb:333:in `run'' app/controllers/main_controller.rb:46:in `search'' vendor/rails/actionpack/lib/action_controller/base.rb:1101:in `send'' ... The Ultrasphinx configure, index, and daemon:start all seem to have gone ok. There are index files in my index directory and log files are in index/log but query.log is empty. Checking daemon:status indicates that the daemon is running. Any ideas? Thanks. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Aryk Grosz
2008-Apr-15 20:17 UTC
Re: Help -Ultrasphinx::UsageError (Invalid class name "Produ
Im getting this one too. Were you able to fix it? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Adeel Ahmad
2008-Apr-15 21:43 UTC
Re: Help -Ultrasphinx::UsageError (Invalid class name "Produ
Not yet... I did update the version of Sphinx on my production server to 0.9.8. This is a beta version but apparently needed for Ultrasphinx according to some forum posts I came across. My development machine has always had 0.9.8. This didn''t fix the problem on the production server though. And digging deeper I found a couple other odd things: 1- The forum post that led me to update my version of Sphinx was actually in response to an error I am getting while trying to run Ultrasphinx in the Rails Console:>>@products.tun >>Ultrasphinx::DaemonError: searchd error (status: 1): client version is higher than daemon version (client is v.1.19, daemon is v.1.7)from /.../vendor/plugins/ultrasphinx/lib/ultrasphinx/search/internals.rb:365:in `perform_action_with_retries'' from /.../vendor/plugins/ultrasphinx/lib/ultrasphinx/search.rb:337:in `run'' from (irb):2 2- when I run any Ultrasphinx task, it seems to try to run the task twice, ie. when I enter "RAILS_ENV=production rake Ultrasphinx:daemon:start" it responds with a successful statement followed by a ''rake aborted!'' because it is already running! 3- The daemon seems to stop by itself about a minute after I run it. I''ll post the remedy if we get to the bottom of it... please do the same! Thanks. Aryk Grosz wrote:> Im getting this one too. Were you able to fix it?-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
David william Silva
2008-Oct-09 19:56 UTC
Re: Help -Ultrasphinx::UsageError (Invalid class name "Produ
I''m getting this message all the time: searchd error (status: 1): client version is higher than daemon version (client is v.1.19, daemon is v.1.7) I have tried many versions but the problem is still there. Does anyone know how to solve that? Thanks. Adeel Ahmad wrote:> Not yet... I did update the version of Sphinx on my production server to > 0.9.8. This is a beta version but apparently needed for Ultrasphinx > according to some forum posts I came across. My development machine has > always had 0.9.8. > This didn''t fix the problem on the production server though.-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---