Invalid Client Key

Brian Jones's Avatar

Brian Jones

03 Aug, 2011 12:08 AM

I get a collection of reports from Sphinx with the follow query:

@reports = params[:q], :match_mode => :extended, :page => params[:page], :per_page => 50

which works fine in development with Thinking Sphinx, but on Heroku with Flying Sphinx Wooden and a shared database, I get a 500 on the view for this action with the following error in the logs:

ActionView::TemplateError (searchd error (status: 1): invalid client key '') on line #3 of app/views/reports/search.html.erb:

line #3 is simply:

<%= will_paginate @reports -%>

I'm not finding 'invalid client key' referenced as a Sphinx error anywhere, and I'm wondering if this is a problem with the configuration of my Heroku account or its connection to Flying Sphinx.

Any insights? Thanks.

  1. Support Staff 1 Posted by Pat Allan on 03 Aug, 2011 12:57 AM

    Pat Allan's Avatar

    Hi Brian

    What versions of Thinking Sphinx and Riddle are you using? The client key setting is something I've patched onto Sphinx to ensure connections are secure (as otherwise it's just an open port for anyone to connect to), and recent versions of Thinking Sphinx/Riddle cover this.


  2. 2 Posted by Brian Jones on 03 Aug, 2011 01:20 AM

    Brian Jones's Avatar

    That was the problem. Thanks, Pat. I upgrade to thinking-sphinx 1.4.5 and it works.

    Thanks for the quick response; sorry it was just a case of my not following directions.



  3. Support Staff 3 Posted by Pat Allan on 03 Aug, 2011 01:22 AM

    Pat Allan's Avatar

    No worries, good to know it's all working now :)

  4. Pat Allan closed this discussion on 03 Aug, 2011 01:22 AM.

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

Keyboard shortcuts


? 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