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'

  1. The version setting refers to the Sphinx version, not Thinking Sphinx - so try either 1.10-beta or 2.1.0 instead of 2.0.10. You'll want to run the fs:rebuild task after making this change before attempting a search again.

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

  3. Please advise me how to proceed, I'm a paying customer, should I stop using your service and wait till that's resolved?

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

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

  6. Hmm. Surprised because this worked for someone else just the other day. What version of flying-sphinx are you using?

    Pat

  7. I think latest one, flying-sphinx (0.6.2)

    --
    Regards,
    Paul Tisunov

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

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

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

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

  12. Thanks for the confirmation - will make sure that bug gets fixed tomorrow. Let me know if any other issues crop up :)

  13. 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
    thinking-sphinx (2.0.11)
    

    flying-sphinx (= 0.6.6) thinking-sphinx (= 2.0.11)

    What am I doing wrong? Please advise.

    Cheers
    Lukasz

  14. Actually I updated the GEMs to the latest versions:

    flying-sphinx (0.8.4)
    thinking-sphinx (2.0.13)
    

    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

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

  16. Closing this issue as Lukasz now has this issue sorted (discussing other elements in a different thread).

  17. Pat Allan closed this discussion on 03 Dec, 2012 11:56 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions