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:inmap’
vendor/plugins/ultrasphinx/lib/ultrasphinx/search/internals.rb:85:in
build_request_with_options' vendor/plugins/ultrasphinx/lib/ultrasphinx/search.rb:333:inrun’
app/controllers/main_controller.rb:46:in search' vendor/rails/actionpack/lib/action_controller/base.rb:1101:insend’

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.

Im getting this one too. Were you able to fix it?

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:inrun’
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 G. wrote:

Im getting this one too. Were you able to fix it?

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 A. 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.

I met the same problem .
Did you fix it ?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs