# Help -Ultrasphinx::UsageError (Invalid class name "Product")

**URL:** <https://www.ruby-forum.com/t/help-ultrasphinx-usageerror-invalid-class-name-product/134597>\
**Category:** Rails\
**Created:** [April 12, 2008, 5:52pm UTC](https://www.ruby-forum.com/t/help-ultrasphinx-usageerror-invalid-class-name-product/134597 "2008-04-12T17:52:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![a2ahmad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/9de053/32.png) [@a2ahmad](https://www.ruby-forum.com/u/a2ahmad)\
**Post date:** [April 12, 2008, 5:52pm UTC](https://www.ruby-forum.com/t/help-ultrasphinx-usageerror-invalid-class-name-product/134597/1 "2008-04-12T17:52:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![a2ahmad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/9de053/32.png) [@a2ahmad](https://www.ruby-forum.com/u/a2ahmad)\
**Post date:** [April 15, 2008, 10:17pm UTC](https://www.ruby-forum.com/t/help-ultrasphinx-usageerror-invalid-class-name-product/134597/2 "2008-04-15T22:17:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![a2ahmad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/9de053/32.png) [@a2ahmad](https://www.ruby-forum.com/u/a2ahmad)\
**Post date:** [April 15, 2008, 11:43pm UTC](https://www.ruby-forum.com/t/help-ultrasphinx-usageerror-invalid-class-name-product/134597/3 "2008-04-15T23:43:50Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![a2ahmad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/9de053/32.png) [@a2ahmad](https://www.ruby-forum.com/u/a2ahmad)\
**Post date:** [October 9, 2008, 9:56pm UTC](https://www.ruby-forum.com/t/help-ultrasphinx-usageerror-invalid-class-name-product/134597/4 "2008-10-09T21:56:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![a2ahmad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/9de053/32.png) [@a2ahmad](https://www.ruby-forum.com/u/a2ahmad)\
**Post date:** [April 8, 2009, 9:44am UTC](https://www.ruby-forum.com/t/help-ultrasphinx-usageerror-invalid-class-name-product/134597/5 "2009-04-08T09:44:17Z")

</div>

I met the same problem .  
Did you fix it ?
