Huh... so it's on the update, it seems. Can you provide the stack trace? And your define_index block?
-- Pat On 24/02/2011, at 11:02 AM, Aaron Gibralter wrote: > Hi Pat, > > Thanks for the quick reply! > > I can get the exception on every request. These are the ingredients of the > problem: > > * running thin in development mode: `RAILS_ENV=development bundle exec thin > start` (perhaps Thin's evented server model causes the connection to searchd > to go dead?) > * having a index defined on my user model > * using authlogic... when I'm logged in I guess authlogic always updates the > user row on every request with the timestamp of the last request... or > something like that. > * having `config.cache_classes = true` in my environment... > > Changing any of the last 3 things causes the problem to go away; i.e. if I > comment out the index on my user model, or if I am not logged in, or if I > turn off cache_classes everything works ok: I can navigate to pages that show > search results. It seems like the problem has to do with either an > update_attribute or a delta index... > > > On Wed, Feb 23, 2011 at 6:50 PM, Pat Allan <[email protected]> wrote: > Hi Aaron > > I've never seen this in production or development (but going by emails here, > plenty of others have). How often is it happening for you? Is it easy to > reproduce? > > I'm wondering if it's related to the cache_class setting, and maybe that > leads to an invalid query being sent to Sphinx. If you can make it happen > regularly, perhaps it's worth adding some debug output to TS to find out what > query is being generated. > > Cheers > > -- > Pat > > On 24/02/2011, at 7:05 AM, Aaron Gibralter wrote: > > > I noticed that I started getting the "No response from searchd" error when > > I have the following setup: > > > > * development environment > > * Rails 2.3.10 > > * Thin > > > > And I change the following in config/environments/development.rb: > > `config.cache_classes = true` > > > > Any thoughts? > > > > -- > > 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. > > -- > 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. > > > > -- > 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. -- 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.
