Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
"No response from searchd" random error
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  17 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
mhodgson  
View profile  
 More options Sep 8 2009, 2:13 pm
From: mhodgson <matthodg...@mac.com>
Date: Tue, 8 Sep 2009 11:13:02 -0700 (PDT)
Local: Tues, Sep 8 2009 2:13 pm
Subject: "No response from searchd" random error
Hello all,

I'm being plagued with a very strange problem. I've had Thinking
Sphinx setup and running for a long time, and have always had this
problem. Randomly, every few searches, TS throws a "No response from
searchd" error. When attempting the exact same search even a split
second later, the search comes back fine. This happens all the time
and is very frustrating. Has anyone ever had anything like this happen
to them? Like I said, it has nothing to do with the actual query
strings or parameters, since you can try it again and it works right
away.

Thanks for the help,
Matt


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pat Allan  
View profile  
 More options Sep 10 2009, 1:25 pm
From: Pat Allan <p...@freelancing-gods.com>
Date: Thu, 10 Sep 2009 19:25:10 +0200
Local: Thurs, Sep 10 2009 1:25 pm
Subject: Re: [ts] "No response from searchd" random error
Hi Matt

This isn't the first I've heard of this, it's just not been a priority  
so far. I've had someone submit a patch for Riddle which may handle  
the error, make a few attempts to connect, but haven't had time to  
merge it in yet.

So: you're not alone, and hopefully it can be fixed soon.

--
Pat

On 08/09/2009, at 8:13 PM, mhodgson wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mhodgson  
View profile  
 More options Sep 14 2009, 10:49 am
From: mhodgson <matthodg...@mac.com>
Date: Mon, 14 Sep 2009 07:49:44 -0700 (PDT)
Local: Mon, Sep 14 2009 10:49 am
Subject: Re: "No response from searchd" random error
Thanks Pat, I appreciate it.

Again, thanks for all your hard work.

-Matt

On Sep 10, 1:25 pm, Pat Allan <p...@freelancing-gods.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pat Allan  
View profile  
 More options Sep 28 2009, 4:38 pm
From: Pat Allan <p...@freelancing-gods.com>
Date: Mon, 28 Sep 2009 22:38:29 +0200
Local: Mon, Sep 28 2009 4:38 pm
Subject: Re: [ts] Re: "No response from searchd" random error
Hi Matt

The latest in GitHub includes the patch to Riddle (it retries failed  
connections five times) - v1.2.12. Can you give it a shot, see if it  
fixes the problem for you?

Cheers

--
Pat

On 14/09/2009, at 4:49 PM, mhodgson wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aaron Gibralter  
View profile  
 More options Feb 23 2011, 3:05 pm
From: Aaron Gibralter <aaron.gibral...@gmail.com>
Date: Wed, 23 Feb 2011 12:05:10 -0800 (PST)
Local: Wed, Feb 23 2011 3:05 pm
Subject: Re: [ts] Re: "No response from searchd" random error

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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pat Allan  
View profile  
 More options Feb 23 2011, 6:50 pm
From: Pat Allan <p...@freelancing-gods.com>
Date: Thu, 24 Feb 2011 10:50:39 +1100
Local: Wed, Feb 23 2011 6:50 pm
Subject: Re: [ts] Re: "No response from searchd" random error
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aaron Gibralter  
View profile  
 More options Feb 23 2011, 7:02 pm
From: Aaron Gibralter <aaron.gibral...@gmail.com>
Date: Wed, 23 Feb 2011 19:02:10 -0500
Local: Wed, Feb 23 2011 7:02 pm
Subject: Re: [ts] Re: "No response from searchd" random error

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pat Allan  
View profile  
 More options Feb 23 2011, 7:10 pm
From: Pat Allan <p...@freelancing-gods.com>
Date: Thu, 24 Feb 2011 11:10:35 +1100
Local: Wed, Feb 23 2011 7:10 pm
Subject: Re: [ts] Re: "No response from searchd" random error
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aaron Gibralter  
View profile  
 More options Feb 23 2011, 10:37 pm
From: Aaron Gibralter <aaron.gibral...@gmail.com>
Date: Wed, 23 Feb 2011 22:37:14 -0500
Local: Wed, Feb 23 2011 10:37 pm
Subject: Re: [ts] Re: "No response from searchd" random error

Hmm weird -- I can't seem to recreate it on my mac book pro... I will try
again when I get to my imac at work tomorrow.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aaron Gibralter  
View profile  
 More options Feb 24 2011, 12:29 pm
