This sounds like a path issue. It works with script/server or script/
console because you are logged in and running the commands yourself.
You probably have set the path to sphinx in your bashrc or profile
which makes it work for you when you are logged in. But, when
Passenger runs, it is unable to find that path because it doesn't load
the same files that you do when you manually ssh into the machine.

Have you set the path to sphinx in your configuration?

Mark

On Sep 30, 10:44 am, mpokress <[email protected]> wrote:
> Something to add to this:
>
> I see this in my apache error log every time a search is executed:
>
> Riddle cannot detect Sphinx on your machine, and so can't determine
> which
> version of Sphinx you are planning on using. Please use one of the
> following
> lines after "require 'riddle'" to avoid this warning.
>
>   require 'riddle/0.9.8'
>   # or
>   require 'riddle/0.9.9'
>   # or
>   require 'riddle/1.10'
>
> Running TS 1.3.20 and Sphinx 0.9.9.  Have the same problems in
> environments with 0.9.8 and 1.3.16.
>
> Matt
>
> On Sep 30, 4:29 pm, mpokress <[email protected]> wrote:
>
>
>
> > Good afternoon-
>
> > I have read a number of threads that make reference to the issue I am
> > having - delta indexing does not work in production.  Like many, it
> > works without issue under script/server or script/console.  In
> > production (Apache/Passenger) it does not.
>
> > For this example, let's say my rails app is owned by "matt".  The
> > binaries are in /usr/local/bin, and the relevant section os sphinx.yml
> > is this:
>
> > production:
> >     mem_limit: 512M
> >     enable_star: 1
> >     min_infix_len: 3
> >     max_matches: 100000
> >     bin_path: /usr/local/bin
> >     charset_table: "+, -, 0..9, A..Z->a..z, _, a..z, U+410..U+42F->U
> > +430..U+44F, U+430..U+44F"
>
> > I have set the apache directives to force it to run as "matt" (not too
> > comfortable with this).  These directives are snipped from the globals
> > section of the httpd.conf.
>
> > User matt
> > Group matt
> > PassengerDefaultUser matt
>
> > I really appreciate any help.  This has been driving me absolutely
> > nuts for two days, and I really tried to RTFM/RTFP (posts) before
> > asking a question that seems to have been answered many times.
>
> > Best,
>
> > Matt

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

Reply via email to