client version is higher than daemon version
There seems to be problem with post comments to existing issue. So I have to repost this as a new issue.
Rails 3.0.7 on Heroku cedar stack.
Error message:
2012-01-28T03:16:34+00:00 app[web.1]: ActionView::Template::Error
(searchd error (status: 1): client version is higher than daemon
version (client is v.1.24, daemon is v.1.23)):
Gemfile:
gem 'thinking-sphinx', '2.0.10', :require =>
'thinking_sphinx'
gem 'flying-sphinx', '0.6.1'
config/sphinx.yml
development:
morphology: stem_en enable_star: true min_prefix_len: 3
max_matches: 10000 port: 9312
test:
morphology: stem_en enable_star: true min_prefix_len: 3
max_matches: 10000 port: 9313
production:
morphology: stem_en enable_star: true min_prefix_len: 3
max_matches: 10000 port: 9314 version: '2.0.10'
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Pat Allan on 28 Jan, 2012 04:22 AM
The
versionsetting refers to the Sphinx version, not Thinking Sphinx - so try either1.10-betaor2.1.0instead of2.0.10. You'll want to run thefs:rebuildtask after making this change before attempting a search again.3 Posted by Pavel on 16 Feb, 2012 10:21 AM
Is this resolved?
I'm still getting
2012-02-16T10:18:59+00:00 app[web.1]: ActionView::Template::Error (searchd error (status: 1): client version is higher than daemon version (client is v.1.25, daemon is v.1.23)):
My sphinx.yml:
production:
version: '2.1.0'
Please tell me how to fix that?
4 Posted by Pavel on 16 Feb, 2012 10:58 AM
Please advise me how to proceed, I'm a paying customer, should I stop using your service and wait till that's resolved?
Support Staff 5 Posted by Pat Allan on 16 Feb, 2012 11:19 AM
Hi Pavel
What version of Thinking Sphinx are you using? Sphinx 2.1.0 requires TS 1.4.11 (for Rails 2) or 2.0.11 (for Rails 3) - and if you're using the appropriate version, then run `heroku rake fs:rebuild` to ensure both your indices and daemon are running with the appropriate versions.
If that doesn't change things, let me know.
Pat
6 Posted by Paul Tisunov on 16 Feb, 2012 11:26 AM
Hi Pat,
Thanks for the prompt reply! I'm running Rails 3.2.1 and TS 2.0.11, I ran heroku run rake fs:rebuild (I'm on Celadon Cedar) and still same error
--
Regards,
Paul Tisunov
Support Staff 7 Posted by Pat Allan on 16 Feb, 2012 11:41 AM
Hmm. Surprised because this worked for someone else just the other day. What version of flying-sphinx are you using?
Pat
8 Posted by Paul Tisunov on 16 Feb, 2012 11:43 AM
I think latest one, flying-sphinx (0.6.2)
--
Regards,
Paul Tisunov
Support Staff 9 Posted by Pat Allan on 16 Feb, 2012 12:05 PM
Right, that should be fine. What's your app name, so I can check things on the servers? And which version of Riddle are you using?
10 Posted by Paul Tisunov on 16 Feb, 2012 12:36 PM
I don't use Riddle explicitly, but Gemfile.lock says that TS and FS are dependent on riddle (1.5.1). App name is Nobuna
--
Regards,
Paul Tisunov
Support Staff 11 Posted by Pat Allan on 16 Feb, 2012 12:53 PM
Right, I think I figured it out… you had 2.1.0 in your yaml file the very first time you got set up on Flying Sphinx, I'm guessing? And I've been using after_update instead of after_save to check for changes to that value - and since it never changed, it never pushed the version through to my Sphinx servers.
At least, that's the theory I'm going with - will be pushing a bug fix out tomorrow (it's almost midnight here) but in the meantime I've manually updated things for your app, so try rebuilding again (I can't prompt a reindex from my side of things), and see how that goes.
Pat
12 Posted by Paul Tisunov on 16 Feb, 2012 12:57 PM
Pat,
Thanks! It's working now. Yes, I just followed instructions and put 2.1.0 in yaml config right from the beginning.
--
Regards,
Paul Tisunov
Support Staff 13 Posted by Pat Allan on 16 Feb, 2012 01:00 PM
Thanks for the confirmation - will make sure that bug gets fixed tomorrow. Let me know if any other issues crop up :)
14 Posted by Lukas on 03 Dec, 2012 05:07 PM
Hello Pat,
Now I am having this issue, upgraded from wooden to ceramic and all the time I have this in the logs:
Riddle::ResponseError (searchd error (status: 1): client version is higher than daemon version (client is v.1.25, daemon is v.1.23))
my gemfile looks like this:
± % cat Gemfile.lock | grep sphin !10082
flying-sphinx (= 0.6.6) thinking-sphinx (= 2.0.11)
What am I doing wrong? Please advise.
Cheers
Lukasz
15 Posted by Lukasz on 03 Dec, 2012 05:23 PM
Actually I updated the GEMs to the latest versions:
however now I see this in the logs:
Sphinx Caught Sphinx exception: undefined method `<' for nil:NilClass (0 tries left)
and before - every time I run 'heroku run rake fs:rebuild' :
Sphinx failed to start... have you indexed first?
However in the sphinx page I see that it is running. What could that be?
Thanks in advance.
Cheers
Lukasz
16 Posted by Lukasz on 03 Dec, 2012 05:41 PM
Interestingly noticed that Sphinx server is once running once not - depending how I hit refresh...
Here are screenshots:
https://www.evernote.com/shard/s95/sh/fbebd979-e445-46be-8c44-2c27a...
and then a minute later:
https://www.evernote.com/shard/s95/sh/a658cda8-fca2-4455-89ae-0a664...
Just get back to 'not running' another refresh later...
Support Staff 17 Posted by Pat Allan on 03 Dec, 2012 11:56 PM
Closing this issue as Lukasz now has this issue sorted (discussing other elements in a different thread).
Pat Allan closed this discussion on 03 Dec, 2012 11:56 PM.