I've developed an application which uses the Riddle gem (Not via the
Thinking Sphinx gem) to search a Sphinx index and I'm having odd
problems.

When I'm running the Rails application from the command-line script/
server task everything works fine, but when run from inside the
Passenger environment I get errors.  I've made sure I'm running as the
same user, and in the same environment, and all of the structures I
can think of to look at look right.

The stacktrace, from the point where it enters the Riddle code, is:

TypeError (nil can't be coerced into Fixnum):
  riddle (1.5.1) lib/riddle/client/response.rb:35:in `+'
  riddle (1.5.1) lib/riddle/client/response.rb:35:in `next_64bit_int'
  riddle (1.5.1) lib/riddle/client.rb:834:in `send'
  riddle (1.5.1) lib/riddle/client.rb:834:in `attribute_from_type'
  riddle (1.5.1) lib/riddle/client.rb:270:in `run'
  riddle (1.5.1) lib/riddle/client.rb:269:in `each'
  riddle (1.5.1) lib/riddle/client.rb:269:in `run'
  riddle (1.5.1) lib/riddle/client.rb:263:in `each'
  riddle (1.5.1) lib/riddle/client.rb:263:in `map'
  riddle (1.5.1) lib/riddle/client.rb:263:in `run'
  riddle (1.5.1) lib/riddle/client.rb:228:in `collect'
  riddle (1.5.1) lib/riddle/client.rb:228:in `run'
  riddle (1.5.1) lib/riddle/client.rb:338:in `query'

The Sphinx server is 2.0.1-beta, and it's running a realtime indexed
dataset.

Does anyone have an idea what could be causing this, and how to fix
it?  If there's any more information I could give from my application
which would help to analyse the problem then let me know.

Thanks,

Paul

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en.

Reply via email to