From: Aaron Gibralter <aaron.gibral...@gmail.com>
Date: Thu, 24 Feb 2011 12:29:37 -0500
Local: Thurs, Feb 24 2011 12:29 pm
Subject: Re: [ts] Re: "No response from searchd" random error

Alright here is the stack trace:
https://gist.github.com/e53720939e66367a23e1

On Wed, Feb 23, 2011 at 10:37 PM, Aaron Gibralter <aaron.gibral...@gmail.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pat Allan  
View profile  
 More options Mar 1 2011, 7:08 am
From: Pat Allan <p...@freelancing-gods.com>
Date: Tue, 1 Mar 2011 23:08:26 +1100
Local: Tues, Mar 1 2011 7:08 am
Subject: Re: [ts] Re: "No response from searchd" random error
Hi Aaron

Sorry for the delay. Here's what I can tell from that stack trace:
* the record you're using has delta set to true.
* Thinking Sphinx is searching for that record in the delta index...

However, delta indexing hasn't happened at that point (if this is the first edit), so the record doesn't exist in the delta index. So it *should* just return an empty result set, but it's failing hard.

Can you try something for me? After running a full index (so no delta flags are set), grab a user instance, and run the following:
  User.search_for_id(user.sphinx_document_id, 'user_delta')

Does it fail? Or return false?

--
Pat

On 25/02/2011, at 4:29 AM, Aaron Gibralter wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aaron Gibralter  
View profile  
 More options Mar 1 2011, 10:23 am
From: Aaron Gibralter <aaron.gibral...@gmail.com>
Date: Tue, 1 Mar 2011 10:23:07 -0500
Local: Tues, Mar 1 2011 10:23 am
Subject: Re: [ts] Re: "No response from searchd" random error

That returns false for me.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pat Allan  
View profile  
 More options Mar 2 2011, 4:36 am
From: Pat Allan <p...@freelancing-gods.com>
Date: Wed, 2 Mar 2011 20:36:59 +1100
Local: Wed, Mar 2 2011 4:36 am
Subject: Re: [ts] Re: "No response from searchd" random error
Hi Aaron

I've just made a change to TS which should hopefully work around this. It'll be a bit fiddly, but can you grab my latest source, and run the following commands:

  bundle
  rake build
  gem install pkg/thinking-sphinx-1.4.3.gem --local

I just want to confirm it fixes this problem before pushing out a new gem release. Thanks!

--
Pat

On 02/03/2011, at 2:23 AM, Aaron Gibralter wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aaron Gibralter  
View profile  
 More options Mar 2 2011, 6:03 pm
From: Aaron Gibralter <aaron.gibral...@gmail.com>
Date: Wed, 2 Mar 2011 18:03:18 -0500
Local: Wed, Mar 2 2011 6:03 pm
Subject: Re: [ts] Re: "No response from searchd" random error

Alright so I installed from the source and

User.search_for_id(user.sphinx_document_id, 'user_delta')

is still false.

My app works now with cache_classes = true. But... I decided to double check
an reinstall the rubygems 1.4.3 version of TS and it still worked... so it
the problem must have had to do with the state of the indexes... I'm not
sure how to recreate the original problem.

What did you change in the code?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pat Allan  
View profile  
 More options Mar 2 2011, 7:02 pm
From: Pat Allan <p...@freelancing-gods.com>
Date: Thu, 3 Mar 2011 11:02:13 +1100
Local: Wed, Mar 2 2011 7:02 pm
Subject: Re: [ts] Re: "No response from searchd" random error
I didn't do much - just the one commit since 1.4.3:
https://github.com/freelancing-god/thinking-sphinx/commit/3cc67600da4...

Stripped out some unused methods (and their specs), reworked one to do what we need, with a rescue for the error you're getting.

False is what I'd expect from that code, so that's fine... am defaulting to true, though - as there's other rescue blocks that will handle these situations.

--
Pat

On 03/03/2011, at 10:03 AM, Aaron Gibralter wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aaron Gibralter  
View profile  
 More options Mar 2 2011, 7:08 pm
From: Aaron Gibralter <aaron.gibral...@gmail.com>
Date: Wed, 2 Mar 2011 19:08:45 -0500
Local: Wed, Mar 2 2011 7:08 pm
Subject: Re: [ts] Re: "No response from searchd" random error

Cool, well looks good to me. Thank you again for the help!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pat Allan  
View profile  
 More options Mar 2 2011, 7:17 pm
From: Pat Allan <p...@freelancing-gods.com>
Date: Thu, 3 Mar 2011 11:17:00 +1100
Subject: Re: [ts] Re: "No response from searchd" random error
No worries :)

--
Pat

On 03/03/2011, at 11:08 AM, Aaron Gibralter wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »